/* ============================================================================
   ПЕРВЫЙ ЛУЧ — стили лендинга
   ----------------------------------------------------------------------------
   Порядок: токены → база → атомы → секции → адаптив.
   Всё оформление держится на переменных в :root — для редизайна в Claude Design
   достаточно переопределить их и переписать блоки секций.
   ========================================================================== */

/* ═══════════════════════════════════════════════════════════════════════════
   1. ТОКЕНЫ
   ═════════════════════════════════════════════════════════════════════════ */
/* Локальные шрифты. Положите четыре файла в assets/fonts/ —
   до этого сработает системный фолбэк, вёрстка не поедет.
   См. assets/fonts/README.md */
@font-face { font-family: 'Golos Text'; src: url('../fonts/golos-400-cyrillic.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; src: url('../fonts/golos-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; src: url('../fonts/golos-600-cyrillic.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; src: url('../fonts/golos-600-latin.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; src: url('../fonts/onest-500-cyrillic.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; src: url('../fonts/onest-500-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; src: url('../fonts/onest-700-cyrillic.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; src: url('../fonts/onest-700-latin.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Палитра «Вечер. Камень. Точность.» — см. дирекцию, концепт 1a */
  --ink:        #100e0b;   /* уголь: тёмные секции, итог расчёта, шапка, подвал */
  --ink-2:      #1b1712;   /* уголь на ступень светлее: вторые кнопки на тёмном */
  --ink-3:      #39413d;   /* талькохлорит */
  --stone:      #39413d;   /* он же по имени: служебный тёмный, кикеры, иконки */
  --paper:      #f6f2ea;   /* извёстка: основной фон */
  --paper-2:    #efe9dd;   /* извёстка тенью: чередование секций */
  --paper-3:    #e4d5bc;   /* липа: подложки, выбранное состояние, фон печей */
  --line:       #dcd3c3;
  --line-dark:  rgba(246, 242, 234, .14);

  --text:       #100e0b;
  --text-soft:  #6b6459;
  --text-invert:#f6f2ea;
  --text-invert-soft: rgba(246, 242, 234, .70);

  --fire:       #d2501c;   /* акцент действия: только кнопки и активные состояния */
  --fire-2:     #b33f13;
  --fire-soft:  #f3e4da;
  --amber:      #e9ac52;   /* акцент цены: только цифры на тёмном */
  --wa:         #25d366;
  --tg:         #2aabee;
  --max:        #3b5bff;

  /* Типографика: Onest в заголовки и цифры, Golos Text в текст */
  --font: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Onest', var(--font);

  --fs-h1:  clamp(2.125rem, 1.1rem + 3.4vw, 3.5rem);
  --fs-h2:  clamp(1.625rem, 1.05rem + 2.2vw, 2.5rem);
  --fs-h3:  clamp(1.25rem, .95rem + .7vw, 1.5rem);
  --fs-lead:clamp(1rem, .95rem + .35vw, 1.125rem);
  --fs-body:1rem;
  --fs-sm:  .875rem;
  --fs-xs:  .8125rem;

  /* Ритм: шаг 8, секции 64 → 120 */
  --gap:    clamp(1rem, .6rem + 1.4vw, 1.5rem);
  --section-y: clamp(4rem, 2.25rem + 5vw, 7.5rem);
  --container: 1240px;
  --pad-x: clamp(1rem, .6rem + 2vw, 2.5rem);

  /* Радиус в проекте один */
  --r-sm: 2px;
  --r:    2px;
  --r-lg: 3px;
  --r-xl: 3px;

  /* Тень в проекте одна — под конфигуратором и модалками */
  --sh-sm: 0 1px 2px rgba(16, 14, 11, .06);
  --sh:    0 12px 30px -14px rgba(16, 14, 11, .22);
  --sh-lg: 0 24px 60px rgba(16, 14, 11, .28);

  --t: .22s cubic-bezier(.4, 0, .2, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. БАЗА
   ═════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Липкая шапка накрывала верх блока, к которому ведёт ссылка. Отступ
   считается от её высоты: 73 px на десктопе, 63 px на телефоне. */
[id] { scroll-margin-top: 88px; }
@media (max-width: 720px) { [id] { scroll-margin-top: 76px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

/* Заголовки балансируются по строкам, чтобы последнее слово не оставалось
   одно. text-wrap работает в свежих браузерах; для остальных в разметке
   стоят неразрывные пробелы перед последним словом. */
h1, h2, h3, h4, .section__title, .hero__title { text-wrap: balance; }
p, .section__lead { text-wrap: pretty; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }

/* Скорость: секции ниже первого экрана браузер не рисует, пока до них не
   дошли. contain-intrinsic-size держит высоту скроллбара, чтобы полоса
   не прыгала. Первый экран и следующий за ним блок из этого исключены. */
main > section:nth-of-type(n+4) { content-visibility: auto; contain-intrinsic-size: auto 800px; }

.mobilebar__btn--max { background: var(--max); color: #fff; }
.mobilebar__btn--tg { background: var(--tg); color: #fff; }

/* ═══ Плавающие мессенджеры (только десктоп) ══════════════════════════════
   Два кружка в нижнем правом углу: клик уводит прямо в переписку.
   На телефоне их нет — там снизу уже стоит липкая панель, и кружки
   налезали бы на неё. */
.msgdock {
  position: fixed; right: clamp(1rem, .5rem + 1.2vw, 1.75rem);
  bottom: clamp(1rem, .5rem + 1.2vw, 1.75rem);
  z-index: 55; display: flex; flex-direction: column; gap: .6rem;
}
.msgdock[hidden] { display: none; }
.msgdock__btn {
  position: relative; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%; color: #fff;
  box-shadow: 0 8px 22px rgba(16, 14, 11, .28);
  transition: transform var(--t), box-shadow var(--t), width var(--t);
}
.msgdock__btn svg { width: 26px; height: 26px; }
.msgdock__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 14, 11, .34); }
/* У знака MAX своя фирменная плашка с градиентом: круглый фон под ней
   превращал логотип в белое пятно. Знак занимает кнопку целиком. */
.msgdock__btn--max { background: none; box-shadow: none; }
.msgdock__btn--max svg { width: 100%; height: 100%; border-radius: 22%; box-shadow: 0 8px 22px rgba(16, 14, 11, .32); }
.msgdock__btn--tg { background: var(--tg); }
.msgdock__btn--wa { background: var(--wa); }
/* Подпись выезжает при наведении: кружок остаётся компактным, но
   человеку не нужно гадать, куда он попадёт. */
.msgdock__btn span {
  position: absolute; right: calc(100% + .55rem); white-space: nowrap;
  padding: .4em .75em; border-radius: var(--r-sm);
  background: var(--ink); color: var(--text-invert);
  font-size: var(--fs-xs); font-weight: 700; box-shadow: var(--sh-sm);
  opacity: 0; transform: translateX(6px); pointer-events: none;
  transition: opacity var(--t), transform var(--t);
}
.msgdock__btn:hover span, .msgdock__btn:focus-visible span { opacity: 1; transform: none; }

/* Иконка MAX в шапке — видна только на телефоне, рядом с «Рассчитать» */
.header__max { display: none; }


/* Хвост мобильного меню: телефон, мессенджеры и действие. На десктопе
   его нет — там всё это стоит в шапке. */
.nav__foot { display: none; }
@media (max-width: 980px) {
  .nav__foot { display: grid; gap: .55rem; padding-top: 1.1rem; margin-top: .4rem; border-top: 1px solid var(--line-dark); }
  .nav__phone { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--text-invert); padding-block: .45rem !important; }
  .nav__worktime { font-size: var(--fs-xs); color: var(--text-invert-soft); }
  .nav__msg { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
  .nav__msg .btn { flex: 1 1 auto; }
  .nav__foot .btn--block { margin-top: .3rem; }
}

/* Пальцем в ссылку высотой 20 px не попасть. Расширяем зону нажатия,
   не трогая вид: вертикальные отступы у ссылок навигации, подвала
   и контактов. */
.nav a, .footer__nav a, .contacts__list a, .footer__phone,
.header__phone a { display: inline-block; padding-block: .55rem; }
.footer__nav { gap: 0; }
.logo { padding-block: .5rem; }

/* Заголовок не должен ронять последнее слово на отдельную строку, абзац —
   заканчиваться одиноким предлогом. Браузеры без text-wrap просто игнорируют. */
h1, h2, h3, .section__title, .hero__title, .pkg__name, .step__body h3, .gcard h3 { text-wrap: balance; }
p, li, .section__lead, .hero__sub, figcaption { text-wrap: pretty; }
.section { padding-block: var(--section-y); }

.section__head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); }
.section__head--left { margin-inline: 0; text-align: left; }
.section__kicker {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--stone);
  margin-bottom: .7rem;
}
.section__title { font-size: var(--fs-h2); }
.section__lead { margin-top: 1rem; font-size: var(--fs-lead); color: var(--text-soft); }
.section__lead b { color: var(--text); }

.nb { white-space: nowrap; }

/* Атрибут hidden должен побеждать любые display из компонентов.
   Без этого .btn { display: inline-flex } перебивает его, и скрытая
   кнопка продолжает отображаться — например мессенджер без ссылки. */
[hidden] { display: none !important; }

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

/* ═══════════════════════════════════════════════════════════════════════════
   3. АТОМЫ
   ═════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 1.05em 1.9em; border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: var(--font-display); font-size: .975rem; font-weight: 700; line-height: 1.15; letter-spacing: -.015em;
  text-align: center; white-space: nowrap; transition: transform var(--t), background var(--t), box-shadow var(--t), border-color var(--t);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--fire); color: #fff; box-shadow: 0 6px 18px rgba(210, 80, 28, .28); }
.btn--primary:hover { background: var(--fire-2); }

.btn--ghost { background: transparent; border-color: currentColor; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--paper); border-color: var(--text); }

.btn--messenger { background: var(--wa); color: #fff; }
.btn--messenger:hover { background: #1eb455; }
.btn--phone { background: var(--ink-2); color: var(--text-invert); }
.btn--phone:hover { background: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--tg { background: var(--tg); color: #fff; }
.btn--max { background: var(--max); color: #fff; }
.btn--max:hover { background: #2c49d8; }

.btn--sm { padding: .78em 1.3em; font-size: var(--fs-sm); }
.btn--lg { padding: 1.2em 2.2em; font-size: 1.075rem; }
.btn--block { display: flex; width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .55em 1em; border: 1px solid var(--line); border-radius: 2px;
  background: #fff; font-size: var(--fs-sm); font-weight: 550; color: var(--text-soft);
  transition: all var(--t);
}
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--text-invert); }
.chip:hover { border-color: var(--ink); color: var(--ink); }

.field { display: block; margin-bottom: .85rem; }
.field__label { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--text-soft); margin-bottom: .35rem; }
.field__label i { font-style: normal; font-weight: 400; opacity: .7; }
.input {
  width: 100%; padding: .85em 1em; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--text); transition: border-color var(--t), box-shadow var(--t);
}
.input::placeholder { color: #a89c8d; }
.input:focus { outline: none; border-color: var(--fire); box-shadow: 0 0 0 3px rgba(216, 98, 42, .14); }
textarea.input { resize: vertical; min-height: 88px; }

.policy { margin-top: .7rem; font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.45; }
.policy a { text-decoration: underline; text-underline-offset: 2px; }

.form-status { margin-top: .65rem; font-size: var(--fs-sm); min-height: 1.2em; }
.form-status--error { color: #c0392b; }
.form-status--ok { color: #1f8a4c; }

/* ═══════════════════════════════════════════════════════════════════════════
   4. ШАПКА
   ═════════════════════════════════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(16, 14, 11, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  color: var(--text-invert);
  transition: border-color var(--t), background var(--t);
}
.header.is-stuck { background: var(--ink); border-bottom-color: var(--line-dark); }
.header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.header__inner > * { min-width: 0; }

.logo { display: inline-flex; align-items: center; gap: .65rem; flex: none; }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--fire); }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 1.02rem; font-weight: 750; letter-spacing: -.02em; }
.logo__text i { font-style: normal; font-size: .68rem; color: var(--text-invert-soft); letter-spacing: .02em; }
.logo--footer .logo__text i, .logo--footer .logo__text b { color: inherit; }

.nav { display: flex; gap: 1.35rem; margin-inline: auto; font-size: var(--fs-sm); font-weight: 550; }
.nav a { color: var(--text-invert-soft); transition: color var(--t); }
.nav a:hover { color: var(--amber); }

.header__right { display: flex; align-items: center; gap: .85rem; flex: none; }
.header__phone { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.header__phone a { font-weight: 700; font-size: .98rem; letter-spacing: -.01em; }
.header__phone span { font-size: .68rem; color: var(--text-invert-soft); }

/* Трубка в шапке: живёт только на мобильном, где номер текстом не помещается.
   Правка Влада — по номеру наверху должно быть можно позвонить пальцем. */
.header__call { display: none; width: 40px; height: 40px; flex: none; border-radius: 50%;
  place-items: center; border: 1px solid rgba(248, 243, 234, .22); color: var(--text-invert); }
.header__call svg { width: 17px; height: 17px; }

/* Бургер без обводки: рамка спорила с кнопкой «Рассчитать» рядом */
.burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 0; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text-invert); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════════════
   5. HERO
   ═════════════════════════════════════════════════════════════════════════ */
.hero { position: relative; color: var(--text-invert); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(16, 14, 11, .95) 0%, rgba(16, 14, 11, .88) 38%, rgba(16, 14, 11, .55) 72%, rgba(16, 14, 11, .35) 100%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  align-items: start;
  padding-block: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5em 1em; border: 1px solid rgba(233, 172, 82, .42); border-radius: 2px;
  background: transparent; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .01em;
  color: var(--text-invert); margin-bottom: 1.4rem;
}
.hero__badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

.hero__title { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -.035em; line-height: 1.03; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--amber); }
.hero__sub { margin-top: 1.15rem; font-size: var(--fs-lead); color: var(--text-invert-soft); max-width: 46ch; }

.hero__usp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-top: 2rem; }
.hero__usp li { display: flex; flex-direction: column; gap: .15rem; padding-left: .9rem; border-left: 1px solid rgba(246, 242, 234, .22); }
.hero__usp b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; }
.hero__usp span { font-size: var(--fs-xs); color: var(--text-invert-soft); line-height: 1.35; }

/* Кнопка в первом экране: на телефоне калькулятор уезжает вниз, и без
   явного действия человек не понимает, что тут можно посчитать. */
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.75rem; }
.hero__cta span { font-size: var(--fs-sm); color: var(--text-invert-soft); }

