﻿:root {
  --black: #111111;
  --ink: #171717;
  --white: #FFFFFF;
  --paper: #FBFAF8;
  --soft-gray: #F4F4F4;
  --line: #E8E6E3;
  --muted: #626262;
  --muted-light: #A5A5A5;
  --red: #F21D0D;
  --red-deep: #B81822;
  --red-soft: #FFF0EE;
  --radius: 24px;
  --container: 1160px;
  --shadow-soft: 0 20px 55px rgba(17, 17, 17, 0.08);
  --shadow-card: 0 16px 40px rgba(17, 17, 17, 0.065);
  --shadow-red: 0 16px 34px rgba(242, 29, 13, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--black);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.05;
}

p {
  margin: 0;
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin: 0 auto;
}

.section {
  padding: 102px 0;
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--red-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.button,
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button-primary {
  padding: 0 30px;
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.button-primary:hover,
.whatsapp-fixed:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.header-shell {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: 46px 0 24px;
}

.brand-logo-link {
  display: grid;
  justify-items: center;
  width: min(960px, 100%);
}

.brand-logo {
  display: block;
  width: min(900px, 100%);
  max-height: 190px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1060px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--black);
  font-size: 0.88rem;
  font-weight: 800;
}

.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.main-nav a:hover {
  background: var(--red-soft);
  color: var(--red-deep);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 14% 18%, rgba(242, 29, 13, 0.08), transparent 28%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  top: 70px;
  right: max(24px, calc((100vw - var(--container)) / 2));
  width: 180px;
  height: 1px;
  background: var(--black);
  opacity: 0.18;
}

.hero::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.12), transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.78fr);
  align-items: center;
  gap: 78px;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(3rem, 6.2vw, 5.55rem);
  letter-spacing: -0.012em;
}

