/* =========================================================
   ЖК ДЮНА КОТЕЛЬНИКИ — Премиальный лендинг
   Дизайн-система: светлый фон, тёплый песочный акцент + глубокий
   графитовый текст. Премиальный, не шаблонный: акцент на фото,
   воздух, тонкие линии вместо неоновых обводок.
   ========================================================= */

:root {
  --bg:            #faf8f4;
  --bg-2:          #f3efe6;
  --surface:       #ffffff;
  --surface-2:     #f6f2ea;

  --gold:          #b8863f;
  --gold-light:    #96702f;
  --gold-pale:     #f1e4c9;
  --gold-dim:      rgba(184,134,63,0.10);

  --neon:          #2f7d6b;
  --neon-soft:     rgba(47,125,107,0.09);

  --text:          #211c15;
  --text-muted:    #5c5548;
  --text-faint:    #8a8272;

  --glass-bg:      rgba(255,255,255,0.78);
  --glass-border:  rgba(184,134,63,0.22);
  --glass-border-neon: rgba(47,125,107,0.20);
  --glass-blur:    blur(18px) saturate(160%);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;

  --container-w: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 720px; }

/* ---------- Типографика ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(30px, 6vw, 54px); line-height: 1.12; }
h2 { font-size: clamp(26px, 4.5vw, 40px); line-height: 1.18; margin-bottom: 14px; }
h3 { font-size: clamp(18px, 2.6vw, 22px); line-height: 1.3; margin-bottom: 8px; }
.gradient-text {
  background: linear-gradient(120deg, var(--gold-light) 10%, var(--gold) 55%, var(--neon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.section-lead {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 34px;
}
.compare-note {
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 18px;
  max-width: 700px;
}

/* ---------- Секции ---------- */
.section { padding: 70px 0; position: relative; }
#why-cheaper   { background: radial-gradient(ellipse at 70% 20%, rgba(184,134,63,0.07) 0%, var(--bg) 65%); }
#corpuses      { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
#prices        { background: radial-gradient(ellipse at 30% 30%, rgba(184,134,63,0.08) 0%, var(--bg) 65%); }
#location      { background: var(--bg-2); }
#infrastructure{ background: radial-gradient(ellipse at 60% 50%, rgba(47,125,107,0.06) 0%, var(--bg) 70%); }
#audience      { background: var(--bg-2); }
#mortgage      { background: radial-gradient(ellipse at 40% 40%, rgba(184,134,63,0.07) 0%, var(--bg) 65%); }
#progress      { background: var(--bg-2); }
#reviews       { background: var(--bg); }
#why-us        { background: radial-gradient(ellipse at 60% 30%, rgba(184,134,63,0.07) 0%, var(--bg) 65%); }
#faq           { background: var(--bg-2); }
#contact       { background: radial-gradient(ellipse at 50% 30%, rgba(47,125,107,0.08) 0%, var(--bg) 70%); }

/* ---------- Фото-блоки (зигзаг текст/фото) ---------- */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.media-row + .media-row { margin-top: 64px; }
.media-row__photo { order: 2; }
.media-row__text   { order: 1; }
.media-row--reverse .media-row__photo { order: 1; }
.media-row--reverse .media-row__text  { order: 2; }
.media-row__photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(33,28,21,0.14);
}
.media-row__text h3 { font-size: clamp(20px, 3vw, 26px); margin-bottom: 12px; }
.media-row__text p { color: var(--text-muted); font-size: 15px; margin-bottom: 10px; }
.media-row__text ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.media-row__text ul li { color: var(--text-muted); font-size: 14px; padding-left: 22px; position: relative; }
.media-row__text ul li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.photo-strip img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(33,28,21,0.12);
}

.hero__gallery-note { display: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 7px 16px;
}
.badge--gold { background: var(--gold-dim); border: 1px solid rgba(184,134,63,0.30); color: var(--gold-light); }
.badge--neon { background: var(--neon-soft); border: 1px solid rgba(47,125,107,0.28); color: var(--neon); }
.badge--dot::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(47,125,107,0.5);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 100px;
  padding: 15px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fffaf0;
  box-shadow: 0 10px 26px rgba(184,134,63,0.30);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(184,134,63,0.40); }
