/* Токены из Figma: коллекции «5У · Цвета», «5У · Размеры», текстовые стили «5У/…». */
:root {
  --color-bg-page: #fcfbf7;
  --color-bg-section: #f6f2e9;
  --color-bg-surface: #ffffff;
  --color-bg-brand: #054448;
  --color-bg-brand-deep: #053638;
  --color-bg-brand-soft: #eef7f4;
  --color-bg-brand-muted: #ddf0ec;
  --color-bg-accent: #ef7836;
  --color-bg-accent-hover: #d9622a;
  --color-bg-highlight: #ddf5c9;
  --color-bg-success-soft: #d4f7ea;
  --color-text-primary: #13292a;
  --color-text-secondary: #3d4e4c;
  --color-text-muted: #6e807d;
  --color-text-brand: #054448;
  --color-text-link: #107a82;
  --color-text-on-brand: #ffffff;
  --color-text-on-brand-muted: #bfe3dd;
  --color-text-accent: #b9531c;
  --color-text-success: #0e8f70;
  --color-text-rating: #f2b544;
  --color-border-default: #dde3df;
  --color-border-strong: #bfe3dd;
  --color-border-brand: #107a82;
  --color-icon-brand: #107a82;
  --color-icon-on-brand: #19cda2;
  --overlay: rgba(3, 38, 40, .55);

  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-2xl: 32px; --radius-full: 999px;

  --shadow-card: 0 8px 24px rgba(5, 54, 56, .08);
  --shadow-float: 0 16px 40px rgba(5, 54, 56, .14);

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1280px;
  --gutter: 80px;
  --section-gap: 120px;
}
@media (max-width: 1279px) { :root { --gutter: 40px; --section-gap: 96px; } }
@media (max-width: 767px) { :root { --gutter: 16px; --section-gap: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--color-text-primary); background: var(--color-bg-page); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; }
:focus-visible { outline: 2px solid var(--color-border-brand); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { margin-top: var(--section-gap); }

/* Типографика — текстовые стили «5У/…» */
.display { font-size: 55px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.h1 { font-size: 40px; font-weight: 700; line-height: 1.3; letter-spacing: -.5px; }
.h2 { font-size: 36px; font-weight: 600; line-height: 42px; letter-spacing: -1px; }
.h3 { font-size: 26px; font-weight: 600; line-height: 1.4; letter-spacing: -.5px; }
.h4 { font-size: 20px; font-weight: 600; line-height: 26px; }
.lead { font-size: 20px; line-height: 1.4; }
.body { font-size: 17px; line-height: 1.5; }
.body-m { font-size: 17px; font-weight: 500; line-height: 1.4; }
.body-s { font-size: 15px; line-height: 1.4; }
.body-s-m { font-size: 15px; font-weight: 500; line-height: 22px; }
.caption { font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: .5px; }
.overline { font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-accent); }
.muted { color: var(--color-text-muted); }
.secondary { color: var(--color-text-secondary); }
.brand { color: var(--color-text-brand); }

@media (max-width: 1279px) {
  .display { font-size: 44px; }
  .h1 { font-size: 34px; }
  .h2 { font-size: 30px; line-height: 36px; }
}
@media (max-width: 767px) {
  .display { font-size: 32px; letter-spacing: -.5px; }
  .h1 { font-size: 28px; }
  .h2 { font-size: 26px; line-height: 32px; letter-spacing: -.5px; }
  .h3 { font-size: 22px; }
  .h4 { font-size: 18px; line-height: 24px; }
  .lead { font-size: 17px; }
  body, .body { font-size: 16px; }
}

.i-14 { width: 14px; height: 14px; flex: none; }
.i-24 { width: 24px; height: 24px; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Кнопки — компонент Button (Primary / Secondary / Ghost / On dark × L / M).
   Ховер меняет только цвет: ширина и положение не меняются. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); border-radius: var(--radius-md); font-size: 16px; font-weight: 600; line-height: 1.4; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.btn--l { padding: 16px 32px; }
.btn--m { padding: 12px 24px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--color-bg-accent); color: var(--color-text-on-brand); }
.btn--primary:hover { background: var(--color-bg-accent-hover); }
.btn--secondary { background: transparent; color: var(--color-text-brand); box-shadow: inset 0 0 0 1.5px var(--color-border-brand); }
.btn--secondary:hover { background: var(--color-bg-brand-soft); }
.btn--ondark { background: var(--color-bg-surface); color: var(--color-text-brand); }
.btn--ondark:hover { background: var(--color-bg-brand-soft); }
.btn--ghost { color: var(--color-text-link); padding-left: 0; padding-right: 0; }
.btn--ghost:hover { color: var(--color-text-brand); }
.btn svg { width: 24px; height: 24px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; line-height: 22px; color: var(--color-text-link); }
.link-arrow svg { width: 24px; height: 24px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Соцсети */
.socials { display: flex; gap: var(--space-xs); }
.socials__item { width: 32px; height: 32px; border-radius: 50%; background: #f5f5f5; color: var(--color-text-brand); display: grid; place-items: center; transition: background-color .2s; }
.socials__item svg { width: 32px; height: 32px; }
.socials__item:hover { background: var(--color-bg-brand-muted); }

/* Тег на фото */
.tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-full); background: var(--color-bg-section); color: var(--color-text-brand); font-size: 13px; font-weight: 500; line-height: 18px; }
.tag--brand { background: var(--color-bg-brand); color: var(--color-text-on-brand); }

/* Заголовок секции: слева заголовок, справа подводка */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.section-head__text { max-width: 420px; color: var(--color-text-secondary); font-size: 15px; line-height: 1.4; }
.section-head .h2 { color: var(--color-text-brand); }
@media (max-width: 767px) { .section-head { flex-direction: column; align-items: flex-start; gap: var(--space-sm); margin-bottom: var(--space-lg); } }

/* Карточка-поверхность */
.card { background: var(--color-bg-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }

/* Поля и выбор */
.field { display: grid; gap: 6px; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--color-border-default); border-radius: var(--radius-md); background: var(--color-bg-surface); color: var(--color-text-primary); font-size: 16px; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-border-brand); }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid var(--color-border-default); font-size: 15px; font-weight: 500; transition: background-color .2s, border-color .2s; }
.chip input:checked + span { background: var(--color-bg-brand-muted); border-color: var(--color-border-brand); color: var(--color-text-brand); }
.chip input:focus-visible + span { outline: 2px solid var(--color-border-brand); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--color-text-muted); }
.consent input { margin-top: 2px; accent-color: var(--color-border-brand); }

