/* =============================================================================
   Ботаника Хиллс — дизайн-система (светлая, премиальная)

   Направление: много воздуха, лёгкие заголовки Tenor Sans, тёплое золото
   в акцентах, глубокий оливковый для смысловых пауз. Никаких тяжёлых теней.

   Шрифты self-hosted (Montserrat + Tenor Sans, оба SIL OFL) — ноль запросов
   к сторонним доменам.

   Mobile-first: базовые стили для телефона, далее min-width для планшета/десктопа.

   Жёсткие требования, которые соблюдаются ниже:
   - контраст текста не ниже 4.5:1;
   - тач-цели не меньше 44x44 px;
   - поля ввода 16px, иначе iOS Safari зумит страницу при фокусе;
   - у изображений заранее заданы размеры, поэтому CLS равен нулю;
   - ноль запросов к сторонним доменам.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   0. Шрифты
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Tenor Sans";
  src: url("/assets/fonts/TenorSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* -----------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
:root {
  /* Текст */
  --ink: #1B1D1A;
  --ink-soft: #454A42;
  --muted: #6E7268;
  --muted-light: #94988E;

  /* Поверхности */
  --paper: #FFFFFF;
  --cream: #FAF9F5;
  --cream-deep: #F1EFE6;

  /* Тёплые границы и линии */
  --sand-200: #ECEAE0;
  --sand-300: #DCD9CB;
  --sand-400: #C9C5B4;

  /* Золото */
  --gold-300: #EAD2B0;
  --gold-400: #DFC094;
  --gold-500: #C6945F;
  --gold-600: #B07F4A;
  --gold-700: #8F6538;

  /* Оливковый — акцентные секции */
  --green-900: #2C3626;
  --green-800: #3A4832;
  --green-700: #51614A;
  --green-600: #647457;

  /* Служебные */
  --price-bg: #E7EFDF;
  --price-ink: #3B4A2E;
  --danger: #A82A22;
  --success: #3F6B4A;

  /* Семантические */
  --bg: var(--paper);
  --text: var(--ink);
  --border: var(--sand-200);

  /* Типографика */
  --font-display: "Tenor Sans", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Ритм */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --container: 1240px;
  --header-h: 78px;

  /* Тени — мягкие и «дорогие»: не серые пятна, а лёгкая тень под объектом. */
  --shadow-sm: 0 1px 2px rgba(12, 26, 28, 0.06);
  --shadow: 0 16px 44px -20px rgba(9, 34, 40, 0.3);
  --shadow-lg: 0 44px 96px -34px rgba(9, 34, 40, 0.38);
  --shadow-card: 0 1px 0 rgba(12, 26, 28, 0.03), 0 22px 48px -30px rgba(9, 34, 40, 0.32);

  /* Плавность: единая кривая для ховеров и появления. */
  --ease: cubic-bezier(0.2, 0.7, 0.25, 1);
  --ring: 0 0 0 3px color-mix(in srgb, var(--gold-500) 28%, transparent);

  /* Акцентный градиент: кнопки, полосы, декор. */
  --accent-grad: linear-gradient(120deg, var(--gold-400) 0%, var(--gold-500) 55%, var(--gold-600) 100%);
  --dark-grad: linear-gradient(155deg, var(--green-700) 0%, var(--green-800) 52%, var(--green-900) 100%);
}

/* -----------------------------------------------------------------------------
   2. Сброс
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

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

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

/* Ссылка «Перейти к содержимому»: скрыта, пока не получит фокус с клавиатуры
   (Tab). Первый элемент в <body> — иначе до неё нужно пройти весь хедер. */
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -80px;
  z-index: 700;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--sand-300);
  border-top: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: top .18s ease;
}
.skip-link:focus,
.skip-link:focus-visible { top: 0; }

/* -----------------------------------------------------------------------------
   3. Типографика
   -------------------------------------------------------------------------- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.7vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  font-weight: 400;
  /* Переносы по смыслу, а не «как получится»: заголовок не рвётся посередине слова */
  text-wrap: balance;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
  font-weight: 400;
  text-wrap: balance;
}

h3, .h3 {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.35;
  font-weight: 600;
}

.lead {
  font-size: clamp(1rem, 2.3vw, 1.14rem);
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: var(--s3);
}

/* Короткая акцентная черта перед надзаголовком: задаёт оптическую ось
   и читается как «рубрика», а не как обычная строка мелкого текста. */
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
  flex: 0 0 auto;
}

.section__head--center .eyebrow { justify-content: center; }

.section--green .eyebrow { color: var(--gold-300); }

/* -----------------------------------------------------------------------------
   4. Раскладка
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s4);
}

.section { padding-block: var(--s8); }
.section--cream { background: var(--cream); }
.section--green {
  background: linear-gradient(180deg, var(--green-800) 0%, var(--green-900) 100%);
  color: #FFFFFF;
}
.section--green h2, .section--green h3 { color: #FFFFFF; }
.section--green .lead, .section--green .section__sub { color: rgba(255, 255, 255, 0.8); }

.section__head { max-width: 68ch; margin-bottom: var(--s6); }
.section__sub { color: var(--muted); margin-top: var(--s3); }
.section__head--center { margin-inline: auto; text-align: center; }

@media (min-width: 768px) {
  .section { padding-block: var(--s9); }
  .container { padding-inline: var(--s5); }
}

/* -----------------------------------------------------------------------------
   5. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 50px;
  padding: 0 var(--s6);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  cursor: pointer;
  text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: translateY(1px) scale(.995); }

.btn--gold {
  background: var(--accent-grad);
  color: var(--ink);
  box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--gold-600) 80%, transparent);
}
.btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px -16px color-mix(in srgb, var(--gold-600) 90%, transparent);
}

.btn--outline { background: transparent; border-color: var(--sand-400); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }

.btn--green { background: var(--green-700); color: #FFFFFF; }
.btn--green:hover { background: var(--green-800); }

.btn--light { background: #FFFFFF; color: var(--ink); }
.btn--light:hover { background: var(--cream-deep); }

.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,0.45); color: #FFFFFF; }
.btn--ghost-light:hover { border-color: #FFFFFF; background: rgba(255,255,255,0.12); }

.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 1rem; padding: 0 var(--s6); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* -----------------------------------------------------------------------------
   6. Шапка
   -------------------------------------------------------------------------- */