.hero-text {
  max-width: 720px;
  margin: 28px 0 36px;
  color: var(--muted);
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-phone {
  color: var(--black);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-showcase {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.showcase-mark {
  position: absolute;
  top: -34px;
  right: -42px;
  width: 180px;
  height: 180px;
  object-fit: contain;
  opacity: 0.08;
}

.showcase-kicker {
  position: relative;
  margin-bottom: 13px;
  color: var(--red-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-showcase h2 {
  position: relative;
  margin-bottom: 17px;
  font-size: 2.08rem;
}

.hero-showcase p:not(.showcase-kicker) {
  position: relative;
  margin-bottom: 25px;
  color: var(--muted);
}

.region-list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.region-list span {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--black);
  font-size: 0.87rem;
  font-weight: 800;
}

/* Featured properties */
.featured {
  background: var(--white);
}

.section-heading {
  margin-bottom: 46px;
}

.section-heading-simple {
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-heading h2,
.about h2,
.service h2,
.referral h2,
.register h2,
.contact h2 {
  max-width: 780px;
  font-size: clamp(2.12rem, 4vw, 3.45rem);
}

.section-heading p:not(.eyebrow),
.register-intro p,
.contact-copy p:not(.eyebrow) {
  color: var(--muted);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.property-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.featured-card {
  transform: translateY(-12px);
  border-color: rgba(242, 29, 13, 0.18);
  box-shadow: 0 22px 52px rgba(242, 29, 13, 0.10);
}

.property-image {
  min-height: 232px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background-size: cover;
  background-position: center;
}

.property-image span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--red-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.10);
}

.beach-house {
  background:
    linear-gradient(145deg, rgba(17, 17, 17, 0.08), rgba(242, 29, 13, 0.15)),
    linear-gradient(145deg, #F2F2F2 0%, #C9C9C9 100%);
}

.coastal-home {
  background:
    linear-gradient(145deg, rgba(17, 17, 17, 0.11), rgba(242, 29, 13, 0.13)),
    linear-gradient(145deg, #FFFFFF 0%, #B9B9B9 100%);
}

.summer-lot {
  background:
    linear-gradient(145deg, rgba(17, 17, 17, 0.10), rgba(242, 29, 13, 0.10)),
    linear-gradient(145deg, #F7F7F7 0%, #CFCFCF 100%);
}

.property-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 25px;
}

.property-location {
  margin-bottom: 8px;
  color: var(--red-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-content h3 {
  margin-bottom: 19px;
  font-size: 1.48rem;
}

.property-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 19px;
}

.property-details div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.property-details dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-details dd {
  margin: 5px 0 0;
  color: var(--black);
  font-weight: 900;
}

.property-description {
  margin-bottom: 24px;
  color: var(--muted);
}

.card-button {
  width: 100%;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
}

.card-button:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

/* About */
.about {
  background: var(--paper);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 70px;
  align-items: start;
}

.about-title h2 {
  max-width: 520px;
  font-size: clamp(2.12rem, 4vw, 3.35rem);
}

.about-copy {
  display: grid;
  gap: 22px;
  max-width: 780px;
  padding: 8px 0 8px 32px;
  border-left: 3px solid var(--red);
  color: var(--muted);
  font-size: 1.08rem;
}

.about-copy p {
  max-width: 720px;
}

/* Service sections */
.service {
  background: var(--white);
}

.service-grid,
.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
  gap: 56px;
  align-items: start;
}

.service-card,
.referral-box,
.property-form {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.service-card {
  display: grid;
  gap: 28px;
  padding: 36px;
  color: var(--muted);
}

.service-card .button {
  justify-self: start;
}

.referral {
  background:
    linear-gradient(135deg, rgba(242, 29, 13, 0.065), transparent 42%),
    var(--paper);
}

.referral-box {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: 52px;
  align-items: center;
  padding: 48px;
}

.referral-copy {
  display: grid;
  gap: 26px;
  color: var(--muted);
}

.referral-copy .button {
  justify-self: start;
}

/* Register form */
.register {
  background: var(--white);
}

.register-intro {
  position: sticky;
  top: 24px;
}

.register-intro p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 20px;
  color: var(--muted);
}

.property-form {
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.form-wide {
  grid-column: 1 / -1;
}

.property-form label {
  display: grid;
  gap: 8px;
}

.property-form label span {
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-form input,
.property-form select,
.property-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--black);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.property-form input,
.property-form select {
  height: 50px;
  padding: 0 15px;
}

.property-form textarea {
  resize: vertical;
  min-height: 130px;
  padding: 14px 15px;
}

.property-form input:focus,
.property-form select:focus,
.property-form textarea:focus {
  border-color: rgba(242, 29, 13, 0.42);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(242, 29, 13, 0.08);
}

.property-form .button {
  width: 100%;
}

/* Contact */
.contact {
  background: var(--paper);
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 50px;
  align-items: center;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.contact-copy p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 18px;
}

.contact-panel {
  display: grid;
  gap: 14px;
}

.contact-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.contact-item-strong {
  border-color: rgba(242, 29, 13, 0.20);
}

.contact-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-item strong {
  color: var(--black);
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  padding: 58px 0;
  background: linear-gradient(180deg, #151515 0%, #080808 100%);
  color: var(--white);
  border-top: 4px solid var(--red);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(300px, 1.35fr) minmax(160px, 0.7fr) minmax(240px, 1.1fr) minmax(190px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-logo {
  display: block;
  width: min(360px, 100%);
  max-height: 82px;
  object-fit: contain;
}

.footer-content span,
.footer-links span {
  display: block;
  margin-bottom: 9px;
  color: var(--red-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-content p,
.footer-links a {
  color: #D8D8D8;
}

.footer-content p + p {
  margin-top: 4px;
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-links a:hover {
  color: var(--white);
}

.whatsapp-fixed {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  box-shadow: var(--shadow-red);
  transition: background 180ms ease, transform 180ms ease;
}

.whatsapp-fixed span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--white);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .property-grid,
  .about-layout,
  .service-grid,
  .referral-box,
  .register-grid,
  .contact-box,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .contact-box,
  .about-layout,
  .service-grid,
  .register-grid {
    gap: 38px;
  }

  .featured-card {
    transform: none;
  }

  .register-intro {
    position: static;
  }

  .footer-content {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 30px, var(--container));
  }

  .section {
    padding: 74px 0;
  }

  .header-shell {
    gap: 20px;
    padding: 30px 0 18px;
  }

  .brand-logo-link {
    width: min(100%, 560px);
  }

  .brand-logo {
    width: min(540px, 100%);
    max-height: 122px;
  }

  .main-nav {
    width: 100%;
    border-radius: 22px;
  }

  .main-nav a {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .hero-copy h1 {
    font-size: 2.48rem;
  }

  .hero-text,
  .about-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .button-primary {
    width: 100%;
  }

  .hero-showcase,
  .contact-box,
  .referral-box,
  .service-card,
  .property-form {
    padding: 26px;
    border-radius: 22px;
  }

  .showcase-mark {
    width: 130px;
    height: 130px;
  }

  .region-list,
  .property-details,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .property-image {
    min-height: 198px;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-logo {
    width: min(300px, 100%);
    max-height: 72px;
  }

  .whatsapp-fixed {
    right: 14px;
    bottom: 14px;
    min-height: 50px;
    padding: 0 17px;
    font-size: 0.9rem;
  }
}

/* Home listing CTA */
.home-listing-cta {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

/* Catalog page */
.catalog-page .site-header {
  border-bottom-color: rgba(17, 17, 17, 0.06);
}

.catalog-hero {
  background:
    radial-gradient(circle at 84% 18%, rgba(242, 29, 13, 0.08), transparent 30%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.catalog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 52px;
  align-items: end;
}

.catalog-hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 6vw, 5.2rem);
}

.catalog-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.12rem;
}

.catalog-summary {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.catalog-summary span {
  color: var(--red-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-summary strong {
  display: block;
  margin: 6px 0 8px;
  color: var(--black);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3rem;
  line-height: 1;
}

.catalog-summary p {
  color: var(--muted);
}

.catalog-listing {
  background: var(--white);
  padding-top: 72px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.catalog-toolbar p {
  color: var(--muted);
  font-weight: 800;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.catalog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.catalog-media {
  position: relative;
  min-height: 238px;
  background: var(--paper);
}

.catalog-media img,
.catalog-placeholder {
  width: 100%;
  height: 238px;
  display: block;
}

.catalog-media img,
.catalog-slide {
  object-fit: cover;
}

.catalog-carousel,
.catalog-slides {
  position: relative;
  width: 100%;
  height: 238px;
  overflow: hidden;
}

.catalog-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 220ms ease;
}

.catalog-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.55);
  color: var(--white);
  font-size: 1.65rem;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
  background: var(--red);
  transform: translateY(-50%) scale(1.04);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.catalog-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.34);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.catalog-dot {
  width: 8px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.catalog-dot.is-active {
  width: 19px;
  background: var(--white);
}

.catalog-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(17, 17, 17, 0.06), rgba(242, 29, 13, 0.10)),
    var(--paper);
  color: var(--muted);
  font-weight: 900;
}

.catalog-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--red-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.12);
}

.catalog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.catalog-location,
.catalog-code {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.catalog-content h2 {
  margin: 9px 0 8px;
  font-size: 1.45rem;
}

.catalog-code {
  color: var(--red-deep);
}

.catalog-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.catalog-price-row strong {
  color: var(--black);
  font-size: 1.24rem;
}

.catalog-price-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-deep);
  font-size: 0.76rem;
  font-weight: 900;
}

.catalog-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.catalog-stats span {
  display: grid;
  gap: 2px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.catalog-stats strong {
  color: var(--black);
  font-size: 0.98rem;
}

.catalog-description {
  margin-bottom: 22px;
  color: var(--muted);
}

.catalog-card .card-button {
  margin-top: auto;
}

@media (max-width: 980px) {
  .catalog-hero-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .catalog-hero h1 {
    font-size: 2.5rem;
  }

  .catalog-media,
  .catalog-media img,
  .catalog-carousel,
  .catalog-slides,
  .catalog-slide,
  .catalog-placeholder {
    height: 210px;
    min-height: 210px;
  }

  .catalog-stats {
    grid-template-columns: 1fr;
  }
}

/* Catalog filters and usability */
.button-ghost {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
}

.button-ghost:hover {
  border-color: rgba(242, 29, 13, 0.34);
  background: var(--red-soft);
  color: var(--red-deep);
  transform: translateY(-2px);
}

.catalog-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 0.72fr));
  gap: 16px;
  align-items: end;
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
  box-shadow: var(--shadow-card);
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field span {
  color: var(--black);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.filter-field input,
.filter-field select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  outline: none;
  padding: 0 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: rgba(242, 29, 13, 0.44);
  box-shadow: 0 0 0 4px rgba(242, 29, 13, 0.08);
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.catalog-count {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 900;
}

.catalog-empty {
  margin: 0 0 26px;
  padding: 22px;
  border: 1px solid rgba(242, 29, 13, 0.22);
  border-radius: 18px;
  background: var(--red-soft);
  color: var(--red-deep);
  font-weight: 900;
}

.catalog-grid {
  align-items: stretch;
}

.catalog-card {
  height: 100%;
  min-height: 100%;
}

.catalog-card.is-hidden {
  display: none;
}

.catalog-content h2 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.05em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-description {
  display: -webkit-box;
  overflow: hidden;
  min-height: 4.8em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalog-price-row span {
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .catalog-filters {
    grid-template-columns: 1fr 1fr;
  }

  .filter-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .catalog-filters {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  .filter-search,
  .filter-actions {
    grid-column: auto;
  }

  .filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-count {
    text-align: center;
  }

  .button-ghost {
    width: 100%;
  }

  .catalog-content h2 {
    min-height: auto;
  }
}