/* Модальное окно формы */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--space-md); background: rgba(3, 38, 40, .55); }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; padding: var(--space-xl); border-radius: var(--radius-xl); background: var(--color-bg-surface); box-shadow: var(--shadow-float); }
.modal__close { position: absolute; top: 16px; right: 16px; color: var(--color-icon-brand); }
.modal__lead { margin: var(--space-xs) 0 var(--space-lg); color: var(--color-text-secondary); }
.form { display: grid; gap: var(--space-md); }
.contact-way { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.contact-way legend { width: 100%; margin-bottom: 6px; }
.form__note { color: var(--color-text-muted); text-align: center; }
.form.is-sent { opacity: .5; pointer-events: none; }

/* Шапка. header--float — поверх первого экрана главной (белая плашка со скруглением);
   header--solid — на внутренних страницах. При прокрутке закрепляется сверху. */
.header { z-index: 50; }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding: 12px 12px 12px 20px; background: var(--color-bg-surface); border-radius: 20px; }
.header__logo img { width: 146px; height: auto; }
.header__nav { display: flex; align-items: center; gap: 14px; }
.nav-item { position: relative; }
.nav-item__link { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; font-size: 15px; font-weight: 500; line-height: 22px; color: var(--color-text-brand); white-space: nowrap; }
.nav-item__link svg { color: var(--color-icon-brand); transition: transform .2s; }
.nav-item.is-open .nav-item__link svg { transform: rotate(180deg); }
.nav-item__link:hover { color: var(--color-text-link); }
.dropdown { position: absolute; top: calc(100% + 10px); left: -16px; min-width: 220px; padding: 8px; display: grid; background: var(--color-bg-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s; }
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dropdown a { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--color-text-brand); }
.dropdown a:hover { background: var(--color-bg-brand-soft); }
.nav-item.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .nav-item[data-dropdown]:hover .dropdown { opacity: 1; visibility: visible; transform: none; } }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { font-size: 15px; font-weight: 700; line-height: 22px; color: var(--color-text-brand); white-space: nowrap; }
.header__call, .header__burger { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; color: var(--color-icon-brand); }
.header__call { background: var(--color-bg-accent); color: #fff; }

.header--float { position: absolute; top: 24px; left: 24px; right: 24px; }
.header--float .header__bar { backdrop-filter: blur(12px); }
.header--solid { position: sticky; top: 0; padding: 12px 24px; background: var(--color-bg-page); }
.header--solid .header__bar { box-shadow: 0 0 0 1px var(--color-border-default); }

/* Закреплённая шапка после прокрутки (на главной плавающая превращается в липкую) */
.header.is-stuck { position: fixed; top: 12px; left: 24px; right: 24px; padding: 0; background: none; animation: header-in .25s ease; }
.header.is-stuck .header__bar { box-shadow: var(--shadow-float); }
.header.is-hidden { transform: translateY(-120%); transition: transform .25s; }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }

@media (max-width: 1279px) {
  .header__nav, .header__actions .socials, .header__actions .btn { display: none; }
  .header__call, .header__burger { display: grid; }
  .header__actions { gap: 8px; }
  .header__phone { font-size: 14px; }
  /* Мобильное меню: раскрывается списком под шапкой */
  .header.is-menu .header__bar { border-radius: 20px 20px 0 0; }
  .header.is-menu .header__nav { display: grid; position: absolute; left: 0; right: 0; top: 100%; gap: 0; padding: 8px 20px 20px; background: var(--color-bg-surface); border-radius: 0 0 20px 20px; box-shadow: var(--shadow-float); max-height: calc(100vh - 120px); overflow: auto; }
  .header.is-menu .nav-item__link { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--color-border-default); }
  .header.is-menu .dropdown { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 4px 0 8px; }
  .header.is-menu .nav-item.is-open .dropdown { display: grid; }
}
@media (max-width: 767px) {
  .header--float { top: 12px; left: 12px; right: 12px; }
  .header.is-stuck { top: 8px; left: 8px; right: 8px; }
  .header__bar { padding: 8px 8px 8px 14px; }
  .header__logo img { width: 120px; }
  .header__phone { display: none; }
  .header--solid { padding: 8px; }
}