.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  box-shadow: 0 14px 34px -30px rgba(9, 34, 40, 0.55);
}

/* Подпись рядом с логотипом (например, «Официальный партнёр застройщика»).
   Появляется только если задано `header.note` в данных сайта: мелкий
   приглушённый текст справа от логотипа, отделён тонкой линией — не спорит
   с логотипом и не превращается в отдельный баннер. На узких экранах
   уходит под логотип. */

.header__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.header__partner {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .header__partner { font-size: 0.64rem; }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: var(--header-h);
}

.logo { display: flex; align-items: center; }
.logo__img { height: 30px; width: auto; }
@media (min-width: 560px) { .logo__img { height: 34px; } }
@media (min-width: 980px) { .logo__img { height: 38px; } }

.header__nav { display: none; }
.header__cta { display: none; }

@media (min-width: 980px) {
  .header__nav { display: flex; gap: var(--s5); font-size: 0.9rem; }
  .header__nav a { color: var(--ink-soft); transition: color .15s ease; }
  .header__nav a:hover { color: var(--ink); }
  .header__cta { display: inline-flex; }
}

/* -----------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s7) var(--s9);
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--gold-300) 60%, transparent) 0%, transparent 62%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 64%);
}

/* Мягкое свечение и тонкая линия сверху: глубина без «пёстрого баннера».
   Цвета берутся из акцента темы через color-mix, поэтому палитра проекта
   подхватывается автоматически. */
.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(56% 62% at 86% 4%, color-mix(in srgb, var(--gold-500) 22%, transparent) 0%, transparent 64%),
    radial-gradient(46% 58% at 2% 100%, color-mix(in srgb, var(--green-700) 14%, transparent) 0%, transparent 62%);
}
.hero__decor::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: .7;
}

.hero__grid { position: relative; display: grid; gap: var(--s6); }

/* Гео-метка — аккуратный чип вместо голой строки */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--sand-300);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: var(--s4);
}
.hero__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

.hero__title { margin-bottom: var(--s5); }
.hero__title span { display: block; }
/* Вторая строка заголовка — меньше и спокойнее: так задаётся иерархия,
   как в референсе, где гео-строка визуально подчинена основной мысли. */
.hero__title-tail {
  font-size: 0.6em;
  line-height: 1.3;
  color: var(--ink-soft);
  margin-top: 0.24em;
}

/* Акцентная карточка первого экрана. Изначально — цена «от …»,
   но тем же компонентом выводится ключевое преимущество проекта (.hero-card):
   заметная плашка с мягким акцентом, которая читается сразу. */
.price-card,
.hero-card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: var(--s4) var(--s5) var(--s4) var(--s6);
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--price-ink) 15%, transparent);
  background: linear-gradient(135deg, var(--price-bg) 0%, color-mix(in srgb, var(--price-bg) 40%, var(--paper)) 100%);
  box-shadow: 0 22px 46px -28px color-mix(in srgb, var(--price-ink) 50%, transparent);
  margin-bottom: var(--s6);
}
.price-card::before,
.hero-card::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent-grad);
}
.price-card__label,
.hero-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.price-card__value,
.hero-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.6vw, 2.3rem);
  line-height: 1.1;
  color: var(--price-ink);
}
.price-card__prefix,
.hero-card__prefix {
  font-family: var(--font-body);
  font-size: 0.5em;
  font-weight: 600;
  color: var(--green-700);
  margin-right: 0.18em;
}
.price-card__note,
.hero-card__note { font-size: 0.82rem; color: var(--muted); }

/* Нумерованный список преимуществ с тонкими разделителями */
.feature-list { margin-bottom: var(--s6); border-top: 1px solid var(--border); }
.feature-list__item {
  display: flex;
  align-items: baseline;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.feature-list__num {
  flex: 0 0 2rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-600);
  letter-spacing: 0.06em;
}

.hero__actions { display: grid; gap: var(--s3); }

@media (min-width: 560px) {
  .hero__actions { grid-template-columns: auto auto; justify-content: start; }
}

/* Фото первого экрана: золотая рамка со смещением — приём «паспарту».
   Снимок не висит в пустоте, а встаёт в композицию. */
.hero__media { position: relative; }
/* Рамка-«паспарту» со смещением: снимок встаёт в композицию, а не висит
   в пустоте. Плюс мягкое свечение позади — отделяет медиа от фона. */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid color-mix(in srgb, var(--gold-500) 58%, transparent);
  border-radius: var(--radius-lg);
  z-index: 0;
  pointer-events: none;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: -8% -6% -16% -4%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(58% 58% at 58% 42%, color-mix(in srgb, var(--gold-500) 24%, transparent) 0%, transparent 72%);
  filter: blur(10px);
}
.hero__media .carousel { position: relative; z-index: 1; }

/* Плашка поверх фото: проверяемый факт (расстояние до моря), не реклама.
   Лежит внутри .carousel__viewport (а не рядом с каруселью) — иначе её
   bottom отсчитывался от всей медиа-колонки и она накрывала ряд точек
   навигации, делая первые точки невидимыми. */
.hero__badge {
  position: absolute;
  left: var(--s4);
  bottom: var(--s4);
  z-index: 2;
  max-width: calc(100% - 2 * var(--s4));
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--paper) 60%, transparent);
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 18px 40px -24px rgba(9, 34, 40, 0.7);
}
.hero__badge svg { width: 16px; height: 16px; color: var(--gold-600); flex: 0 0 auto; }
/* На узких экранах фото почти во всю ширину: плашка снизу слева упиралась бы
   в кнопки-стрелки. Убираем плашку наверх, чтобы обе остались читаемыми. */
@media (max-width: 560px) {
  .hero__badge { top: var(--s4); bottom: auto; }
}

/* Строка оффера над списком характеристик первого экрана (`hero.offer`).

   Живёт внутри первого экрана, а не отдельной полосой над шапкой: читается
   как подпись к списку характеристик, кадр не сдвигает и не спорит с
   заголовком. Это кнопка, а не ссылка: клик сразу открывает форму заявки.
   Форма — тег, радиус берётся из темы (на «Вере» он нулевой), цвета сайт
   с тёмным кадром переопределяет в kinetics.css. */