.btn--ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(184,134,63,0.45);
}
.btn--ghost:hover { background: var(--gold-dim); }
.btn--full { width: 100%; }

/* ---------- Glass cards ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 34px rgba(33,28,21,0.10);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  background: rgba(250,248,244,0.90);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(33,28,21,0.08);
}
.nav__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.nav__logo span { color: var(--gold-light); font-weight: 500; font-size: 15px; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; font-size: 14px; color: var(--text-muted); transition: color .2s; }
.nav__links a:hover { color: var(--gold-light); }
.nav__cta {
  text-decoration: none;
  font-weight: 700;
  color: #fffaf0;
  font-size: 14px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: 0 8px 20px rgba(184,134,63,0.25);
}
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 78%; max-width: 320px; height: 100vh;
  background: var(--surface);
  z-index: 200;
  padding: 90px 28px 28px;
  display: flex; flex-direction: column; gap: 22px;
  transition: right .35s cubic-bezier(.16,1,.3,1);
  box-shadow: -10px 0 40px rgba(33,28,21,0.14);
}
.mobile-menu.is-open { right: 0; }
.mobile-menu a { text-decoration: none; color: var(--text); font-size: 17px; font-weight: 500; }
.mobile-menu__cta {
  color: #fffaf0 !important;
  font-weight: 700 !important;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 12px 20px;
  border-radius: 100px;
  text-align: center;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(160deg, rgba(250,248,244,0.94) 0%, rgba(250,248,244,0.80) 45%, rgba(250,248,244,0.94) 100%),
    url('../img/hero-bg.webp');
  background-size: cover;
  background-position: center 65%;
}
.hero__overlay { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, transparent 0%, rgba(250,248,244,0.25) 100%); }
.hero__inner {
  position: relative;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}
.hero__title { margin: 16px 0 18px; }
.hero__subtitle { color: var(--text-muted); font-size: 17px; max-width: 520px; margin-bottom: 28px; }
.hero__stats { display: flex; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.stat-item b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--gold-light); }
.stat-item span { font-size: 12px; color: var(--text-faint); }
.hero__proof { display: flex; flex-direction: column; gap: 6px; }
.hero__proof span { font-size: 13px; color: var(--text-muted); }

.hero__scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em;
}
.scroll-arrow { width: 1px; height: 24px; background: linear-gradient(var(--gold), transparent); animation: scrollHint 1.6s ease-in-out infinite; }
@keyframes scrollHint { 0%,100%{opacity:.3} 50%{opacity:1} }

/* ---------- Lead form ---------- */
.lead-form {
  padding: 30px 26px;
  position: relative;
}
.lead-form__badge {
  display: inline-block;
  background: var(--neon-soft);
  border: 1px solid rgba(47,125,107,0.30);
  color: var(--neon);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.lead-form h3 { margin-bottom: 6px; }
.lead-form p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.phone-input {
  display: flex;
  align-items: center;
  background: rgba(33,28,21,0.03);
  border: 1px solid rgba(33,28,21,0.14);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .2s;
}
.phone-input:focus-within { border-color: var(--gold); }
.phone-input__prefix {
  padding: 15px 4px 15px 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
}
.phone-input input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 15px 16px 15px 6px;
  font-size: 17px; /* >=16px чтобы iOS не зумил при фокусе */
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
  min-width: 0;
}
.phone-input input::placeholder { color: var(--text-faint); font-weight: 400; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  text-align: left;
}
.consent-field input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.consent-field label {
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.45;
  cursor: pointer;
}
.consent-field label a { color: var(--gold-light); text-decoration: underline; }
.consent-field.has-error label { color: #b3261e; }

.lead-form__note { display: block; text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 12px; }
.lead-form--wide { max-width: 480px; margin: 0 auto; text-align: center; }
.lead-form--wide .phone-input { text-align: left; }
.lead-form--wide .consent-field { text-align: left; }

.lead-form__success {
  text-align: center;
  padding: 10px 0;
}
.lead-form__success .success-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--neon-soft);
  border: 1px solid var(--neon);
  color: var(--neon);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
}
.lead-form__success p { color: var(--text); font-size: 15px; margin: 0; }
.lead-form.is-success .phone-input,
.lead-form.is-success .consent-field,
.lead-form.is-success button[type="submit"],
.lead-form.is-success .lead-form__badge,
.lead-form.is-success > h3,
.lead-form.is-success > p:not(.lead-form__success p) { display: none; }
.lead-form.is-success .lead-form__success { display: block !important; }

