/* ==========================================================================
   HAVENMARK ESTATES — Luxury real estate
   1. Tokens   2. Base   3. Utilities   4. Buttons/Forms   5. Nav   6. Hero
   7. Properties  8. Cities  9. About  10. Stats  11. Sell  12. CTA
   13. Testimonials  14. Agents  15. Newsletter  16. Contact  17. Footer
   18. Motion  19. Responsive
   ========================================================================== */

/* ============================== 1. TOKENS ============================== */
:root {
  /* Color */
  --navy-900: #0a1522;
  --navy-800: #0e1a2b;
  --navy-700: #16273c;
  --navy-600: #223a55;
  --ink: #16202c;
  --ink-70: #4a5769;
  --ink-50: #6d7a8b;
  --line: #e3e0d9;
  --line-soft: #eeebe4;
  --paper: #fbfaf7;
  --paper-2: #f4f1ea;
  --white: #ffffff;
  --gold-600: #9a7638;
  --gold: #c39a5e;
  --gold-300: #e0c79b;
  --sand: #f0e9dc;

  /* Type */
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(2rem, 4.4vw, 3.1rem);
  --text-3xl: clamp(2.5rem, 6vw, 4.4rem);
  --text-hero: clamp(2.85rem, 7.2vw, 5.5rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --maxw: 1240px;

  /* Radius / shadow / motion */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(16, 26, 40, 0.06), 0 4px 12px rgba(16, 26, 40, 0.05);
  --sh-md: 0 12px 32px -12px rgba(14, 26, 43, 0.18);
  --sh-lg: 0 30px 60px -24px rgba(14, 26, 43, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.2s var(--ease);
  --t: 0.35s var(--ease);
  --t-slow: 0.6s var(--ease);
}

/* ============================== 2. BASE ============================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.06;
  color: var(--navy-800);
}
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold-600); }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 300;
  background: var(--navy-800);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: var(--text-sm);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ============================== 3. UTILITIES ============================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--paper-2); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--sp-4);
}
.eyebrow--light { color: var(--gold-300); }

.sec-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-title { font-size: var(--text-2xl); }
.sec-lede {
  margin-top: var(--sp-5);
  font-size: var(--text-lg);
  color: var(--ink-70);
  max-width: 38rem;
  line-height: 1.6;
}
.sec-lede--left { margin-inline: 0; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--xs { width: 14px; height: 14px; flex: 0 0 14px; }

/* ============================== 4. BUTTONS + FORMS ============================== */
.btn {
  --btn-bg: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 8px 22px -10px rgba(154, 118, 56, 0.7); }
.btn--gold:hover { background: var(--gold-300); }

.btn--navy { background: var(--navy-800); color: #fff; box-shadow: 0 10px 26px -14px rgba(14, 26, 43, 0.75); }
.btn--navy:hover { background: var(--navy-600); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }

.btn--outline { border: 1px solid var(--line); background: var(--white); color: var(--navy-800); }
.btn--outline:hover { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }

.btn--text {
  padding: 0.5rem 0.25rem;
  color: var(--ink-70);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
}
.btn--text:hover { color: var(--navy-800); text-decoration-color: var(--gold); transform: none; }

.btn--sm { padding: 0.68rem 1.2rem; font-size: var(--text-xs); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: var(--text-base); }
.btn--full { width: 100%; }

/* Selects */
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 0.95rem; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: 0.6;
  pointer-events: none;
}
.select-wrap select {
  appearance: none;
  width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}
.select-wrap select option { color: #16202c; background: #fff; }

.select-wrap--light select {
  padding: 0.7rem 2.2rem 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  transition: border-color var(--t-fast);
}
.select-wrap--light select:hover { border-color: var(--gold); }

/* Fields */
.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 0.4rem;
}
.form input, .form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form input::placeholder, .form textarea::placeholder { color: #a5aeba; }
.form input:hover, .form textarea:hover { border-color: #cfcabf; }
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195, 154, 94, 0.16);
}
.form textarea { resize: vertical; min-height: 120px; }

.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: #b3402f; }
.err {
  min-height: 1.15rem;
  margin-top: 0.3rem;
  font-size: var(--text-xs);
  color: #b3402f;
  font-weight: 500;
}
.err::before { content: ""; }
.field.has-error .err::before { content: "⚠ "; }

/* ============================== 5. NAV ============================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 0.9rem var(--gutter);
  transition: padding var(--t);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.6rem 0.7rem 0.6rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 22, 36, 0.28);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px -18px rgba(6, 14, 24, 0.5);
  color: #fff;
  transition: background-color var(--t), border-color var(--t), box-shadow var(--t), color var(--t);
}
.nav.is-scrolled { padding-block: 0.55rem; }
.nav.is-scrolled .nav__inner {
  background: rgba(251, 250, 247, 0.82);
  border-color: rgba(20, 32, 48, 0.09);
  box-shadow: 0 14px 40px -22px rgba(14, 26, 43, 0.38);
  color: var(--navy-800);
}

.logo { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.logo__mark { width: 30px; height: 30px; color: var(--gold); }
.nav.is-scrolled .logo__mark { color: var(--gold-600); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: -0.005em;
}
.logo__sub {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.72;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline: auto;
}
.nav__link {
  position: relative;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), opacity var(--t-fast);
  opacity: 0.88;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.28rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { opacity: 1; }

.nav__right { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
.nav__cta-mobile { display: none; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid currentColor;
  opacity: 0.85;
}
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================== 6. HERO ============================== */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(7rem, 14vh, 9.25rem) clamp(2.75rem, 6vh, 4.25rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-900);
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 26s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.4%, -1.6%, 0); }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, rgba(6, 13, 22, 0.94) 0%, rgba(7, 15, 25, 0.72) 38%, rgba(8, 16, 27, 0.34) 68%, rgba(8, 16, 27, 0.55) 100%),
    linear-gradient(105deg, rgba(6, 13, 22, 0.62) 0%, rgba(6, 13, 22, 0) 62%);
}
.hero__glow {
  position: absolute; z-index: -1;
  inset: auto -20% -30% -20%;
  height: 70%;
  background: radial-gradient(60% 60% at 22% 80%, rgba(195, 154, 94, 0.22), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(-3%, 2%, 0); opacity: 0.75; }
  to   { transform: translate3d(6%, -4%, 0); opacity: 1; }
}

