/* ============================================================
   Шрифты — свои, не с fonts.googleapis.com (#1247, аудит 31.08).

   01.10.2026 (блок Д по весу страницы). Было по файлу на каждый вес:
   Onest-400-latin.woff2 … Onest-700-latin.woff2. Эти файлы ПОБАЙТОВО
   одинаковые — Google отдаёт переменный шрифт с осью wght, а объявляли мы
   его четырежды под разными именами, и телефон качал одно и то же четыре
   раза (132 КБ вместо 33). Теперь один файл на семейство и подмножество,
   а веса берёт ось: font-weight здесь — ДИАПАЗОН, не число. Границы диапазона —
   ровно те веса, что были объявлены до 01.10 (Onest 400–700, Oswald 500–600,
   JetBrains Mono 400–600): шире нельзя. CSS местами просит 700 у Oswald, файла
   с таким весом в наборе не было и браузер подставлял 600 — если открыть ось до
   700, надписи первого экрана станут жирнее и шире, а вид меняться не должен.

   Второе: латинское подмножество Google несёт весь Latin-1 (33 КБ), а на
   странице из него используются 105 символов; подмножество latin-ext
   (28 КБ на вес) качалось ради одного знака ₽. Отсюда три файла:
     *-min.woff2  — ASCII и типографика
     *-cyr.woff2  — кириллица
     *-rub.woff2  — только ₽
   Четвёртый (cyrillic-ext) оставлен как у Google: на странице его знаков
   нет, браузер его и не запрашивает, но если появятся — шрифт не слетит.

   Пересобирается tools/subset_fonts.py. Исходные файлы Google лежат рядом
   и не тронуты: откат — вернуть этот блок из git. Правки начертаний —
   через tools/, не руками.
   ============================================================ */

/* Onest — ASCII и типографика */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/Onest-min.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00AB, U+00B0, U+00B2-00B3, U+00B7, U+00BB, U+00D7, U+2013-2014, U+2018-201E, U+2026, U+2039-203A, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* Onest — кириллица */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/Onest-cyr.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Onest — знак рубля */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/Onest-rub.woff2) format('woff2');
  unicode-range: U+20BD;
}

/* Onest — кириллица, редкие знаки */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/Onest-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Oswald — ASCII и типографика */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../assets/fonts/Oswald-min.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00AB, U+00B0, U+00B2-00B3, U+00B7, U+00BB, U+00D7, U+2013-2014, U+2018-201E, U+2026, U+2039-203A, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* Oswald — кириллица */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../assets/fonts/Oswald-cyr.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Oswald — знак рубля */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../assets/fonts/Oswald-rub.woff2) format('woff2');
  unicode-range: U+20BD;
}

/* Oswald — кириллица, редкие знаки */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../assets/fonts/Oswald-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* JetBrains Mono — ASCII и типографика */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../assets/fonts/JetBrainsMono-min.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00AB, U+00B0, U+00B2-00B3, U+00B7, U+00BB, U+00D7, U+2013-2014, U+2018-201E, U+2026, U+2039-203A, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* JetBrains Mono — кириллица */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../assets/fonts/JetBrainsMono-cyr.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* JetBrains Mono — знак рубля */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../assets/fonts/JetBrainsMono-rub.woff2) format('woff2');
  unicode-range: U+20BD;
}

/* JetBrains Mono — кириллица, редкие знаки */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../assets/fonts/JetBrainsMono-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* «Правильный Дом» — лендинг v3 (структура по этапам строительства).
   Палитра фиксирована бренд-платформой: графит / крем / охра.
   Охра — только главные CTA; расслоение поверхностей по impeccable П1. */

:root {
  --bg: #F5F1EA;
  --bg-alt: #ECE6DA;
  --surface: #FBF9F5;
  --ink: #1C1D1F;
  --ink-soft: #4A4B4E;
  --accent: #C68A4A;        /* линии, засечки, иконки, подложки — НЕ фон под белый текст */
  --accent-cta: #9A6630;    /* фон кнопок под белый текст: 4,9:1, проходит AA */
  --accent-ink: #8A5A28;    /* наведение, ссылки, акцентный текст на светлом: 5,6:1 */
  --accent-on-dark: #E5A96A;/* акцентный текст на тёмных секциях: 6,0:1 (охра --accent там даёт 4,4:1) */
  --line: rgba(28, 29, 31, .12);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 29, 31, .10);

  /* — Шкалы дизайн-системы (приняты Константином 31.08). Было 26 радиусов
       и 29 теней «на глаз» — соседние блоки не читались как одна страница. — */
  --section-y: clamp(56px, 7vw, 96px);   /* один вертикальный ритм на весь лендинг */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --r-sig: 2px 22px 2px 2px;             /* фирменная форма: скруглён один угол */
  --sh1: 0 1px 2px rgba(28,29,31,.06), 0 2px 8px rgba(28,29,31,.04);
  --sh2: 0 4px 12px rgba(28,29,31,.08), 0 12px 28px rgba(28,29,31,.08);
  --sh3: 0 18px 48px rgba(28,29,31,.16);
  --sh-d1: 0 2px 10px rgba(0,0,0,.18);   /* те же три ступени для тёмных секций */
  --sh-d2: 0 12px 34px rgba(0,0,0,.28);
  --sh-d3: 0 24px 64px rgba(0,0,0,.34);
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Onest', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem var(--font-body);
  padding: 13px 28px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: all .25s cubic-bezier(.22,.61,.24,1);
  white-space: nowrap;
}
.btn--accent { background: var(--accent-cta); color: #fff; box-shadow: 0 1px 2px rgba(28,29,31,.06), 0 2px 8px rgba(28,29,31,.04); }
.btn--accent:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(28,29,31,.08), 0 12px 28px rgba(28,29,31,.08); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--ink-soft); }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 34px; font-size: 1.08rem; }
.btn--wide { width: 100%; }

/* ---------- Закреплённая шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.topbar__logo img { width: 150px; height: auto; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__phone { font: 600 1.05rem var(--font-mono); color: var(--ink); text-decoration: none; }
.topbar__phone:hover { color: var(--accent-ink); }
/* Трубка вместо номера на узком экране: номер целиком в строку не влезает, а прятать
   телефон совсем нельзя — с телефона звонят чаще, чем заполняют форму (#1247). */
.topbar__call { display: none; }
.topbar__call svg { width: 21px; height: 21px; fill: currentColor; }

/* ---------- Герой ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__video { opacity: 0; transition: opacity 1.2s cubic-bezier(.22,.61,.24,1); }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28,29,31,.75) 0%, rgba(28,29,31,.48) 42%, rgba(28,29,31,.12) 100%);
}
.hero__in { position: relative; z-index: 1; width: 100%; padding-top: 60px; padding-bottom: 60px; }
.hero__panel { max-width: 560px; color: #fff; }
.hero__promo {
  display: inline-block; font: 700 .9rem var(--font-mono);
  background: var(--accent-cta); color: #fff; padding: 8px 16px; border-radius: 100px;
  margin-bottom: 20px; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--sh1);
}
.hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); margin: 14px 0 18px; color: rgba(255,255,255,.92); }
.hero__facts { list-style: none; margin: 0 0 26px; display: grid; gap: 8px; }
.hero__facts li { padding-left: 26px; position: relative; color: rgba(255,255,255,.9); }
.hero__facts li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.hero__form { display: grid; gap: 10px; max-width: 420px; }
.hero__form input[type="text"], .hero__form input[type="tel"] {
  font: 500 1rem var(--font-body); padding: 13px 16px;
  border-radius: 10px; border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.14); color: #fff; outline: none;
}
.hero__form input::placeholder { color: rgba(255,255,255,.65); }
.hero__form input:focus { border-color: var(--accent); background: rgba(255,255,255,.2); }
/* Ловушка для ботов. display:none обязателен: поле, просто уведённое за экран,
   браузер считает обычным и заполняет автозаполнением — заявка уходила в спам. */
.hp { display: none !important; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: rgba(255,255,255,.75); cursor: pointer; }
.hero__done {
  font: 600 1.05rem var(--font-body); background: rgba(255,255,255,.95); color: var(--ink);
  border-radius: var(--radius); padding: 18px 22px; max-width: 420px;
}

