/* ==========================================================================
   DOMSTROY: лендинг строительной компании
   --------------------------------------------------------------------------
   Оглавление
   01. Токены
   02. Сброс и база
   03. Типографика
   04. Утилиты
   05. Кнопки и ссылки
   06. Появление элементов
   07. Шапка
   08. Главный экран
   09. Квиз-калькулятор
   10. Полоса показателей
   11. Проекты
   12. География работ и карта
   13. Смета
   14. Этапы строительства
   15. Построенные дома
   16. Отзыв заказчика
   17. Гарантии и калькулятор
   18. Подвал
   19. Карточка проекта
   20. Адаптив
   21. Уменьшенная анимация
   ========================================================================== */


/* ==========================================================================
   01. ТОКЕНЫ
   Палитра выведена из фотографий: съёмка в синий час, тёплый свет в окнах.
   Акцент приглушённый и работает точками, а не заливками.
   ========================================================================== */
:root{
  /* Цвет */
  --ink:        #0C0D0E;
  --ink-2:      #121314;
  --surface:    #17191A;
  --surface-2:  #1E2022;
  --line:       #26292B;
  --line-2:     #34383B;
  --bone:       #ECEAE6;
  --bone-2:     #A3A29D;
  --bone-3:     #7C7B76;
  --accent:     #B8874E;
  --accent-2:   #D3A671;
  --accent-dim: rgba(184, 135, 78, .13);

  /* Одно скругление на весь проект */
  --r: 3px;

  /* Сетка */
  --maxw:   1320px;
  --pad:    28px;
  --gutter: max(var(--pad), (100% - var(--maxw)) / 2 + var(--pad));
  --hdr-h:  84px;

  /* Движение */
  --ease:      cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  /* Шрифты */
  --f-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --f-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}


/* ==========================================================================
   02. СБРОС И БАЗА
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }

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

body{
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked{ overflow: hidden; }

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

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

ul, ol{ margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4, figure, fieldset, legend, dl, dd{ margin: 0; }
fieldset{ border: 0; padding: 0; min-inline-size: 0; }

a{ color: inherit; text-decoration: none; }

[hidden]{ display: none !important; }

::selection{ background: var(--accent); color: var(--ink); }

:focus-visible{
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* Плёночное зерно поверх страницы: сплошные заливки перестают быть плоскими */
.grain{
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 190px 190px;
}

.skip-link{
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 13px 20px;
  border-radius: var(--r);
  background: var(--bone);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform .3s var(--ease);
}
.skip-link:focus{ transform: translateY(0); }


/* ==========================================================================
   03. ТИПОГРАФИКА
   Заголовки набраны антиквой: она задаёт взрослый, издательский тон.
   Текст и цифры остаются гротеском, чтобы читались быстро.
   ========================================================================== */
h1, h2, h3{
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

/* Технические подписи: моноширинный, разрядка, верхний регистр */
.mono{
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-3);
  font-variant-numeric: tabular-nums;
}

.lead{
  max-width: 50ch;
  color: var(--bone-2);
  font-size: 16.5px;
  line-height: 1.68;
  text-wrap: pretty;
}


/* ==========================================================================
   04. УТИЛИТЫ
   ========================================================================== */
.wrap{
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section{ position: relative; padding: clamp(68px, 6.4vw, 104px) 0; }

/* Подложка не плоская: к краям секция чуть светлеет, иначе чёрное поле
   выглядит пустым провалом */
.section--alt{
  background:
    linear-gradient(180deg,
      rgba(236, 234, 230, .026) 0%,
      transparent 24%,
      transparent 76%,
      rgba(236, 234, 230, .026) 100%),
    var(--ink-2);
}
.section + .section:not(.section--alt){ border-top: 1px solid var(--line); }

/* Тёплое свечение сверху секции: воздух перестаёт быть просто чёрным */
.section--glow::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(58% 46% at 50% 0%, rgba(184, 135, 78, .07), transparent 72%);
}

.ic{
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Надзаголовок героя: линия и разрядка вместо заливной плашки */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.pill::before{
  content: "";
  width: 38px;
  height: 1px;
  background: var(--accent);
}

/* Размерная линия с чертежа. Несёт значение соседнего числа. */
.dim{
  display: block;
  width: 100%;
  max-width: 84px;
  height: 8px;
  margin-top: 18px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0    0   / 1px 8px  no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 0   / 1px 8px  no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0    50% / 100% 1px no-repeat;
  opacity: .55;
}
.dim--wide{ max-width: 190px; }

/* Заголовок секции */
.shead{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 3.2vw, 46px);
}
.shead__title{
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  max-width: 17ch;
}
.shead__stack{ display: grid; gap: 18px; max-width: 620px; }
.shead__note{ color: var(--bone-2); font-size: 16px; }
.shead__ctrl{ display: flex; gap: 10px; }