.footer { padding: var(--section-gap) 16px 16px; }
.footer__card { max-width: 1408px; margin: 0 auto; padding: 40px; border-radius: 28px; background: var(--color-bg-brand); color: var(--color-text-on-brand); display: grid; gap: 28px; }
.footer__main { display: grid; grid-template-columns: 432px 1fr; gap: 28px; }
.footer__info { display: grid; gap: 28px; align-content: start; }
.footer__top { display: flex; justify-content: space-between; align-items: center; }
.footer__logo img { width: 173px; height: auto; }
.footer__menu { display: flex; gap: 40px; }
.footer__menu div { display: grid; gap: 8px; align-content: start; }
.footer__menu a { font-size: 15px; line-height: 1.4; }
.footer__menu a:hover, .footer__info a:hover { color: var(--color-icon-on-brand); }
.footer__label { color: var(--color-icon-on-brand); margin-bottom: 4px; }
.footer__contact { display: grid; gap: 8px; }
.footer__phone { font-size: 26px; font-weight: 600; line-height: 36px; }
.footer__muted { color: var(--color-text-on-brand-muted); }
.footer__map { position: relative; min-height: 384px; border-radius: var(--radius-xl); overflow: hidden; background: var(--color-bg-brand-muted); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.footer__map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footer__office { position: absolute; left: 20px; bottom: 20px; max-width: 400px; padding: 20px; border-radius: 18px; background: var(--color-bg-surface); color: var(--color-text-primary); display: grid; gap: 4px; }
.footer__office-note { color: var(--color-text-muted); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.footer__studio { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.footer__studio img { width: 40px; height: auto; }
@media (max-width: 1023px) { .footer__main { grid-template-columns: 1fr; } .footer__map { min-height: 300px; } }
@media (max-width: 767px) {
  .footer { padding: var(--section-gap) 8px 8px; }
  .footer__card { padding: 24px 20px; border-radius: 24px; }
  .footer__menu { gap: 24px; }
  .footer__phone { font-size: 22px; }
  .footer__office { left: 12px; right: 12px; bottom: 12px; padding: 14px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ——— Главная ——— */

/* Первый экран */
.hero { position: relative; margin: 16px; min-height: 840px; border-radius: var(--radius-2xl); overflow: hidden; color: var(--color-text-on-brand); display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
/* Затемнение слева под текстом и снизу; справа фото почти без затемнения */
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 38, 40, 0) 60%, rgba(3, 38, 40, .55) 100%), linear-gradient(90deg, rgba(3, 38, 40, .88) 0%, rgba(3, 38, 40, .45) 55%, rgba(3, 38, 40, .05) 100%); }
.hero__content { position: relative; z-index: 1; width: 100%; max-width: 908px; padding: 0 0 56px 55px; display: grid; gap: 28px; }
.hero__lead { max-width: 600px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__mortgage { position: absolute; z-index: 1; right: 40px; bottom: 56px; width: 425px; display: flex; gap: 16px; padding: 14px 24px 14px 14px; border-radius: var(--radius-xl); background: var(--color-bg-surface); color: var(--color-text-primary); backdrop-filter: blur(12px); transition: box-shadow .2s; }
.hero__mortgage:hover { box-shadow: var(--shadow-float); }
.hero__mortgage img { width: 120px; height: auto; align-self: stretch; object-fit: cover; border-radius: 14px; }
.hero__mortgage-text { display: grid; gap: 6px; align-content: start; }

@media (max-width: 1279px) {
  .hero { min-height: 760px; }
  .hero__content { padding: 0 40px 220px; }
  .hero__mortgage { left: 40px; right: auto; bottom: 40px; }
}
@media (max-width: 767px) {
  .hero { margin: 8px; min-height: 680px; border-radius: 24px; }
  .hero__content { padding: 0 20px 200px; gap: 20px; }
  .hero__lead br { display: none; }
  .hero__actions .btn { width: 100%; }
  .hero__mortgage { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 10px 14px 10px 10px; gap: 12px; }
  .hero__mortgage img { width: 84px; }
  .hero__mortgage .h4 { font-size: 17px; }
}

/* ——— Главная: секции после первого экрана ——— */
.flip { transform: rotate(180deg); }
.accent { color: var(--color-text-accent); }
.section-head__aside { max-width: 420px; }
.section-head--center { align-items: center; }
.section-head--even { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.section-head .h1 { color: var(--color-text-brand); }
.round-btn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--color-text-brand); box-shadow: inset 0 0 0 1px var(--color-border-brand); transition: background-color .2s, opacity .2s; }
.round-btn:hover { background: var(--color-bg-brand-soft); }
.round-btn:disabled { opacity: .35; cursor: default; background: none; }
.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dots li { position: relative; padding-left: 18px; }
.dots li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-icon-brand); }

/* Карточка с фото-подложкой и затемнением */
.tech__card, .built, .open__visit, .invite__card--photo { position: relative; overflow: hidden; isolation: isolate; }
.tech__card > img, .built > img, .open__visit > img, .invite__card--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.tech__card::after, .built::after, .open__visit::after, .invite__card--photo::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.tech__card:hover > img, .built:hover > img { transform: scale(1.03); }

/* Проекты по технологиям */
.tech { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 272px 272px; gap: 16px 28px; }
.tech__card { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 24px; border-radius: 28px; color: var(--color-text-on-brand); }
.tech__card::after { background: linear-gradient(180deg, rgba(3, 38, 40, 0) 30%, rgba(3, 38, 40, .66) 100%); }
.tech__card--main { grid-row: 1 / 3; }
.tech__foot { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tech__text { display: grid; gap: 6px; }
.tech__title { font-size: 32px; font-weight: 700; line-height: 1.3; letter-spacing: -.16px; }
.tech__card .btn { flex: none; }
.tech__card:hover .btn { background: var(--color-bg-brand-soft); }

/* Построенные дома — слайдер */
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 2); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.built { scroll-snap-align: start; height: 420px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 24px; border-radius: 28px; color: var(--color-text-on-brand); }
.built::after { background: linear-gradient(180deg, rgba(3, 38, 40, 0) 55%, rgba(3, 38, 40, .7) 100%); }
.built__text { display: grid; gap: 10px; }
.slider__nav { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }

/* Стоимость и финансирование */
.fin { display: grid; grid-template-columns: 408px 1fr; gap: 28px; }
.fin__card { display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: var(--radius-xl); background: var(--color-bg-surface); }
.fin__card--escrow { background: var(--color-bg-brand-soft); justify-content: space-between; }
.fin__intro { display: grid; gap: 12px; }
.fin__point { display: grid; gap: 8px; }
.fin__link { padding: 12px 0; margin-top: auto; align-self: flex-start; font-size: 16px; font-weight: 600; }
.fin__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fin__steps li { display: grid; gap: 12px; align-content: start; }
.fin__safe { display: grid; gap: 8px; padding: 24px; border-radius: var(--radius-xl); background: var(--color-bg-surface); }
.fin__extra { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius-xl); background: var(--color-bg-section); }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; align-items: start; }
.acc { padding: 32px; border-radius: var(--radius-xl); background: var(--color-bg-surface); }
.acc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; cursor: pointer; list-style: none; }
.acc__head::-webkit-details-marker { display: none; }
.acc__title { display: grid; gap: 12px; }
.acc__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--color-bg-brand-soft); color: var(--color-icon-brand); transition: transform .25s, background-color .2s; }
.acc__head:hover .acc__icon { background: var(--color-bg-brand-muted); }
.acc[open] .acc__icon { transform: rotate(45deg); }
.acc__body { display: grid; gap: 24px; justify-items: start; margin-top: 24px; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.spec th { padding: 12px; text-align: left; font-size: 13px; font-weight: 500; color: var(--color-text-brand); background: var(--color-bg-brand-soft); }
.spec th:first-child { border-radius: 16px 0 0 16px; font-size: 15px; }
.spec th:last-child { border-radius: 0 16px 16px 0; }
.spec td { padding: 12px; border-bottom: 1px solid var(--color-border-default); color: var(--color-text-secondary); }
.spec td:first-child { color: var(--color-text-primary); }

/* С нами строить спокойно */
.calm { position: relative; margin: var(--section-gap) 16px 0; border-radius: var(--radius-2xl); overflow: hidden; isolation: isolate; color: var(--color-text-on-brand); }
.calm__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.calm::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 38, 40, .55) 0%, rgba(3, 38, 40, .05) 50%, rgba(3, 38, 40, .6) 100%), rgba(3, 38, 40, .1); }
.calm__inner { max-width: calc(var(--container) + 2 * var(--gutter) - 32px); min-height: 810px; margin: 0 auto; padding: 60px calc(var(--gutter) - 16px); display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
.calm__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.calm__card { display: flex; flex-direction: column; gap: 10px; min-height: 196px; padding: 26px; border-radius: 22px; background: rgba(37, 37, 37, .2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.calm__card--light { background: var(--color-bg-surface); color: var(--color-text-primary); }
.calm__card--light .body-s { color: var(--color-text-secondary); }
.calm__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--color-bg-highlight); color: var(--color-text-brand); }
.calm__icon svg { width: 18px; height: 18px; }

/* Показываем стройку до договора */
.open { display: grid; grid-template-columns: 1fr 517px; gap: 28px; }
.open__main { display: grid; gap: 28px; align-content: start; padding: 40px; border-radius: 28px; background: var(--color-bg-section); }
.open__head { display: grid; gap: 16px; }
.open__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.open__card { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: 20px; background: var(--color-bg-surface); color: var(--color-text-muted); }
.open__card b { color: var(--color-text-brand); }
.open__icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--color-bg-brand-soft); color: var(--color-icon-brand); }
.open__icon svg { width: 22px; height: 22px; }
.open__visit { display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border-radius: 28px; }
.open__visit::after { background: linear-gradient(180deg, rgba(3, 38, 40, 0) 20%, rgba(3, 38, 40, .6) 100%); }
.open__form { gap: 14px; padding: 28px; border-radius: 22px; background: var(--color-bg-surface); }
.form__done { color: var(--color-text-success); }