.phone-input.has-error { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: 12px; margin: -8px 0 12px; display: none; }
.field-error.is-visible { display: block; }

/* ---------- Инвестор / переуступка блок (заменяет compare-table) ---------- */
.invest-explainer {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.invest-explainer__card {
  padding: 26px 24px;
}
.invest-explainer__num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.invest-explainer__card p { color: var(--text-muted); font-size: 14px; }

/* ---------- Corpus grid ---------- */
.corpus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.corpus-card { padding: 28px 24px; transition: transform .3s ease, border-color .3s ease; }
.corpus-card:hover { transform: translateY(-4px); border-color: rgba(184,134,63,0.45); }
.corpus-card p { color: var(--text-muted); font-size: 14px; margin: 10px 0 18px; }
.corpus-card__price { font-family: var(--font-display); font-size: 24px; color: var(--gold-light); font-weight: 700; margin-bottom: 16px; }

/* ---------- Price filter + grid ---------- */
.price-filter { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.price-filter__btn {
  background: var(--surface);
  border: 1px solid rgba(33,28,21,0.10);
  color: var(--text-muted);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.price-filter__btn.is-active { background: var(--gold-dim); border-color: var(--gold); color: var(--gold-light); }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-card { padding: 26px 22px; display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease; }
.price-card:hover { transform: translateY(-4px); border-color: rgba(184,134,63,0.45); }
.price-card.is-hidden { display: none; }
.price-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.price-card__area { font-size: 13px; color: var(--text-faint); }
.price-card__price { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--gold-light); margin-bottom: 16px; }
.price-card__list { list-style: none; margin-bottom: 20px; flex: 1; }
.price-card__list li { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.location-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.location-list li { display: flex; gap: 14px; align-items: flex-start; }
.location-icon { font-size: 22px; flex-shrink: 0; }
.location-list b { display: block; font-size: 16px; margin-bottom: 3px; }
.location-list p { color: var(--text-muted); font-size: 14px; }
.location-map { border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; border: 1px solid rgba(33,28,21,0.08); }
.location-map iframe { width: 100%; height: 100%; min-height: 320px; }

/* ---------- Infra grid ---------- */
.infra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.infra-card { padding: 24px 20px; }
.infra-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.infra-card h3 { font-size: 16px; margin-bottom: 6px; }
.infra-card p { color: var(--text-muted); font-size: 13px; }

/* ---------- Audience ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.audience-card { padding: 28px 22px; text-align: center; }
.audience-icon { font-size: 34px; display: block; margin-bottom: 14px; }
.audience-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- Mortgage ---------- */
.mortgage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 34px; }
.mortgage-card { padding: 26px 22px; }
.mortgage-card__rate { font-family: var(--font-display); font-size: 30px; color: var(--gold-light); font-weight: 700; margin-bottom: 10px; }
.mortgage-card p { color: var(--text-muted); font-size: 13px; }
.mortgage-cta { text-align: center; padding: 30px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(33,28,21,0.08); }
.mortgage-cta p { margin-bottom: 18px; font-size: 16px; }

/* ---------- Progress timeline ---------- */
.progress-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.progress-timeline::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: rgba(184,134,63,0.25); }
.progress-step { position: relative; padding-top: 26px; }
.progress-step__dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--surface-2); border: 2px solid rgba(184,134,63,0.35); }
.progress-step.is-active .progress-step__dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(184,134,63,0.5); }
.progress-step__label { font-family: var(--font-display); font-size: 20px; color: var(--gold-light); font-weight: 700; margin-bottom: 6px; }
.progress-step p { color: var(--text-muted); font-size: 13px; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { padding: 26px 24px; }
.review-card p { font-style: italic; color: var(--text); font-size: 14px; margin-bottom: 16px; }
.review-card__author { font-size: 12px; color: var(--text-faint); }

/* ---------- Why us ---------- */
.why-us-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-us-card { padding: 26px 22px; }
.why-us-icon { font-size: 30px; display: block; margin-bottom: 14px; }
.why-us-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; }
.faq-item {
  background: var(--surface);
  border: 1px solid rgba(33,28,21,0.08);
  border-radius: var(--radius-md);
  padding: 4px 22px;
}
.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute; right: 0; top: 16px;
  font-size: 22px; color: var(--gold-light);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); font-size: 14px; padding-bottom: 20px; border-top: 1px solid rgba(47,125,107,0.15); padding-top: 14px; margin-top: -2px; }