/* Три факта в шапке секции */
.shead__facts{ display: flex; gap: clamp(24px, 3vw, 48px); }
.shead__facts div{ display: grid; gap: 8px; }
.shead__facts dt{
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.shead__facts dd{
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.1vw, 1.9rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   05. КНОПКИ И ССЫЛКИ
   Основная кнопка светлая, а не цветная: акцент остаётся редким.
   ========================================================================== */
.btn{
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  --btn-bd: var(--line-2);
  --btn-hover: rgba(236, 234, 230, .07);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .18s var(--ease-soft), border-color .3s, color .3s;
}
.btn::before{
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--btn-hover);
  transform: translateY(101%);
  transition: transform .42s var(--ease);
}
.btn:hover::before{ transform: translateY(0); }
.btn:active{ transform: translateY(1px); }

.btn--primary{
  --btn-bg: var(--bone);
  --btn-fg: var(--ink);
  --btn-bd: var(--bone);
  --btn-hover: #FFFFFF;
}
.btn--ghost{
  --btn-bd: rgba(236, 234, 230, .26);
  backdrop-filter: blur(8px);
}
.btn--outline:hover{ --btn-bd: var(--accent); }
.btn--accent{
  --btn-bg: var(--accent);
  --btn-fg: var(--ink);
  --btn-bd: var(--accent);
  --btn-hover: var(--accent-2);
}
.btn--wide{ width: 100%; }

/* Текстовая ссылка со стрелкой */
.link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 11px;
  color: var(--bone);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .3s;
}
.link .ic{ width: 17px; height: 17px; color: var(--accent); transition: transform .4s var(--ease); }
.link:hover{ color: var(--accent-2); }
.link:hover .ic{ transform: translateX(5px); }

.rbtn{
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--bone-2);
  transition: border-color .3s, color .3s, transform .18s var(--ease-soft);
}
.rbtn:hover{ border-color: var(--accent); color: var(--accent); }
.rbtn:active{ transform: scale(.95); }
.rbtn[disabled]{ opacity: .3; pointer-events: none; }


/* ==========================================================================
   06. ПОЯВЛЕНИЕ ЭЛЕМЕНТОВ
   Сквозная идея «замер и сборка»: строки выходят из-под маски,
   размерные линии вычерчиваются, числа набегают.
   ========================================================================== */
[data-reveal]{ --rd: 0ms; }

[data-reveal="up"]{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease) var(--rd), transform .8s var(--ease) var(--rd);
}
[data-reveal="rise"]{
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease) var(--rd), transform .9s var(--ease) var(--rd);
}
/* Наблюдаем за обёрткой: текст сдвинут за её пределы и для наблюдателя пуст */
[data-reveal="mask"]{
  display: block;
  overflow: hidden;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
[data-reveal="mask"] > span{
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease) var(--rd);
}
[data-reveal="mask"].is-in > span{ transform: none; }

[data-reveal="draw"]{
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease) var(--rd);
}

[data-reveal].is-in{ opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* Если скрипты не отработали, страница обязана остаться читаемой */
html:not(.js) [data-reveal]{ opacity: 1; transform: none; clip-path: none; }
html:not(.js) [data-reveal="mask"] > span{ transform: none; }
html:not(.js) .pin__ring,
html:not(.js) .pin__dot{ transform: scale(1); }
html:not(.js) .erow__bar i{ transform: scaleX(1); }
html:not(.js) .steps::after{ transform: scaleX(1); }
html:not(.js) .hero__img{ transform: none; }


/* ==========================================================================
   07. ШАПКА
   ========================================================================== */
#top-sentinel{ position: absolute; top: 0; height: 1px; width: 1px; }

.hdr{
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-soft), backdrop-filter .4s, border-color .4s;
}
.hdr.is-stuck{
  background: rgba(12, 13, 14, .86);
  backdrop-filter: blur(20px) saturate(130%);
  border-bottom-color: var(--line);
}

.hdr__in{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--hdr-h);
  transition: height .4s var(--ease-soft);
}
.hdr.is-stuck .hdr__in{ height: 68px; }

.logo{ display: flex; align-items: center; gap: 13px; }
.logo__mark{ color: var(--accent); transition: color .4s; }
.logo:hover .logo__mark{ color: var(--accent-2); }
.logo__txt{ display: grid; gap: 3px; }
.logo__name{
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .16em;
}
.logo__tag{
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--bone-3);
}

.nav{ display: flex; align-items: center; gap: 34px; }
.nav a{
  position: relative;
  padding: 8px 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--bone-2);
  transition: color .3s;
}
.nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover{ color: var(--bone); }
.nav a:hover::after{ transform: scaleX(1); transform-origin: left; }