/* Как мы работаем */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stage { overflow: hidden; border-radius: 22px; background: var(--color-bg-surface); }
.stage img { width: 100%; height: 250px; object-fit: cover; border-radius: 20px; }
.stage__text { display: grid; gap: 8px; padding: 20px 20px 24px; }
.more-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding: 20px 24px; border-radius: 20px; background: var(--color-bg-brand-soft); }

/* Отзывы */
.reviews { margin: var(--section-gap) 16px 0; padding: 64px calc(var(--gutter) - 16px); border-radius: var(--radius-2xl); background: var(--color-bg-brand-deep); color: var(--color-text-on-brand); }
.reviews > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.rating { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .08); transition: background-color .2s; }
.rating:hover { background: rgba(255, 255, 255, .14); }
.rating__logo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fc3f1d; color: #fff; font-size: 20px; font-weight: 700; }
.rating__text { display: grid; gap: 2px; }
.rating__stars { font-size: 20px; line-height: 26px; letter-spacing: 2px; color: var(--color-text-rating); }
.rating__label { font-size: 11px; line-height: 1.3; color: var(--color-text-on-brand-muted); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { display: flex; flex-direction: column; gap: 12px; }
.review__media { position: relative; height: 220px; border-radius: var(--radius-lg); overflow: hidden; }
.review__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.review:hover .review__media img { transform: scale(1.03); }
.review__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: var(--color-bg-accent); color: #fff; transition: background-color .2s; }
.review:hover .review__play { background: var(--color-bg-accent-hover); }
.review__play svg { width: 28px; height: 28px; }
.review__media .tag { position: absolute; left: 16px; bottom: 16px; }
.review__meta { color: var(--color-text-on-brand-muted); }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Квиз */
.quiz { display: grid; grid-template-columns: 1fr 440px; border-radius: var(--radius-2xl); overflow: hidden; background: var(--color-bg-section); }
.quiz__main { display: grid; gap: 28px; align-content: start; padding: 48px; }
.quiz__box { display: grid; gap: 24px; padding: 32px; border-radius: var(--radius-xl); background: var(--color-bg-surface); box-shadow: var(--shadow-card); }
.quiz__progress { display: grid; gap: 8px; }
.quiz__progress-row { display: flex; justify-content: space-between; }
.quiz__bar { height: 6px; border-radius: 3px; background: var(--color-bg-brand-muted); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; border-radius: 3px; background: var(--color-bg-brand); transition: width .3s ease; }
.quiz__q[hidden], .quiz__final[hidden], .quiz__nav[hidden] { display: none; }
.quiz__q legend { padding: 0; margin-bottom: 24px; }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: flex; align-items: center; gap: 12px; height: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--color-border-default); background: var(--color-bg-page); font-size: 17px; font-weight: 500; line-height: 1.4; transition: background-color .2s, border-color .2s; }
.opt span::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--color-border-strong); background: #fff; transition: box-shadow .2s; }
.opt:hover span { border-color: var(--color-border-strong); }
.opt input:checked + span { background: var(--color-bg-brand-soft); border-color: var(--color-border-brand); box-shadow: inset 0 0 0 .5px var(--color-border-brand); }
.opt input:checked + span::before { box-shadow: inset 0 0 0 6px var(--color-border-brand); }
.opt input:focus-visible + span { outline: 2px solid var(--color-border-brand); outline-offset: 2px; }
.quiz__nav { display: flex; align-items: center; gap: 16px; }
.quiz__skip { margin-right: auto; }
.quiz__back { padding-left: 0; }
.quiz__back[hidden] { display: none; }
.quiz__back svg { width: 20px; height: 20px; }
.quiz__final { display: grid; gap: 20px; justify-items: start; }
.quiz__gets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.quiz__gets li { display: flex; gap: 10px; align-items: flex-start; }
.quiz__gets svg { color: var(--color-text-success); }
.quiz__fields { display: grid; gap: 16px; width: 100%; max-width: 420px; }
.quiz__side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px; background: var(--color-bg-brand); color: var(--color-text-on-brand); }
.quiz__gift { display: grid; gap: 14px; }
.quiz__gift img { width: 100%; height: 190px; object-fit: cover; border-radius: 18px; }
.quiz__gift .body-s, .quiz__person .caption { color: var(--color-text-on-brand-muted); }
.quiz__person { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .1); }
.quiz__person > span:last-child { display: grid; gap: 2px; }
.quiz__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--color-bg-brand-muted); color: var(--color-text-brand); font-weight: 600; }