.hero__proof { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .13); }
/* Лицо человека в первом экране — просьба Дениса: доверие возникает
   раньше, чем человек начинает читать аргументы. */
.hero__proof-photo { width: 84px; height: 84px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid rgba(246, 242, 234, .25); }
.hero__proof-avatars { display: flex; flex: none; }
.hero__proof-avatars img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(20, 16, 12, .9); margin-left: -12px; }
.hero__proof-avatars img:first-child { margin-left: 0; }
.hero__proof p { font-size: var(--fs-sm); color: var(--text-invert-soft); line-height: 1.45; }

/* ═══════════════════════════════════════════════════════════════════════════
   6. КАЛЬКУЛЯТОР
   ═════════════════════════════════════════════════════════════════════════ */
.hero__calc { position: relative; }
.calc {
  background: var(--paper); color: var(--text);
  border-radius: var(--r-lg); padding: clamp(1.15rem, .8rem + 1vw, 1.7rem);
  box-shadow: var(--sh-lg);
  max-height: min(82vh, 860px); overflow-y: auto; overscroll-behavior: contain;
}
.calc::-webkit-scrollbar { width: 8px; }
.calc::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.calc__head { margin-bottom: 1.15rem; }
.calc__title { font-size: 1.32rem; letter-spacing: -.025em; }
.calc__sub { margin-top: .35rem; font-size: var(--fs-sm); color: var(--text-soft); }
.calc__noscript { padding: 1rem; }

.calc__field { margin-bottom: 1.15rem; }
.calc__field--row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .9rem; }
.calc__label {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-soft); margin-bottom: .55rem;
}
.calc__label i {
  font-style: normal; display: grid; place-items: center; width: 18px; height: 18px;
  border-radius: 50%; background: var(--ink); color: var(--text-invert); font-size: .65rem; letter-spacing: 0;
}
.calc__value { margin-left: auto; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; text-transform: none; letter-spacing: -.015em; color: var(--text); font-variant-numeric: tabular-nums; }
.calc__hint { margin-top: .5rem; font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.4; }