.hero__offer {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  min-height: 48px;
  padding: 0.5rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--gold-500) 65%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.hero__offer:hover {
  border-color: var(--gold-600);
  background: var(--paper);
}
.hero__offer-chip {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--gold-700);
}
.hero__offer-title { font-weight: 600; letter-spacing: 0.01em; }
.hero__offer-arrow { display: inline-flex; color: var(--gold-700); }
.hero__offer-arrow svg { width: 15px; height: 15px; }

/* Группа «оффер + характеристики»: без оффера обёртки нет вовсе, поэтому
   остальные сайты сети собираются как раньше. */
.hero__features { display: block; }

/* Карусель фото */
.carousel { position: relative; }
.carousel__viewport {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-deep);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-lg);
  outline: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  outline-offset: -1px;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}
.carousel__slide[data-active="true"] { opacity: 1; }
.carousel__slide img, .carousel__slide svg { width: 100%; height: 100%; object-fit: cover; }

.carousel__nav {
  position: absolute;
  bottom: var(--s4);
  right: var(--s4);
  display: flex;
  gap: var(--s2);
  z-index: 2;
}
.carousel__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .15s ease;
}
.carousel__btn:hover { background: #FFFFFF; }
.carousel__btn svg { width: 18px; height: 18px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  margin-top: var(--s1);
}
/* Сама точка 8px, но зона нажатия — 44x44: на телефоне по мелкой точке
   не попасть, а визуально ряд должен оставаться компактным. */
.carousel__dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.carousel__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sand-300);
  transition: background-color .15s ease;
}
.carousel__dot[data-active="true"]::before { background: var(--gold-500); }

@media (min-width: 1000px) {
  .hero { padding-block: var(--s7) var(--s8); }
  /* Фото первого экрана — крупнее текста: это главный визуальный аргумент,
     поэтому медиа-колонка шире текстовой. */
  .hero__grid { grid-template-columns: 0.92fr 1.08fr; gap: var(--s7); align-items: center; }
  .hero__actions { grid-template-columns: auto auto; }
}

/* -----------------------------------------------------------------------------
   8. О проекте
   -------------------------------------------------------------------------- */
.about { display: grid; gap: var(--s6); }
.about__text p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
  margin-bottom: var(--s4);
}
.about__text p:last-child { margin-bottom: 0; }
.about__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

.about__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.fact {
  position: relative;
  padding: var(--s5);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.fact::before {
  content: "";
  position: absolute;
  left: var(--s5); right: var(--s5); top: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--accent-grad);
  opacity: .85;
}
.fact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--gold-500) 40%, var(--border));
}
.fact__value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.15;
  color: var(--ink);
}
.fact__label { font-size: 0.84rem; color: var(--muted); margin-top: var(--s2); line-height: 1.45; }

@media (min-width: 900px) {
  .about { grid-template-columns: 1.4fr 1fr; gap: var(--s8); align-items: start; }
}

/* Иллюстрация блока «О проекте» (данные: about.image) — необязательна */
.about__main { display: grid; gap: var(--s6); align-content: start; }
.about__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream-deep);
}
.about__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
  .about--media { grid-template-columns: 1.15fr 0.85fr; gap: var(--s8); align-items: start; }
}

/* -----------------------------------------------------------------------------
   9. Цифры
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s5) var(--s4);
}

.stat { position: relative; padding-top: var(--s4); }
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.2vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stat__label { font-size: 0.84rem; color: var(--muted); margin-top: var(--s1); line-height: 1.45; }

.section--green .stat__value { color: #FFFFFF; }
.section--green .stat__label { color: rgba(255,255,255,0.72); }

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* -----------------------------------------------------------------------------
   10. Карточки благоустройства
   -------------------------------------------------------------------------- */
.amenities { display: grid; gap: var(--s4); }

.amenity {
  padding: var(--s6) var(--s5);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.amenity:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold-500) 38%, var(--border));
}
.amenity__icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--gold-400) 26%, var(--cream));
  color: var(--gold-700);
  margin-bottom: var(--s4);
}
.amenity__icon img { width: 32px; height: 32px; }
.amenity__icon svg { width: 24px; height: 24px; }
.amenity__title { font-weight: 600; font-size: 1.04rem; }
.amenity__text { font-size: 0.92rem; color: var(--muted); margin-top: var(--s2); }

@media (min-width: 640px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .amenities { grid-template-columns: repeat(4, 1fr); } }

/* Карточка благоустройства с иллюстрацией (данные: amenities[].photo) */
.amenity--media { padding: 0; overflow: hidden; }
.amenity__media { aspect-ratio: 16 / 11; background: var(--cream-deep); overflow: hidden; }
.amenity__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.amenity--media:hover .amenity__media img { transform: scale(1.04); }
.amenity--media .amenity__body { padding: var(--s6) var(--s5); }

/* -----------------------------------------------------------------------------
   11. Планировки
   -------------------------------------------------------------------------- */
.plans { display: grid; gap: var(--s4); }

/* Заголовок блока с иллюстрацией (данные: plans_section.media).
   Без него остаётся прежний центрированный section__head. */
.plans-head { display: grid; gap: var(--s6); margin-bottom: var(--s7); align-items: center; }
.plans-head__text h2 { margin-top: var(--s2); }
.plans-head .section__sub { margin-top: var(--s3); }
.plans-head__caption { margin-top: var(--s4); font-size: 0.84rem; line-height: 1.5; color: rgba(255, 255, 255, 0.62); }
.plans-head__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.plans-head__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .plans-head { grid-template-columns: 1.05fr 0.95fr; gap: var(--s8); }
  .plans-head__media img { aspect-ratio: 5 / 4; }
}