/* Два приглашения */
.invite { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.invite__card { min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 40px; border-radius: 28px; color: var(--color-text-on-brand); }
.invite__card--photo::after { background: linear-gradient(90deg, rgba(3, 38, 40, .9) 0%, rgba(3, 38, 40, .6) 45%, rgba(3, 38, 40, .15) 85%); }
.invite__card--brand { position: relative; overflow: hidden; background: var(--color-bg-brand); }
.invite__text { display: grid; gap: 12px; max-width: 460px; }
.invite__card--brand .invite__text { max-width: 330px; position: relative; z-index: 1; }
.invite__card--brand .body { color: var(--color-text-on-brand-muted); }
.invite__card--brand .btn { position: relative; z-index: 1; }
/* Планировка «листом бумаги»: тень и лёгкий поворот, чтобы не сливалась с фоном */
.invite__plan { position: absolute; right: -24px; bottom: -34px; width: 245px; height: 240px; object-fit: cover; border-radius: 16px; transform: rotate(6deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .2); transition: transform .4s ease; }
.invite__card--brand:hover .invite__plan { transform: rotate(3deg) translateY(-6px); }

/* ——— Планшет ——— */
@media (max-width: 1279px) {
  .fin { grid-template-columns: 1fr 1.6fr; }
  .open { grid-template-columns: 1fr 440px; }
  .quiz { grid-template-columns: 1fr 360px; }
  .quiz__main { padding: 40px; }
  .quiz__side { padding: 32px; }
  .tech__title { font-size: 28px; }
}
@media (max-width: 1023px) {
  .tech { grid-template-columns: 1fr 1fr; grid-template-rows: 440px 260px; }
  .tech__card--main { grid-row: auto; grid-column: 1 / 3; }
  .tech__foot { flex-wrap: wrap; }
  .fin, .acc-grid, .open, .quiz, .invite { grid-template-columns: 1fr; }
  .calm__grid { grid-template-columns: 1fr 1fr; }
  .calm__inner { min-height: 0; }
  .open__visit { min-height: 620px; }
  .stages { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .reviews__grid > * { scroll-snap-align: start; }
  .slider__track { grid-auto-columns: 80%; }
  .section-head--even { grid-template-columns: 1fr; gap: 12px; }
}

/* ——— Телефон ——— */
@media (max-width: 767px) {
  .section-head--center { flex-direction: row; justify-content: space-between; }
  .section-head--center .btn { display: none; }
  .tech { grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; }
  .tech__card, .tech__card--main { grid-column: auto; min-height: 260px; padding: 16px; border-radius: 22px; }
  .tech__card--main { min-height: 380px; }
  .tech__title { font-size: 24px; }
  .tech__foot .btn { width: 100%; }
  .slider__track { grid-auto-columns: 88%; gap: 12px; }
  .built { height: 360px; padding: 16px; border-radius: 22px; }
  .slider__nav { margin-top: 20px; }
  .fin__card, .acc { padding: 20px; }
  .fin__steps { grid-template-columns: 1fr; gap: 20px; }
  .fin__safe, .fin__extra { padding: 18px; }
  .acc-grid { margin-top: 12px; gap: 12px; }
  .acc .h3 { font-size: 20px; }
  .acc__icon { width: 36px; height: 36px; }
  .spec th, .spec td { padding: 10px 6px; }
  .spec th { font-size: 12px; }
  .calm { margin: var(--section-gap) 8px 0; border-radius: 24px; }
  .calm__inner { padding: 32px 12px 12px; gap: 32px; }
  .calm__inner .h1 { padding: 0 8px; }
  .calm__grid { grid-template-columns: 1fr; gap: 10px; }
  .calm__card { min-height: 0; padding: 20px; }
  .open__main { padding: 20px; border-radius: 22px; }
  .open__grid { grid-template-columns: 1fr; }
  .open__card { flex-direction: row; gap: 14px; padding: 18px; }
  .open__icon { flex: none; }
  .open__visit { min-height: 0; padding: 220px 0 0; border-radius: 22px; }
  .open__visit > img { height: 300px; }
  .open__visit::after { display: none; }
  .open__form { padding: 20px; box-shadow: var(--shadow-card); }
  .stages { grid-template-columns: 1fr; gap: 12px; }
  .stage { display: grid; grid-template-columns: 120px 1fr; }
  .stage img { height: 100%; min-height: 140px; border-radius: 18px; }
  .stage__text { padding: 14px 16px; gap: 4px; }
  .stage .h4 { font-size: 17px; line-height: 22px; }
  .more-bar { flex-direction: column; align-items: flex-start; padding: 18px; }
  .reviews { margin: var(--section-gap) 8px 0; padding: 32px 16px; border-radius: 24px; }
  .reviews__head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .reviews__grid { grid-auto-columns: 80%; }
  .review__media { height: 190px; }
  .reviews__actions .btn { flex: 1 1 100%; }
  .quiz { border-radius: 24px; }
  .quiz__main { padding: 24px 16px; gap: 20px; }
  .quiz__box { padding: 20px 16px; gap: 20px; }
  .quiz__opts { grid-template-columns: 1fr; gap: 8px; }
  .opt span { padding: 14px 16px; font-size: 16px; }
  .quiz__q legend { margin-bottom: 16px; }
  .quiz__skip { display: none; }
  .quiz__nav [data-quiz-next] { margin-left: auto; }
  .quiz__side { padding: 24px 16px; }
  .quiz__gift img { height: 160px; }
  .invite { gap: 12px; }
  .invite__card { min-height: 0; padding: 24px 20px; border-radius: 22px; gap: 24px; }
  .invite__card--photo { min-height: 340px; }
  .invite__card--brand { padding-bottom: 200px; }
  .invite__plan { width: 190px; height: 186px; right: 16px; bottom: -40px; }
  .invite__card .btn { width: 100%; }
}

/* Карточка проекта (Figma: «05 · Карточка проекта», 1855:2953) */
.i-18 { width: 18px; height: 18px; flex: none; }
.i-28 { width: 28px; height: 28px; flex: none; }
.tag--soft { background: var(--color-bg-brand-soft); }
.price { font-size: 32px; font-weight: 700; line-height: 36px; letter-spacing: -1px; }
.p-title { margin-bottom: 28px; max-width: 800px; }

/* Хлебные крошки */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0 24px; color: var(--color-text-muted); }
.crumbs a:hover { color: var(--color-text-link); }
.crumbs [aria-current] { color: var(--color-text-primary); }

/* Первый экран */
.p-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 408px; gap: 28px; align-items: start; }

/* Галерея: стрелки появляются при наведении, на телефоне — листание пальцем */
.gallery { display: grid; gap: 12px; min-width: 0; }
.gallery__main { position: relative; height: 560px; border-radius: 28px; overflow: hidden; background: var(--color-bg-section); }
.gallery__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__slide--plan { background: #fff; }
.gallery__slide--plan img { object-fit: contain; padding: 24px; }
.gallery__label { position: absolute; top: 20px; left: 20px; }
.gallery__count { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-full); background: var(--overlay); color: var(--color-text-on-brand); }
.gallery__arrow { position: absolute; top: 50%; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; display: grid; place-items: center; background: var(--color-bg-surface); color: var(--color-text-brand); box-shadow: var(--shadow-card); opacity: 0; transition: opacity .2s, background-color .2s; }
.gallery__arrow:hover { background: var(--color-bg-brand-soft); }
.gallery__arrow:disabled { visibility: hidden; }
.gallery__arrow--prev { left: 20px; }
.gallery__arrow--next { right: 20px; }
.gallery__main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 38, 40, .28), rgba(3, 38, 40, 0) 22%, rgba(3, 38, 40, 0) 78%, rgba(3, 38, 40, .28)); opacity: 0; transition: opacity .2s; pointer-events: none; }
.gallery__arrow, .gallery__label, .gallery__count { z-index: 1; }
.gallery__main:hover::after { opacity: 1; }
.gallery__main:hover .gallery__arrow, .gallery__arrow:focus-visible { opacity: 1; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery__thumbs button { height: 104px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s, opacity .2s; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.gallery__thumbs button:not(.is-active):hover { opacity: .8; }
.gallery__thumbs button.is-active { box-shadow: inset 0 0 0 2px var(--color-border-brand); }
.gallery__thumbs button.is-active img { padding: 2px; border-radius: 16px; }

/* Панель цены */
.price-panel { display: grid; gap: 20px; justify-items: start; padding: 32px; border-radius: 28px; }
.price-panel .h1 { color: var(--color-text-primary); }
.params { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; width: 100%; margin: 0; }
.params div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--color-bg-page); }
.params dd { margin: 0; }
.params__wide { grid-column: 1 / -1; }
.success { color: var(--color-text-success); }
.price-panel__price { display: grid; gap: 4px; }
.guarantee { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px; border-radius: 14px; background: var(--color-bg-success-soft); color: var(--color-text-link); }