/* Табы сценария */
.calc-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.calc-mode {
  position: relative; display: flex; flex-direction: column; gap: .1rem; align-items: flex-start;
  padding: .7rem .65rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; text-align: left; transition: all var(--t);
}
.calc-mode b { font-size: .82rem; font-weight: 650; letter-spacing: -.01em; }
.calc-mode i { font-style: normal; font-size: .68rem; color: var(--text-soft); }
.calc-mode:hover { border-color: var(--ink); }
.calc-mode.is-on { background: var(--ink); border-color: var(--ink); color: var(--text-invert); }
.calc-mode.is-on i { color: rgba(248, 243, 234, .6); }
.calc-mode__best {
  position: absolute; top: -8px; right: 6px; padding: .15em .5em; border-radius: 2px;
  background: var(--amber); color: var(--ink); font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}

/* Ползунок */
.calc-range { padding-top: .2rem; }
.calc-range input[type=range] {
  margin: 0; /* у Chrome свой margin 2px — из-за него блок вылезал за карточку */
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 2px;
  background: linear-gradient(90deg, var(--fire) var(--fill, 50%), var(--paper-3) var(--fill, 50%));
  outline: none;
}
.calc-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--fire); cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.calc-range input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  border: 3px solid var(--fire); cursor: grab; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.calc-range__scale { display: flex; justify-content: space-between; margin-top: .4rem; font-size: var(--fs-xs); color: var(--text-soft); }

/* Радио-группы */
.calc-radio { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.calc-radio--slim { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.calc-radio--slim .calc-radio__opt { padding-inline: .3rem; min-width: 0; }
.calc-radio--slim .calc-radio__opt b { font-size: .74rem; white-space: nowrap; }
.calc-radio__opt {
  position: relative; display: flex; flex-direction: column; gap: .05rem;
  padding: .6rem .6rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; text-align: left; transition: all var(--t);
}
.calc-radio__opt b { font-size: .8rem; font-weight: 620; letter-spacing: -.01em; }
.calc-radio__opt i { font-style: normal; font-size: .66rem; color: var(--text-soft); line-height: 1.3; }
.calc-radio__opt:hover { border-color: var(--ink); }
.calc-radio__opt.is-on { border-color: var(--ink); background: var(--paper-3); }
.calc-radio--slim .calc-radio__opt { text-align: center; align-items: center; padding: .55rem .4rem; }

/* Раскрывашка опций */
.calc__more { border-top: 1px dashed var(--line); padding-top: .8rem; margin-bottom: 1.1rem; }
.calc__more summary {
  cursor: pointer; list-style: none; font-size: var(--fs-sm); font-weight: 650;
  display: flex; align-items: center; gap: .4rem;
}
.calc__more summary::-webkit-details-marker { display: none; }
.calc__more summary::after { content: '+'; margin-left: auto; font-size: 1.15rem; color: var(--stone); line-height: 1; }
.calc__more[open] summary::after { content: '–'; }
.calc__more summary span { color: var(--text-soft); font-weight: 500; }
.calc-opts { display: grid; gap: .35rem; margin-top: .7rem; }

.calc-opt {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; text-align: left; transition: all var(--t);
}
.calc-opt__box {
  flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 2px;
  position: relative; transition: all var(--t);
}
.calc-opt.is-on { border-color: var(--ink); background: var(--paper-3); }
.calc-opt.is-on .calc-opt__box { background: var(--fire); border-color: var(--fire); }
.calc-opt.is-on .calc-opt__box::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.calc-opt__body { display: flex; flex-direction: column; min-width: 0; }
.calc-opt__name { font-size: .82rem; font-weight: 600; }
.calc-opt__hint { font-size: .68rem; color: var(--text-soft); line-height: 1.3; }
.calc-opt__price { margin-left: auto; flex: none; font-size: .78rem; font-weight: 650; color: var(--text-soft); }
/* Счётчик стеклянных элементов: «−  2  +». Спрашиваем двери и окна штуками,
   а не квадратными метрами стекла — правка Влада 31.08.2026. */
.calc-opt--count { cursor: default; }
.calc-count { margin-left: auto; flex: none; display: flex; align-items: center; gap: .1rem; }
.calc-count__btn {
  /* 34×34 — минимум, в который уверенно попадают пальцем на телефоне */
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--paper); border-radius: 2px;
  font-size: 1rem; line-height: 1; color: var(--text); cursor: pointer; transition: border-color var(--t);
}
.calc-count__btn:hover:not(:disabled) { border-color: var(--ink); }
.calc-count__btn:disabled { opacity: .3; cursor: default; }
.calc-count b { min-width: 24px; text-align: center; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc__hint--pick { margin-top: -.35rem; margin-bottom: 1.1rem; }
.calc__hint--pick a { text-decoration: underline; text-underline-offset: 2px; }

/* Подобранная печь */
.calc-pick {
  display: flex; align-items: center; gap: .75rem; padding: .7rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper-3);
  margin-bottom: 1.1rem;
}
.calc-pick__img { flex: none; width: 56px; height: 56px; display: grid; place-items: center; background: #fff; border-radius: 2px; overflow: hidden; }
.calc-pick__img img { width: 100%; height: 100%; object-fit: contain; }
.calc-pick__body { display: flex; flex-direction: column; min-width: 0; }
.calc-pick__label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); }
.calc-pick__name { font-size: .9rem; font-weight: 680; letter-spacing: -.01em; }
.calc-pick__meta { font-size: .7rem; color: var(--text-soft); }
.calc-pick__price { margin-left: auto; flex: none; font-size: .92rem; font-weight: 750; }

/* Итог */
.calc__result { padding: 1.25rem; border-radius: var(--r); background: var(--ink); color: var(--text-invert); margin-bottom: 1rem; }
.calc__result-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.calc__result-row span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: rgba(248, 243, 234, .55); }
.calc__result-row b { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.1vw, 1.75rem); font-weight: 700; letter-spacing: -.03em; color: var(--amber); font-variant-numeric: tabular-nums; }
.calc__result-gift {
  display: flex; align-items: flex-start; gap: .45rem; margin-top: .6rem; padding-top: .6rem;
  border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); color: #a7e5bd;
}
.calc__gift-icon { color: var(--amber); }
.calc__result-note { margin-top: .5rem; font-size: .68rem; color: rgba(248, 243, 234, .45); line-height: 1.4; }

/* Цена до первого касания: вместо крупной суммы — спокойное приглашение.
   Денис просил не выпячивать цифру на старте. */
.calc__result--hidden { background: var(--paper-3); color: var(--text); }
.calc__reveal { display: grid; gap: .8rem; }
.calc__reveal p { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.45; }

.calc__label--cta { margin-bottom: .5rem; }
.calc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.calc-actions .btn { padding: .95em .6em; }
.calc__social { display: flex; align-items: center; gap: .45rem; margin-top: .7rem; font-size: var(--fs-xs); color: var(--text-soft); }
.calc__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); } }

/* ═══════════════════════════════════════════════════════════════════════════
   7. БРЕНДЫ
   ═════════════════════════════════════════════════════════════════════════ */
.brands { padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.brands__label { text-align: center; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--text-soft); margin-bottom: 1.1rem; }
.brands__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.2rem, .8rem + 2vw, 3rem); }
.brands__row img { height: 26px; width: auto; object-fit: contain; opacity: .5; filter: grayscale(1); transition: opacity var(--t), filter var(--t); }
.brands__row img:hover { opacity: 1; filter: none; }
.brands__word { font-weight: 800; letter-spacing: .06em; font-size: .95rem; color: var(--text-soft); opacity: .75; }