.hdr__side{ display: flex; align-items: center; gap: 18px; }
.hdr__phone{ display: grid; gap: 3px; text-align: right; }
.hdr__phone-num{ font-size: 15px; font-weight: 600; letter-spacing: .02em; transition: color .3s; }
.hdr__phone-sub{
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.hdr__phone:hover .hdr__phone-num{ color: var(--accent-2); }

.burger{
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 0;
}
.burger span{
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--bone);
  transition: transform .35s var(--ease);
}
.burger[aria-expanded="true"] span:first-child{ transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child{ transform: translateY(-3px) rotate(-45deg); }


/* ==========================================================================
   08. ГЛАВНЫЙ ЭКРАН
   ========================================================================== */
.hero{
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(660px, 100dvh, 1020px);
  padding: calc(var(--hdr-h) + 44px) 0 76px;
  overflow: hidden;
}

.hero__media{ position: absolute; inset: 0; }
.hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  transform: scale(1.08);
  transition: transform 2.4s var(--ease);
}
.hero.is-ready .hero__img{ transform: scale(1); }

.hero__scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 13, 14, .90) 0%,
    rgba(12, 13, 14, .46) 32%,
    rgba(12, 13, 14, .64) 70%,
    var(--ink) 100%);
}
.hero__scrim--side{
  background: linear-gradient(
    92deg,
    rgba(12, 13, 14, .94) 0%,
    rgba(12, 13, 14, .72) 34%,
    rgba(12, 13, 14, .16) 62%,
    rgba(12, 13, 14, .58) 100%);
}