.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  padding: var(--s5);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.6); }
.plan-card__image {
  height: 300px;
  margin-bottom: var(--s5);
  padding: var(--s3);
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
}
.plan-card__image img {
  /* Ограничение задано в px: процентная высота внутри grid-ячейки
     не разрешается, и картинка вылезает за карточку. */
  max-height: 276px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.plan-card__body { display: flex; flex-direction: column; flex: 1; }
.plan-card__rooms { font-size: 0.92rem; color: var(--muted); }
.plan-card__area {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-top: var(--s1);
  margin-bottom: var(--s5);
}
.plan-card__price { font-size: 0.9rem; color: var(--muted); margin-bottom: var(--s4); }
.plan-card__price strong { color: var(--ink); font-weight: 600; }
/* Пояснение к формату внутри карточки плана (`plans[].note`) — необязательное:
   без поля разметка прежняя. Нужно, когда блок планировок заодно описывает,
   что входит в апартамент, и отдельного блока «Отделка» нет. */
.plan-card__note { font-size: 0.82rem; line-height: 1.55; color: var(--muted); margin: -0.2rem 0 var(--s5); }
.plan-card--premium .plan-card__note { color: rgba(255, 255, 255, 0.62); }
.plan-card .btn { margin-top: auto; }

/* -----------------------------------------------------------------------------
   Планировки: премиальное оформление (plans_section.style: "premium").

   Задача — убрать «каталожный» вид белых карточек на тёмной секции. Идея:
   галерейная стена — тёмная карточка-рамка, внутри светлое паспарту с чертежом,
   спокойная типографика, латунные акценты. Анимация сдержанная: карточка
   собирается по частям с задержкой по порядку и мягко реагирует на курсор.
   Включается данными — другие сайты сети не затронуты.
   -------------------------------------------------------------------------- */
.plans-section--premium {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(58% 42% at 10% 0%, color-mix(in srgb, var(--gold-500) 18%, transparent) 0%, transparent 62%),
    linear-gradient(180deg, var(--green-800) 0%, var(--green-900) 100%);
}
.plans-section--premium::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold-400) 65%, transparent), transparent);
}
/* Нижнее свечение (`::after`, radial-gradient в 12 % золота) убрано 2026-10-09.
   Это был отдельный элемент, и его верхняя граница читалась жёсткой
   горизонтальной полосой другого цвета на всю ширину секции: под карточками
   планов был виден светлый «пояс». Осталась только верхняя подсветка (`::before`)
   и ровный градиент секции — низ блока ничем не отличается от остального фона. */
.plans-section--premium .container { position: relative; z-index: 1; }

/* Иллюстрация в заголовке блока — та же логика «рамы» */
.plans-section--premium .plans-head__media {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 44px 90px -56px rgba(0, 0, 0, 0.95);
}
.plans-section--premium .plans-head__caption {
  padding-left: var(--s4);
  border-left: 1px solid color-mix(in srgb, var(--gold-400) 55%, transparent);
}

.plans--premium { gap: var(--s5); }

.plan-card--premium {
  position: relative;
  padding: var(--s4);
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 34px 70px -50px rgba(0, 0, 0, 0.9);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.plan-card--premium:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--gold-400) 50%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 50px 90px -55px rgba(0, 0, 0, 0.95),
              0 0 0 1px color-mix(in srgb, var(--gold-400) 16%, transparent);
}

/* Светлая плашка под чертёж. Цвет совпадает с фоном самих планов
   (`plan-*.jpg`, фон #F4F8FB), поэтому чертёж не читается как вставленный
   прямоугольник, а выглядит напечатанным на листе. Высоту задаёт сам план
   (шрифт `width: 100%`), так что пропорция сохраняется на любом разрешении.
   Появление карточки — через opacity и transform плашки, поэтому задержка
   задана по свойствам: тень реагирует на курсор без задержки, появление —
   с шагом по порядку карточки (`--i`). */
.plan-card--premium .plan-card__plate {
  position: relative;
  padding: var(--s3);
  border-radius: var(--radius);
  background: #F4F8FB;
  box-shadow: inset 0 0 0 1px rgba(16, 42, 66, 0.07), 0 16px 28px -24px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transition: box-shadow .4s var(--ease),
              opacity .6s ease calc(var(--i, 0) * 90ms),
              transform .6s var(--ease) calc(var(--i, 0) * 90ms);
}
.plan-card--premium:hover .plan-card__plate {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-500) 34%, transparent), 0 30px 54px -34px rgba(0, 0, 0, 0.9);
}

/* Чертёж: ширину задаёт плашка, высоту — сам лист плана (все планы
   нормализованы в один лист 800×1000, поэтому карточки одинаковые). */
.plan-card--premium .plan-card__plan {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .55s var(--ease);
}
.plan-card--premium:hover .plan-card__plan { transform: scale(1.02); }

/* Интерьер при наведении: снимок «наплывает» поверх чертежа во всю плашку.
   Если `plans[].hover_image` не задан, этого слоя в разметке просто нет. */
.plan-card--premium .plan-card__interior {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .55s var(--ease), transform .7s var(--ease);
  pointer-events: none;
}
.plan-card--premium:hover .plan-card__interior { opacity: 1; transform: none; }