.hero__content { position: relative; }
.hero__title {
  font-size: var(--text-hero);
  color: #fff;
  max-width: 20ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero__title em { color: var(--gold-300); }
.hero__sub {
  margin-top: var(--sp-5);
  max-width: 44ch;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--sp-5);
}

/* Hero search */
.search {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 1fr 1fr auto;
  align-items: end;
  gap: 0.35rem 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(14, 24, 38, 0.42);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--sh-lg);
  color: #fff;
  transition: border-color var(--t), background-color var(--t);
}
.search:hover, .search:focus-within {
  border-color: rgba(224, 199, 155, 0.55);
  background: rgba(14, 24, 38, 0.52);
}
.search__field { min-width: 0; position: relative; }
.search__field + .search__field::before {
  content: "";
  position: absolute;
  left: -0.62rem; top: 1.55rem; bottom: 0.35rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.search__field label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.1rem;
}
.search__field select { color: #fff; }
.search__btn { padding-inline: 1.5rem; align-self: end; }
.search__btn .ico { width: 17px; height: 17px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}
.hero__trust strong { color: #fff; font-weight: 600; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.2rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-pill);
  display: grid; place-items: start center;
  padding-top: 7px;
}
.hero__scroll span {
  width: 3px; height: 9px;
  border-radius: 2px;
  background: var(--gold-300);
  animation: scrollhint 1.9s var(--ease) infinite;
}
@keyframes scrollhint {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(14px); opacity: 1; }
}