/* ---------- Этапы ---------- */
.stage { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.stage:first-of-type { border-top: none; }
.stage--alt { background: var(--bg-alt); }
.stage__head { max-width: 700px; margin-bottom: 50px; }
.stage__head h2 { letter-spacing: -.01em; }
.stage__head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.08rem; font-weight: 500; line-height: 1.6; }
.stage__num {
  display: inline-block; font: 700 .85rem var(--font-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-weight: 700;
}
.stage__row { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 44px; }
.stage__text { max-width: 640px; }
.stage__text p { color: var(--ink-soft); margin-top: 8px; }
.stage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.stage__photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh3); transition: transform .35s cubic-bezier(.22,.61,.24,1); }
.stage__photo img { width: 100%; height: 100%; object-fit: cover; }
.stage__grid:hover .stage__photo { transform: scale(1.02); }
.stage__cards { display: grid; gap: 18px; }
.icard {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 24px 24px; transition: all .25s cubic-bezier(.22,.61,.24,1);
}
.stage--alt .icard { background: #fff; }
.icard:hover { transform: translateY(-2px); border-color: rgba(198,138,74,.3); box-shadow: var(--sh2); }
.icard b { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.icard p { color: var(--ink-soft); margin-top: 8px; font-size: .96rem; line-height: 1.6; }

/* эскиз → рендер */
.morph { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 56px rgba(28,29,31,.18); max-width: 900px; margin: 0 auto; }
.morph__img img { width: 100%; display: block; }
.morph__img--sketch { position: absolute; inset: 0; opacity: 0; transition: opacity .8s cubic-bezier(.22,.61,.24,1); }
.morph__img--sketch img {
  filter: grayscale(1) brightness(1.4) contrast(1.6);
  mix-blend-mode: normal;
}

/* персона */
.stage__grid--person { grid-template-columns: minmax(280px, 400px) 1fr; }
.person { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; transition: all .28s cubic-bezier(.22,.61,.24,1); box-shadow: 0 4px 12px rgba(28,29,31,.06); }
.person:hover { transform: translateY(-6px); border-color: rgba(198,138,74,.25); box-shadow: 0 16px 40px rgba(28,29,31,.12); }
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.person figcaption { padding: 22px 24px; }
.person b { font-family: var(--font-head); font-size: 1.2rem; display: block; font-weight: 700; color: var(--ink); }
.person span { color: var(--accent); font: 700 .85rem var(--font-mono); display: block; margin: 6px 0 10px; letter-spacing: .04em; }
.person p { color: var(--ink-soft); font-size: .96rem; line-height: 1.6; font-weight: 500; }
.geo { margin-top: 36px; font-size: .82rem; color: var(--ink-soft); letter-spacing: .01em; }

/* ---------- Карусель типовых проектов ---------- */
.pcar { position: relative; padding: 0 48px; max-width: 1280px; margin: 0 auto; }
.pcar__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 20px; scrollbar-width: none;
}
.pcar__track::-webkit-scrollbar { display: none; }
.pcard {
  flex: 0 0 320px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.pcard--featured { border-color: var(--accent); box-shadow: var(--sh2); }
.pcard picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pcard__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__tag {
  align-self: flex-start; font: 600 .75rem var(--font-mono); text-transform: uppercase;
  letter-spacing: .06em; background: var(--accent-cta); color: #fff; padding: 4px 10px; border-radius: 999px;
}
.pcard__stats { display: flex; gap: 10px; flex-wrap: wrap; }
.pcard__stats span {
  font: 500 .82rem var(--font-mono); background: var(--bg); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 8px; color: var(--ink-soft);
}
.pcard__price { font-family: var(--font-head); font-size: 1.3rem; margin-top: auto; }
.pcar__btn {
  position: absolute; top: 42%; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 1.4rem; cursor: pointer;
  box-shadow: var(--shadow); transition: all .2s;
}
.pcar__btn:hover { background: var(--accent-cta); color: #fff; }
.pcar__btn--prev { left: 4px; }
.pcar__btn--next { right: 4px; }

.magnet {
  margin-top: 40px; background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 30px 34px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.magnet b { font-family: var(--font-head); font-size: 1.25rem; }
.magnet p { color: rgba(255,255,255,.75); margin-top: 6px; }

/* ---------- Ручная бесконечная галерея ---------- */
.gallery { padding: var(--section-y) 0; }
.gallery__head { margin-bottom: 32px; }
.gallery__head p { color: var(--ink-soft); margin-top: 8px; }
/* Ленты листаются нативной прокруткой: полоса из 60+ фото шире предельного
   размера слоя у видеокарты, и на transform браузер вставал колом. */
.gcar, .rcar { overflow-x: auto; overflow-y: hidden; scroll-behavior: auto; overscroll-behavior-x: contain; scrollbar-width: none; -ms-overflow-style: none; }
.gcar::-webkit-scrollbar, .rcar::-webkit-scrollbar { width: 0; height: 0; display: none; }
.gcar { cursor: grab; touch-action: pan-x pan-y; }
.gcar.is-dragging { cursor: grabbing; }
.gcar:focus-visible, .rcar:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.gcar__track { display: flex; gap: 14px; width: max-content; }
.gcar__track picture { flex: 0 0 auto; }
/* картинку нельзя утащить мышью — иначе браузер перехватывает жест */
.gcar__track img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.gcar__track img {
  height: 300px; width: auto; border-radius: 12px; object-fit: cover;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
@media (max-width: 640px) { .gcar__track img { height: 200px; } }

/* ---------- Отзывы ---------- */
.reviews { padding: var(--section-y) 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.reviews h2 { margin-bottom: 8px; }
.reviews__hint { color: var(--ink-soft); font-size: .95rem; margin-top: 10px; font-weight: 500; letter-spacing: .01em; }
/* Лента отзывов: та же механика перетаскивания, что в галерее домов (.gcar) */
.rcar { cursor: grab; touch-action: pan-x pan-y; margin: 24px 0 0; padding: 10px 0 20px; }
.rcar.is-dragging { cursor: grabbing; }
.rcar__track { display: flex; align-items: flex-start; gap: 22px; width: max-content; user-select: none; -webkit-user-select: none; }
.rcar .review { flex: 0 0 380px; }
/* при перетаскивании карточка не должна подпрыгивать под курсором */
.rcar.is-dragging .review:hover { transform: none; box-shadow: var(--sh1); }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 56px 0 90px; }
.footer__in { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 36px; }
/* логотип для тёмного подвала — отдельная выворотка (logo-dark), без фильтров: фирменный оранжевый знак должен сохраниться */
.footer__brand img { display: block; width: 180px; height: auto; }
.footer__brand p { margin-top: 16px; font-size: .92rem; color: rgba(255,255,255,.6); }
.footer__col b { font-family: var(--font-head); display: block; margin-bottom: 12px; color: #fff; }
.footer__col a, .footer__link {
  display: block; color: rgba(255,255,255,.75); text-decoration: none; margin-bottom: 8px;
  background: none; border: none; font: 400 .95rem var(--font-body); cursor: pointer; padding: 0; text-align: left;
}
.footer__col a:hover, .footer__link:hover { color: var(--accent); }
.footer__legal p { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.55); }


/* ---------- Квиз ---------- */
.quiz { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; }
.quiz[hidden] { display: none; }
.quiz__overlay { position: absolute; inset: 0; background: rgba(28,29,31,.6); backdrop-filter: blur(4px); }
.quiz__modal {
  position: relative; background: var(--surface); border-radius: var(--radius);
  width: min(520px, calc(100vw - 32px)); padding: 34px 30px 24px; box-shadow: var(--shadow);
  max-height: 90vh; overflow-y: auto;
}
.quiz__close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  font-size: 1.8rem; cursor: pointer; color: var(--ink-soft); line-height: 1;
}
.quiz__progress { height: 4px; background: var(--line); border-radius: 2px; margin-bottom: 22px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; border-radius: 2px; }
.quiz h3 { margin-bottom: 18px; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opts button {
  text-align: left; font: 500 1rem var(--font-body); padding: 14px 18px;
  border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  transition: all .18s ease;
}
.quiz__opts button:hover { border-color: var(--accent); background: rgba(198,138,74,.07); }
.quiz__fields { display: grid; gap: 12px; }
.quiz__fields input[type="text"], .quiz__fields input[type="tel"] {
  font: 500 1rem var(--font-body); padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--line); outline: none; background: #fff;
}
.quiz__fields input:focus { border-color: var(--accent); }
.quiz__fields .agree { color: var(--ink-soft); }
.quiz__done { text-align: center; padding: 22px 0 10px; }
.quiz__done-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent-cta); color: #fff;
  font-size: 1.6rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.quiz__done p { color: var(--ink-soft); margin-top: 8px; }
.quiz__nav { margin-top: 18px; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .stage__grid, .stage__grid--person { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; gap: 28px; }
  .topbar__phone { display: none; }
  .topbar__call {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
    background: var(--accent-cta); color: #fff; text-decoration: none;
  }
  .topbar__call:hover, .topbar__call:active { background: var(--accent-ink); color: #fff; }
  .topbar__right { gap: 10px; }
  .stage { padding: 60px 0; }
}
@media (max-width: 560px) {
  /* трубка + кнопка заявки съедают строку — логотип чуть у́же, чтобы ничего не переносилось */
  .topbar__logo img { width: 110px; }
  .pcar { padding: 0 10px; }
  .pcar__btn { display: none; }
  .pcard { flex-basis: 82vw; }
  .magnet { padding: 24px 22px; }
  .hero { min-height: 88vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: .01ms !important; }
}

/* --- Карточки отзывов --- */
.review { background: #fff; border: 1px solid rgba(28,29,31,.08); border-radius: var(--r-lg); padding: 26px 26px 22px; display: flex; flex-direction: column; transition: transform .2s cubic-bezier(.22,.61,.24,1), box-shadow .2s cubic-bezier(.22,.61,.24,1), border-color .2s cubic-bezier(.22,.61,.24,1); box-shadow: var(--sh1); }
.review:hover { transform: translateY(-2px); border-color: rgba(198,138,74,.25); box-shadow: var(--sh2); }
.review__head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.review__ava { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--accent-cta); color: #fff; font: 700 1.25rem/52px var(--font-head); text-align: center; box-shadow: none; }
.review__id { min-width: 0; }
.review__name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.review__meta { display: block; color: var(--ink-soft); font-size: .82rem; margin-top: 3px; }
.review__stars { color: #FFB400; letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 12px; }
.review__text { color: var(--ink-soft); font-size: .95rem; line-height: 1.65; flex: 1 1 auto; }
.review__date { color: var(--ink-soft); opacity: .8; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em; margin-top: 16px; font-weight: 500; }

/* --- Витрина хитов продаж (Этап 4): иммерсивный слайдер Pinterest-механика --- */
.shw { max-width: 1280px; margin: 44px auto 0; padding: 0 20px; }
.shw__viewport { --shw-glow: rgba(28,29,31,.35); position: relative; overflow: hidden; border-radius: 28px; background: #1C1812; box-shadow: 0 32px 80px var(--shw-glow), inset 0 1px 0 rgba(255,255,255,.08); transition: box-shadow .78s cubic-bezier(.4,0,.2,1); }
/* два слоя фона перетекают из тона в тон вслед за домом */
.shw__tone { position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 0; transition: opacity .78s cubic-bezier(.4,0,.2,1); }
.shw__tone.is-on { opacity: 1; }
.shw__track { display: grid; position: relative; z-index: 1; aspect-ratio: 16 / 9; }
.shw__slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 42%) 1fr auto; grid-template-rows: auto 1fr auto; gap: 20px; padding: 40px 44px 40px; color: #F5F1EA; position: relative; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; }
.shw__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; }
.shw__slide.is-leaving { opacity: 1; visibility: visible; pointer-events: none; z-index: 1; }
/* рендер занимает кадр целиком, текст ложится поверх него */
.shw__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 0; box-shadow: none; }
.shw__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; display: block; }
.shw__photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(100deg, rgba(10,7,5,.5) 0%, rgba(10,7,5,.26) 36%, rgba(10,7,5,.04) 60%, rgba(10,7,5,.26) 100%),
  linear-gradient(to bottom, rgba(10,7,5,.46) 0%, rgba(10,7,5,.08) 30%, transparent 46%),
  linear-gradient(to top, rgba(10,7,5,.42) 0%, transparent 32%); }
/* стеклянные подложки под текстом — фон под ними размывается и просвечивает */
.shw__glass { background: rgba(20,15,11,.5); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); border: 1px solid rgba(245,241,234,.22); border-radius: 22px; box-shadow: 0 20px 52px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.14); }
.shw__info { grid-column: 1; grid-row: 1; align-self: start; max-width: 360px; padding: 22px 26px 24px; }
.shw__facts { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; padding: 22px 26px 24px; }
/* дом уходит в верхний левый угол, следующий приходит из нижнего левого.
   Входящий стартует полупрозрачным и с меньшей амплитудой — он подстилает уходящий,
   поэтому за улетающим кадром не открывается пустой угол. */