.plan-card--premium .plan-card__hint {
  position: absolute;
  left: var(--s4);
  bottom: var(--s4);
  padding: 5px var(--s3);
  border-radius: var(--radius-pill);
  background: rgba(8, 27, 46, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.plan-card--premium:hover .plan-card__hint { opacity: 1; transform: none; }

.plan-card--premium .plan-card__index {
  position: absolute;
  top: var(--s4);
  left: var(--s5);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gold-600);
  opacity: .85;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.plan-card--premium:hover .plan-card__index {
  color: #FFFFFF;
  opacity: 1;
  text-shadow: 0 1px 8px rgba(8, 27, 46, 0.6);
}

.plan-card--premium .plan-card__body {
  padding: var(--s4) var(--s2) var(--s2);
  text-align: left;
  transition: opacity .6s ease calc(var(--i, 0) * 90ms + 70ms),
              transform .6s var(--ease) calc(var(--i, 0) * 90ms + 70ms);
}
.plan-card--premium .plan-card__rooms {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.plan-card--premium .plan-card__area-label {
  margin-top: var(--s3);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}
.plan-card--premium .plan-card__area {
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-top: var(--s1);
  margin-bottom: var(--s3);
  padding-bottom: var(--s3);
  /* Разделитель под площадью почти сливается с фоном карточки — раньше он
     читался как отдельная «полоска» (0.14 → 0.05). */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.plan-card--premium .plan-card__price { color: rgba(255, 255, 255, 0.62); margin-bottom: var(--s4); }
.plan-card--premium .plan-card__price strong { color: #FFFFFF; }
.plan-card--premium .btn { margin-top: auto; }

/* Кнопка премиальной карточки: контурная, заливается при наведении,
   стрелка уезжает вправо — движение вместо «кричащей» кнопки. */
.btn--premium {
  gap: var(--s3);
  background: transparent;
  border-color: color-mix(in srgb, var(--gold-400) 55%, transparent);
  color: var(--gold-300);
}
.btn--premium .btn__arrow { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn--premium:hover {
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--ink);
  box-shadow: 0 20px 36px -18px color-mix(in srgb, var(--gold-600) 85%, transparent);
}
.btn--premium:hover .btn__arrow { transform: translateX(4px); }

/* Сборка карточки по частям: рамка стоит на месте (у неё свои hover-переходы),
   плашка и текст поднимаются по очереди с шагом 90 мс. */
.plan-card--premium.reveal { opacity: 1; transform: none; }
.plan-card--premium.reveal .plan-card__plate,
.plan-card--premium.reveal .plan-card__body { opacity: 0; transform: translateY(16px); }
.plan-card--premium.reveal.is-visible .plan-card__plate,
.plan-card--premium.reveal.is-visible .plan-card__body { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .plan-card--premium.reveal .plan-card__plate,
  .plan-card--premium.reveal .plan-card__body { opacity: 1; transform: none; }
}

@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* Премиальные планировки: число колонок по количеству карточек. Иначе две
   карточки встают в две из трёх колонок и справа остаётся пустая треть —
   блок выглядит разбалансированным. Модификатор `plans--count-N` ставит
   сборщик (`renderPlans`); правило включено только для премиального оформления,
   поэтому обычные блоки планировок на других сайтах сети не меняются. */
@media (min-width: 1000px) {
  .plans--premium.plans--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans--premium.plans--count-1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
  /* Четыре плана: при трёх колонках четвёртая карточка остаётся одна во
     второй строке («3+1»). На планшете — ровные 2×2, на десктопе — один ряд
     из четырёх (см. ниже). */
  .plans--premium.plans--count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Ряд из четырёх карточек: карточка втрое уже, чем в трёх колонках, поэтому
   подпись площади и кнопка уменьшаются — иначе строка «60,5 м²—91,5 м²» и
   текст кнопки переносятся и карточки встают разной высоты. */
@media (min-width: 1200px) {
  .plans--premium.plans--count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s4);
  }
  .plans--premium.plans--count-4 .plan-card__area { font-size: clamp(1.05rem, 1.35vw, 1.5rem); }
  .plans--premium.plans--count-4 .plan-card--premium { padding: var(--s3); }
  .plans--premium.plans--count-4 .plan-card--premium .plan-card__body { padding-inline: var(--s1); }
  .plans--premium.plans--count-4 .btn--premium { padding-inline: var(--s3); font-size: 0.85rem; }
}

/* -----------------------------------------------------------------------------
   12. Инфраструктура и «Что рядом»
   -------------------------------------------------------------------------- */
.infra { display: grid; gap: var(--s3); }

.infra__item {
  display: flex;
  gap: var(--s4);
  padding: var(--s4);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.infra__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--gold-500) 35%, var(--border));
}
.infra__icon {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-deep);
  color: var(--gold-700);
}
.infra__icon svg { width: 20px; height: 20px; }
/* Иллюстрация карточки (поле art): плоская SVG-сцена в плитке */
.infra__art {
  flex: 0 0 84px;
  width: 84px; height: 84px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--cream);
  align-self: center;
}
.infra__art svg { width: 72px; height: 72px; display: block; }
.infra__body { min-width: 0; }
.infra__title { font-weight: 600; font-size: 0.96rem; }
.infra__text { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

@media (max-width: 420px) {
  .infra__art { flex: 0 0 68px; width: 68px; height: 68px; border-radius: 14px; }
  .infra__art svg { width: 58px; height: 58px; }
}

@media (min-width: 640px) { .infra { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .infra { grid-template-columns: repeat(3, 1fr); } }

.nearby {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5) var(--s3);
  margin-top: var(--s8);
  padding-top: var(--s7);
  border-top: 1px solid var(--border);
}
.nearby__item { display: grid; justify-items: center; text-align: center; gap: var(--s3); }
.nearby__img {
  display: block;
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--sand-300);
  background: var(--cream-deep);
}
.nearby__img img { width: 100%; height: 100%; object-fit: cover; }
.nearby__label { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); line-height: 1.35; }

@media (min-width: 640px) { .nearby { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .nearby { grid-template-columns: repeat(7, 1fr); } }

/* -----------------------------------------------------------------------------
   13. Застройщик
   -------------------------------------------------------------------------- */
.developer { display: grid; gap: var(--s6); }
.developer__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.4vw, 2.3rem);
  line-height: 1.15;
  margin-bottom: var(--s4);
}
.developer__text { color: var(--muted); }
.developer__link { margin-top: var(--s6); }

/* Цифры застройщика — отдельной строкой во всю ширину: в узкой текстовой
   колонке подписи ломались по три строки и ряд выглядел криво. */
.developer__stats {
  margin-top: var(--s2);
  padding-top: var(--s7);
  border-top: 1px solid var(--border);
}
.developer__stats .stat__label { max-width: 24ch; }

.developer__info .stats { margin-top: var(--s6); }

.developer__media { position: relative; }
.developer__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.developer__award {
  position: absolute;
  left: var(--s4);
  bottom: var(--s4);
  width: 116px;
  padding: var(--s2) var(--s3);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .developer { grid-template-columns: 1.15fr 1fr; gap: var(--s7) var(--s8); align-items: center; }
  .developer__stats { grid-column: 1 / -1; align-items: start; }
  /* Без фотографии вторая колонка не нужна: текст занимает всю ширину,
     но не растягивается в нечитаемую строку. */
  .developer--solo { grid-template-columns: 1fr; }
  .developer--solo .developer__info { max-width: 70ch; }
}

/* -----------------------------------------------------------------------------
   14. Галерея + лайтбокс
   -------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }

.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-deep);
  aspect-ratio: 4 / 3;
  display: block;
  width: 100%;
  box-shadow: var(--shadow-sm);
  outline: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  outline-offset: -1px;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28,28,26,0.42));
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }

@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: var(--s4); } }
/* Три колонки вместо четырёх: кадры крупнее, их проще рассмотреть. */
@media (min-width: 1080px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }

/* Скрытые фото открываются кнопкой «Показать все» */
.gallery__item--extra { display: none; }
.gallery.is-expanded .gallery__item--extra { display: block; }
.gallery__more { display: flex; justify-content: center; margin-top: var(--s6); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
}
.lightbox[data-open="true"] { display: grid; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 16, 0.92);
  animation: fade-in .2s ease;
}
.lightbox__img {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox__close {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  z-index: 2;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: var(--s4); }
.lightbox__nav--next { right: var(--s4); }
.lightbox__counter {
  position: absolute;
  bottom: var(--s5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #FFFFFF;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.16);
  padding: 6px 14px;
  border-radius: 999px;
}
body.lightbox-open { overflow: hidden; }

/* -----------------------------------------------------------------------------
   15. Ипотечный калькулятор
   -------------------------------------------------------------------------- */
.calc { display: grid; gap: var(--s5); max-width: 760px; }
.calc__row { display: grid; gap: var(--s2); }
.calc__label {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.calc__label output { color: var(--green-700); }

.calc input[type="range"] {
  width: 100%;
  height: 44px;                  /* тач-цель */
  background: transparent;
  accent-color: var(--gold-500);
  cursor: pointer;
}

.calc__result {
  background: var(--green-800);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: var(--s6) var(--s5);
  text-align: center;
}
.calc__result-label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}
.calc__result-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.1;
  color: var(--gold-300);
  margin-top: var(--s2);
}
.calc__disclaimer { font-size: 0.76rem; color: rgba(255, 255, 255, 0.62); margin-top: var(--s3); }

/* -----------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--s2); max-width: 900px; }

.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 56px;
  padding: var(--s4) 0;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  flex: 0 0 10px;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--gold-600);
  border-bottom: 1.5px solid var(--gold-600);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg) translateY(-2px); }
.faq__a { padding-bottom: var(--s4); color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* -----------------------------------------------------------------------------
   17. Полоса призыва
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--dark-grad);
  color: #FFFFFF;
  padding-block: var(--s8);
}
/* Мягкое акцентное свечение поверх тёмной полосы: полоса перестаёт быть
   плоским прямоугольником, но остаётся спокойной. */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 130% at 94% 0%, color-mix(in srgb, var(--gold-400) 30%, transparent) 0%, transparent 62%),
    radial-gradient(44% 110% at 0% 100%, color-mix(in srgb, var(--gold-500) 18%, transparent) 0%, transparent 62%);
}
.cta-band .container { position: relative; }
.cta-band__inner { display: grid; gap: var(--s5); align-items: center; }
.cta-band__title { font-family: var(--font-display); font-size: clamp(1.5rem, 4.4vw, 2.3rem); line-height: 1.15; }
.cta-band__text { color: rgba(255,255,255,0.8); margin-top: var(--s3); }
.cta-band__actions { display: grid; gap: var(--s3); }

@media (min-width: 560px) { .cta-band__actions { grid-template-columns: auto auto; } }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.3fr auto; gap: var(--s7); } }

/* -----------------------------------------------------------------------------
   18. Подвал
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--dark-grad);
  color: rgba(255,255,255,0.76);
  padding-block: var(--s8) var(--s6);
  font-size: 0.9rem;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold-400) 70%, transparent), transparent);
}
.footer a { color: rgba(255,255,255,0.88); }
.footer a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; gap: var(--s6); }
.footer__logo-img { height: 34px; width: auto; margin-bottom: var(--s4); }
.footer__title { color: #FFFFFF; font-weight: 600; font-size: 0.92rem; margin-bottom: var(--s4); }
.footer__links { display: grid; gap: var(--s3); }
.footer__note { margin-top: var(--s3); font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer__note:first-of-type { margin-top: 0; }
/* Юрлицо/оператор в нижней строке подвала — включается данными
   `legal.footer_operator`, без них подвал не меняется. */
.footer__legal { margin-top: 6px; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.footer__bottom {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid rgba(255,255,255,0.16);
  display: grid;
  gap: var(--s3);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
}

/* -----------------------------------------------------------------------------
   19. Формы
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--muted); }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 13px var(--s4);
  font-size: 16px;               /* 16px обязателен: iOS Safari иначе зумит страницу */
  background: var(--paper);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 96px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(198, 148, 95, 0.22);
}

.field--error input, .field--error textarea { border-color: var(--danger); }
.field__error { font-size: 0.8rem; color: var(--danger); min-height: 1em; }

/* Выбор способа связи (WhatsApp / Telegram / MAX) — сегментированные кнопки.
   Радиокнопки скрыты визуально, но остаются доступными для клавиатуры. */
.field--choice .field__label { font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.choice__option { position: relative; display: block; cursor: pointer; }
.choice__option input[type="radio"] {
  position: absolute;
  width: 1px; height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.choice__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.choice__option:hover .choice__label { border-color: var(--gold-500); background: var(--cream); }
.choice__option input[type="radio"]:checked + .choice__label {
  border-color: var(--gold-500);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--gold-500);
}
.choice__option input[type="radio"]:focus-visible + .choice__label {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}
.field--error .choice__label { border-color: var(--danger); }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0; width: 0;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.consent input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--green-700); }
.consent a { color: var(--green-700); text-decoration: underline; }