/* ============================== 7. PROPERTIES ============================== */
.filters { margin-bottom: var(--sp-6); }
.filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.section--tint .seg { background: var(--white); }
.seg__btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--r-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-70);
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.seg__btn:hover { color: var(--navy-800); }
.seg__btn.is-active {
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--sh-sm);
}
.filters__selects {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-4);
  margin-left: auto;
}
.filters__selects .field { min-width: 8.5rem; }
.filters__count {
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--ink-50);
}
.filters__count strong { color: var(--navy-800); font-weight: 600; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--cards { grid-template-columns: repeat(3, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--line);
}
.card.is-hidden { display: none; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
  will-change: transform;
}
.card:hover .card__media img { transform: scale(1.07); }

.badge {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  padding: 0.36rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(6px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--navy-800);
}
.badge--rent { background: rgba(14, 26, 43, 0.88); color: var(--gold-300); }

.fav {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(6px);
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.fav svg {
  width: 19px; height: 19px;
  fill: none; stroke: var(--navy-800); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: fill var(--t-fast), stroke var(--t-fast), transform var(--t-fast);
}
.fav:hover { background: #fff; transform: scale(1.07); }
.fav[aria-pressed="true"] svg { fill: #c0392b; stroke: #c0392b; }
.fav[aria-pressed="true"] { background: #fff; }
.fav.is-pop svg { animation: pop 0.34s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.35rem 1.4rem 1.5rem;
  flex: 1;
}
.card__price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy-800);
  line-height: 1.1;
}
.card__per { font-family: var(--font-body); font-size: 0.8rem; color: var(--ink-50); font-weight: 500; }
.card__title { font-size: 1.22rem; letter-spacing: -0.005em; }
.card__addr {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: var(--ink-50);
}
.card__addr .ico { stroke: var(--gold-600); }
.card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-70);
}
.card__specs li { position: relative; }
.card__specs li + li::before {
  content: "";
  position: absolute;
  left: -0.52rem; top: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}
.card__cta {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
}
.card__cta span { transition: transform var(--t-fast); color: var(--gold-600); }
.card__cta:hover span { transform: translateX(5px); }
.card__cta:hover { color: var(--gold-600); }

/* Empty state */
[hidden] { display: none !important; }
.empty {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: clamp(3rem, 7vw, 5rem) var(--sp-5);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  text-align: center;
  animation: fadeUp 0.45s var(--ease) both;
}
.empty__ico { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.empty h3 { font-size: 1.6rem; margin-top: 0.4rem; }
.empty p { color: var(--ink-50); max-width: 32ch; }
.empty .btn { margin-top: 0.6rem; }

/* ============================== 8. CITIES ============================== */
.grid--cities {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 218px;
}
.city {
  position: relative;
  grid-column: span 1;
  grid-row: span 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sh-md);
  transition: transform var(--t), box-shadow var(--t);
}
.city--tall { grid-column: span 2; grid-row: span 2; }
.city--wide { grid-column: span 1; }
.city:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.city img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  will-change: transform;
}
.city:hover img { transform: scale(1.08); }
.city__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 13, 22, 0.9) 4%, rgba(6, 13, 22, 0.34) 46%, rgba(6, 13, 22, 0.08) 78%);
  transition: opacity var(--t);
}
.city:hover .city__scrim { opacity: 0.82; }
.city__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.5rem;
  color: #fff;
}
.city__body h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.city__body p { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.78); margin-top: 0.2rem; }
.city__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t), transform var(--t);
}
.city:hover .city__cta, .city:focus-visible .city__cta { opacity: 1; transform: translateY(0); }