/* ═══════════════════════════════════════════════════════════════════════════
   8. ПОЧЕМУ ВМЕСТЕ
   ═════════════════════════════════════════════════════════════════════════ */
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); }
.why__card { padding: clamp(1.3rem, 1rem + 1vw, 2rem); border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.why__card h3 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.why__card ul { display: grid; gap: .75rem; }
.why__card li { position: relative; padding-left: 1.75rem; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.55; }
.why__card li::before { position: absolute; left: 0; top: -.05em; font-size: 1.05rem; font-weight: 700; }
.why__card--bad { background: var(--paper-2); }
.why__card--bad h3 { color: var(--text-soft); }
.why__card--bad li::before { content: '×'; color: var(--fire-2); }
.why__card--good { border-color: var(--ink); box-shadow: var(--sh); }
.why__card--good li::before { content: '✓'; color: var(--stone); }
.why__card--good .btn { margin-top: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   9. ПАКЕТЫ
   ═════════════════════════════════════════════════════════════════════════ */
.packages { background: var(--paper-2); }
.packages__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); align-items: stretch; }
.packages__grid > * { flex: 0 1 calc((100% - var(--gap) * 2) / 3); min-width: 290px; }
.pkg {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: clamp(1.3rem, 1rem + 1vw, 1.85rem); border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); transition: transform var(--t), box-shadow var(--t);
}
.pkg:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.pkg--popular { border-color: var(--ink); box-shadow: var(--sh); background: #fff; outline: 4px solid var(--paper-3); }
.pkg__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: .3em .9em; border-radius: 2px; background: var(--fire); color: #fff;
  font-size: var(--fs-xs); font-weight: 700; white-space: nowrap;
}
.pkg__name { font-size: 1.5rem; }
.pkg__tagline { margin-top: .35rem; font-size: var(--fs-sm); color: var(--text-soft); }
.pkg__price { margin-top: 1.25rem; display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.pkg__price b { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pkg__price span { font-size: var(--fs-xs); color: var(--text-soft); }
.pkg__example { margin-top: .35rem; font-size: var(--fs-sm); color: var(--text-soft); }
.pkg__example b { color: var(--text); }
.pkg__wood { margin-top: 1rem; padding: .65rem .85rem; border-radius: var(--r-sm); background: var(--paper-2); font-size: var(--fs-sm); font-weight: 600; }
.pkg__wood span { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--text-soft); text-transform: uppercase; letter-spacing: .07em; }
.pkg__list { display: grid; gap: .55rem; margin-top: 1.15rem; }
.pkg__list li { position: relative; padding-left: 1.5rem; font-size: var(--fs-sm); line-height: 1.5; }
.pkg__list li::before { content: '✓'; position: absolute; left: 0; color: var(--stone); font-weight: 700; }
.pkg .btn { margin-top: 1.5rem; padding-top: 1em; padding-bottom: 1em; }
.packages__note { margin-top: 1.5rem; text-align: center; font-size: var(--fs-sm); color: var(--text-soft); }

/* ═══════════════════════════════════════════════════════════════════════════
   10. ПЕЧИ
   ═════════════════════════════════════════════════════════════════════════ */
.stoves__filters { display: flex; flex-wrap: wrap; gap: 1.35rem; justify-content: center; margin-bottom: 2rem; }
.filter-group { display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.filter-group__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); }
.chips { justify-content: center; }

/* Карточек 16, колонок три — последний ряд неполный. Флекс с центрированием,
   чтобы одинокая карточка не висела у левого края. */
.stoves__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.stoves__grid > * { flex: 0 1 calc((100% - var(--gap) * 2) / 3); min-width: 280px; }
.stove { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; transition: transform var(--t), box-shadow var(--t); }
.stove:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.stove__media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: .5rem; background: var(--paper-3); }
.stove__media img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.stove__tier {
  position: absolute; top: .8rem; left: .8rem; padding: .25em .7em; border-radius: 2px;
  font-size: var(--fs-xs); font-weight: 700; background: #fff; color: var(--text-soft); box-shadow: var(--sh-sm);
}
.stove__tier--premium { background: var(--ink); color: var(--amber); }
.stove__tier--mid { background: var(--stone); color: var(--text-invert); }
.stove__body { padding: 1.15rem 1.25rem 0; flex: 1; }
.stove__brand { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--stone); }
.stove__name { margin-top: .3rem; font-size: 1.12rem; }
.stove__about { margin-top: .5rem; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.5; }
.stove__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.stove__tags li { padding: .22em .6em; border-radius: 2px; background: var(--paper-2); font-size: var(--fs-xs); color: var(--text-soft); }
.stove__specs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.stove__specs span { display: flex; flex-direction: column; font-size: var(--fs-xs); color: var(--text-soft); }
.stove__specs b { font-size: .92rem; color: var(--text); }
.stove__foot { display: grid; gap: .75rem; padding: 1.15rem 1.25rem; }
.stove__foot .btn { width: 100%; }
.stove__price { display: flex; align-items: baseline; gap: .5rem; }
.stove__price span { font-size: var(--fs-xs); color: var(--text-soft); }
.stove__price b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stoves__more { display: flex; justify-content: center; margin-top: 1.5rem; }
.stoves__empty { margin-top: 1.5rem; text-align: center; color: var(--text-soft); }
.stoves__empty a { color: var(--fire); text-decoration: underline; }

.stoves__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gap);
  margin-top: 2.5rem; padding: clamp(1.3rem, 1rem + 1.2vw, 2.25rem); border-radius: var(--r-lg);
  background: var(--ink); color: var(--text-invert);
}
.stoves__cta h3 { font-size: var(--fs-h3); }
.stoves__cta p { margin-top: .5rem; font-size: var(--fs-sm); color: var(--text-invert-soft); max-width: 58ch; }

/* ── Полоса «печь входит везде» под карточками сравнения ─────────────────
   Раньше это была отдельная секция «Комплект» — она повторяла мысль соседнего
   блока и удлиняла путь до цены. Осталась короткой полосой с кнопкой. */
.why__bundle {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .9rem 1.5rem; margin-top: var(--gap);
  padding: 1.35rem clamp(1.1rem, .8rem + 1vw, 1.75rem);
  border-radius: var(--r-lg); background: var(--paper-3);
}
.why__bundle li { display: flex; gap: .5rem; align-items: baseline; font-size: var(--fs-sm); color: var(--text-soft); }
.why__bundle b { flex: none; color: var(--ink); font-weight: 700; }
.why__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem; margin-top: var(--gap); text-align: center; }
.why__cta span { flex: 1 1 100%; }
.why__cta span { font-size: var(--fs-sm); color: var(--text-soft); }

/* ═══════════════════════════════════════════════════════════════════════════
   ИЗ ЧЕГО СКЛАДЫВАЕТСЯ ЦЕНА
   ─────────────────────────────────────────────────────────────────────────
   Диапазон 850 000 – 2 500 000 без объяснения читается как «не знаю сколько».
   Этот блок отвечает на «почему так дорого» до разговора с менеджером.
   ═════════════════════════════════════════════════════════════════════════ */
.pricewhy { background: var(--paper-2); }
.pricewhy__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: var(--gap); }
.pw { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.pw > :not(.pw__img) { margin-inline: clamp(1.3rem, 1rem + 1vw, 1.85rem); }
.pw > :nth-last-child(1) { margin-bottom: clamp(1.3rem, 1rem + 1vw, 1.85rem); }
/* Картинка вместо стены текста — правка Дениса: «лучше визуально показывать» */
.pw__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1.1rem; }
.pw__n { display: block; }
.pw__n { font-family: var(--font-display); font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--stone); }
/* Подпись к фото пород: кело читается как испорченная доска, если не знать,
   что это за материал. Объясняем прямо под кадром. */
.pw__cap { margin-top: -.4rem !important; margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); font-size: var(--fs-xs) !important; line-height: 1.5; }
.pw__cap b { color: var(--text); font-weight: 700; }
.pw h3 { margin-top: .4rem; font-size: 1.1rem; }
.pw p { margin-top: .6rem; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.55; }
.pw__scale { margin-top: .9rem !important; padding-top: .8rem; border-top: 1px solid var(--line); font-size: var(--fs-xs) !important; }
.pw__scale b { color: var(--text); font-weight: 700; }
.pw__scale i { font-style: normal; color: var(--stone); padding-inline: .25em; }
.pricewhy__base {
  display: grid; gap: 1rem; margin-top: var(--gap);
  padding: clamp(1.3rem, 1rem + 1.4vw, 2.25rem); border-radius: var(--r-lg);
  background: var(--ink); color: var(--text-invert);
}
.pricewhy__base h3 { font-size: var(--fs-h3); }
.pricewhy__base ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .5rem 1.5rem; }
.pricewhy__base li { position: relative; padding-left: 1.4rem; font-size: var(--fs-sm); color: var(--text-invert-soft); }
.pricewhy__base li::before { content: '✓'; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.pricewhy__base .btn { justify-self: start; }

/* ── Доказательства к гарантиям: договор и 3D-проект ────────────────────── */
.proofpair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.proofpair figure { margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.proofpair figure > :first-child { flex: 1; min-height: min(62vw, 420px); }
.proofpair img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); }
.proofpair figcaption { flex: none; }
.proofpair figcaption { display: flex; flex-direction: column; gap: .2rem; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.5; }
.proofpair figcaption b { font-size: 1rem; color: var(--text); }
.proofpair figcaption .btn { align-self: start; margin-top: .55rem; }
/* Скрин договора удалён по правке Влада — в блоке остался один кадр.
   Во всю ширину он смотрелся баннером, поэтому кладём его и подпись
   в строку: картинка слева, текст справа. */