/* Согласие по нажатию кнопки: текст стоит у самой кнопки, ссылка на политику внутри */
.consent-note {
  margin-top: var(--s3);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.consent-note a { color: var(--green-700); text-decoration: underline; }

.form-note { font-size: 0.78rem; color: var(--muted-light); text-align: center; }

/* -----------------------------------------------------------------------------
   20. Модальные окна — основная механика сбора заявок
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
}
.modal[data-open="true"] { display: grid; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 26, 0.55);
  animation: fade-in .2s ease;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--s6) var(--s5) calc(var(--s6) + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
  animation: slide-up .26s ease;
  overscroll-behavior: contain;
}

.modal__close {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .15s ease;
}
.modal__close:hover { background: var(--sand-300); }
.modal__close svg { width: 16px; height: 16px; }

.modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.4vw, 1.9rem);
  line-height: 1.15;
  padding-right: var(--s6);
}
.modal__sub { color: var(--muted); font-size: 0.94rem; margin-top: var(--s3); }
.modal__body { margin-top: var(--s5); display: grid; gap: var(--s4); }

/* Экран благодарности внутри модального окна */
.modal__success { display: none; text-align: center; padding-block: var(--s5); }
.modal[data-state="success"] .modal__form { display: none; }
.modal[data-state="success"] .modal__success { display: block; }
.modal__success-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--s4);
  border-radius: 50%;
  background: var(--price-bg);
  color: var(--success);
  display: grid;
  place-items: center;
}
.modal__success-icon svg { width: 30px; height: 30px; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (min-width: 700px) {
  .modal[data-open="true"] { place-items: center; }
  .modal__dialog {
    align-self: center;
    width: min(520px, calc(100% - 32px));
    border-radius: var(--radius-lg);
    padding: var(--s7) var(--s6);
    animation: pop-in .22s ease;
  }
  @keyframes pop-in { from { transform: scale(.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}

body.modal-open { overflow: hidden; }

/* -----------------------------------------------------------------------------
   21. Квиз (пошаговая форма)
   -------------------------------------------------------------------------- */
.quiz__progress { height: 3px; background: var(--sand-200); border-radius: 999px; overflow: hidden; }
.quiz__bar { height: 100%; width: 0; background: var(--gold-500); transition: width .3s ease; }

.quiz__count { font-size: 0.78rem; color: var(--muted-light); margin-top: var(--s2); }

.quiz__step { display: none; }
.quiz__step[data-active="true"] { display: block; animation: fade-in .2s ease; }
/* Шаг получает фокус программно (для скринридеров), но рамку не рисуем:
   иначе золотая обводка читается как «вариант уже выбран». */
.quiz__step:focus, .quiz__step:focus-visible { outline: none; }

.quiz__question {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.8vw, 1.55rem);
  line-height: 1.2;
  margin-bottom: var(--s4);
}

.quiz__options { display: grid; gap: var(--s2); }

.quiz__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 52px;
  padding: var(--s3) var(--s4);
  background: var(--paper);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.quiz__option:hover { border-color: var(--gold-500); background: var(--cream); }
.quiz__option[data-selected="true"] {
  border-color: var(--gold-500);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--gold-500);
}
.quiz__option::after {
  content: "";
  flex: 0 0 18px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--sand-400);
  transition: all .15s ease;
}
.quiz__option[data-selected="true"]::after {
  border-color: var(--gold-500);
  background: var(--gold-500);
  box-shadow: inset 0 0 0 4px var(--paper);
}

.quiz__nav { display: flex; gap: var(--s3); margin-top: var(--s5); }
.quiz__nav .btn { flex: 1; }
.quiz__back { display: none; }
.quiz__step[data-index]:not([data-index="0"]) ~ .quiz__nav .quiz__back { display: inline-flex; }

/* -----------------------------------------------------------------------------
   22. Cookie-баннер
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: var(--s3);
  right: var(--s3);
  bottom: var(--s3);
  z-index: 300;
  max-width: 320px;
  margin-inline: auto;
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.cookie[data-visible="true"] { display: block; }
.cookie__head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.cookie__eyebrow { font-size: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-700); font-weight: 600; }
.cookie__title { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.02em; }
.cookie__text { font-size: 0.72rem; line-height: 1.45; color: var(--muted); margin-top: 6px; }
.cookie__actions { display: flex; margin-top: 10px; }
.cookie__link { color: var(--muted); text-decoration: underline; }
.cookie .btn { width: 100%; min-height: 40px; padding: 0 var(--s4); font-size: 0.8rem; }

@media (min-width: 900px) {
  .cookie { left: auto; right: var(--s5); bottom: var(--s5); margin-inline: 0; width: 280px; }
}

/* -----------------------------------------------------------------------------
   23. Мобильная закреплённая кнопка
   -------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}
body.has-mobile-cta { padding-bottom: 88px; }

@media (min-width: 980px) {
  .mobile-cta { display: none; }
  body.has-mobile-cta { padding-bottom: 0; }
}

/* -----------------------------------------------------------------------------
   24. Уведомления
   -------------------------------------------------------------------------- */
.toast-area {
  position: fixed;
  top: calc(var(--header-h) + var(--s3));
  left: var(--s3);
  right: var(--s3);
  z-index: 600;
  display: grid;
  gap: var(--s2);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: slide-up .22s ease;
}
.toast--success { background: var(--success); color: #FFFFFF; }
.toast--error { background: var(--danger); color: #FFFFFF; }

@media (min-width: 700px) { .toast-area { left: auto; right: var(--s5); max-width: 380px; } }

/* -----------------------------------------------------------------------------
   25. Анимация появления
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .toast, .modal__dialog, .modal__backdrop { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* -----------------------------------------------------------------------------
   25. Локация, виды, отделка, как купить, инвестиции
   -------------------------------------------------------------------------- */

/* Локация: расстояния в виде плиток с цифрой и подписью */
.location { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.location__item {
  padding: var(--s5) var(--s4);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.location__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--gold-500) 35%, var(--border));
}
.location__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-deep);
  color: var(--gold-700);
  margin-bottom: var(--s4);
}
.location__icon svg { width: 20px; height: 20px; }
.location__value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.6vw, 1.7rem);
  line-height: 1.1;
  color: var(--ink);
}
.location__label { font-size: 0.86rem; color: var(--muted); margin-top: var(--s1); line-height: 1.45; }

@media (min-width: 640px) { .location { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .location { grid-template-columns: repeat(6, 1fr); } }

/* Виды из окон */
.views { display: grid; gap: var(--s4); }
.view-card {
  padding: var(--s6) var(--s5);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.view-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--gold-500) 35%, var(--border));
}
.view-card__icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream-deep);
  color: var(--gold-700);
  margin-bottom: var(--s4);
}
.view-card__icon svg { width: 24px; height: 24px; }
.view-card__title { font-weight: 600; font-size: 1.04rem; }
.view-card__text { font-size: 0.92rem; color: var(--muted); margin-top: var(--s2); }