/* ============================== 9. ABOUT ============================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.about__stat {
  position: absolute;
  right: 1.2rem; bottom: 1.2rem;
  width: min(15rem, 72%);
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--r-md);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--sh-md);
}
.about__stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy-800);
  line-height: 1;
}
.about__stat span { font-size: var(--text-xs); color: var(--ink-70); line-height: 1.45; }

.features { margin-top: var(--sp-7); display: grid; gap: 0; }
.feature {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  transition: background-color var(--t-fast);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-600);
  padding-top: 0.1rem;
}
.feature h3 { font-size: 1.22rem; }
.feature p { font-size: var(--text-sm); color: var(--ink-70); margin-top: 0.28rem; }
.feature__ico {
  width: 26px; height: 26px;
  fill: none; stroke: var(--navy-600); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.35;
  transition: opacity var(--t-fast), transform var(--t-fast), stroke var(--t-fast);
}
.feature:hover .feature__ico { opacity: 1; stroke: var(--gold-600); transform: translateX(-3px); }

/* ============================== 10. STATS ============================== */
.stats {
  background: var(--navy-800);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background-image: radial-gradient(90% 120% at 12% 0%, rgba(195, 154, 94, 0.16), transparent 60%);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.stat {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.35rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

/* ============================== 11. SELL ============================== */
.sell {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.ticks { margin-top: var(--sp-6); display: grid; gap: 0.85rem; }
.ticks li {
  position: relative;
  padding-left: 2rem;
  font-size: var(--text-base);
  color: var(--ink-70);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sand);
  border: 1px solid var(--gold-300);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5px; top: 0.72rem;
  width: 7px; height: 4px;
  border-left: 1.6px solid var(--gold-600);
  border-bottom: 1.6px solid var(--gold-600);
  transform: rotate(-45deg);
}
.ticks + .btn { margin-top: var(--sp-6); }

.sell__card {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
}
.sell__card h3 {
  font-size: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.sell__card dl { display: grid; gap: 0; margin-top: 0.4rem; }
.sell__card dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.sell__card dt { font-size: var(--text-sm); color: var(--ink-50); }
.sell__card dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy-800);
}
.sell__note { margin-top: 1rem; font-size: var(--text-xs); color: var(--ink-50); line-height: 1.5; }

/* ============================== 12. CTA BANNER ============================== */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: center;
  background: var(--navy-900);
}
.cta__media { position: absolute; inset: 0; z-index: -3; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__scrim {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to right, rgba(6, 13, 22, 0.9), rgba(6, 13, 22, 0.64) 55%, rgba(6, 13, 22, 0.86));
}
.cta__sheen {
  position: absolute; inset: -30% -10%; z-index: -1;
  background: radial-gradient(45% 55% at 50% 50%, rgba(224, 199, 155, 0.2), transparent 70%);
  animation: sheen 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes sheen {
  from { transform: translate3d(-8%, 4%, 0) scale(1); opacity: 0.7; }
  to   { transform: translate3d(8%, -4%, 0) scale(1.12); opacity: 1; }
}
.cta__title { font-size: var(--text-3xl); color: #fff; }
.cta__title em { color: var(--gold-300); }
.cta__text {
  margin: var(--sp-5) auto 0;
  max-width: 40ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
}
.cta .btn { margin-top: var(--sp-6); }

/* ============================== 13. TESTIMONIALS ============================== */
.quotes { position: relative; overflow: hidden; }
.quotes__track {
  display: flex;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}
.quote {
  flex: 0 0 100%;
  margin: 0;
  position: relative;
  padding: clamp(1.9rem, 4vw, 3.25rem);
  display: grid;
  gap: 1.2rem;
  justify-items: start;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.quote::after {
  content: '\201D';
  position: absolute;
  top: -1.4rem; right: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(9rem, 16vw, 15rem);
  line-height: 1;
  color: var(--gold-300);
  opacity: 0.34;
  pointer-events: none;
}
.stars { display: flex; gap: 0.2rem; }
.stars svg { width: 18px; height: 18px; fill: var(--gold); stroke: none; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.32;
  color: var(--navy-800);
  max-width: 44ch;
  position: relative;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.4rem;
}
.quote figcaption img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sand);
}
.quote figcaption span { display: grid; font-size: var(--text-sm); color: var(--ink-50); }
.quote figcaption strong {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy-800);
}