.proofpair--single figure { flex-direction: row; align-items: center; gap: var(--gap); }
.proofpair--single figure > :first-child { flex: 1 1 58%; min-width: 0; }
.proofpair--single figcaption { flex: 1 1 42%; }

/* Условия договора: реальный текст вместо иконки — правка Дениса
   «покажи договор». Вёрстка, а не картинка: текст читается на любом экране,
   масштабируется и ничего не весит. Подписей и печатей намеренно нет —
   это бланк условий, а не скан подписанного документа. */
.doc {
  display: flex; flex-direction: column; gap: 1rem; min-height: min(62vw, 420px);
  padding: clamp(1.1rem, .8rem + 1.2vw, 1.9rem); border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.doc__head { display: flex; flex-direction: column; gap: .25rem; padding-bottom: .9rem; border-bottom: 2px solid var(--ink); }
.doc__kicker { align-self: flex-start; padding: .15em .6em; border-radius: 2px; background: var(--paper-3); font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); }
.doc__head b { font-family: var(--font-display); font-size: clamp(.95rem, .8rem + .5vw, 1.15rem); }
.doc__meta { font-size: var(--fs-xs); color: var(--text-soft); }
.doc__list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; flex: 1; }
.doc__list li { font-size: clamp(.66rem, .58rem + .3vw, .78rem); line-height: 1.5; color: var(--text-soft); }
.doc__list b { font-weight: 700; color: var(--text); }
.doc__list u { text-decoration: none; font-weight: 700; color: var(--text); background: linear-gradient(transparent 62%, var(--paper-3) 62%); }

/* Заглушки под фото, которых пока нет. Намеренно выглядят как заглушки —
   чтобы никто не принял их за готовый блок и не забыл заменить. */
.proofpair__stub, .showroom__stub {
  display: grid; place-content: center; gap: .3rem; text-align: center;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 12px, var(--paper-3) 12px 24px);
  border: 2px dashed var(--stone); border-radius: var(--r-lg); color: var(--stone); padding: 1.5rem;
}
.proofpair__stub span, .showroom__stub span { font-weight: 700; font-size: 1rem; }
.proofpair__stub i, .showroom__stub i { font-style: normal; font-size: var(--fs-xs); }
.showroom__stub { margin-top: 1.25rem; aspect-ratio: 16 / 9; }

/* Блок действий в контактах вместо второй формы: она дублировала ту,
   что стоит выше вместе с оффером. */
.contacts__act { align-self: start; padding: clamp(1.4rem, 1rem + 1.4vw, 2.25rem); border-radius: var(--r-lg); background: var(--ink); color: var(--text-invert); }
.contacts__act h3 { font-size: var(--fs-h3); }
.contacts__act p { margin-top: .6rem; font-size: var(--fs-sm); color: var(--text-invert-soft); line-height: 1.55; }
.contacts__act-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.35rem; }

/* Шоурум: реальные снимки павильона. Первый кадр крупнее — по нему
   человека узнаёт место, когда доедет. */
.showroom { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.35rem; }
.showroom img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.showroom img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* ── Оффер в блоке с формой ──────────────────────────────────────────────── */
.offer__list { display: grid; gap: .9rem; margin-top: 1.25rem; }
.offer__list li { display: flex; flex-direction: column; gap: .15rem; padding-left: 1.5rem; position: relative; }
.offer__list li::before { content: '✓'; position: absolute; left: 0; top: .05em; color: var(--amber); font-weight: 700; }
.offer__list b { font-size: 1rem; }
.offer__list span { font-size: var(--fs-sm); color: var(--text-invert-soft); line-height: 1.5; }
.cta-mid__fineprint { margin-top: 1.25rem; font-size: var(--fs-xs); color: var(--text-invert-soft); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════════
   11. КОМПЛЕКТ (секции больше нет, стили нужны лендингу-близнецу)
   ═════════════════════════════════════════════════════════════════════════ */
.bundle { background: var(--paper-2); }
.bundle__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); align-items: center; }
.bundle__copy p { margin-top: 1rem; color: var(--text-soft); font-size: var(--fs-lead); }
.bundle__list { display: grid; gap: .75rem; margin-top: 1.5rem; }
.bundle__list li { display: flex; gap: .6rem; align-items: baseline; font-size: var(--fs-sm); color: var(--text-soft); }
.bundle__list b { flex: none; color: var(--stone); font-weight: 700; }
.bundle__copy .btn { margin-top: 1.75rem; }
.bundle__media img { border-radius: var(--r-lg); box-shadow: var(--sh); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   12. ПОРТФОЛИО
   ═════════════════════════════════════════════════════════════════════════ */
.works__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.works__grid > * { flex: 0 1 calc((100% - var(--gap) * 2) / 3); min-width: 300px; }
.works__grid > .work.is-hidden { display: none; }
.work.is-hidden { display: none; }
.work__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--r); overflow: hidden; }
.work__btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.work__btn:hover img { transform: scale(1.05); }
.work__count {
  position: absolute; right: .7rem; bottom: .7rem; padding: .25em .7em; border-radius: 2px;
  background: rgba(20, 16, 12, .74); color: #fff; font-size: var(--fs-xs); font-weight: 600;
  backdrop-filter: blur(6px);
}
.work__meta { margin-top: .8rem; }
.work__meta h3 { font-size: 1.05rem; }
.work__meta p { margin-top: .2rem; font-size: var(--fs-sm); color: var(--text-soft); }
.works__more { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2.25rem; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(12, 9, 6, .93); padding: clamp(1rem, 4vw, 3rem); }
.lightbox[hidden] { display: none; }
.lightbox__frame { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: .85rem; }
.lightbox__frame img { max-height: 76vh; width: auto; margin-inline: auto; border-radius: var(--r); object-fit: contain; }
.lightbox__frame figcaption { text-align: center; color: rgba(255, 255, 255, .78); font-size: var(--fs-sm); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.1rem; }
/* Стрелки держим у краёв самого кадра и по центру картинки, иначе на
   телефоне они уезжают на подпись и перекрывают текст. */
.lightbox__frame { position: relative; }
.lightbox__nav { position: absolute; top: 38%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(12, 9, 6, .55); backdrop-filter: blur(6px); color: #fff; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; z-index: 2; }
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav--prev { left: .5rem; }
.lightbox__nav--next { right: .5rem; }
.lightbox__cta { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); }

/* ═══════════════════════════════════════════════════════════════════════════
   13. ВИДЕО
   ═════════════════════════════════════════════════════════════════════════ */
.videos { background: var(--ink); color: var(--text-invert); }
.videos .section__title { color: var(--text-invert); }
.videos__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.videos__grid > * { flex: 0 1 calc((100% - var(--gap) * 2) / 3); min-width: 280px; }
.video__btn, .video__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; border-radius: var(--r); overflow: hidden; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity var(--t); }
.video__btn:hover img { transform: scale(1.04); opacity: .85; }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fire); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.video__play svg { width: 26px; height: 26px; margin-left: 3px; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__title { margin-top: .7rem; font-size: var(--fs-sm); color: var(--text-invert-soft); }

/* ═══════════════════════════════════════════════════════════════════════════
   14. ОТЗЫВЫ
   ═════════════════════════════════════════════════════════════════════════ */
/* Отзывов пять, колонок три — последний ряд неполный. Поэтому не грид,
   а флекс с центрированием: остаток строки выравнивается по середине,
   и блок не выглядит обрубленным справа. */
.reviews__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.reviews__grid > * { flex: 0 1 calc((100% - var(--gap) * 2) / 3); min-width: 300px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.3rem, 1rem + 1vw, 1.85rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.review blockquote { margin: 0; font-size: var(--fs-sm); line-height: 1.65; color: var(--text); }
.review blockquote::before { content: '«'; color: var(--stone); font-size: 1.6rem; line-height: 0; vertical-align: -.15em; margin-right: .1em; }
.review figcaption { display: flex; align-items: center; gap: .7rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.review figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.review figcaption span { display: flex; flex-direction: column; line-height: 1.25; }
.review figcaption b { font-size: .95rem; }
.review figcaption i { font-style: normal; font-size: var(--fs-xs); color: var(--text-soft); }

/* ═══════════════════════════════════════════════════════════════════════════
   15. ЭТАПЫ
   ═════════════════════════════════════════════════════════════════════════ */
.steps { background: var(--paper-2); }
.steps__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.steps__list > * { flex: 0 1 calc((100% - var(--gap) * 2) / 3); min-width: 280px; }
.step { position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.step__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--amber); font-weight: 750; font-size: .95rem; }
.step__body h3 { font-size: 1.05rem; }
.step__body p { margin-top: .35rem; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.5; }
.step__day { margin-top: auto; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--stone); }

/* ═══════════════════════════════════════════════════════════════════════════
   16. ПРОИЗВОДСТВО
   ═════════════════════════════════════════════════════════════════════════ */
.production__inner { display: grid; grid-template-columns: minmax(300px, 5fr) minmax(320px, 7fr); gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); align-items: center; }
.production__copy p { margin-top: 1rem; color: var(--text-soft); font-size: var(--fs-lead); }
.production__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.75rem; }
.production__facts li { display: flex; flex-direction: column; padding-left: .9rem; border-left: 1px solid var(--line); }
.production__facts b { font-size: 1rem; }
.production__facts span { font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.35; }
.production__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
.production__gallery figure { display: flex; flex-direction: column; gap: .5rem; }
.production__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
/* Подпись превращает картинку в довод: каждый кадр отвечает за свой тезис. */
.production__gallery figcaption { font-size: var(--fs-xs); line-height: 1.35; color: var(--text-soft); }
.production__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.75rem; }
.production__cta span { flex: 1 1 14rem; font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.35; }