@media (min-width: 640px) { .views { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .views { grid-template-columns: repeat(4, 1fr); } }

/* Карточка вида с иллюстрацией (данные: views.items[].photo) */
.view-card--media { padding: 0; overflow: hidden; }
.view-card__media { aspect-ratio: 4 / 3; background: var(--cream-deep); overflow: hidden; }
.view-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.view-card--media:hover .view-card__media img { transform: scale(1.04); }
.view-card--media .view-card__body { padding: var(--s5); }
@media (min-width: 1080px) { .views--media { grid-template-columns: repeat(3, 1fr); } }

/* Отделка: карточки с фото white box / lightroom / darkroom */
.finishing { display: grid; gap: var(--s4); }
.finish {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.finish:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--gold-500) 35%, var(--border));
}
.finish__media { aspect-ratio: 4 / 3; background: var(--cream-deep); overflow: hidden; }
.finish__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.finish:hover .finish__media img { transform: scale(1.04); }
.finish__body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
/* Карточка комплектации без фото («без отделки», «предчистовая»): текст по
   центру по вертикали, чтобы карточка не выглядела пустой рядом с карточкой
   с фото. Класс ставит сборщик (renderFinishing); у остальных сайтов сети
   фото есть у всех карточек, так что правило их не задевает. */
.finish--no-media .finish__body { justify-content: center; }
.finish__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: var(--gold-600);
}
.finish__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.4vw, 1.5rem);
  line-height: 1.15;
  margin-top: var(--s1);
}
.finish__text { color: var(--muted); font-size: 0.94rem; margin-top: var(--s3); }
.finishing__note { margin-top: var(--s5); font-size: 0.82rem; color: var(--muted-light); max-width: 80ch; }

@media (min-width: 768px) {
  .finishing { grid-template-columns: repeat(3, 1fr); }
  /* Сетка подстраивается под число карточек комплектации: когда застройщик
     передаёт номера только «под ключ», вариант один — карточка не растягивается
     на всю ширину и не оставляет пустых колонок. Класс ставит renderFinishing. */
  .finishing--count-1 { grid-template-columns: minmax(0, 620px); justify-content: center; }
  .finishing--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Фото локации: широкая панорама под плитками расстояний.
   Ширина ограничена: исходники — 1200 px, поэтому во всю ширину контейнера
   (1240 px) картинка апскейлилась на HiDPI-экранах и выглядела пиксельной. */
.location__media {
  margin: var(--s6) auto 0;
  max-width: 840px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream-deep);
}
.location__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Как купить: таймлайн. На телефоне — вертикальный, на десктопе — горизонтальный. */
.steps { position: relative; display: grid; gap: var(--s5); }
.steps::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.step { position: relative; display: flex; gap: var(--s4); align-items: flex-start; }
.step__num {
  position: relative;
  z-index: 1;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  box-shadow: 0 0 0 6px var(--green-800);   /* разрыв вокруг цифры, чтобы линия не прилипала */
}
.step__title { color: #FFFFFF; font-weight: 600; font-size: 1.02rem; }
.step__text { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; margin-top: 2px; }
.steps__cta { margin-top: var(--s7); text-align: center; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(6, 1fr); gap: var(--s4); }
  .steps::before { left: 0; right: 0; top: 21px; bottom: auto; width: auto; height: 2px; }
  .step { display: block; padding-top: 66px; }
  .step__num { position: absolute; top: 0; left: 0; }
  .step__title { font-size: 1rem; }
}

/* Инвестиции: пояснение под цифрами */
.investment__disclaimer { margin-top: var(--s5); font-size: 0.82rem; color: var(--muted-light); max-width: 80ch; }

/* -----------------------------------------------------------------------------
   25b. Ненавязчивое окно-оффер (появляется через N секунд)
   Не модальное окно: без затемнения, страница остаётся доступной.
   -------------------------------------------------------------------------- */
.offer {
  position: fixed;
  z-index: 320;
  left: var(--s3);
  right: var(--s3);
  bottom: calc(88px + var(--s3));      /* над мобильной закреплённой кнопкой */
  max-width: 420px;
  margin-inline: auto;
  padding: var(--s5);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
}
.offer[data-open="true"] { display: block; animation: slide-up .28s ease; }

.offer__close {
  position: absolute;
  top: 6px; right: 6px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .15s ease;
}
.offer__close:hover { background: var(--sand-300); }
.offer__close svg { width: 15px; height: 15px; }

.offer__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.offer__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  line-height: 1.15;
  margin-top: var(--s2);
  padding-right: var(--s6);
}
.offer__text { color: var(--muted); font-size: 0.9rem; margin-top: var(--s3); margin-bottom: var(--s4); }
.offer__form form { display: grid; gap: var(--s4); }

.offer__success { display: none; text-align: center; }
.offer[data-state="success"] .offer__form { display: none; }
.offer[data-state="success"] .offer__success { display: block; }
.offer__success-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--s3);
  border-radius: 50%;
  background: var(--price-bg);
  color: var(--success);
  display: grid;
  place-items: center;
}
.offer__success-icon svg { width: 26px; height: 26px; }

@media (min-width: 980px) {
  .offer { left: auto; right: var(--s6); bottom: var(--s6); margin-inline: 0; }
}

/* -----------------------------------------------------------------------------
   26. Внутренние страницы (политика, спасибо, гео)
   -------------------------------------------------------------------------- */
.breadcrumbs { font-size: 0.82rem; color: var(--muted-light); padding-block: var(--s4); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--s2); }
.breadcrumbs li::after { content: "/"; margin-left: var(--s2); color: var(--sand-400); }
.breadcrumbs li:last-child::after { content: ""; }

.prose { max-width: 76ch; }
.prose h2 { margin-top: var(--s7); margin-bottom: var(--s3); }
.prose h3 { margin-top: var(--s5); margin-bottom: var(--s2); }
.prose p { margin-bottom: var(--s4); color: var(--muted); }
.prose ul { margin: 0 0 var(--s4) var(--s5); list-style: disc; color: var(--muted); }
.prose li { margin-bottom: var(--s2); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--s5); font-size: 0.92rem; }
.prose th, .prose td { padding: var(--s3); border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--cream); font-weight: 600; }
.prose code { background: var(--cream); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.prose caption { text-align: left; font-size: 0.85rem; color: var(--muted); padding-bottom: var(--s2); }
/* Сравнительные таблицы в статьях: на узких экранах прокручиваются по горизонтали. */
.table-wrap { overflow-x: auto; margin-bottom: var(--s5); -webkit-overflow-scrolling: touch; }
.table-wrap table { margin-bottom: 0; min-width: 480px; }

/* -----------------------------------------------------------------------------
   27. Печать
   -------------------------------------------------------------------------- */
@media print {
  .header, .mobile-cta, .cookie, .toast-area, .modal, .lightbox, .carousel__nav, .offer { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 1rem; }
}