/* ---------- Final CTA ---------- */
.section--final-cta { text-align: center; padding-bottom: 90px; }
.section--final-cta h2 { margin-bottom: 10px; }
.section--final-cta .section-lead { margin: 0 auto 30px; }
.section--final-cta .lead-form__note { margin-top: 16px; }
.section--final-cta .lead-form__note a { color: var(--gold-light); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 100px; background: var(--bg); border-top: 1px solid rgba(33,28,21,0.08); }
.footer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 14px; }
.footer__logo { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.footer__logo span { color: var(--gold-light); font-size: 14px; font-weight: 500; }
.footer__cta {
  text-decoration: none;
  color: #fffaf0;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 10px 20px;
  border-radius: 100px;
}
.footer__disclaimer { color: var(--text-faint); font-size: 12px; line-height: 1.6; margin-bottom: 18px; max-width: 900px; }
.footer__links { display: flex; gap: 10px; font-size: 12px; color: var(--text-faint); }
.footer__links a { text-decoration: underline; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(33,28,21,0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  padding: 20px;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 420px;
  padding: 32px 26px;
  position: relative;
  transform: scale(0.94);
  transition: transform .25s ease;
  background: var(--surface);
}
.modal-overlay.is-open .modal { transform: scale(1); }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(33,28,21,0.05);
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.modal__close:hover { background: rgba(33,28,21,0.10); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250,248,244,0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(184,134,63,0.22);
  display: none;
}

/* =========================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (mobile-first приоритет)
   ========================================================= */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { padding: 100px 0 40px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .hero__stats { gap: 16px; }
  .hero__scroll-hint { display: none; }

  .corpus-grid,
  .price-grid,
  .infra-grid,
  .audience-grid,
  .mortgage-grid,
  .reviews-grid,
  .why-us-grid,
  .invest-explainer { grid-template-columns: repeat(2, 1fr); }

  .location-grid { grid-template-columns: 1fr; }
  .location-map { min-height: 260px; }

  .progress-timeline { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }

  .media-row { grid-template-columns: 1fr; gap: 22px; }
  .media-row__photo,
  .media-row--reverse .media-row__photo { order: 1; }
  .media-row__text,
  .media-row--reverse .media-row__text { order: 2; }
  .media-row__photo img { max-height: 260px; }

  .photo-strip { grid-template-columns: repeat(2, 1fr); }

  .sticky-cta { display: block; }
  .section--final-cta { padding-bottom: 110px; }
}

@media (max-width: 640px) {
  .section { padding: 50px 0; }
  h2 { margin-bottom: 10px; }
  .section-lead { margin-bottom: 26px; font-size: 15px; }

  .corpus-grid,
  .price-grid,
  .infra-grid,
  .audience-grid,
  .mortgage-grid,
  .reviews-grid,
  .why-us-grid,
  .invest-explainer { grid-template-columns: 1fr; }

  .progress-timeline { grid-template-columns: 1fr; gap: 22px; }
  .progress-timeline::before { display: none; }

  .hero__stats { flex-direction: row; flex-wrap: wrap; }
  .hero__title br { display: none; }

  .price-filter { overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
  .price-filter::-webkit-scrollbar { display: none; }

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

  .photo-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photo-strip img { height: 120px; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .lead-form { padding: 24px 18px; }
  .modal { padding: 26px 18px; }
}

/* ---------- Прочее ---------- */
[data-scroll-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-scroll-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Уважаем reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