.hero__in{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 412px);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero__copy{ display: grid; justify-items: start; }
.hero__title{
  margin: 26px 0 22px;
  font-size: clamp(2.5rem, 5.4vw, 4.85rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.018em;
}
.hero__sub{
  max-width: 44ch;
  color: var(--bone-2);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.62;
  text-wrap: pretty;
}
.hero__cta{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }


/* ==========================================================================
   09. КВИЗ-КАЛЬКУЛЯТОР
   ========================================================================== */
.quiz{
  padding: 30px;
  border: 1px solid rgba(236, 234, 230, .13);
  border-radius: var(--r);
  background: rgba(18, 19, 20, .78);
  backdrop-filter: blur(24px) saturate(130%);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
}

.quiz__head{ padding-bottom: 20px; border-bottom: 1px solid rgba(236, 234, 230, .1); }
.quiz__title{
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.012em;
}
.quiz__meta{ display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.quiz__track{
  flex: 1;
  height: 1px;
  background: rgba(236, 234, 230, .14);
  overflow: hidden;
}
.quiz__track i{
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transition: transform .6s var(--ease);
}

.quiz__body{ padding-top: 22px; }
.quiz__pane{ display: none; }
.quiz__pane.is-active{ display: grid; gap: 8px; animation: pane-in .45s var(--ease) both; }
@keyframes pane-in{
  from{ opacity: 0; transform: translateX(14px); }
  to  { opacity: 1; transform: translateX(0); }
}

.quiz__q{
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--bone);
}

.opt{
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(236, 234, 230, .12);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.opt:hover{ border-color: rgba(211, 166, 113, .45); background: rgba(184, 135, 78, .06); }
.opt input{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__dot{
  position: relative;
  width: 15px;
  height: 15px;
  flex: none;
  border: 1px solid var(--bone-3);
  border-radius: 999px;
  transition: border-color .3s;
}
.opt__dot::after{
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: var(--accent);
  transform: scale(0);
  transition: transform .3s var(--ease);
}
.opt__label{ font-size: 14px; font-weight: 500; }
.opt:has(input:checked){ border-color: rgba(184, 135, 78, .6); background: var(--accent-dim); }
.opt input:checked ~ .opt__dot{ border-color: var(--accent); }
.opt input:checked ~ .opt__dot::after{ transform: scale(1); }
.opt input:focus-visible ~ .opt__dot{ outline: 1px solid var(--accent); outline-offset: 3px; }

.quiz__result.is-active{ gap: 16px; }
.quiz__price{
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 2.7vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.quiz__cur{ color: var(--accent); }
.quiz__price-note{ font-size: 13px; line-height: 1.55; color: var(--bone-2); }
.quiz__price-note b{ color: var(--bone); font-weight: 600; }

.field{ display: grid; gap: 8px; }
.field__label{
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.field__input{
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(236, 234, 230, .16);
  border-radius: var(--r);
  background: rgba(12, 13, 14, .6);
  color: var(--bone);
  font-size: 15px;
  transition: border-color .3s;
}
.field__input::placeholder{ color: var(--bone-3); }
.field__input:hover{ border-color: rgba(236, 234, 230, .3); }
.field__input:focus{ outline: none; border-color: var(--accent); }
.field__input--sel{
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 5px 5px, 5px 5px;
  background-position: right 20px center, right 15px center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field__input--sel option{ background: var(--surface); color: var(--bone); }

.quiz__foot{ display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.quiz__back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bone-2);
  transition: color .3s;
}
.quiz__back:hover{ color: var(--bone); }
.quiz__back .ic{ width: 16px; height: 16px; }

.quiz__note{
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone-3);
  text-align: center;
}


/* ==========================================================================
   10. ПОЛОСА ПОКАЗАТЕЛЕЙ
   ========================================================================== */
.stats{ border-top: 1px solid var(--line); }
.stats__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-block: clamp(44px, 5vw, 68px);
}
.stat{ display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.stat__num{
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.stat__num--word{ font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-style: italic; color: var(--accent-2); }
.stat__plus{ color: var(--accent); }
.stat__label{
  margin-top: 14px;
  max-width: 22ch;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bone-2);
}


/* ==========================================================================
   11. ПРОЕКТЫ
   ========================================================================== */
.pgrid{
  display: grid;
  grid-template-columns: 1.24fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 680px;
}

.pcard{
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 330px;
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
}
.pcard--lead{ grid-row: span 2; }

.pcard__img{
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) brightness(1.06);
  transition: transform 1.2s var(--ease), filter .7s;
}
.pcard__scrim{
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(12, 13, 14, .02) 0%,
    rgba(12, 13, 14, .30) 46%,
    rgba(12, 13, 14, .88) 100%);
}
/* «В доме включают свет»: тёплое свечение проступает при наведении */
.pcard__glow{
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(58% 44% at 50% 62%, rgba(226, 164, 92, .34), transparent 72%);
  opacity: 0;
  transition: opacity .8s var(--ease);
  mix-blend-mode: screen;
}
.pcard:hover .pcard__img,
.pcard:focus-within .pcard__img{ transform: scale(1.045); filter: saturate(1.04) brightness(1.12); }
.pcard:hover .pcard__glow,
.pcard:focus-within .pcard__glow{ opacity: 1; }

.pcard__body{ display: grid; gap: 14px; padding: clamp(24px, 2.5vw, 36px); width: 100%; }
.pcard__name{
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.pcard--lead .pcard__name{ font-size: clamp(1.6rem, 2.8vw, 2.4rem); }

.pcard__specs{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.pcard__specs li{ position: relative; }
.pcard__specs li + li::before{
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 1px;
  height: 10px;
  transform: translateY(-50%);
  background: rgba(236, 234, 230, .22);
}

.pcard__price{
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(236, 234, 230, .14);
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  font-variant-numeric: tabular-nums;
}
.pcard__cur{ color: var(--accent); }
.pcard__term{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.pcard__term .ic{ width: 15px; height: 15px; color: var(--accent); }

/* Кнопка растянута на всю карточку, но фокус получает только она */
.pcard__open{ justify-self: start; }
.pcard__open::after{ content: ""; position: absolute; inset: 0; }


/* ==========================================================================
   12. ГЕОГРАФИЯ РАБОТ И КАРТА
   Контур области и границы Москвы построены по данным OpenStreetMap.
   ========================================================================== */
.geo{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.geo__map{
  position: relative;
  padding: clamp(16px, 2vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(74% 60% at 48% 44%, rgba(184, 135, 78, .07), transparent 68%),
    var(--surface);
}
.geo__cap{ margin-top: 10px; font-size: 9.5px; color: var(--bone-3); }

.map{ width: 100%; height: auto; }
.map__region{
  fill: rgba(236, 234, 230, .065);
  stroke: rgba(236, 234, 230, .3);
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.map__city{
  fill: rgba(236, 234, 230, .1);
  stroke: rgba(236, 234, 230, .34);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.map__label{
  fill: var(--bone-3);
  font-family: var(--f-mono);
  font-size: 19px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.pin{ cursor: pointer; }
.pin__halo{
  fill: var(--accent);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.4);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.pin__ring{
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  opacity: .5;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform .55s var(--ease), opacity .3s;
}
.pin__dot{
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform .5s var(--ease), fill .3s;
}
.geo.is-in .pin__ring,
.geo.is-in .pin__dot{ transform: scale(1); }
.pin:hover .pin__halo,
.pin.is-active .pin__halo{ opacity: .16; transform: scale(1); }
.pin:hover .pin__ring,
.pin.is-active .pin__ring{ opacity: 1; }
.pin.is-active .pin__dot{ fill: var(--accent-2); transform: scale(1.35); }
.pin:focus-visible{ outline: none; }
.pin:focus-visible .pin__halo{ opacity: .3; transform: scale(1); }

.geo__side{ display: grid; gap: clamp(24px, 3vw, 38px); }

/* Карточка выбранного объекта */
.obj{
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.obj__media{ aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.obj__media img{ width: 100%; height: 100%; object-fit: cover; }
.obj.is-swap .obj__media img{ animation: swap-in .55s var(--ease); }
@keyframes swap-in{
  from{ opacity: 0; transform: scale(1.04); }
  to  { opacity: 1; transform: scale(1); }
}
.obj__body{ display: grid; gap: 16px; padding: 22px; }
.obj__place{ font-size: 10px; color: var(--accent); }
.obj__name{
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: -6px;
}
.obj__specs{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.obj__specs dt{
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bone-3);
  margin-bottom: 4px;
}
.obj__specs dd{ font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Список районов */
.dists{ border-top: 1px solid var(--line); }
.dist{
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: padding-left .35s var(--ease);
}
.dist__n{ font-size: 10px; color: var(--bone-3); transition: color .3s; }
.dist__name{ font-size: 14.5px; font-weight: 500; color: var(--bone-2); transition: color .3s; }
.dist__count{
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--bone-3);
  transition: color .3s;
}
.dist:hover{ padding-left: 8px; }
.dist:hover .dist__name{ color: var(--bone); }
.dist.is-active{ padding-left: 8px; }
.dist.is-active .dist__n{ color: var(--accent); }
.dist.is-active .dist__name{ color: var(--bone); }
.dist.is-active .dist__count{ color: var(--accent); }


/* ==========================================================================
   13. СМЕТА
   ========================================================================== */
.est__head{ display: grid; gap: 18px; margin-bottom: clamp(38px, 4.4vw, 60px); max-width: 56ch; }

.erow{
  display: grid;
  grid-template-columns: 20px minmax(120px, 210px) minmax(60px, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding: clamp(16px, 1.7vw, 22px) 0;
  border-bottom: 1px solid var(--line);
}
.erow__ic{ color: var(--bone-3); }
.erow__name{ font-size: 14.5px; font-weight: 500; }
.erow__bar{ position: relative; height: 2px; }
.erow__bar i{
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, rgba(184, 135, 78, .25), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.15s var(--ease) var(--rd);
}
.erow.is-in .erow__bar i{ transform: scaleX(1); }
.erow__val{
  min-width: 11ch;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.est__total{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 3.4vw, 50px);
  padding: clamp(28px, 3.2vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(66% 130% at 0% 0%, rgba(184, 135, 78, .08), transparent 62%),
    var(--surface);
}
.est__total-label{
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.est__total-num{
  margin-top: 12px;
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.est__cur{ color: var(--accent); }
.est__total-note{ margin-top: 16px; max-width: 40ch; font-size: 14px; color: var(--bone-2); }


/* ==========================================================================
   14. ЭТАПЫ СТРОИТЕЛЬСТВА
   ========================================================================== */
.rail{ position: relative; }

.steps{
  --step-gap: clamp(16px, 1.8vw, 28px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--step-gap);
}
.steps::before,
.steps::after{
  content: "";
  position: absolute;
  top: 16px;
  left: calc(var(--pad) + 16px);
  right: calc(var(--pad) + (100% - var(--pad) * 2 - var(--step-gap) * 5) / 6 - 16px);
  height: 1px;
}
.steps::before{ background: var(--line-2); }
.steps::after{
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease);
}
.steps.is-in::after{ transform: scaleX(1); }

@supports (animation-timeline: view()){
  .steps::after{
    transition: none;
    animation: rail-draw linear both;
    animation-timeline: view();
    animation-range: entry 65% cover 55%;
  }
  @keyframes rail-draw{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }
}

.step{ position: relative; display: grid; gap: 11px; padding-top: 46px; }
.step__n{
  position: absolute;
  top: 8px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--accent);
  font-size: 9.5px;
  letter-spacing: .1em;
  transition: border-color .4s, background .4s, color .4s;
}
.step:hover .step__n{ border-color: var(--accent); background: var(--accent); color: var(--ink); }
.step__ic{ width: 20px; height: 20px; color: var(--bone-3); }
.step__name{
  min-height: 2.3em;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.step__time{ font-size: 10px; color: var(--accent); letter-spacing: .12em; }
.step__txt{ font-size: 13px; line-height: 1.58; color: var(--bone-2); }


/* ==========================================================================
   15. ПОСТРОЕННЫЕ ДОМА
   Мозаика: одна крупная фотография держит блок, панорама снизу закрывает
   всю ширину. Мелкая лента из четырёх плиток оставляла пустое поле.
   ========================================================================== */
.gal{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 26px 16px;
}
.gal__i{ display: grid; grid-template-rows: 1fr auto; gap: 14px; min-width: 0; }
.gal__i--a{ grid-column: 1 / 8;  grid-row: 1 / 3; }
.gal__i--b{ grid-column: 8 / 13; grid-row: 1; }
.gal__i--c{ grid-column: 8 / 13; grid-row: 2; }
.gal__i--d{ grid-column: 1 / 13; grid-row: 3; }

.gal__frame{
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface);
}
.gal__i--a .gal__frame{ height: 100%; min-height: 0; }
.gal__i--b .gal__frame,
.gal__i--c .gal__frame{ aspect-ratio: 3 / 2; }
.gal__i--d .gal__frame{ aspect-ratio: 32 / 9; }

.gal__frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) brightness(1.04);
  transition: transform 1.1s var(--ease), filter .6s;
}
.gal__i:hover .gal__frame img{ filter: saturate(1.04) brightness(1.12); }

.gal__cap{ display: grid; gap: 6px; }
.gal__cap b{ font-size: 15.5px; font-weight: 600; letter-spacing: .01em; }
.gal__cap .mono{ font-size: 10.5px; color: var(--bone-3); }

@supports (animation-timeline: view()){
  .gal__frame img{
    animation: work-parallax linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  @keyframes work-parallax{
    from{ transform: translateY(-3.5%) scale(1.09); }
    to  { transform: translateY(3.5%) scale(1.09); }
  }
}


/* ==========================================================================
   16. ОТЗЫВ ЗАКАЗЧИКА
   Полоса во всю ширину поверх фотографии: даёт странице передышку
   и снимает ощущение сплошной черноты.
   ========================================================================== */
.say{
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(400px, 46vw, 560px);
  padding: clamp(56px, 6vw, 92px) 0;
  overflow: hidden;
}
.say__media{ position: absolute; inset: 0; }
.say__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(.7);
}
.say__scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 13, 14, .94) 0%, rgba(12, 13, 14, .78) 46%, rgba(12, 13, 14, .5) 100%),
    linear-gradient(180deg, var(--ink) 0%, transparent 22%, transparent 78%, var(--ink) 100%);
}
.say__in{ position: relative; display: grid; gap: 30px; justify-items: start; }

.say__quote p{
  max-width: 26ch;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.9vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.24;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.say__quote p::before{ content: "«"; }
.say__quote p::after{ content: "»"; }

.say__who{ display: grid; gap: 7px; padding-left: 54px; position: relative; }
.say__who::before{
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 38px;
  height: 1px;
  background: var(--accent);
}
.say__who b{ font-size: 15px; font-weight: 600; }
.say__who .mono{ font-size: 10.5px; }


/* ==========================================================================
   17. ГАРАНТИИ И КАЛЬКУЛЯТОР
   ========================================================================== */
.bento{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.bcard{
  display: grid;
  align-content: start;
  gap: 22px;
  padding: clamp(26px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.bcard__title{ font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.014em; }
.bcard__sub{ margin-top: -12px; font-size: 13.5px; line-height: 1.55; color: var(--bone-2); }

/* Поверхность «чертёж» */
.bcard--grid{
  background-image:
    radial-gradient(88% 66% at 82% 0%, rgba(184, 135, 78, .07), transparent 62%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.checks{ display: grid; gap: 16px; }
.checks li{
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 13px;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
}
.checks .ic{ color: var(--accent); margin-top: 2px; }

.docs{ display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.doc{
  grid-column: span 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(12, 13, 14, .4);
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone-2);
  text-align: center;
  transition: border-color .35s, color .35s;
}
.doc:nth-child(4),
.doc:nth-child(5){ grid-column: span 3; }
.doc .ic{ width: 20px; height: 20px; color: var(--bone-3); transition: color .35s; }
.doc:hover{ border-color: var(--line-2); color: var(--bone); }
.doc:hover .ic{ color: var(--accent); }

/* Калькулятор: тёмная панель с тонкой рамкой, без цветной заливки */
.bcard--accent{
  border-color: var(--line-2);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(184, 135, 78, .12), transparent 64%),
    var(--surface-2);
}

.calc{ display: grid; gap: 20px; }
.calc__row{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.range{
  appearance: none;
  width: 100%;
  height: 40px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track{ height: 1px; background: var(--line-2); }
.range::-moz-range-track{ height: 1px; background: var(--line-2); }
.range::-webkit-slider-thumb{
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -7.5px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: transform .2s var(--ease-soft);
}
.range::-moz-range-thumb{
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
}
.range:active::-webkit-slider-thumb{ transform: scale(1.2); }

.calc__out{ padding-top: 20px; border-top: 1px solid var(--line-2); }
.calc__price{
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.calc__cur{ color: var(--accent); }
.calc__note{ margin-top: 12px; font-size: 13px; color: var(--bone-2); }
.calc__note b{ color: var(--bone); font-weight: 600; }


/* ==========================================================================
   18. ПОДВАЛ
   ========================================================================== */
.ftr{ background: var(--ink-2); border-top: 1px solid var(--line); }
.ftr__in{
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, .72fr)) minmax(0, 1.1fr);
  gap: 44px 32px;
  padding-block: clamp(58px, 6vw, 88px) 48px;
}
.ftr__brand{ display: grid; align-content: start; gap: 28px; }
.soc{ display: flex; gap: 8px; }
.soc a{
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--bone-3);
  transition: border-color .3s, color .3s;
}
.soc a:hover{ border-color: var(--accent); color: var(--accent); }

.ftr__col{ display: grid; align-content: start; gap: 4px; font-size: 14px; }
.ftr__h{
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.ftr__col a{ padding-block: 7px; color: var(--bone-2); width: fit-content; transition: color .25s; }
.ftr__col a:hover{ color: var(--accent-2); }
.ftr__col p{ padding-block: 7px; color: var(--bone-2); line-height: 1.6; }
.ftr__phone{ font-size: 17px; font-weight: 600; color: var(--bone) !important; }
.ftr__phone:hover{ color: var(--accent-2) !important; }

.ftr__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.ftr__legal{ display: flex; gap: 28px; flex-wrap: wrap; }
.ftr__legal a{ transition: color .25s; }
.ftr__legal a:hover{ color: var(--bone-2); }


/* ==========================================================================
   19. КАРТОЧКА ПРОЕКТА
   ========================================================================== */
.modal{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 40px);
}
.modal__veil{
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 8, .82);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.modal.is-open .modal__veil{ opacity: 1; }

.modal__win{
  position: relative;
  width: min(1080px, 100%);
  max-height: min(88dvh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--ink-2);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  scrollbar-width: thin;
}
.modal.is-open .modal__win{ opacity: 1; transform: none; }

.modal__x{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(236, 234, 230, .2);
  border-radius: var(--r);
  background: rgba(12, 13, 14, .7);
  backdrop-filter: blur(8px);
  transition: border-color .3s, background .3s;
}
.modal__x:hover{ border-color: var(--accent); }
.modal__x span{
  position: absolute;
  width: 15px;
  height: 1px;
  background: var(--bone);
}
.modal__x span:first-child{ transform: rotate(45deg); }
.modal__x span:last-child{ transform: rotate(-45deg); }

.mdl__media{ aspect-ratio: 21 / 9; overflow: hidden; background: var(--surface); }
.mdl__media img{ width: 100%; height: 100%; object-fit: cover; }

.mdl__body{ padding: clamp(26px, 3.4vw, 48px); }
.mdl__head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.mdl__eyebrow{ font-size: 10px; color: var(--accent); }
.mdl__name{
  margin-top: 10px;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.mdl__price{
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.mdl__price span{ color: var(--accent); }
.mdl__price small{
  display: block;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--bone-3);
}

.mdl__specs{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 22px 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.mdl__specs dt{
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bone-3);
  margin-bottom: 7px;
}
.mdl__specs dd{
  font-family: var(--f-display);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.mdl__cols{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding: 30px 0;
}
.mdl__h{
  margin-bottom: 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.mdl__list{ display: grid; gap: 12px; }
.mdl__list li{
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bone-2);
}
.mdl__list .ic{ width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }

.mdl__plan{ display: grid; gap: 14px; }
.mdl__floor{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--bone-2);
}
.mdl__floor b{
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 3px;
}

.mdl__foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.mdl__note{ max-width: 44ch; font-size: 13px; color: var(--bone-3); }


/* ==========================================================================
   20. АДАПТИВ
   ========================================================================== */
@media (max-width: 1180px){
  .hero__in{ grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); }
  .geo{ grid-template-columns: 1fr; }
  .bento{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcard--accent{ grid-column: span 2; }
  .ftr__in{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__brand{ grid-column: span 3; }

  .rail{
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar{ display: none; }
  .steps{
    grid-template-columns: repeat(6, 248px);
    padding-inline: var(--gutter);
    width: max-content;
  }
  /* Каждый этап рисует направляющую до следующего: не зависит от ширины ленты */
  .steps::before,
  .steps::after{ display: none; }
  .step::before{
    content: "";
    position: absolute;
    top: 16px;
    left: 16px;
    width: calc(100% + var(--step-gap));
    height: 1px;
    background: var(--line-2);
  }
  .step:last-child::before{ display: none; }
  .step{ scroll-snap-align: start; }
}

@media (max-width: 960px){
  :root{ --hdr-h: 68px; --pad: 24px; }

  .nav{
    position: fixed;
    inset: var(--hdr-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 28px;
    background: rgba(12, 13, 14, .98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .4s var(--ease), opacity .3s, visibility .3s;
  }
  .nav.is-open{ transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a{ padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a::after{ display: none; }
  .burger{ display: block; }
  .hdr__phone-sub{ display: none; }

  .hero{ min-height: auto; padding: calc(var(--hdr-h) + 40px) 0 60px; }
  .hero__in{ grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .hero__title{ margin: 22px 0 18px; }

  .pgrid{ grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; }
  .pcard--lead{ grid-row: auto; min-height: 420px; }

  .stats__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }

  .shead__facts{ gap: 28px; }

  .erow{
    grid-template-columns: 20px 1fr auto;
    grid-template-areas:
      "ic  name val"
      "bar bar  bar";
    gap: 8px 14px;
  }
  .erow__ic  { grid-area: ic; }
  .erow__name{ grid-area: name; }
  .erow__val { grid-area: val; }
  .erow__bar { grid-area: bar; }

  .mdl__cols{ grid-template-columns: 1fr; }
  .mdl__media{ aspect-ratio: 16 / 9; }

  .gal{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal__i--a{ grid-column: 1 / 3; grid-row: auto; }
  .gal__i--b,
  .gal__i--c{ grid-column: auto; grid-row: auto; }
  .gal__i--d{ grid-column: 1 / 3; grid-row: auto; }
  .gal__i--a .gal__frame{ height: auto; aspect-ratio: 16 / 9; }
  .gal__i--d .gal__frame{ aspect-ratio: 21 / 9; }

  .say__scrim{
    background:
      linear-gradient(180deg, rgba(12, 13, 14, .78) 0%, rgba(12, 13, 14, .9) 100%),
      linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%);
  }

  /* Карта сжимается, поэтому пины растут: иначе в них не попасть пальцем */
  .pin__halo{ r: 62; }
  .pin__ring{ r: 34; }
  .pin__dot { r: 15; }
}

@media (max-width: 700px){
  :root{ --pad: 20px; }

  .hdr__phone-num{ font-size: 13.5px; }
  .logo__tag{ display: none; }

  .quiz{ padding: 22px; }
  .hero__cta .btn{ flex: 1 1 100%; }

  .bento{ grid-template-columns: 1fr; }
  .bcard--accent{ grid-column: auto; }
  .calc__row{ grid-template-columns: 1fr; }

  .est__total{ flex-direction: column; align-items: stretch; }
  .est__total .btn{ width: 100%; }

  .gal{ grid-template-columns: 1fr; gap: 22px; }
  .gal__i--a,
  .gal__i--d{ grid-column: auto; }
  .gal__i--b .gal__frame,
  .gal__i--c .gal__frame,
  .gal__i--d .gal__frame{ aspect-ratio: 3 / 2; }
  .say__who{ padding-left: 0; }
  .say__who::before{ display: none; }

  .ftr__in{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__brand{ grid-column: span 2; }
  .ftr__col--contacts{ grid-column: span 2; }
  .ftr__bar{ flex-direction: column; align-items: flex-start; gap: 14px; }

  .mdl__head{ flex-direction: column; align-items: flex-start; }
  .mdl__price{ text-align: left; }
  .mdl__foot .btn{ width: 100%; }
}

@media (max-width: 430px){
  .stats__grid{ grid-template-columns: 1fr; }
  .docs{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc,
  .doc:nth-child(4),
  .doc:nth-child(5){ grid-column: auto; }
  .doc:nth-child(5){ grid-column: span 2; }
  .obj__specs{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ==========================================================================
   21. УМЕНЬШЕННАЯ АНИМАЦИЯ
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }

  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  [data-reveal]{ opacity: 1; transform: none; clip-path: none; }
  [data-reveal="mask"] > span{ transform: none; }
  .hero__img{ transform: none; }
  .pin__ring, .pin__dot{ transform: scale(1); }
  .steps::after{ transform: scaleX(1); animation: none; }
  .erow__bar i{ transform: scaleX(1); }
  .gal__frame img{ animation: none; transform: none; }
  .modal__veil, .modal__win{ opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce){
  .quiz{ background: var(--surface); backdrop-filter: none; }
  .hdr.is-stuck{ background: var(--ink); backdrop-filter: none; }
  .btn--ghost, .modal__veil, .modal__x{ backdrop-filter: none; }
  .modal__veil{ background: rgba(6, 7, 8, .95); }
}