/* ═══════════════════════════════════════════════════════════════════════════
   17. ГАРАНТИИ
   ═════════════════════════════════════════════════════════════════════════ */
.guarantees { background: var(--paper-2); }
.guarantees__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.guarantees__grid > * { flex: 0 1 calc((100% - var(--gap) * 3) / 4); min-width: 272px; }
.gcard { padding: clamp(1.3rem, 1rem + 1vw, 1.75rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.gcard__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 2px; background: var(--paper-3); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }
.gcard h3 { font-size: 1.05rem; }
.gcard p { margin-top: .5rem; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════════════════════
   18. CTA-MID
   ═════════════════════════════════════════════════════════════════════════ */
.cta-mid { background: var(--ink); color: var(--text-invert); }
.cta-mid__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.75rem, 1rem + 3vw, 4rem); align-items: center; }
.cta-mid__copy h2 { font-size: var(--fs-h2); }
.cta-mid__copy p { margin-top: 1rem; color: var(--text-invert-soft); font-size: var(--fs-lead); }
.cta-mid__list { display: grid; gap: .6rem; margin-top: 1.5rem; }
.cta-mid__list li { position: relative; padding-left: 1.6rem; font-size: var(--fs-sm); color: var(--text-invert-soft); }
.cta-mid__list li::before { content: '✓'; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.cta-mid__form { padding: clamp(1.3rem, 1rem + 1.2vw, 2rem); border-radius: var(--r-lg); background: var(--paper); color: var(--text); box-shadow: var(--sh-lg); }
.cta-mid__form h3 { font-size: var(--fs-h3); margin-bottom: 1.15rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   19. FAQ
   ═════════════════════════════════════════════════════════════════════════ */
.faq__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.faq .section__head { margin-bottom: 0; }
.faq .section__head .btn { margin-top: 0; }
.faq__contact { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.faq__list { display: grid; gap: .6rem; }
.qa { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.qa summary { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; font-weight: 620; font-size: .98rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; margin-left: auto; width: 20px; height: 20px; position: relative; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; background: var(--ink); border-radius: 2px; transition: transform var(--t); }
.qa summary i::before { left: 0; right: 0; top: 9px; height: 2px; }
.qa summary i::after { top: 0; bottom: 0; left: 9px; width: 2px; }
.qa[open] summary i::after { transform: scaleY(0); }
.qa__body { padding: 0 1.3rem 1.25rem; }
/* Кнопка «Ещё вопросы»: список открывается по клику, чтобы блок не был простынёй. */
.faq__more { margin-top: .2rem; }
.qa__body p { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════════════════
   20. КОНТАКТЫ
   ═════════════════════════════════════════════════════════════════════════ */
.contacts { background: var(--paper-2); }
.contacts__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.contacts__lead { margin-top: 1rem; color: var(--text-soft); font-size: var(--fs-lead); }
.contacts__list { display: grid; gap: 1rem; margin: 1.75rem 0 0; }
.contacts__list div { display: grid; gap: .15rem; }
.contacts__list dt { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); }
.contacts__list dd { margin: 0; font-size: 1rem; font-weight: 550; }
.contacts__messengers { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.contacts__form { padding: clamp(1.3rem, 1rem + 1.2vw, 2rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); }
.contacts__form h3 { font-size: var(--fs-h3); margin-bottom: 1.15rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   21. ПОДВАЛ
   ═════════════════════════════════════════════════════════════════════════ */
.footer { background: var(--ink); color: var(--text-invert-soft); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 1.5rem; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.footer__brand p { margin-top: .9rem; font-size: var(--fs-sm); max-width: 38ch; }
.logo--footer .logo__text b { color: var(--text-invert); }
.logo--footer .logo__text i { color: var(--text-invert-soft); }
.footer h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-invert); margin-bottom: 1rem; }
.footer__nav { display: flex; flex-direction: column; gap: .55rem; font-size: var(--fs-sm); }
.footer__nav a:hover { color: var(--amber); }
.footer__contacts { display: flex; flex-direction: column; gap: .45rem; font-size: var(--fs-sm); }
.footer__phone { font-size: 1.1rem; font-weight: 700; color: var(--text-invert); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); }

/* ═══════════════════════════════════════════════════════════════════════════
   22. МОДАЛКА
   ═════════════════════════════════════════════════════════════════════════ */
.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 1rem; background: rgba(12, 9, 6, .72); backdrop-filter: blur(4px); overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__frame { position: relative; width: min(460px, 100%); max-height: 92vh; overflow-y: auto; padding: clamp(1.4rem, 1rem + 1.5vw, 2rem); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--sh-lg); }
.modal__close { position: absolute; top: .75rem; right: .75rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--text-soft); }
.modal__close:hover { background: var(--paper-3); }
.modal__title { font-size: 1.3rem; padding-right: 2rem; }
.modal__sub { margin-top: .5rem; margin-bottom: 1.4rem; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.5; }
.modal__summary { margin: 1.15rem 0; padding: .9rem 1rem; border-radius: var(--r); background: var(--ink); color: var(--text-invert); }
.modal__summary-price { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.modal__summary-price span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: rgba(248, 243, 234, .55); }
.modal__summary-price b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--amber); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.modal__summary ul { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line-dark); display: grid; gap: .25rem; }
.modal__summary li { font-size: var(--fs-xs); color: rgba(248, 243, 234, .72); }
.modal__channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: .4rem; margin-bottom: 1.1rem; }
.modal__chan { padding: .65em .4em; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: var(--fs-sm); font-weight: 600; transition: all var(--t); }
.modal__chan.is-on { background: var(--ink); border-color: var(--ink); color: var(--text-invert); }
.chips--timing .chip { font-size: var(--fs-xs); }
.modal__success { text-align: center; padding: 1rem 0; }
.modal__success-icon { width: 62px; height: 62px; margin: 0 auto 1.15rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper-3); color: var(--ink); }
.modal__success-icon svg { width: 32px; height: 32px; }
.modal__success h3 { font-size: 1.35rem; }
.modal__success p { margin-top: .6rem; font-size: var(--fs-sm); color: var(--text-soft); }
.modal__success .btn { margin-top: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   23. МОБИЛЬНАЯ ПАНЕЛЬ
   ═════════════════════════════════════════════════════════════════════════ */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: .4rem; padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
  background: rgba(16, 14, 11, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark);
  transform: translateY(110%); transition: transform var(--t);
}
.mobilebar.is-visible { transform: none; }
.mobilebar__btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  padding: .55rem .3rem; border: 1px solid rgba(246, 242, 234, .22); border-radius: var(--r-sm);
  background: transparent; color: var(--text-invert); font-family: var(--font-display); font-size: .7rem; font-weight: 600; text-align: center;
}
.mobilebar__btn svg { width: 18px; height: 18px; }
.mobilebar__btn--wa { color: var(--text-invert); border-color: rgba(246, 242, 234, .22); }
.mobilebar__btn--primary { flex: 1.5; background: var(--fire); border-color: var(--fire); color: #fff; font-size: .84rem; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════════════
   24. АДАПТИВ
   ═════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .nav { gap: 1rem; font-size: var(--fs-xs); }
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
}