@keyframes shwPhotoIn { from { transform: translate(-8%, 22%) scale(1.44); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes shwPhotoOut { 0% { transform: none; opacity: 1; } 72% { opacity: .9; } 100% { transform: translate(38%, -66%) scale(1.02); opacity: 0; } }
@keyframes shwPhotoInBack { from { transform: translate(8%, -22%) scale(1.44); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes shwPhotoOutBack { 0% { transform: none; opacity: 1; } 72% { opacity: .9; } 100% { transform: translate(-38%, 66%) scale(1.02); opacity: 0; } }
@keyframes shwTextIn { from { opacity: 0; transform: translate(-10px, 18px); } to { opacity: 1; transform: none; } }
@keyframes shwTextOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate(10px, -14px); } }
/* уходящий дом стартует сразу и быстро, следующий влетает следом с паузой — эстафета, а не наложение */
.shw__slide.is-active .shw__photo { animation: shwPhotoIn .68s cubic-bezier(.18,.84,.3,1) .06s both; }
.shw__slide.is-leaving .shw__photo { animation: shwPhotoOut .62s cubic-bezier(.4,.1,.6,1) both; }
.shw.is-back .shw__slide.is-active .shw__photo { animation-name: shwPhotoInBack; }
.shw.is-back .shw__slide.is-leaving .shw__photo { animation-name: shwPhotoOutBack; }
.shw__slide.is-active .shw__glass { animation: shwTextIn .46s cubic-bezier(.22,.61,.24,1) both; }
.shw__slide.is-leaving .shw__glass { animation: shwTextOut .26s ease both; }
.shw__slide.is-active .shw__info { animation-delay: .24s; }
.shw__slide.is-active .shw__facts { animation-delay: .32s; }
.shw__tag { display: inline-block; align-self: flex-start; font: 700 .8rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #FFD89D; background: rgba(232,183,120,.18); border: 1.5px solid rgba(232,183,120,.6); border-radius: 100px; padding: 7px 16px; margin-bottom: 20px; }
.shw__info { display: flex; flex-direction: column; align-items: flex-start; }
.shw__name { font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -.01em; font-weight: 700; }
.shw__code { font: 600 .8rem var(--font-mono); color: rgba(245,241,234,.66); margin: 10px 0 14px; letter-spacing: .06em; }
.shw__lead { color: rgba(245,241,234,.88); font-size: .98rem; line-height: 1.6; margin-bottom: 22px; max-width: 40ch; font-weight: 500; }
.shw__facts { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.shw__big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.5rem); color: #FFD89D; line-height: 1.1; letter-spacing: -.02em; }
.shw__biglabel { color: rgba(245,241,234,.85); font-size: .86rem; margin: 8px 0 18px; font-weight: 600; letter-spacing: .04em; }
.shw__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.shw__chip { background: rgba(245,241,234,.1); border: 1.5px solid rgba(232,183,120,.35); color: #F5F1EA; border-radius: 100px; padding: 8px 16px; font-size: .88rem; white-space: nowrap; font-weight: 500; transition: all .2s ease; }
.shw__chip:hover { background: rgba(232,183,120,.15); border-color: rgba(232,183,120,.65); }
.btn--light { background: #F5F1EA; color: #1C1D1F; font-weight: 700; }
.btn--light:hover { background: #FFD89D; transform: translateY(-2px); box-shadow: var(--sh-d2); }
.shw__nav { display: flex; justify-content: flex-start; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.shw__arrows { display: flex; align-items: center; gap: 16px; }
.shw__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(28,29,31,.25); background: var(--surface); font-size: 1.4rem; cursor: pointer; transition: all .25s cubic-bezier(.22,.61,.24,1); font-weight: 700; }
.shw__btn:hover { background: var(--accent-cta); color: #fff; border-color: var(--accent-cta); transform: scale(1.08); box-shadow: var(--sh2); }
.shw__dots { display: flex; gap: 10px; margin-left: 8px; }
.shw__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(28,29,31,.25); cursor: pointer; padding: 0; transition: all .3s cubic-bezier(.22,.61,.24,1); }
.shw__dot.is-active { background: var(--accent); transform: scale(1.35); box-shadow: 0 0 0 6px rgba(198,138,74,.15); }
.shw__dot:hover { background: rgba(28,29,31,.45); }
/* миниатюра следующего дома — внутри кадра, правый нижний угол */
.shw__next-preview { position: absolute; right: 24px; bottom: 24px; z-index: 3; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(245,241,234,.24); background: rgba(18,14,10,.46); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 100px; padding: 7px 20px 7px 7px; cursor: pointer; font: 600 .92rem var(--font-body); color: rgba(245,241,234,.92); transition: transform .25s cubic-bezier(.22,.61,.24,1), background .25s ease, border-color .25s ease; }
.shw__next-preview:hover { background: rgba(18,14,10,.66); border-color: rgba(232,183,120,.6); transform: translateY(-2px); }
.shw__next-preview img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(232,183,120,.4); transition: opacity .22s ease; }
.shw__next-preview.is-swapping img { opacity: 0; }
.shw__next-preview b { color: #FFD89D; font-weight: 700; }

/* --- Полиш: карточки и ховеры по сайту --- */
.icard, .review { transition: transform .2s ease, box-shadow .2s ease; }
.icard:hover, .review:hover { transform: translateY(-2px); box-shadow: var(--sh2); }

@media (max-width: 900px) {
  .shw { padding: 0 12px; }
  /* на узком экране кадр не режем: рендер сверху, стеклянные панели наезжают снизу */
  .shw__track { aspect-ratio: auto; }
  .shw__slide { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 12px; padding: 0 0 78px; }
  .shw__photo { position: relative; inset: auto; grid-column: 1; grid-row: 1; }
  .shw__photo img { height: auto; aspect-ratio: 4 / 3; }
  .shw__photo::after { background: linear-gradient(to bottom, rgba(10,7,5,.34) 0%, transparent 30%), linear-gradient(to top, rgba(10,7,5,.55) 0%, transparent 42%); }
  .shw__info { grid-column: 1; grid-row: 2; align-self: auto; max-width: none; margin: -52px 14px 0; padding: 20px 20px 22px; }
  .shw__facts { grid-column: 1; grid-row: 3; justify-self: stretch; align-self: auto; margin: 0 14px; padding: 18px 20px 20px; }
  .shw__lead { font-size: .95rem; max-width: none; }
  .shw__next-preview { right: 16px; bottom: 18px; padding: 5px 16px 5px 5px; gap: 10px; font-size: .86rem; }
  .shw__next-preview img { width: 38px; height: 38px; }
}

/* hidden должен работать и для .btn (display:inline-flex перебивал UA-стиль) */
[hidden] { display: none !important; }

/* Редакционный арт-дирекшен: журнал + архитектурный скролл */
:root { --bg:#f0ece3; --bg-alt:#dfd8cc; --surface:#f8f5ef; --ink:#181915; --ink-soft:#5d5c56; --accent:#b9793f; --accent-ink:#8d5628; --night:#171814; }
body { overflow-x:clip; }
section { contain-intrinsic-size:900px; }
.topbar { position:fixed; left:18px; right:18px; top:14px; border:1px solid rgba(255,255,255,.38); border-radius:16px; background:rgba(244,240,232,.78); box-shadow:0 8px 30px rgba(17,18,15,.12); }
.topbar__in { min-height:62px; }
.topbar__logo img { width:142px; }
.hero { min-height:100svh; align-items:flex-end; background:var(--night); }
.hero__media::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg,rgba(0,0,0,.06),rgba(0,0,0,.2) 52%,rgba(0,0,0,.7)); }
.hero__media img,.hero__video { object-position:center 55%; transform:scale(1.01); }
.hero__shade { background:linear-gradient(90deg,rgba(13,14,12,.74),rgba(13,14,12,.38) 43%,rgba(13,14,12,.03) 72%),linear-gradient(0deg,rgba(13,14,12,.66),transparent 42%); }
.hero__in { padding-top:132px; padding-bottom:48px; display:flex; align-items:flex-end; justify-content:space-between; gap:40px; }
.hero__panel { width:min(665px,100%); max-width:none; padding:34px 38px 32px; background:linear-gradient(135deg,rgba(13,14,12,.75),rgba(13,14,12,.32)); border:1px solid rgba(255,255,255,.22); border-radius:var(--r-sig); backdrop-filter:blur(9px); box-shadow:0 28px 90px rgba(0,0,0,.22); }
.hero__promo { margin-bottom:12px; border-radius:2px; box-shadow:none; }
.hero__edition { display:inline-block; margin-left:10px; color:rgba(255,255,255,.68); font:600 .76rem var(--font-mono); letter-spacing:.1em; text-transform:uppercase; }
.hero h1 { font-size:clamp(3rem,6.4vw,6rem); line-height:.94; letter-spacing:-.035em; max-width:9ch; text-transform:uppercase; }
.hero__sub { max-width:38ch; font-size:clamp(1rem,1.7vw,1.32rem); }
.hero__facts { grid-template-columns:repeat(3,1fr); gap:12px; margin-top:22px; }
.hero__facts li { padding:12px 0 0; border-top:1px solid rgba(255,255,255,.35); font-size:.82rem; line-height:1.35; }
.hero__facts li::before { display:none; }
.hero__form { grid-template-columns:1fr 1fr; max-width:none; }
.hero__form .btn,.hero__form .agree { grid-column:1/-1; }
.hero__form input[type="text"],.hero__form input[type="tel"],.hero__form .btn { border-radius:2px; }
.hero__scroll { color:rgba(255,255,255,.72); font:600 .72rem var(--font-mono); text-transform:uppercase; letter-spacing:.12em; writing-mode:vertical-rl; display:flex; align-items:center; gap:12px; }
.hero__scroll span { width:1px; height:70px; background:linear-gradient(#fff,transparent); }
.stage { position:relative; padding:var(--section-y) 0; overflow:clip; }
.stage::after { position:absolute; right:-18px; top:32px; font:600 clamp(6rem,16vw,13rem)/1 var(--font-head); color:rgba(24,25,21,.045); pointer-events:none; }
.stage--design::after{content:'01'}.stage--finance::after{content:'02'}.stage--build::after{content:'03'}.stage--ready::after{content:'04'}
.stage__head h2 { font-size:clamp(2.2rem,4.7vw,4.6rem); line-height:.98; letter-spacing:-.025em; }
.stage__num { padding-bottom:10px; border-bottom:2px solid var(--accent); }
.morph { border-radius:var(--r-sig); max-width:none; isolation:isolate; }
.morph::after { content:''; position:absolute; inset:0 50% 0 0; z-index:3; pointer-events:none; background:repeating-linear-gradient(0deg,rgba(20,22,20,.06) 0 1px,transparent 1px 24px),repeating-linear-gradient(90deg,rgba(20,22,20,.05) 0 1px,transparent 1px 24px); mix-blend-mode:multiply; }
.morph__img img { aspect-ratio:16/10; object-fit:cover; }
.morph__img--sketch { opacity:.98; clip-path:inset(0 50% 0 0); z-index:2; }
.morph__img--sketch img { filter:grayscale(1) contrast(1.85) brightness(1.38); mix-blend-mode:screen; }
.stage__photo,.person,.icard { border-radius:var(--r-sig); }
.stage__photo,.stage__photo img { min-height:510px; }
.person--yakovlev { background:radial-gradient(circle at 48% 25%,#b87840 0%,#4a3322 54%,#1b1b17 100%); border:0; overflow:visible; box-shadow:0 28px 58px rgba(29,24,18,.22); }
.person--yakovlev img { aspect-ratio:auto; height:520px; object-fit:contain; object-position:center bottom; margin-top:-36px; }
.person--yakovlev figcaption { background:var(--surface); border-radius:0 22px 2px 2px; }
.gallery { background:#23241f; color:#f4f0e7; padding-top:var(--section-y); }
.gallery__head p { color:rgba(255,255,255,.6); }
.gcar__track { gap:22px; }
.gcar__track img { height:380px; border-radius:var(--r-sig); filter:saturate(.84); }
.reviews { background:#171814; color:#f4f0e7; padding:var(--section-y) 0; }
.reviews h2 { max-width:11ch; font-size:clamp(2.6rem,5vw,5rem); line-height:.95; }
.reviews__hint { color:rgba(255,255,255,.52); }
.review { color:#f4f0e7; background:#23241f; border-color:rgba(255,255,255,.1); border-radius:var(--r-sig); box-shadow:none; }
.review--featured { padding:32px 30px 26px; background:linear-gradient(145deg,#714725,#2b251d 64%,#20211d); }
.review--featured .review__text { font-size:1.05rem; line-height:1.6; color:rgba(255,255,255,.88); }
.review--featured .review__date { color:rgba(255,255,255,.8); opacity:1; }
.rcar.is-dragging .review:hover { box-shadow:none; }
.review__name { color:#fff; }
.review__meta,.review__text,.review__date { color:rgba(255,255,255,.65); }
.review:hover { border-color:rgba(185,121,63,.65); box-shadow:var(--sh-d2); }
.shw__viewport,.magnet,.btn { border-radius:var(--r-sig); }
@media (min-width:961px) {
 .stage--design>.container,.stage--build>.container { display:grid; grid-template-columns:minmax(250px,.7fr) minmax(0,1.65fr); column-gap:clamp(48px,7vw,110px); align-items:start; }
 .stage--design .stage__head,.stage--build .stage__head { grid-column:1; position:sticky; top:116px; margin:0; z-index:2; }
 .stage--design .morph,.stage--design .stage__grid,.stage--build .stage__grid,.stage--build .geo { grid-column:2; }
 .stage--design .stage__grid { margin-top:58px; }
}
@media (max-width:960px) {
 .topbar{left:8px;right:8px;top:8px}.hero__in{padding-top:108px}.hero__panel{padding:28px 24px}.hero__scroll{display:none}.stage{padding:82px 0}.rcar .review{flex-basis:340px}
}
@media (max-width:640px) {
 .hero{min-height:100svh}.hero__media img,.hero__video{object-position:62% center}.hero__edition{display:block;margin:0 0 12px}.hero h1{font-size:clamp(2.6rem,15vw,4.4rem)}.hero__facts{grid-template-columns:1fr}.hero__form{grid-template-columns:1fr}.hero__form .btn,.hero__form .agree{grid-column:auto}.stage__photo,.stage__photo img{min-height:340px}.person--yakovlev img{height:430px}.gcar__track img{height:260px}.rcar__track{gap:14px}.rcar .review{flex:0 0 84vw}
}

/* Pinterest pass: изображение и текст работают как единая архитектурная композиция */
.hero__media > picture,.hero__video { z-index:0; }
.hero__shade { z-index:2; }
.hero__word {
  position:absolute; z-index:1; left:50%; top:15%; transform:translateX(-50%);
  width:min(1440px,94vw); color:rgba(255,255,255,.42); mix-blend-mode:soft-light;
  font:600 clamp(7rem,18.5vw,18rem)/.78 var(--font-head); letter-spacing:-.065em;
  text-transform:uppercase; text-align:center; white-space:nowrap; pointer-events:none;
}
.hero__in { z-index:3; }
.hero__panel { width:min(620px,100%); }
.hero__rail {
  width:280px; align-self:flex-end; margin-left:auto; color:#fff; display:grid;
  grid-template-columns:1fr 1fr; gap:8px; padding:10px; border:1px solid rgba(255,255,255,.32);
  background:rgba(21,22,19,.34); backdrop-filter:blur(12px); box-shadow:0 24px 70px rgba(0,0,0,.24);
}
.hero__rail-copy { grid-column:1/-1; display:grid; gap:4px; padding:5px 4px 7px; }
.hero__rail-copy span { font:600 .64rem var(--font-mono); letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.6); }
.hero__rail-copy b { font:500 1rem/1.25 var(--font-body); }
.hero__rail picture { overflow:hidden; min-height:108px; }
.hero__rail img { width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.22,.61,.24,1); }
.hero__rail picture:hover img { transform:scale(1.06); }
.hero__rail dl { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,1fr); margin:4px 0 0; border-top:1px solid rgba(255,255,255,.24); }
.hero__rail dl div { padding:11px 6px 3px; border-right:1px solid rgba(255,255,255,.2); }
.hero__rail dl div:last-child { border:0; }
.hero__rail dt { font:600 .88rem var(--font-head); }
.hero__rail dd { margin-top:2px; font:.58rem var(--font-mono); text-transform:uppercase; letter-spacing:.07em; color:rgba(255,255,255,.55); }


.morph { min-height:min(72vh,720px); background:#d8d3c9; }
.morph__img,.morph__img img { height:100%; }
.morph__img img { min-height:min(72vh,720px); }
.morph__img--sketch { opacity:.98; clip-path:inset(0 42% 0 0); }
.morph::after { inset:0 auto 0 0; width:var(--sketch-width,58%); }
.morph__divider { position:absolute; z-index:6; left:58%; top:0; bottom:0; width:1px; background:rgba(255,255,255,.82); box-shadow:0 0 18px rgba(0,0,0,.24); }
.morph__divider i { position:absolute; left:50%; top:50%; width:38px; height:38px; transform:translate(-50%,-50%); border-radius:50%; background:var(--surface); border:1px solid rgba(24,25,21,.18); }
.morph__divider i::before,.morph__divider i::after { content:''; position:absolute; top:13px; width:8px; height:8px; border-top:1px solid var(--ink); border-left:1px solid var(--ink); }
.morph__divider i::before { left:10px; transform:rotate(-45deg); }
.morph__divider i::after { right:10px; transform:rotate(135deg); }
.morph__copy { position:absolute; z-index:7; left:clamp(22px,4vw,58px); bottom:clamp(72px,8vw,104px); color:#fff; text-shadow:0 2px 18px rgba(0,0,0,.45); }
.morph__copy span { display:block; margin-bottom:8px; font:600 .68rem var(--font-mono); letter-spacing:.16em; text-transform:uppercase; }
.morph__copy b { display:block; max-width:8ch; font:600 clamp(2.2rem,5vw,5rem)/.9 var(--font-head); text-transform:uppercase; letter-spacing:-.03em; }

@media (min-width:961px) {
 .stage--build .stage__grid { align-items:center; }
 .stage--build .stage__cards { position:relative; z-index:2; margin-left:-42px; padding:26px; background:var(--surface); box-shadow:0 24px 64px rgba(28,29,31,.13); }
}
@media (max-width:1100px) {
 .hero__rail { display:none; }
}
@media (max-width:960px) {
 .morph { min-height:560px; }
 .morph__img img { min-height:560px; }
}
@media (max-width:640px) {
 .hero__word { top:19%; font-size:31vw; opacity:.72; }
 .hero__panel { padding:22px 18px 20px; border-radius:2px 20px 2px 2px; }
 .hero__promo { font-size:.7rem; }
 .hero h1 { max-width:10ch; }
 .morph,.morph__img img { min-height:520px; }
 .morph__img img { object-position:62% center; }
 .morph__copy { bottom:86px; }
 .morph__copy b { font-size:2.45rem; }
}

/* Ручное сравнение эскиза и реализованного дома */
.morph--manual { --sketch-width: 52%; }
.morph--manual .morph__img--sketch { clip-path: inset(0 calc(100% - var(--sketch-width)) 0 0); }
.morph--manual .morph__divider { left: var(--sketch-width); pointer-events: none; }
.morph__range { position:absolute; inset:0; z-index:8; width:100%; height:100%; margin:0; opacity:0; cursor:ew-resize; touch-action:none; }
.morph__range:focus-visible { opacity:.01; outline:3px solid var(--accent); outline-offset:-3px; }
.morph__hint { position:absolute; z-index:7; top:18px; left:18px; padding:7px 10px; background:rgba(16,17,15,.62); color:#fff; font:600 .62rem var(--font-mono); letter-spacing:.1em; text-transform:uppercase; pointer-events:none; }
.morph--manual .morph__divider i { width:46px; height:46px; background:var(--accent); border-color:rgba(255,255,255,.7); box-shadow:0 4px 16px rgba(0,0,0,.2); }
.morph--manual .morph__divider i::before,.morph--manual .morph__divider i::after { top:16px; border-color:var(--ink); }
.morph--manual .morph__divider i::before { left:13px; }
.morph--manual .morph__divider i::after { right:13px; }
@media (max-width:640px) { .morph__hint { top:12px; left:12px; font-size:.56rem; } }

/* Проектирование: композиция в духе архитектурного разворота — медиа слева, эксперт и смысл справа */
.projecting-layout { display:grid; grid-template-columns:minmax(0,1.28fr) minmax(280px,.72fr); gap:clamp(32px,6vw,96px); align-items:center; }
.stage--design .morph { grid-column:auto; margin:0; }
.projecting-copy { min-width:0; }
.projecting-copy .stage__head { position:static; max-width:34rem; margin:0 0 30px; }
.projecting-copy .stage__head h2 { font-size:clamp(2.7rem,5.1vw,5.4rem); }
.projecting-copy .stage__head p { max-width:31rem; }
.person--architect { display:grid; grid-template-columns:92px 1fr; align-items:center; gap:18px; padding:0; border:0; box-shadow:none; background:transparent; overflow:visible; }
.person--architect:hover { transform:none; border-color:transparent; box-shadow:none; }
.person--architect picture { width:92px; height:92px; overflow:hidden; border-radius:50%; border:1px solid var(--line); background:var(--surface); }
.person--architect img { width:100%; height:100%; aspect-ratio:1; object-fit:cover; object-position:top; }
.person--architect figcaption { padding:0; }
.person--architect b { font-size:1.12rem; }
.person--architect p { margin-top:4px; }
.projecting-copy .stage__cards { margin-top:28px; padding-top:26px; border-top:1px solid var(--line); }
.projecting-copy .stage__text { max-width:35rem; }
.projecting-copy .stage__text h3 { font-size:clamp(1.35rem,2vw,1.8rem); }
.projecting-copy .btn { margin-top:20px; }
@media (min-width:961px) {
  .stage--design > .container { display:block; }
  .stage--design .stage__head { grid-column:auto; }
}
@media (max-width:960px) {
  .projecting-layout { grid-template-columns:1fr; }
  .projecting-copy { max-width:680px; }
  .projecting-copy .stage__head { margin-top:4px; }
}

/* ================= Этап 1 «Построить легко» — компоновка по разметке заказчика (msg 31170) ================= */
.pj { display:grid; grid-template-columns:minmax(0,1fr) minmax(268px,.4fr); column-gap:clamp(32px,4.5vw,80px); row-gap:clamp(26px,3.4vw,44px); align-items:start; }
.pj__head { grid-column:1; grid-row:1; }
.pj .morph { grid-column:1; grid-row:2; }
.pj__proof { grid-column:1; grid-row:3; }
.pj__aside { grid-column:2; grid-row:1 / span 2; align-self:start; }

.pj__eyebrow { position:relative; max-width:46rem; margin:0 0 clamp(18px,2.2vw,28px); padding-left:17px; color:var(--ink-soft); font:600 .96rem/1.5 var(--font-body); }
.pj__eyebrow::before { content:''; position:absolute; left:0; top:.6em; width:7px; height:7px; border-radius:50%; background:var(--accent); }
.pj__title { margin:0; color:var(--ink); font:600 clamp(2.5rem,5.2vw,4.5rem)/.96 var(--font-head); text-transform:uppercase; letter-spacing:-.02em; }
.pj__sub { margin:16px 0 0; color:var(--ink-soft); font:500 clamp(1.05rem,1.5vw,1.32rem)/1.5 var(--font-body); }

.pj .morph { max-width:none; margin:0; min-height:0; aspect-ratio:3/2; border-radius:var(--r-sig); background:var(--bg-alt); cursor:ew-resize; }
.pj .morph__img, .pj .morph__img img { height:100%; }
.pj .morph__img img { min-height:0; object-fit:cover; }
.pj .morph__hint { top:14px; left:14px; padding:8px 13px; border-radius:100px; background:rgba(16,17,15,.7); font-size:.7rem; letter-spacing:.09em; }

.pj__person { display:grid; grid-template-columns:clamp(94px,8vw,124px) 1fr; gap:18px; align-items:center; margin:0; }
.pj__person picture { display:block; width:100%; aspect-ratio:1; overflow:hidden; border-radius:50%; border:1px solid var(--line); background:var(--surface); }
.pj__person img { width:100%; height:100%; object-fit:cover; object-position:top; }
.pj__person figcaption b { display:block; color:var(--ink); font:700 clamp(1.15rem,1.7vw,1.5rem)/1.2 var(--font-head); }
.pj__person figcaption span { display:block; margin-top:7px; color:var(--ink-soft); font:500 .92rem/1.45 var(--font-body); }
.pj__note { margin:22px 0 0; color:var(--ink-soft); font-size:1rem; line-height:1.65; }
.pj__aside .btn { width:100%; margin-top:24px; }

.pj__proof { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.pj__built { display:flex; margin:0; padding:0; list-style:none; }
.pj__built li { flex:none; width:64px; height:64px; margin-left:-16px; overflow:hidden; border-radius:50%; border:3px solid var(--bg); background:var(--bg-alt); }
.pj__built li:first-child { margin-left:0; }
.pj__built img { display:block; width:100%; height:100%; object-fit:cover; }
.pj__built-more { display:grid; place-items:center; color:var(--ink-soft); font:600 1.3rem var(--font-head); }
.pj__proof p { margin:0; color:var(--ink-soft); font-size:1rem; }
.pj__proof b { color:var(--ink); font:700 1.16rem var(--font-head); }

.pj__dept { margin-top:26px; padding:22px 22px 24px; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
.pj__dept h3 { margin:0; color:var(--ink); font:700 clamp(1.1rem,1.5vw,1.32rem)/1.25 var(--font-head); }
.pj__dept p { margin:10px 0 0; color:var(--ink-soft); font-size:.96rem; line-height:1.6; }
@media (max-width:960px) { .pj__dept { max-width:640px; } }

@media (max-width:960px) {
  .pj { grid-template-columns:1fr; row-gap:clamp(24px,4vw,36px); }
  .pj__head, .pj .morph, .pj__aside, .pj__proof { grid-column:1; }
  .pj__head { grid-row:1; } .pj .morph { grid-row:2; } .pj__aside { grid-row:3; } .pj__proof { grid-row:4; }
  .pj .morph { aspect-ratio:4/3; }
  .pj__aside .btn { width:auto; }
}
@media (max-width:640px) {
  .pj .morph { aspect-ratio:1/1; }
  .pj .morph__hint { display:none; }
  .pj__built li { width:52px; height:52px; margin-left:-14px; border-width:2px; }
}

/* ===== Этап 1: детальный эскиз без пережога + выравнивание колонок (msg 31237) ===== */
.pj .morph__img--sketch { opacity:1; }
.pj .morph__img--sketch img { filter:none; mix-blend-mode:normal; background:#fff; }
@media (min-width:961px) {
  .pj { grid-template-columns:minmax(0,1fr) minmax(330px,.6fr); }
  .pj__aside { grid-row:1 / span 2; align-self:stretch; display:flex; flex-direction:column; }
  .pj__note { margin-top:clamp(18px,2vw,26px); }
  .pj__dept { flex:0 1 auto; display:flex; flex-direction:column; justify-content:center; margin-top:clamp(20px,2.4vw,28px); min-height:min(300px,100%); }
  .pj__aside .btn { margin-top:auto; }
}

/* Отзывы: единая высота карточек + сворачивание длинных текстов до 8 строк (задача #1202) */
.rcar__track { align-items: stretch; }
.rcar__track.has-open { align-items: flex-start; }
.rcar .review__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; flex: 0 0 auto; }
.rcar .review__text.is-open { -webkit-line-clamp: unset; overflow: visible; display: block; }
.rcar .review__more { align-self: flex-start; margin: 0; /* зона касания 45px вместо 21px: на телефоне в ссылку из одной строки не попасть */ padding: 12px 10px 12px 0; background: none; border: 0; color: var(--accent-on-dark); font-family: var(--font-head); font-weight: 600; font-size: .9rem; cursor: pointer; }
.rcar .review__more:hover { text-decoration: underline; }
.rcar .review__date { margin-top: auto; padding-top: 16px; }

/* ===== Этап 2 «Смета»: фото во всю ширину (реальный фундамент + светящийся чертёж дома),
   весь текст и карточки ПОВЕРХ фото слева на графитовом затемнении (правка #31433). Цвета — графит+охра. ===== */
.stage--finance {
  position: relative; padding: 0; border-top: 0;
  background: #14150F; color: #F4F0E7; isolation: isolate;
}
.stage--finance::after { z-index: 3; color: rgba(255,255,255,.07); }
.fin__media { position: absolute; inset: 0; z-index: 0; }
.fin__media img {
  position: absolute; left: 0; top: -6%; width: 100%; height: 112%;
  object-fit: cover; object-position: 64% center; filter: saturate(.86) contrast(1.02) brightness(.98);
}
.fin__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(97deg, rgba(16,17,13,.95) 0%, rgba(16,17,13,.9) 30%, rgba(16,17,13,.58) 58%, rgba(16,17,13,.22) 100%),
    linear-gradient(0deg, rgba(16,17,13,.62) 0%, rgba(16,17,13,0) 40%);
}
.stage--finance > .container.fin__in {
  position: relative; z-index: 2; display: block;
  padding-top: var(--section-y); padding-bottom: var(--section-y);
}
.fin__copy { max-width: 620px; }
.fin__copy .stage__num { color: var(--accent); border-bottom-color: var(--accent); }
.fin__copy h2 { color: #fff; max-width: 22ch; font-size: clamp(1.7rem,3vw,2.9rem); line-height: 1.06; letter-spacing: -.02em; text-shadow: 0 2px 26px rgba(0,0,0,.45); }
.fin__lead { margin-top: 16px; max-width: 46ch; font-size: 1.06rem; line-height: 1.6; color: rgba(255,255,255,.82); }
.fin__list { list-style: none; display: grid; gap: 12px; margin: clamp(28px,3.2vw,40px) 0 clamp(26px,3vw,34px); padding: 0; max-width: 560px; }
.fincard {
  display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 16px; align-items: start;
  padding: 18px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-sig);
  background: rgba(255,255,255,.07); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .25s cubic-bezier(.22,.61,.24,1), border-color .25s cubic-bezier(.22,.61,.24,1), transform .25s cubic-bezier(.22,.61,.24,1);
}
.fincard:hover { background: rgba(255,255,255,.11); border-color: rgba(198,138,74,.5); transform: translateX(4px); }
.fincard__ico {
  width: 46px; height: 46px; display: grid; place-items: center; color: var(--accent-on-dark);
  background: rgba(198,138,74,.16); border: 1px solid rgba(198,138,74,.42); border-radius: 2px 14px 2px 2px;
}
.fincard__ico svg { width: 22px; height: 22px; }
.fincard__n { display: block; font: 600 .78rem var(--font-mono); letter-spacing: .14em; color: var(--accent-on-dark); margin-bottom: 5px; }
.fincard b { display: block; font: 600 1.08rem/1.25 var(--font-head); color: #fff; }
.fincard p { margin-top: 7px; font-size: .95rem; line-height: 1.58; color: rgba(255,255,255,.78); }
@media (max-width:960px) {
  .fin__media img { object-position: 60% center; }
  .fin__shade {
    background: linear-gradient(180deg, rgba(16,17,13,.72) 0%, rgba(16,17,13,.86) 46%, rgba(16,17,13,.94) 100%);
  }
  .fin__copy { max-width: none; }
}
@media (max-width:640px) {
  .stage--finance > .container.fin__in { padding-top: 84px; padding-bottom: 68px; }
  .fin__copy h2 { max-width: none; font-size: 1.5rem; line-height: 1.12; }
  .fincard { grid-template-columns: 40px minmax(0,1fr); gap: 13px; padding: 16px 16px; }
  .fincard__ico { width: 40px; height: 40px; }
  .fin__list .btn, .fin__copy > .btn { width: 100%; }
}

/* ================= ЭКРАН 1 — главный баннер v5 (перенесён из hero5-preview.html, #31833) ================= */
/* ==== Главный баннер v5: пейзаж / надпись / дом / цена ==== */
.hero--v5 { position: relative; min-height: 0; display: block; overflow: hidden;
  background: linear-gradient(180deg,#adb2b5,#c9d0d3 60%,#a9752f); }
.hv5__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.hv5__frame > picture { position: absolute; inset: 0; display: block; }
.hv5__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
.hv5__scene { z-index: 1; }
/* вуаль над небом убрана по #32049 (Костя: «убери полупрозрачную плашку
   с «Ваш загородный дом»»). Контраст надписи держит её собственная тень — css/v7.css */
.hv5__house { z-index: 3; pointer-events: none; }
/* перебиваем базовое .hero h1 { max-width: 9ch } — иначе слои позиционируются в узкой колонке */
/* без z-index: иначе h1 создаёт свой контекст наложения и цена не может лечь поверх дома */
.hero--v5 .hv5__title { position: absolute; inset: 0; width: auto; max-width: none; margin: 0;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: normal; }
.hv5__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* надпись вытянута вверх (origin снизу — низ остаётся за коньком) и тает книзу:
   градиент по тексту, поэтому вместо text-shadow берём drop-shadow — он идёт по альфе */
/* высота шапки фиксирована в px, а кадр тянется от ширины: на узких десктопах
   надпись наезжала на шапку. Кегль и отступ считаем так, чтобы верх букв всегда
   стоял на 90px, а низ уходил за конёк примерно на ту же долю, что на 1440 */
.hv5__line { position: absolute; z-index: 2; left: 0; right: 0;
  top: calc(90px + .16 * var(--hv5-line-size)); bottom: auto;
  --hv5-line-size: clamp(5.2vw, 17.016vw - 131.3px, 8.2vw);
  text-align: center; white-space: nowrap; font-size: var(--hv5-line-size); line-height: 1;
  font-weight: 600; letter-spacing: -.005em;
  /* Раньше отставание надписи гнали через собственную переменную --hv5-line-y внутри transform.
     Переменная — часть стиля, поэтому каждый кадр прокрутки шёл полный пересчёт стиля и
     перерисовка drop-shadow по огромной надписи: отсюда рывки. Теперь внешний слой держит
     ТОЛЬКО сдвиг (его GSAP пишет как translate3d — это чистая композиция на видеокарте),
     а растяжение, градиент и тень живут на внутреннем слое и не пересчитываются вовсе. */
  transform: translate3d(0,0,0); will-change: transform; }
.hv5__line > i { display: block; font-style: normal;
  transform: scaleY(var(--hv5-line-stretch, 1.16)); transform-origin: 50% 100%;
  background-image: linear-gradient(180deg, #fffdf7 0%, #fffdf7 52%, rgba(255,253,247,.62) 84%, rgba(255,253,247,.14) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 26px rgba(28,38,52,.42)); }
/* цена лежит на переднем скате: матрица = оси плоскости кровли (x — по карнизу, y — по уклону).
   Обмерено по самому рендеру (1440×810, масштаб 0.75 к hero6-house-wide):
   карниз y = 322.3 − 0.030x — идёт вверх вправо, рёбра −0.3085 (левое) и +0.329 (правое), вершина x≈727.
   Было matrix(1,.059,.14,.62): базовая линия шла ВНИЗ вправо против рядов черепицы — верх «7» выходил за ребро в небо,
   низ «₽» уходил ниже карниза на жёлоб. Сейчас b = −.03 — строго параллельно карнизу,
   c снижен до .04 (линия ската в кадре почти вертикальна), посадка — по центру треугольника ската.
   Кегль поднят 5.2 → 7vw (#31814, ОК Кости): предел скатa при зазорах 8px считается как
   x ≥ (95 + h)/0.2785 слева и x ≤ (368.5 − h)/0.359 справа, где h — высота капители после сжатия d;
   при 7vw h≈43px, окно 497..905 против ширины надписи 338 — по факту зазор 18px до ребра и 15px до карниза */
.hv5__price { position: absolute; z-index: 4; left: 0; right: 0; top: var(--hv5-price-top, 25.95%);
  text-align: center; font-size: var(--hv5-price-size, 7vw); line-height: 1; font-weight: 700;
  color: #fff;
  transform: translateX(var(--hv5-price-shift, -1.1%)) matrix(1, -.03, .04, .6, 0, 0);
  text-shadow: 0 .05em .02em rgba(18,20,24,.55), 0 .16em .3em rgba(10,14,18,.5); }
/* Знак рубля. Плоскость ската сжимает надпись по вертикали (d в матрице), и у ₽ первой
   пропадает перекладина — цена читалась как «7 млн р» (#1247). Знак получает встречное
   растяжение по своей оси: после общего сжатия он выходит нормальных пропорций, а цифры
   и «млн» остаются лежать на кровле как лежали. */
.hv5__rub { display: inline-block; font-style: normal;
  transform: scaleY(var(--hv5-rub-stretch, 1.32)); transform-origin: 50% 80%; }
.hv5__bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding-bottom: 10px; }
.hv5__panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,430px); gap: 34px;
  align-items: end; padding: 24px 30px 22px; color: #fff;
  background: linear-gradient(135deg, rgba(13,14,12,.86), rgba(13,14,12,.64));
  border: 1px solid rgba(255,255,255,.24); border-radius: 2px 30px 2px 2px;
  backdrop-filter: blur(10px); box-shadow: 0 30px 90px rgba(0,0,0,.34); }
.hv5__badges { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hero--v5 .hero__sub { margin: 14px 0 0; max-width: 46ch; }
/* Ипотека — главный оффер первого экрана (#1633): платёж в месяц крупнее подзаголовка,
   сумма — акцентом; вторая плашка (акция) приглушена, чтобы ипотека читалась первой */
.hero--v5 .hero__pay { margin: 14px 0 0; font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.15;
  font-weight: 600; color: #fff; letter-spacing: -.01em; }
.hero--v5 .hero__pay-sum { color: var(--accent); font-weight: 800; white-space: nowrap; }
.hero--v5 .hero__pay sup { font-size: .55em; opacity: .7; }
.hero--v5 .hero__sub { margin-top: 6px; font-size: clamp(.95rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.82); }
.hero--v5 .hero__promo--sale { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.hero--v5 .hero__note { grid-column: 1/-1; margin: 0; font-size: .72rem; line-height: 1.4; color: rgba(255,255,255,.62); }
/* Правая колонка плашки без полей: кнопка + сноска (#1636, подпись под кнопкой снята в #1680) */
.hero--v5 .hero__cta { display: grid; gap: 10px; align-content: end; }
.hero--v5 .hero__cta .btn { width: 100%; }
/* телефон: две плашки (ипотека + акция) должны стоять в одну строку — ужимаем поля */
@media (max-width: 900px) and (orientation: portrait) {
  .hv5__badges { gap: 6px; }
  .hero--v5 .hero__promo { padding: 6px 8px; margin-bottom: 0; letter-spacing: .02em; }
  .hero--v5 .hero__edition { margin-top: 10px; }
}
/* один факт на плашке (#1680) — одна колонка на всех ширинах */
.hero--v5 .hero__facts { margin: 16px 0 0; grid-template-columns: 1fr; gap: 14px; }
/* 1fr не даёт колонке сжаться уже min-content, и поля с длинным плейсхолдером
   вылезали за правый край плашки — фиксируем minmax(0,1fr) + min-width:0 */
.hero--v5 .hero__form { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero--v5 .hero__form input, .hero--v5 .hero__form .btn { min-width: 0; max-width: 100%; }
/* ниже 1100 панель больше не помещается поверх кадра — ставим её в поток под баннером */
@media (max-width: 1100px) {
  .hv5__bottom { position: relative; padding-bottom: 22px; margin-top: -54px; }
  .hv5__panel { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 900px) and (orientation: portrait) {
  .hero--v5 { background: linear-gradient(180deg,#8e969b,#c2cace 55%,#3a2410); }
  .hv5__frame { aspect-ratio: 3 / 4; }
  .hv5__line { top: auto; bottom: var(--hv5-line-bottom-m, 43.9%);
    --hv5-line-size: var(--hv5-line-size-m, 8.8vw); }
  /* портретный кадр — своя геометрия (390×520, hero6-house-portrait): карниз y = 331.9 − 0.039x,
     рёбра −0.290 / +0.336, вершина x≈206 — так же переуложено по карнизу и сдвинуто в середину ската */
  /* портретный скат у́же десктопного, поэтому потолок ниже: 8 → 10vw, зазоры 6px до ребра и до карниза */
  .hv5__price { top: var(--hv5-price-top-m, 55.8%); font-size: var(--hv5-price-size-m, 10vw);
    transform: translateX(var(--hv5-price-shift-m, -0.6%)) matrix(1, -.039, .04, .6, 0, 0); }
  .hv5__bottom { padding-bottom: 18px; margin-top: -46px; }
  .hv5__panel { padding: 18px 16px; border-radius: 2px 20px 2px 2px; }
  .hero--v5 .hero__form { grid-template-columns: 1fr; }
}

/* Верхний слой рисуется из того же файла, что и сцена, и обрезается маской силуэта:
   вырезано только небо, всё ниже кромки кровли остаётся как в рендере — дом не «висит».
   Кадр и картинка одного соотношения (16/9 и 3/4), object-fit ничего не подрезает,
   поэтому mask-size: 100% 100% ложится пиксель в пиксель. */
.hv5__house img {
  -webkit-mask-image: url(../assets/hero-v6/hero7-mask-wide.png?v=2);
          mask-image: url(../assets/hero-v6/hero7-mask-wide.png?v=2);
  -webkit-mask-size: 100% 100%;         mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;       mask-repeat: no-repeat;
  -webkit-mask-position: center;        mask-position: center;
}
@media (max-width: 900px) and (orientation: portrait) {
  .hv5__house img {
    -webkit-mask-image: url(../assets/hero-v6/hero7-mask-portrait.png?v=2);
            mask-image: url(../assets/hero-v6/hero7-mask-portrait.png?v=2);
  }
}

/* ================= ПЛАВНОСТЬ ПРОКРУТКИ (#32041) =================
   Замер на боевом 1440×900: проход страницы сверху донизу давал 29 кадров из 297 длиннее
   32 мс при худшем 150 мс — это и есть «дёргается». Поочерёдное отключение показало
   единственного виновника: матовое стекло. backdrop-filter стоял на 19 элементах, и браузер
   пересчитывает размытие на КАЖДОМ кадре, пока фон под плашкой едет. Без него — 1 тяжёлый
   кадр из 297.

   Лечим не удалением эффекта, а его расписанием: пока страница движется, стекло держит
   подобранный непрозрачный тон (визуально то же самое — под движущейся плашкой всё равно
   ничего не разглядеть), а как только прокрутка остановилась, размытие возвращается.
   Класс is-scrolling ставит скрипт. */

.topbar, .hv5__panel, .fincard, .shw__glass, .shw__next-preview {
  transition: background-color .16s ease-out, background-image .16s ease-out;
}
.is-scrolling .topbar,
.is-scrolling .hv5__panel,
.is-scrolling .fincard,
.is-scrolling .shw__glass,
.is-scrolling .shw__next-preview {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* подобранные тона «замершего» стекла — плотнее исходных ровно настолько,
   насколько размытие гасило картинку под собой */
.is-scrolling .topbar { background-color: rgba(251,249,245,.985); }
.is-scrolling .hv5__panel { background-image: linear-gradient(135deg, rgba(13,14,12,.94), rgba(13,14,12,.82)); }
.is-scrolling .fincard { background-color: rgba(255,255,255,.1); }
.is-scrolling .shw__glass { background-color: rgba(20,15,11,.74); }
.is-scrolling .shw__next-preview { background-color: rgba(18,14,10,.72); }

/* радиус 22px стоил дороже всех: цена размытия растёт с радиусом, а на глаз
   16 и 22 на такой площади не различаются */
.shw__glass { -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25); }

/* Слои параллакса. will-change включается скриптом только на время, пока блок в кадре:
   держать его постоянно на всех картинках — значит занять видеопамять впустую. */
.is-parallax { will-change: transform; backface-visibility: hidden; }
.stage__photo, .person, .fin__media, .morph { contain: paint; }

@media (prefers-reduced-motion: reduce) {
  .hv5__line { transform: none !important; }
  .is-parallax { will-change: auto; }
}

/* ============================================================
   ПРАВИЛО ДИЗАЙН-СИСТЕМЫ «ДОМ ОТКРЫТ» (правка Константина, 31.08, задача 1240)
   Поверх фотографии дома не лежит НИЧЕГО: ни стеклянных панелей,
   ни затемнения, ни бейджа. Мы продаём дом — кадр отдаётся целиком.
   Данные стоят рядом с кадром, на тёмном поле витрины.
   Раньше две стеклянные плашки закрывали левое крыло и небо над кровлей.
   ============================================================ */
.shw__photo::after { content: none; }
.shw__track { aspect-ratio: auto; }
.shw__slide {
  grid-template-columns: 1fr minmax(300px, 34%);
  grid-template-rows: auto 1fr;
  gap: 0; padding: 0; align-items: stretch;
}
/* Кадр 4:3 — родная пропорция рендеров. Раньше стойка 16:9 срезала
   у них четверть высоты: и небо над кровлей, и передний план. */
.shw__photo { position: relative; inset: auto; grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.shw__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; }
.shw__info, .shw__facts {
  grid-column: 2; max-width: none; justify-self: stretch;
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 0; border-left: 2px solid var(--accent); border-radius: 0; box-shadow: none;
}
.shw__info { grid-row: 1; align-self: end; padding: 32px 32px 6px; }
.shw__facts { grid-row: 2; align-self: start; padding: 14px 32px 32px; }
.is-scrolling .shw__info, .is-scrolling .shw__facts { background-color: transparent; }
/* Миниатюра следующего дома переехала из кадра в панель управления под витриной */
.shw__nav { justify-content: space-between; }
.shw__next-preview {
  position: static; z-index: auto; background: var(--surface); border: 1.5px solid rgba(28,29,31,.18);
  color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.shw__next-preview:hover { background: var(--bg-alt); border-color: var(--accent); }
.shw__next-preview b { color: var(--accent-ink); }
.is-scrolling .shw__next-preview { background-color: var(--surface); }

@media (max-width: 900px) {
  .shw__slide { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 0; padding: 0 0 28px; }
  .shw__photo { grid-column: 1; grid-row: 1; align-self: auto; }
  /* панель больше не наезжает на кадр: дом кончается — начинается текст */
  .shw__info { grid-column: 1; grid-row: 2; align-self: auto; margin: 0; padding: 22px 18px 6px; border-left: 0; border-top: 2px solid var(--accent); }
  .shw__facts { grid-column: 1; grid-row: 3; align-self: auto; margin: 0; padding: 6px 18px 22px; border-left: 0; }
}


/* ============================================================
   Витрина проектов на телефоне: управление внутри кадра (#32108)
   Стрелки, точки и миниатюра следующего дома лежат в ряду под
   витриной — а под ним на узком экране стоят ещё две панели с
   данными. До кнопок приходилось листать вниз, а потом обратно
   вверх, чтобы увидеть картинку. Дублируем управление в кадр.
   ============================================================ */
.shw__mnav { display: none; }

@media (max-width: 900px) {
  /* Коробка повторяет пропорцию кадра 4:3, поэтому кнопки всегда
     стоят по центру фотографии, а счётчик — у её нижней кромки. */
  .shw__mnav {
    display: block; position: absolute; left: 0; right: 0; top: 0;
    aspect-ratio: 4 / 3; z-index: 5; pointer-events: none;
  }
  .shw__mbtn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; display: grid; place-items: center;
    padding: 0 0 4px; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(245,241,234,.34);
    background: rgba(18,14,10,.5);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: #F5F1EA; font: 700 1.6rem/1 var(--font-body);
    pointer-events: auto;
    transition: background .2s ease, transform .2s ease;
  }
  .shw__mbtn--prev { left: 10px; }
  .shw__mbtn--next { right: 10px; }
  .shw__mbtn:active { background: rgba(18,14,10,.8); transform: translateY(-50%) scale(.94); }
  .shw__mbtn:focus-visible { outline: 2px solid #F0C48A; outline-offset: 3px; }
  .shw__mcount {
    position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
    padding: 5px 15px; border-radius: 100px;
    border: 1px solid rgba(245,241,234,.28);
    background: rgba(18,14,10,.55);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: rgba(245,241,234,.9); font: 600 .82rem var(--font-mono); letter-spacing: .04em;
  }
  .shw__mcount b { color: #F0C48A; }
  /* Два органа управления на одном экране не нужны */
  .shw__nav { display: none; }
  /* Браузер отдаёт нам горизонтальный жест, вертикальный оставляет себе */
  .shw__track { touch-action: pan-y; }
}

/* ---------- Шапка на телефоне: логотип + трубка + заявка в одну строку ----------
   Блок стоит в конце файла осознанно: ширина логотипа задаётся выше дважды
   (базовый слой 150px и редакционный 142px), и правило из середины файла
   переопределялось обратно — строка смыкалась впритык, трубка липла к логотипу. */
@media (max-width: 560px) {
  .topbar__logo img { width: 108px; }
  .topbar__right { gap: 12px; }
  .topbar .btn--sm { padding: 9px 14px; }
}

/* ---------- Уведомление о cookie (#1234) ----------
   Полоса внизу экрана, не поверх героя: по ДС на фотографию дома ничего не ложится.
   Движение — одно правило страницы: проявление 350 мс со сдвигом 12 px, один раз.
   z-index: 70 — выше шапки (60), ниже квиз-модалки (80). */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 18px; z-index: 70;
  display: flex; align-items: center; gap: 20px;
  width: min(980px, calc(100% - 36px)); margin: 0 auto; padding: 14px 18px;
  border: 1px solid rgba(245,241,234,.16); border-radius: var(--r-md);
  background: rgba(23,24,20,.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--sh-d2);
  color: rgba(245,241,234,.88);
  opacity: 0; transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
}
.cookie.is-visible { opacity: 1; transform: none; }
.cookie__text { font-size: .82rem; line-height: 1.45; }
.cookie__text a { color: var(--accent-on-dark); text-decoration: underline; text-underline-offset: 2px; }
.cookie__text a:hover { color: #fff; }
.cookie .btn { flex: 0 0 auto; }

/* Телефон: не «карточка на треть экрана», а узкая строка по нижней кромке — она не
   закрывает кнопку первого экрана, ради которой человек и пришёл (#1682, Костя 22.09.2026) */
@media (max-width: 640px) {
  .cookie { bottom: 0; left: 0; right: 0; width: 100%; gap: 10px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .cookie__text { font-size: .68rem; line-height: 1.3; }
  .cookie .btn { padding: 8px 14px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie { transition: none; }
}

/* Документы в согласии кликабельны (#1234): на тёмной панели героя — та же строка,
   но подчёркнутая; в квизе фон светлый, поэтому ссылка красится охрой. */
.agree a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.agree a:hover { color: #fff; }
.quiz__fields .agree a { color: var(--accent-ink); }
.quiz__fields .agree a:hover { color: var(--ink); }

/* Карточка объекта в ленте «Реализованные проекты»: кадр + подпись объекта.
   Раньше в ленте лежали голые <picture>, и человек не понимал, какой это дом и из
   чего он построен. Подпись лежит поверх кадра на затемнении — так она читается на
   светлом небе и на тёмной кровле одинаково. */
.gcar__track .gcard { flex:0 0 auto; position:relative; margin:0; border-radius:var(--r-sig); overflow:hidden; }
.gcar__track .gcard img { border-radius:0; }
.gcard figcaption {
  position:absolute; left:0; right:0; bottom:0; padding:44px 18px 14px; color:#fff; pointer-events:none;
  background:linear-gradient(to top, rgba(16,17,15,.88) 0%, rgba(16,17,15,.62) 46%, rgba(16,17,15,0) 100%);
}
.gcard figcaption span { display:block; margin-bottom:5px; font:600 .6rem var(--font-mono); letter-spacing:.15em; text-transform:uppercase; opacity:.9; }
.gcard figcaption b { display:block; font:600 1.05rem/1.2 var(--font-head); letter-spacing:-.01em; }
@media (max-width: 900px) {
  .gcard figcaption { padding:34px 13px 11px; }
  .gcard figcaption span { font-size:.54rem; letter-spacing:.12em; }
  .gcard figcaption b { font-size:.92rem; }
}
.gcard--more figcaption { padding-top:32px; background:linear-gradient(to top, rgba(16,17,15,.82) 0%, rgba(16,17,15,.5) 52%, rgba(16,17,15,0) 100%); }
.gcard--more figcaption b { font-size:.92rem; opacity:.94; }
@media (max-width: 900px) { .gcard--more figcaption b { font-size:.82rem; } }

/* ---------- Окно планировки проекта (кнопка на карточке каталога) ---------- */
.plan { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.plan[hidden] { display: none; }
.plan__back { position: absolute; inset: 0; background: rgba(28,29,31,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.plan__modal {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  width: min(1020px, calc(100vw - 32px)); max-height: min(92vh, 940px); padding: 26px 26px 20px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.plan__close { position: absolute; top: 8px; right: 14px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.plan__close:hover { color: var(--ink); }
.plan__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-right: 30px; }
.plan__title { margin: 0; font: 700 clamp(1.3rem, 2.4vw, 1.75rem)/1.1 var(--font-head); letter-spacing: -.01em; }
.plan__facts { margin: 5px 0 0; color: var(--ink-soft); font-size: .95rem; }
.plan__tabs { display: flex; gap: 8px; }
.plan__tab { font: 600 .9rem var(--font-body); padding: 9px 16px; border-radius: 100px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .18s ease; }
.plan__tab:hover { border-color: var(--accent); }
.plan__tab.is-active { border-color: var(--accent); background: rgba(198,138,74,.12); color: var(--accent-ink); }
.plan__figure { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: 12px; overflow: auto; cursor: zoom-in; }
.plan__figure img { display: block; max-width: 100%; max-height: 66vh; object-fit: contain; }
/* Клик по планировке — режим разглядывания: картинка встаёт в натуральную ширину,
   кадр прокручивается. На телефоне иначе не прочитать метраж комнат. */
.plan__figure.is-zoom { cursor: zoom-out; align-items: flex-start; justify-content: flex-start; }
.plan__figure.is-zoom img { max-width: none; max-height: none; width: 1600px; }
.plan__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.plan__note { margin: 0; color: var(--ink-soft); font-size: .9rem; max-width: 48ch; }
@media (max-width: 700px) {
  .plan { padding: 0; }
  .plan__modal { width: 100vw; height: 100%; max-height: 100vh; border-radius: 0; padding: 18px 14px 14px; gap: 12px; }
  .plan__head { padding-right: 34px; }
  .plan__figure img { max-height: 56vh; }
  .plan__foot .btn { width: 100%; }
  .plan__note { font-size: .85rem; }
}

/* Кнопка «Все отзывы на Яндекс Картах» под лентой отзывов. Секция тёмная, поэтому
   обводка и текст идут охрой для тёмного фона (--accent-on-dark, 8,7:1): базовый
   .btn--outline рисуется цветом --ink и на #171814 сливается с фоном. */
.reviews .reviews__all { margin-top: 32px; border-color: var(--accent-on-dark); color: var(--accent-on-dark); background: transparent; }
.reviews .reviews__all:hover { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: #171814; }
.reviews .reviews__all:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 3px; }

/* ================= ПЕРВЫЙ ЭКРАН НА ТЕЛЕФОНЕ (#1682, список Кости 22.09.2026) =========
   Разбор эталона показал одно: с рекламы человек должен за две секунды увидеть ЧТО и
   ПОЧЁМ и сразу кнопку. У нас метраж с ценой лежали на полупрозрачной табличке в руке,
   заголовок резался коньком крыши, а кнопка уходила за нижнюю кромку экрана (её низ
   приходился на 698 px из 700 доступных в Safari с обеими панелями).
   Правим только телефон: на ПК места хватает и надпись за домом читается целиком.
   Пункты ниже — по нумерации списка Кости. ============================================ */
.hv5__head { display: none; }            /* на ПК оффер несут надпись на крыше и стойка в руке */

@media (max-width: 900px) and (orientation: portrait) {
  /* 3. Заголовок больше не наезжает на конёк: надпись с крыши снята. h1 остаётся в
        разметке (не display:none) — его читают поиск и экранный диктор. */
  .hero--v5 .hv5__title { position: absolute; inset: auto auto 0 0; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); }
  /* 4. Табличка в руке убрана — кирпич и дом видны целиком, цифра уехала в заголовок */
  .hero--v5 .sh-out { display: none; }
  /* Слой «дом по маске силуэта» и вуаль нижней кромки на телефоне не нужны: первый
     держал надпись за кровлей, вторая растворяла руку со стойкой — ни того, ни другого
     на телефоне нет. Заодно снимаем расхождение: маски силуэтов нарезаны под прежний
     квадрат, а кадры пересобраны (#1682). */
  .hero--v5 .hv5__house, .hero--v5 .sh-veil { display: none; }
  /* 12. ДОМ ЦЕЛИКОМ (Костя, 22.09.2026: «дома сильно урезаны, ощущение собственного
        дома теряется»). Рендер под телефон — квадрат 1200×1200, и кадр обязан быть той
        же пропорции. При 3/3.45 object-fit:cover срезал картинку по бокам, а маска
        силуэта (mask-size:100% 100%) тянулась на всю ячейку и расходилась с кадром —
        кровля выходила обрезанной, дом читался аппликацией. 1/1 — крой ноль, маска
        пиксель в пиксель; ту же пропорцию задаёт css/v7.css (там 1/1 стояло изначально). */
  .hero--v5 .hv5__frame { aspect-ratio: 1 / 0.9; }
  /* кадр чуть ниже квадрата — лишнее небо срезаем СВЕРХУ, дом снизу не трогаем */
  .hero--v5 .hv5__frame img { object-position: center bottom; }
  /* низ кадра растворяется в плашке, а не обрывается прямой кромкой: земля уходит
     в тёмное — как на эталоне «Яблоневой долины», который прислал Костя */
  /* Костя 23.09: «градиент залезает на дом слишком сильно» — на рендерах, где дом стоит
     низко (Энергия, шалаш), тень накрывала крыльцо и цоколь. Затемнение начинается вдвое
     ниже и до 88% высоты остаётся почти незаметным: растворяется только земля у кромки. */
  .hero--v5 .hv5__frame::after { content: ""; position: absolute; inset: 0; z-index: 5;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(13,14,12,0) 78%, rgba(13,14,12,.12) 88%,
                                rgba(13,14,12,.5) 95%, rgba(13,14,12,.88) 98.5%, #0d0e0c 100%); }

  /* 5. Шапка вдвое ниже: логотип мельче, номер цифрами, трубка; «Оставить заявку» снята —
        кнопка и так стоит на плашке первого экрана */
  .topbar__in { min-height: 46px; padding-top: 6px; padding-bottom: 6px; }
  .topbar__logo img { width: 94px; }
  .topbar__phone { display: inline-block; font-size: .82rem; }
  .topbar__right { gap: 8px; }
  .topbar .btn--sm[data-quiz-flow="callback"] { display: none; }
  .topbar__call { flex: 0 0 38px; width: 38px; height: 38px; }
  .topbar__call svg { width: 18px; height: 18px; }

  /* 6 и 11. Надзаголовок «Бестселлер 2026 · проект …» и строка про банки — не оффер:
        первая уходит совсем, вторая живёт ниже по странице, в блоке про смету */
  .hero--v5 .hero__edition, .hero--v5 .hero__facts { display: none; }

  /* 13. ПЛАШКА РАЗГРУЖЕНА ДО ЭТАЛОНА (Костя, 22.09.2026: «плашка всё равно перегружена»).
        На первом экране остаются три вещи: оффер, платёж и кнопка. Плашки «Семейная
        ипотека 6%» и «Акция до 31 октября» сняты — ипотека и так стоит строкой платежа,
        а срок акции живёт ниже по странице. Характеристики дома («кирпичный дом
        с 3 спальнями · 1,5 месяца») — в каталоге. На ПК всё это остаётся. */
  .hero--v5 .hv5__badges { display: none; }

  /* 2. Оффер-заголовок: метраж и цена крупно, платёж — строкой ниже и мельче.
        Место, которое освободили бейджи и характеристики, отдано кеглю. */
  .hv5__head { display: block; margin: 2px 0 0; color: #fff;
    font: 700 clamp(1.6rem, 8vw, 2.25rem)/1.05 var(--font-head);
    text-transform: uppercase; letter-spacing: -.015em; }
  /* метраж и цена — два нерасщепляемых блока: когда цена длинная («от 18,5 млн ₽»),
     строка переносится между ними целиком, а не рвётся посередине числа.
     Цена всегда идёт второй строкой — у всех домов одна и та же посадка оффера. */
  .hv5__head-area, .hv5__head-price { white-space: nowrap; }
  .hv5__head-price { display: block; color: var(--accent-on-dark); }
  .hero--v5 .hero__pay { margin-top: 7px; font-size: .95rem; line-height: 1.25; font-weight: 500;
    color: rgba(255,255,255,.88); }
  .hero--v5 .hero__pay-sum { color: #fff; font-weight: 700; }
  .hero--v5 .hero__sub { display: none; }

  /* Цифры оффера подменяются на полпути растворения. Гасить их почти в ноль, как на ПК
     (opacity .15), на телефоне нельзя: оффер — главное, что человек читает, а смена домов
     идёт вдвое чаще прежнего. Оставляем мягкое притухание — цифра меняется, но строка
     не пропадает. */
  .hero--v5 .hv5__offer.is-swap { opacity: .55; }

  /* 7. Точки-переключатели на телефоне сняты (Костя: «переключение по точкам с телефона
        не удобно»). Дома меняются сами — перекрёстным растворением раз в 4,5 с, кадр
        уходит и новый проявляется одновременно (AUTO_MS/FADE_MS в index.html).
        На ПК точки остаются: там курсор и место под них есть. */
  .hero--v5 .hv5__dots { display: none; }

  /* 8. Кнопка — во всю ширину и контрастнее: та же фирменная охра, которой набрана цена,
        но фоном и с тёмным текстом (8:1 против 3,3:1 у прежней тёмно-охристой на чёрном) */
  .hero--v5 .hero__cta { gap: 7px; }
  .hero--v5 .hero__cta .btn { background: var(--accent-on-dark); color: #1C1D1F;
    font-size: 1.06rem; padding: 16px 20px; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
  .hero--v5 .hero__note { font-size: .64rem; }

  /* 1. Кнопка в экране. Плашка больше не отдельная карточка поверх кадра: на телефоне
        она идёт во всю ширину, без рамки и скруглений, и продолжает кадр тем же тоном,
        в который растворяется низ фотографии. Матовое стекло на телефоне выключено —
        под сплошным фоном его всё равно не видно, а пересчёт размытия стоит кадров. */
  /* полей у плашки снизу нет: иначе между ней и следующим экраном светит полоса
     фона секции — плашка должна заканчивать первый экран сама */
  .hv5__bottom { padding: 0; margin-top: 0; }
  .hv5__panel { padding: 0 16px 14px; gap: 10px; background: #0d0e0c;
    border: 0; border-radius: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* фото техдиректора отдаётся как <picture> — убираем инлайновый зазор */
.person picture { display: block; }