/* Якорное меню. Закрепляется сверху, шапка на это время уезжает */
.anchor-nav { position: sticky; top: 12px; z-index: 60; display: flex; justify-content: center; margin-top: 40px; padding: 0 var(--gutter); pointer-events: none; }
.anchor-nav__inner { display: flex; gap: 8px; max-width: 100%; padding: 10px; border-radius: var(--radius-full); background: var(--color-bg-surface); box-shadow: 0 0 0 1px var(--color-border-default); overflow-x: auto; scrollbar-width: none; pointer-events: auto; transition: box-shadow .2s; }
.anchor-nav__inner::-webkit-scrollbar { display: none; }
.anchor-nav.is-stuck .anchor-nav__inner { box-shadow: var(--shadow-float); }
.anchor-nav a { flex: none; padding: 10px 18px; border-radius: var(--radius-full); font-size: 15px; font-weight: 500; line-height: 22px; color: var(--color-text-secondary); white-space: nowrap; transition: background-color .2s, color .2s; }
.anchor-nav a:hover { color: var(--color-text-brand); background: var(--color-bg-brand-soft); }
.anchor-nav a.is-active { background: var(--color-bg-brand); color: var(--color-text-on-brand); }
.page-project .header--solid { transition: transform .25s; }
.page-project .header.is-hidden { transform: translateY(-120%); }
.page-project #built { margin-top: 56px; }
html:has(.page-project) { scroll-padding-top: 100px; }

/* Дома по проекту */
.built-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.house-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.house-card:hover { box-shadow: var(--shadow-float); }
.house-card__media { position: relative; height: 270px; display: flex; justify-content: space-between; align-items: flex-start; padding: 16px; }
.house-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.house-card:hover .house-card__media img { transform: scale(1.03); }
.house-card__media > span { position: relative; }
.house-card__badges { display: flex; gap: 6px; }
.house-card__badges span { padding: 6px; border-radius: 50%; background: var(--color-bg-surface); color: var(--color-icon-brand); }
.house-card__body { display: grid; gap: 8px; justify-items: start; padding: 24px; }
.house-card__body .link-arrow { padding-top: 8px; font-size: 16px; font-weight: 600; }