@media (max-width: 980px) {
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0;
    padding: 1rem var(--pad-x) 1.5rem; background: var(--ink);
    border-bottom: 1px solid var(--line-dark); box-shadow: var(--sh);
    transform: translateY(-130%); transition: transform var(--t); margin: 0;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .nav a.nav__phone { border-bottom: 0; }
  .nav > a:last-of-type { border-bottom: 0; }
  /* Длинное меню на невысоком экране должно прокручиваться, иначе хвост
     с телефоном и кнопкой не достать. */
  .nav { max-height: calc(100dvh - 62px); overflow-y: auto; overscroll-behavior: contain; }
  .burger { display: block; }
  .header__phone { display: none; }
  .header__call { display: grid; }
  .header__right { margin-left: auto; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .calc { max-height: none; }
  .hero__usp { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .hero__cta { margin-top: 1.35rem; }
  .hero__cta .btn { width: 100%; }

  .faq__inner { grid-template-columns: minmax(0, 1fr); }
  .proofpair--single figure { flex-direction: column; }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .mobilebar { display: flex; }
  body { padding-bottom: 76px; }
  /* На узком экране логотип ужимается, дескриптор прячется — иначе шапка
     не помещается и появляется горизонтальный скролл на всю страницу. */
  .header__inner { min-height: 62px; gap: .6rem; }
  .logo { flex: 0 1 auto; min-width: 0; }
  .logo__text i { display: none; }
  .logo__text b { font-size: .95rem; white-space: nowrap; }
  .logo__mark { width: 32px; height: 32px; }
  .header__right { gap: .5rem; }
  .header__right .btn { padding: .65em .85em; }
  /* Правка Влада: телефон в шапке должен нажиматься. Трубка заняла место
     знака MAX — вчетвером с логотипом они не помещались и наезжали друг
     на друга. MAX никуда не делся: он в нижней липкой панели. */
  .header__max { display: none !important; }
  .header__call { width: 38px; height: 38px; }
  /* MAX рядом с «Рассчитать»: на телефоне шапка — единственное место,
     где мессенджер виден без прокрутки. */
  /* Знак MAX с подписью: без неё иконку принимают за абстрактную.
     Фон не нужен — у самого знака он свой, фирменный. Блок сдвинут вниз
     на половину высоты подписи, чтобы знак совпал по центру с кнопкой. */
  .header__max {
    position: relative; top: 3px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; flex: none; width: 44px; margin-left: .5rem; padding: 0; background: none;
  }
  .header__max i { font-style: normal; font-size: .5rem; font-weight: 700; letter-spacing: .12em; color: var(--text-invert-soft); line-height: 1; }
  .header__max svg { width: 28px; height: 28px; display: block; }
  /* Плавающие кружки перекрывали бы нижнюю панель */
  .msgdock { display: none !important; }
  .nav { inset: 62px 0 auto; }

  /* Портрет и текст рядом: столбиком они съедали пол-экрана */
  .hero__proof { flex-direction: row; align-items: center; gap: .85rem; }
  .hero__proof-photo { width: 92px; height: 92px; }
  .hero__proof p { font-size: var(--fs-xs); line-height: 1.4; }
  .calc__field--row { grid-template-columns: minmax(0, 1fr); }
  .calc-modes { grid-template-columns: minmax(0, 1fr); }
  .calc-mode { flex-direction: row; align-items: baseline; gap: .5rem; }
  .calc-mode__best { position: static; margin-left: auto; }
  .calc-radio { grid-template-columns: minmax(0, 1fr); }
  .calc-radio--slim { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.calc-radio--slim .calc-radio__opt { padding-inline: .3rem; min-width: 0; }
.calc-radio--slim .calc-radio__opt b { font-size: .74rem; white-space: nowrap; }
  .calc-actions { grid-template-columns: minmax(0, 1fr); }

  .stoves__filters { gap: 1rem; }
  .stoves__cta { flex-direction: column; align-items: flex-start; }
  .production__gallery { grid-template-columns: 1fr 1fr; }
  .production__facts { grid-template-columns: 1fr; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox__cta { position: static; transform: none; display: flex; justify-content: center; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   МОБИЛЬНАЯ ВЁРСТКА: ширина карточек, ряды по два, фильтры
   ─────────────────────────────────────────────────────────────────────────
   Сетки собраны на флексе с min-width 272–300 px и центрированием. На узком
   экране это давало карточку в 280 px посреди 356 px контейнера — по бокам
   висел воздух, а страница становилась вдвое длиннее нужного. Ниже сетки
   переводятся на честную ширину: текстовые блоки на всю, визуальные по два
   в ряд.
   ═════════════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  /* Поля контейнера ужимаем: на телефоне каждый пиксель ширины на счету */
  :root { --pad-x: 1rem; }

  /* Во всю ширину — там, где карточка это текст и её нельзя резать пополам */
  .packages__grid > *,
  .stoves__grid > *,
  .reviews__grid > *,
  .steps__list > *,
  .why__grid > * { flex: 1 1 100%; min-width: 0; }

  /* По два в ряд — там, где карточка это в первую очередь картинка */
  .works__grid > *,
  .videos__grid > *,
  .guarantees__grid > * { flex: 0 1 calc((100% - var(--gap)) / 2); min-width: 0; }

  /* Фильтры печей: подписи по левому краю, чипы равной ширины ровной сеткой.
     Раньше они центрировались и рассыпались рваными рядами. */
  .stoves__filters { flex-direction: column; align-items: stretch; gap: 1rem; }
  .filter-group { align-items: stretch; gap: .4rem; }
  .filter-group__label { text-align: left; }
  .stoves__filters .chips {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem; justify-content: stretch;
  }
  .stoves__filters .chip { padding: .55em .4em; text-align: center; font-size: .8rem; }

  /* Галерея цеха: на телефоне в один столбец — мелкие плитки не читались */
  .production__gallery { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
}

@media (max-width: 420px) {
  .modal__channels { grid-template-columns: minmax(0, 1fr); }
  /* Совсем узкий экран: чипов по два, иначе текст в них не помещается */
  .stoves__filters .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Печать — на всякий случай, если менеджер распечатает смету */
@media print {
  .header, .mobilebar, .modal, .lightbox, .videos, .btn { display: none !important; }
  body { background: #fff; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   25. ПРАВКИ ПО РЕВЬЮ: компактный первый экран, фото в текстовых блоках
   ═════════════════════════════════════════════════════════════════════════ */

/* ── 25.1 Первый экран ──────────────────────────────────────────────────── */
.hero__badge { margin-bottom: 1rem; }
.hero__sub { margin-top: .9rem; max-width: 42ch; }

/* Калькулятор: плотнее по вертикали, чтобы вилка и кнопка попадали в экран */
.calc { padding: 1.15rem; max-height: none; }
.calc__head { margin-bottom: .85rem; }
.calc__title { font-size: 1.25rem; }
.calc__sub { margin-top: .25rem; }
.calc__field { margin-bottom: .8rem; }
.calc__label { margin-bottom: .4rem; }
.calc__hint { margin-top: .35rem; }
.calc-mode { padding: .55rem .6rem; }
.calc-radio__opt { padding: .5rem .55rem; }
.calc-range { padding-top: 0; }
.calc-range__scale { margin-top: .25rem; }
.calc__more { padding-top: .65rem; margin-bottom: .8rem; }
.calc-pick { padding: .55rem; margin-bottom: .8rem; }
.calc-pick__img { width: 48px; height: 48px; }
.calc__result { padding: 1rem 1.1rem; margin-bottom: .8rem; }
.calc__social { margin-top: .5rem; }

/* Вилка: подпись сверху, сумма отдельной строкой во всю ширину карточки.
   Знак рубля приклеен к числу, перенос возможен только по тире. */
.calc__result-row { display: block; }
.calc__result-row span { display: block; max-width: none; line-height: 1.25; margin-bottom: .25rem; }
.calc__result-row b { display: block; font-size: clamp(1.3rem, 1rem + 1.5vw, 1.7rem); line-height: 1.15; }
.calc__result-row b i,
.modal__summary-price b i { font-style: normal; white-space: nowrap; }
.modal__summary-price b { white-space: normal; }

/* «Вилка, а не финальная цена» — не серая сноска, а заметная строка */
.calc__result-note {
  margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line-dark);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.45; color: var(--amber);
}

/* ── 25.2 Цифры доверия под первым экраном ──────────────────────────────── */
.trustbar { background: var(--ink); color: var(--text-invert); padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.trustbar__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 2vw, 3rem); align-items: center; }
.trustbar__nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.trustbar__nums li { display: flex; flex-direction: column; gap: .15rem; padding-left: .9rem; border-left: 1px solid rgba(246, 242, 234, .22); }
.trustbar__nums b { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); font-weight: 700; letter-spacing: -.025em; }
.trustbar__nums span { font-size: var(--fs-xs); color: var(--text-invert-soft); line-height: 1.35; }
.trustbar__proof { display: flex; align-items: center; gap: .9rem; }
.trustbar__avatars { display: flex; flex: none; }
.trustbar__avatars img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); margin-left: -12px; }
.trustbar__avatars img:first-child { margin-left: 0; }
.trustbar__proof p { font-size: var(--fs-sm); color: var(--text-invert-soft); line-height: 1.45; }

/* ── 25.3 Фото в пакетах отделки ────────────────────────────────────────── */
.pkg { --pkg-pad: clamp(1.3rem, 1rem + 1vw, 1.85rem); padding: var(--pkg-pad); overflow: hidden; }
.pkg::before {
  content: ''; display: block; aspect-ratio: 16 / 10;
  margin: calc(-1 * var(--pkg-pad)) calc(-1 * var(--pkg-pad)) 1.15rem;
  background: var(--paper-3) center / cover no-repeat;
}
.pkg[data-pkg-card="comfort"]::before { background-image: url('../img/works/istra-1.webp'); }
.pkg[data-pkg-card="premium"]::before { background-image: url('../img/works/sem-1.webp'); }
.pkg[data-pkg-card="author"]::before  { background-image: url('../img/works/selco-3.webp'); }
.pkg__badge { top: calc(var(--pkg-pad) * -0 + .8rem); }

/* ── 25.4 «Как у нас» — фото ────────────────────────────────────────────── */
.why__photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); margin-top: 1.25rem; }
.why__card--good .btn { margin-top: 1.15rem; }

/* ── 25.5 Живые фото печей на объектах ──────────────────────────────────── */
.stovelive { margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }
.stovelive__label {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: .9rem;
}
/* То же и здесь: фотографий может быть любое число, ряд-остаток центрируем. */
.stovelive__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.stovelive__grid img { flex: 0 1 calc((100% - .5rem * 4) / 5); min-width: 180px; }
.stovelive__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }

/* ── 25.6 Фото в этапах 4–7 ─────────────────────────────────────────────
   Денис просил показывать этапы картинками, а не текстом. Лиц в кадре нет
   ни на одном снимке — согласие монтажников не требуется.

   Правка Влада 31.08.2026 «фото камина заменить на баню»: с шестого и
   седьмого шага сняты каминные кадры (монтаж каминной топки и растопка
   кирпичного камина) — на банном лендинге им не место. Вместо них парные
   с печами из портфолио: Пестово и Тульская область. */
.steps__list .step:nth-child(4)::after,
.steps__list .step:nth-child(5)::after,
.steps__list .step:nth-child(6)::after,
.steps__list .step:nth-child(7)::after {
  content: ''; display: block; aspect-ratio: 16 / 10; margin: .35rem -1.4rem -1.4rem;
  background: var(--paper-3) center / cover no-repeat;
}
.steps__list .step:nth-child(4)::after { background-image: url('../img/production/production-2.webp'); }
.steps__list .step:nth-child(5)::after { background-image: url('../img/steps/montage-cut.webp'); }
.steps__list .step:nth-child(6)::after { background-image: url('../img/works/pestovo-2.webp'); }
.steps__list .step:nth-child(7)::after { background-image: url('../img/works/tula-2.webp'); }
.step { overflow: hidden; }

/* ── 25.7 Фото объекта под отзывом ──────────────────────────────────────── */
.review { overflow: hidden; }
.reviews__grid .review::after {
  content: ''; display: block; order: 3; aspect-ratio: 16 / 9;
  margin: 0 calc(-1 * clamp(1.3rem, 1rem + 1vw, 1.85rem)) calc(-1 * clamp(1.3rem, 1rem + 1vw, 1.85rem));
  background: var(--paper-3) center / cover no-repeat;
}
.reviews__grid .review:nth-child(1)::after { background-image: url('../img/works/sosnovii-bereg-2.webp'); }
.reviews__grid .review:nth-child(2)::after { background-image: url('../img/works/istra-1.webp'); }
.reviews__grid .review:nth-child(3)::after { background-image: url('../img/works/luzki-2-3.webp'); }
.reviews__grid .review:nth-child(4)::after { background-image: url('../img/works/tula-4.webp'); }
.reviews__grid .review:nth-child(5)::after { background-image: url('../img/works/sem-1.webp'); }
.reviews__grid .review:nth-child(n+6)::after { display: none; }
.review figcaption { margin-top: auto; }

/* ── 25.8 Иконки гарантий ───────────────────────────────────────────────── */
.gcard__icon svg { width: 24px; height: 24px; }

/* ── 25.9 Лид-магнит: подборка проектов ─────────────────────────────────── */
.magnet { background: var(--ink); color: var(--text-invert); }
.magnet__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(1.75rem, 1rem + 3vw, 4rem); align-items: center; }
.magnet .section__kicker { color: var(--amber); }
.magnet .section__title { color: var(--text-invert); max-width: 22ch; }
.magnet__lead { margin-top: 1rem; font-size: var(--fs-lead); color: var(--text-invert-soft); max-width: 52ch; }
.magnet__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; margin-top: 1.75rem; }
.magnet__field { flex: 1 1 220px; margin-bottom: 0; }
.magnet__field .field__label { color: var(--text-invert-soft); }
.magnet__form .btn { flex: none; }
.magnet__form .policy { flex: 1 1 100%; margin-top: .2rem; color: var(--text-invert-soft); }
.magnet__form .policy a { color: var(--amber); }
.magnet__form .form-status { flex: 1 1 100%; margin-top: 0; }
.magnet__media { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.magnet__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.magnet__media img:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.magnet__media img:nth-child(n+2) { aspect-ratio: 4 / 3; }

/* ── 25.10 Мобильная версия ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .production__inner { grid-template-columns: minmax(0, 1fr); }
  .trustbar__inner { grid-template-columns: minmax(0, 1fr); }
  .magnet__inner { grid-template-columns: minmax(0, 1fr); }
  .magnet__media { order: -1; }
}

@media (max-width: 720px) {
  .hero__inner { padding-block: 1.25rem 1.5rem; }
  .hero__title { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.4rem); }
  .hero__sub { font-size: 1rem; max-width: none; }
  .calc { padding: 1rem; }

  /* Раньше вилка цены была липкой и перекрывала поля конфигуратора —
     теперь едет вместе с содержимым. */
  .calc__result { margin-block: 1rem; }

  .trustbar__nums { grid-template-columns: 1fr 1fr; }
  .trustbar__proof { align-items: flex-start; }
  .stovelive__grid img { flex-basis: calc((100% - .5rem) / 2); min-width: 0; }
  .magnet__form .btn { width: 100%; }
}