.quotes__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: clamp(1.75rem, 4vw, 3rem);
}
.qbtn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}
.qbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qbtn:hover { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }

.dots { display: flex; gap: 0.5rem; }
.dot {
  width: 28px; height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background-color var(--t-fast), width var(--t-fast);
}
.dot.is-active { background: var(--gold-600); width: 42px; }

/* ============================== 14. AGENTS ============================== */
.grid--agents { grid-template-columns: repeat(4, 1fr); }
.agent {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.agent:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.agent__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.agent__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform var(--t-slow), filter var(--t);
}
.agent:hover .agent__media img { transform: scale(1.06); filter: saturate(1.05); }
.agent { display: grid; grid-template-rows: auto 1fr; }
.agent__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.agent__body h3 { font-size: 1.25rem; }
.agent__role {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.agent__meta { font-size: var(--text-sm); color: var(--ink-50); margin-top: 0.25rem; margin-bottom: 0.9rem; }
.agent__body .btn { margin-top: auto; }

/* ============================== 15. NEWSLETTER ============================== */
.news {
  background: var(--navy-900);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background-image: radial-gradient(80% 130% at 90% 10%, rgba(195, 154, 94, 0.18), transparent 62%);
}
.news__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.news__text h2 { color: #fff; font-size: var(--text-2xl); }
.news__text h2 em { color: var(--gold-300); }
.news__text p { margin-top: var(--sp-4); color: rgba(255, 255, 255, 0.74); max-width: 42ch; }
.news__row {
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  transition: border-color var(--t-fast);
}
.news__row:focus-within { border-color: var(--gold-300); }
.news__row input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1.1rem;
  border: 0;
  background: transparent;
  color: #fff;
}
.news__row input::placeholder { color: rgba(255, 255, 255, 0.55); }
.news__row input:focus { outline: none; }
.form-msg {
  min-height: 1.3rem;
  margin-top: 0.65rem;
  padding-left: 1.1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gold-300);
}
.form-msg.is-error { color: #ffb3a6; }

/* ============================== 16. CONTACT ============================== */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.info { margin-top: var(--sp-7); display: grid; gap: 1.35rem; }
.info li { display: grid; grid-template-columns: 2.6rem 1fr; align-items: start; gap: 0.5rem; }
.info .ico { stroke: var(--gold-600); width: 21px; height: 21px; margin-top: 0.28rem; }
.info strong {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 0.2rem;
}
.info span { font-size: var(--text-sm); color: var(--ink-70); line-height: 1.6; }
.info a { border-bottom: 1px solid var(--line); transition: border-color var(--t-fast), color var(--t-fast); }
.info a:hover { color: var(--gold-600); border-color: var(--gold); }

.form {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.field--full { grid-column: 1 / -1; }
.form-note { margin-top: 0.85rem; font-size: var(--text-xs); color: var(--ink-50); text-align: center; }

.form.is-sent > *:not(.success) { display: none; }
.form.is-sent .success { position: static; inset: auto; min-height: 18rem; }
.success {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--white);
  text-align: center;
  animation: fadeUp 0.5s var(--ease) both;
}
.success svg {
  width: 54px; height: 54px;
  padding: 13px;
  border-radius: 50%;
  background: var(--sand);
  fill: none; stroke: var(--gold-600); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 0.4rem;
}
.success h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); max-width: 24ch; }
.success p { font-size: var(--text-sm); color: var(--ink-70); max-width: 34ch; }
.success a { color: var(--gold-600); border-bottom: 1px solid var(--gold-300); }

/* ============================== 17. FOOTER ============================== */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(3.5rem, 7vw, 5rem);
  font-size: var(--text-sm);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: var(--sp-7);
}
.footer__brand p { margin-top: var(--sp-4); max-width: 34ch; line-height: 1.65; }
.logo--light { color: #fff; }
.logo--light .logo__mark { color: var(--gold); }

.social { display: flex; gap: 0.5rem; margin-top: var(--sp-5); }
.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
  transform: translateY(-3px);
}