/* Конфигуратор */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 416px; gap: 24px; align-items: start; }
.calc__main { display: grid; gap: 28px; min-width: 0; }
.calc__group { display: grid; gap: 12px; min-width: 0; }
.calc__group > legend { float: left; width: 100%; margin-bottom: 12px; }
.calc__group > legend + * { clear: both; }
.calc__lead { margin-bottom: 12px; }
.opt-row { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-radius: var(--radius-lg); background: var(--color-bg-surface); box-shadow: inset 0 0 0 1px var(--color-border-default); transition: background-color .2s, box-shadow .2s; }
label.opt-row { cursor: pointer; }
label.opt-row:hover { box-shadow: inset 0 0 0 1px var(--color-border-brand); }
.opt-row input { position: absolute; opacity: 0; pointer-events: none; }
.opt-row__box, .found__box { flex: none; width: 24px; height: 24px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--color-bg-surface); box-shadow: inset 0 0 0 1.5px var(--color-border-strong); color: transparent; transition: background-color .2s, color .2s; }
.opt-row__box svg, .found__box svg { width: 18px; height: 18px; }
.opt-row__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.opt-row__price { flex: none; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--color-text-secondary); white-space: nowrap; }
.opt-row.is-included .opt-row__box { background: var(--color-bg-brand-muted); box-shadow: none; color: var(--color-icon-brand); }
.opt-row.is-included .opt-row__price { color: var(--color-text-success); }
.opt-row:has(input:checked) { background: var(--color-bg-brand-soft); box-shadow: inset 0 0 0 1.5px var(--color-border-brand); }
.opt-row input:checked ~ .opt-row__box, .found__card input:checked ~ .found__head .found__box { background: var(--color-bg-brand); box-shadow: none; color: #fff; }
.opt-row input:checked ~ .opt-row__price { color: var(--color-text-brand); }
.opt-row:has(input:focus-visible), .found__card:has(input:focus-visible) { outline: 2px solid var(--color-border-brand); outline-offset: 2px; }
.calc__more { margin-bottom: 20px; }
.calc__more summary { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 8px 0 0; list-style: none; color: var(--color-text-link); cursor: pointer; }
.calc__more summary::-webkit-details-marker { display: none; }
.calc__more summary svg { transition: transform .2s; }
.calc__more[open] summary svg { transform: rotate(180deg); }
.calc__more-list { display: grid; gap: 12px; margin-top: 12px; }

.found { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
/* Базовые сваи — строкой над вариантами: выбраны по умолчанию, отдельной картинки нет */
.found__card.found__card--base { grid-column: 1 / -1; aspect-ratio: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 20px; }
.found__card--base .found__note { margin: 0; display: flex; gap: 16px; align-items: baseline; }
.found__card { position: relative; aspect-ratio: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 24px; padding: 20px; border-radius: var(--radius-md); background: var(--color-bg-surface); box-shadow: inset 0 0 0 1px transparent; cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.found__card:hover { box-shadow: inset 0 0 0 1px var(--color-border-brand); }
.found__card:has(input:checked) { background: var(--color-bg-brand-soft); box-shadow: inset 0 0 0 1.5px var(--color-border-brand); }
.found__card input { position: absolute; opacity: 0; pointer-events: none; }
.found__head { display: flex; align-items: center; gap: 8px; }
.found__box { width: 20px; height: 20px; border-radius: 4px; }
.found__box svg { width: 14px; height: 14px; }
.found__card img { width: 80%; margin: auto; }
.found__note { display: grid; gap: 4px; margin-top: auto; }

.calc__total { position: sticky; top: 100px; display: grid; gap: 18px; padding: 32px; border-radius: 28px; background: var(--color-bg-brand); color: var(--color-text-on-brand); }
.calc__lines { display: grid; gap: 18px; margin: 0; padding: 0 0 18px; list-style: none; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.calc__lines li { display: flex; justify-content: space-between; gap: 16px; }
.calc__lines li span:first-child { color: var(--color-text-on-brand-muted); }
.calc__lines li span:last-child { font-weight: 500; white-space: nowrap; text-align: right; }
.calc__lines li.is-new { animation: line-in .3s ease; }
@keyframes line-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.calc__sum { display: grid; gap: 2px; }
.calc__sum .caption, .calc__note { color: var(--color-text-on-brand-muted); }
.calc__sum .price.is-bump { animation: bump .35s ease; }
@keyframes bump { 50% { color: var(--color-bg-highlight); } }

.calc-bar { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 20px; background: var(--color-bg-brand); color: var(--color-text-on-brand); box-shadow: var(--shadow-float); }
.calc-bar[hidden] { display: none; }
.calc-bar > span { display: grid; }
.calc-bar .caption { color: var(--color-text-on-brand-muted); }

/* Технология — превью, подробно на отдельной странице */
.tech-teaser { display: grid; grid-template-columns: 1fr 1fr; border-radius: 32px; overflow: hidden; background: var(--color-bg-section); }
.tech-teaser > img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.tech-teaser__text { display: grid; gap: 20px; align-content: center; justify-items: start; padding: 48px; }
.layers { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.layers li { display: flex; align-items: center; gap: 12px; }
.layers span { min-width: 26px; padding: 4px 9px; border-radius: var(--radius-full); background: var(--color-bg-brand); color: var(--color-text-on-brand); font-size: 13px; font-weight: 500; line-height: 18px; text-align: center; }
.tech-teaser .btn { white-space: normal; text-align: center; }

/* Заявка */
.lead-form { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 40px; align-items: center; padding: 56px; border-radius: 32px; background: var(--color-bg-brand-deep); color: var(--color-text-on-brand); }
.lead-form__text { display: grid; gap: 14px; max-width: 560px; }
.lead-form__text .body { color: var(--color-text-on-brand-muted); max-width: 520px; }
.lead-form__form { gap: 12px; }
.lead-form .field .caption, .lead-form .contact-way legend { color: var(--color-text-on-brand-muted); }
.lead-form textarea { resize: vertical; min-height: 76px; }
.lead-form .chip span { border-color: rgba(255, 255, 255, .3); }
.lead-form .chip input:checked + span { background: var(--color-bg-surface); color: var(--color-text-brand); border-color: var(--color-bg-surface); }
.lead-form .consent, .lead-form .form__done { color: var(--color-text-on-brand-muted); }

@media (max-width: 1279px) {
  .p-hero__grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .price-panel { padding: 24px; }
  .gallery__main { height: 480px; }
  .anchor-nav { justify-content: flex-start; }
  .calc { grid-template-columns: minmax(0, 1fr) 340px; }
  .calc__total { padding: 24px; }
  .lead-form { grid-template-columns: 1fr 1fr; padding: 40px; }
}
@media (max-width: 1023px) {
  .p-hero__grid, .calc { grid-template-columns: 1fr; }
  .found { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc__total { position: static; }
  .built-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 24px; }
  .built-cards::-webkit-scrollbar { display: none; }
  .house-card { scroll-snap-align: start; }
  .tech-teaser { grid-template-columns: 1fr; }
  .tech-teaser > img { min-height: 0; aspect-ratio: 16 / 9; }
  .lead-form { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .crumbs { padding: 16px 0; }
  .gallery__main { height: auto; aspect-ratio: 4 / 3; border-radius: 20px; }
  .gallery__arrow { display: none; }
  .gallery__label { top: 12px; left: 12px; }
  .gallery__count { top: 12px; right: 12px; padding: 6px 10px; }
  .gallery__thumbs { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  .gallery__thumbs::-webkit-scrollbar { display: none; }
  .gallery__thumbs button { flex: 0 0 88px; height: 64px; border-radius: 12px; }
  .gallery__thumbs button img { border-radius: 12px; }
  .price-panel { padding: 20px; gap: 16px; border-radius: 20px; }
  .params { gap: 8px; }
  .params div { padding: 10px 12px; }
  .anchor-nav { top: 8px; margin-top: 24px; padding: 0 8px; }
  .anchor-nav__inner { padding: 6px; }
  .anchor-nav a { padding: 8px 14px; font-size: 14px; }
  .opt-row { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
  .opt-row__text { flex-basis: calc(100% - 36px); }
  .opt-row__price { margin-left: 36px; font-size: 16px; }
  .opt-row.is-included { flex-wrap: nowrap; }
  .opt-row.is-included .opt-row__text { flex-basis: auto; }
  .opt-row.is-included .opt-row__price { margin-left: 0; font-size: 14px; }
  .found { grid-template-columns: 1fr; }
  .found__card { aspect-ratio: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 16px; }
  .found__card img { width: 96px; margin: 0; }
  .found__note { margin: 0; text-align: right; }
  .calc__total { padding: 20px; border-radius: 20px; }
  .tech-teaser { border-radius: 20px; }
  .tech-teaser__text { padding: 24px 20px; }
  .lead-form { padding: 28px 20px; gap: 24px; border-radius: 20px; }
  .page-project .footer { padding-bottom: 72px; }
}
@media (min-width: 768px) { .calc-bar { display: none !important; } }

/* Страница «Как устроен каркасный дом». Макета нет: собрана из компонентов карточки проекта,
   содержимое — с действующего сайта (общий разрез + пять конструкций с точками). */
.house-hero__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px; align-items: end; margin-bottom: 28px; }
.house-hero__head .body { max-width: 520px; }

/* Общий разрез с точками конструкций */
.cutaway { position: relative; border-radius: 28px; overflow: hidden; background: #fff; }
.cutaway img { width: 100%; height: auto; }
.cutaway__pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; }
.cutaway__pin span { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--color-bg-accent); color: #fff; font-weight: 600; box-shadow: 0 0 0 6px rgba(239, 120, 54, .25); transition: transform .2s, box-shadow .2s; }
.cutaway__pin em { position: absolute; left: 50px; padding: 6px 12px; border-radius: var(--radius-full); background: var(--color-bg-surface); color: var(--color-text-brand); font-style: normal; font-size: 15px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-card); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.cutaway__pin:hover span, .cutaway__pin:focus-visible span { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(239, 120, 54, .25); }
.cutaway__pin:hover em, .cutaway__pin:focus-visible em { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .cutaway__pin span { animation: pin-pulse 2.4s ease-in-out infinite; }
  .cutaway__pin:nth-of-type(2) span { animation-delay: .3s; } .cutaway__pin:nth-of-type(3) span { animation-delay: .6s; }
  .cutaway__pin:nth-of-type(4) span { animation-delay: .9s; } .cutaway__pin:nth-of-type(5) span { animation-delay: 1.2s; }
}
@keyframes pin-pulse { 50% { box-shadow: 0 0 0 10px rgba(239, 120, 54, .12); } }

/* Переключатель конструкций */
.layers-tabs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.layers-tabs::-webkit-scrollbar { display: none; }
.layers-tabs__btn { flex: none; padding: 10px 18px; border-radius: var(--radius-full); background: var(--color-bg-surface); box-shadow: inset 0 0 0 1px var(--color-border-default); font-size: 15px; font-weight: 500; line-height: 22px; color: var(--color-text-secondary); transition: background-color .2s, color .2s, box-shadow .2s; }
.layers-tabs__btn:hover { color: var(--color-text-brand); box-shadow: inset 0 0 0 1px var(--color-border-brand); }
.layers-tabs__btn.is-active { background: var(--color-bg-brand); color: var(--color-text-on-brand); box-shadow: none; }

/* Конструкция: схема с точками + список слоёв */
.layer-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.layer-panel[hidden] { display: none; }
.layer-panel:not([hidden]) { animation: panel-in .3s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.layer-panel__img { position: sticky; top: 24px; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.layer-panel__img img { width: 100%; height: auto; }
.pin { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; background: var(--color-bg-brand); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); transition: transform .2s, background-color .2s; }
.pin.is-on { background: var(--color-bg-accent); transform: scale(1.2); z-index: 1; }
.layer-panel__text { display: grid; gap: 16px; }
.layer-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.layer-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-lg); cursor: default; transition: background-color .2s; }
.layer-list li > span:last-child { display: grid; gap: 2px; }
.layer-list__num { flex: none; min-width: 26px; padding: 4px 9px; border-radius: var(--radius-full); background: var(--color-bg-brand); color: var(--color-text-on-brand); font-size: 13px; font-weight: 500; line-height: 18px; text-align: center; transition: background-color .2s; }
.layer-list li.is-on { background: var(--color-bg-surface); box-shadow: var(--shadow-card); }
.layer-list li.is-on .layer-list__num { background: var(--color-bg-accent); }

.house-cta__actions { display: grid; gap: 12px; }

@media (max-width: 1023px) {
  .house-hero__head { grid-template-columns: 1fr; gap: 12px; }
  .layer-panel { grid-template-columns: 1fr; }
  .layer-panel__img { position: static; }
}
@media (max-width: 767px) {
  .cutaway { border-radius: 20px; }
  .cutaway__pin span { width: 30px; height: 30px; font-size: 14px; box-shadow: 0 0 0 4px rgba(239, 120, 54, .25); }
  .cutaway__pin em { display: none; }
  .layer-panel__img { border-radius: 20px; }
  .pin { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 12px; }
  .layer-list li { padding: 10px 12px; }
}

/* Оглавление стенда для клиента */
.page-toc main { padding: 80px 0; }
.toc__head { display: grid; gap: var(--space-md); max-width: 760px; margin-bottom: var(--space-2xl); }
.toc__group { margin-top: var(--space-xl); }
.toc__group-title { margin-bottom: var(--space-sm); }
.toc__list { display: grid; gap: var(--space-sm); }
.toc__item { display: flex; align-items: center; gap: var(--space-lg); padding: 20px 24px; border-radius: var(--radius-lg); background: var(--color-bg-surface); box-shadow: var(--shadow-card); color: var(--color-text-brand); transition: box-shadow .2s; }
.toc__item:hover { box-shadow: var(--shadow-float); }
.toc__item--sub { margin-left: 48px; }
.toc__num { min-width: 40px; font-weight: 600; color: var(--color-icon-brand); }
.toc__text { flex: 1; display: grid; gap: 4px; }
.toc__item svg { color: var(--color-icon-brand); }
@media (max-width: 767px) { .page-toc main { padding: 40px 0; } .toc__item { padding: 16px; gap: var(--space-sm); } .toc__item--sub { margin-left: 16px; } }

/* Аккуратное появление: только сдвиг снизу и прозрачность, без «летающих» эффектов. */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.page-concepts {background:#f6f6f0;color:#12393a;}
.concepts {max-width:1800px;margin:auto;padding:0 clamp(20px,5vw,88px) clamp(32px,6vh,72px);}
.concepts__brands {display:flex;align-items:center;gap:22px;padding:clamp(22px,4vh,44px) 0;border-bottom:1px solid #c6d1c9;}
.concepts__brands img {object-fit:contain;}
.concepts__brands span {font-size:21px;color:#748481;font-weight:400;}
.concepts h1 {margin:clamp(30px,6vh,76px) 0 clamp(24px,4vh,48px);font-size:clamp(34px,4.6vw,76px);font-weight:500;letter-spacing:-.055em;line-height:1.05;text-wrap:balance;}
.concepts__pair {display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,2vw,36px);}
.concept-choice {display:block;min-width:0;border-radius:12px;}
.concept-choice__preview {display:grid;place-items:center;aspect-ratio:1.58;padding:5.4%;overflow:hidden;border-radius:12px;background:linear-gradient(135deg,#e2e7de,#ccd7cf);}
.concept-choice--film .concept-choice__preview {background:linear-gradient(135deg,#235659,#10383a);}
.concept-choice__preview img {width:100%;height:auto;border-radius:5px;box-shadow:0 10px 24px #1233332a;transition:transform .35s,filter .35s;}
.concept-choice__caption {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:clamp(14px,1.45vw,26px) 0 8px;}
.concept-choice h2 {font-size:clamp(22px,2.1vw,36px);font-weight:600;letter-spacing:-.04em;line-height:1.1;}
.concept-choice p {margin-top:6px;color:#536765;font-size:clamp(14px,1.1vw,18px);line-height:1.35;}
.concept-choice__action {display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px;}
.concept-choice__action svg {width:34px;height:34px;border:1px solid #a9bcb4;border-radius:50%;padding:7px;fill:none;stroke:currentColor;stroke-width:1.6;}
.concept-choice:focus-visible {outline:3px solid #11695e;outline-offset:5px;}
@media(hover:hover){.concept-choice:hover img {transform:translateY(-3px) scale(1.015);filter:brightness(.9);} .concept-choice:hover .concept-choice__action svg {background:#123e40;color:white;}}
@media(max-width:720px){.concepts__pair {grid-template-columns:1fr;gap:27px;}.concepts__brands {gap:16px;}.concepts__brands img:first-child {width:132px;}.concepts__brands img:last-child {width:81px;}.concept-choice__preview {aspect-ratio:1.78;}.concept-choice__action {font-size:0;gap:0;}}
@media(prefers-reduced-motion:reduce){.concept-choice__preview img {transition:none;}}