@media (max-width: 420px) {
  .trustbar__nums { grid-template-columns: 1fr 1fr; }
  .stovelive__grid img { flex-basis: calc((100% - .5rem) / 2); min-width: 0; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   26. ПЕРВЫЙ ЭКРАН: вилка и кнопка всегда в кадре
   ─────────────────────────────────────────────────────────────────────────
   Поля конфигуратора прокручиваются внутри карточки, а итог и кнопки
   закреплены у её нижнего края — на 1440×900 в первый экран попадают
   заголовок, подзаголовок, начало конфигуратора, вилка цены и CTA.
   ═════════════════════════════════════════════════════════════════════════ */
@media (min-width: 721px) {
  .calc { display: flex; flex-direction: column; }
  .calc__field { margin-bottom: .8rem; }
  .calc__result { margin-top: auto; margin-bottom: .9rem; }
  .calc__cta { padding-block: .35rem .3rem; }
  .calc__social { padding-top: .35rem; }
}

/* Мобильные табы сценария — в одну строку, как в концепте */
@media (max-width: 720px) {
  .calc-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .calc-mode { flex-direction: column; align-items: center; text-align: center; padding: .6rem .3rem; }
  .calc-mode b { font-size: .78rem; }
  .calc-mode i { display: none; }
  .calc-mode__best { position: absolute; top: -8px; right: 2px; margin-left: 0; }
  .calc__field { margin-bottom: .7rem; }
}