.footer__col h2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer__col ul { display: grid; gap: 0.6rem; }
.footer__col a { transition: color var(--t-fast), padding-left var(--t-fast); }
.footer__col a:hover { color: var(--gold-300); }
.footer__col address { font-style: normal; line-height: 1.85; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* Back to top */
.totop {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background-color var(--t-fast);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--gold); color: var(--navy-900); }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============================== 18. MOTION ============================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }
.reveal[data-delay="5"] { transition-delay: 0.45s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================== 19. RESPONSIVE ============================== */
@media (max-width: 1180px) {
  .nav__link { padding-inline: 0.5rem; font-size: 0.78rem; }
}

@media (max-width: 1080px) {
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .grid--agents { grid-template-columns: repeat(2, 1fr); }
  .search { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .search__field + .search__field::before { display: none; }
  .search__btn { grid-column: 1 / -1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-6); }
  .filters__row { flex-direction: column; align-items: stretch; gap: var(--sp-4); }
  .filters__row > .seg { align-self: flex-start; }
  .filters__selects { margin-left: 0; flex-wrap: wrap; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Mobile nav breakpoint */
@media (max-width: 1024px) {
  .burger { display: flex; }
  .nav__cta { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 0.75rem; align-self: stretch; }

  .nav__links {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    margin: 0;
    padding: 0.85rem;
    border-radius: var(--r-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 19, 32, 0.97);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow: var(--sh-lg);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav.is-scrolled .nav__links {
    background: rgba(251, 250, 247, 0.95);
    border-color: rgba(20, 32, 48, 0.1);
    color: var(--navy-800);
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__link { padding: 0.8rem 0.85rem; font-size: var(--text-base); border-radius: var(--r-sm); }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link.is-active { background: rgba(195, 154, 94, 0.16); }
  .nav__inner { position: relative; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 30rem; }
  .about__stat { right: 1rem; }
  .sell { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .news__inner { grid-template-columns: 1fr; }
  .grid--cities { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .city--tall { grid-column: span 2; grid-row: span 1; }
  .city--wide { grid-column: span 2; grid-row: span 1; }
  .filters__selects { margin-left: 0; }
  .quote blockquote { max-width: none; }
}

@media (max-width: 720px) {
  :root { --section-y: 3.75rem; }
  .hero { min-height: auto; padding-block: 7.5rem 3rem; }
  .hero__scroll { display: none; }
  .search { grid-template-columns: 1fr; padding: 1rem; gap: 0.9rem; }
  .search__field label { margin-bottom: 0.15rem; }
  .search__field { padding-bottom: 0.55rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .search__field:last-of-type { border-bottom: 0; padding-bottom: 0; }
  .search__btn { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }

  .grid--cards { grid-template-columns: 1fr; }
  .grid--agents { grid-template-columns: 1fr; }
  .grid--cities { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .city--tall, .city--wide { grid-column: span 1; }
  .filters__selects { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .filters__selects .field { min-width: 0; }
  .filters__selects .btn--text { grid-column: 1 / -1; justify-self: start; }
  .seg { width: 100%; }
  .seg__btn { flex: 1; padding-inline: 0.5rem; }

  .stats__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .form__grid { grid-template-columns: 1fr; }
  .news__row { flex-direction: column; border-radius: var(--r-lg); }
  .news__row .btn { width: 100%; }
  .form-msg { padding-left: 0.3rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .quotes__nav { padding-left: 0; justify-content: center; }
  .quote { padding-inline: 0.25rem; }
  .about__stat { position: static; width: auto; margin: -5rem 1rem 0; }
  .agent__media { aspect-ratio: 1 / 1; }
  .agent__media img { object-position: center 22%; }
}

@media (max-width: 380px) {
  .logo__sub { display: none; }
  .card__body, .agent__body { padding-inline: 1.1rem; }
}
