/* =============================================================================
   Стили. Без сборщика, внешних шрифтов и библиотек анимации.
   Мотив — рулетка и чертёж: шкала с делениями, размерные линии, сетка.
   Палитра: чернила (#0E1A2B), холодная бумага (#EEF1F4), жёлтая лента рулетки (#FFC933).
   Тёмных плит нет (28.09 Евгений: «блоки тёмные — сделай серыми»): секции различаются оттенками
   серого и белого (--paper, --paper-2, --paper-3, --card), фон — тихий узор чертежа (сетка, точки,
   деления рулетки по краю секции, тёплое свечение на широких полях), на телефоне ещё тише.

   Анимации: только transform и opacity, фото и H1 первого экрана
   не прячутся, бесконечные — на паузе вне экрана, prefers-reduced-motion — всё стоит.
   Класс .fx на <html> ставит app.js: без JS ничего не прячется.
   ============================================================================= */

@font-face {
  font-family: "Golos";
  src: url("fonts/golos-text-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
/* Запасной шрифт с метриками Golos — чтобы при подмене не прыгал текст (CLS) */
@font-face {
  font-family: "Golos Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Roboto");
  size-adjust: 104.5%;
  ascent-override: 93.8%;
  descent-override: 21%;
  line-gap-override: 0%;
}

:root {
  --ink: #0E1A2B;
  --ink-2: #44505F;
  --ink-3: #5B6576;
  --paper: #EEF1F4;
  --paper-2: #E3E8EE;
  --card: #FFFFFF;
  --line: #D6DCE4;
  --line-2: #BCC6D2;
  --tape: #FFC933;
  --tape-hi: #FFD65C;
  --tape-soft: #FFF6DA;
  --paper-3: #E6EAEF;
  --err: #B42318;
  --err-bg: #FEF3F2;

  --font: "Golos", "Golos Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gut: 16px;
  --hdr: 56px;
  --r-xl: 22px;
  --r: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 24px 56px -28px rgba(14, 26, 43, .32);
  /* фон секций: линии сетки чертежа, точки, деления рулетки по верхнему краю (свечение выключено 28.09 — читалось пятном) */
  --bg-line: rgba(14, 26, 43, .05);
  --bg-dot: rgba(14, 26, 43, .09);
  --bg-tick: rgba(14, 26, 43, .16);
  --bg-glow: rgba(255, 201, 51, 0);
  /* деления рулетки: мелкие каждые 7 px, крупные каждые 35 px */
  --ticks: repeating-linear-gradient(90deg, rgba(14, 26, 43, .55) 0 1px, transparent 1px 7px) 0 100% / 100% 5px no-repeat,
           repeating-linear-gradient(90deg, rgba(14, 26, 43, .8) 0 1px, transparent 1px 35px) 0 100% / 100% 8px no-repeat;
}
@media (min-width: 700px) { :root { --gut: 32px; --hdr: 64px; } }
@media (max-width: 699px) { :root { --bg-line: rgba(14, 26, 43, .035); --bg-dot: rgba(14, 26, 43, .06); --bg-tick: rgba(14, 26, 43, .12); --bg-glow: rgba(255, 201, 51, 0); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); scrollbar-gutter: stable; }
html.pop-lock, html.pop-lock body { overflow: hidden; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 620; letter-spacing: -.022em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.ico { width: 20px; height: 20px; flex: none; }

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

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 10px; }

/* --- Кнопки ----------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .18s, transform .18s var(--ease), box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--tape { background: var(--tape); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(14, 26, 43, .12); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { cursor: progress; opacity: .8; }

/* A4. Блик по кнопке: раз в 6 с, 3 раза и стоп. Класс .shine-on ставит app.js, когда кнопку видно */
.shine { overflow: hidden; isolation: isolate; }
.shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, .75) 50%, transparent 85%);
  transform: translateX(-130%);
}
.shine.shine-on::after { animation: shine 6s 1s 3 backwards; }
@keyframes shine { 0% { transform: translateX(-130%); } 14%, 100% { transform: translateX(300%); } }

.link {
  border: 0; background: none; padding: 4px 0; cursor: pointer;
  color: var(--ink); font-size: 15px; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.link:hover { text-decoration-thickness: 2px; }

/* --- Шапка ------------------------------------------------------------------ */
.hdr {
  position: sticky; top: 0; z-index: 40; height: var(--hdr);
  background: rgba(238, 241, 244, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.hdr.is-stuck { border-bottom-color: var(--line); }
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 8px; }
.logo__mark { width: 32px; height: 32px; flex: none; }
.logo__txt b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }
.logo__txt small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.2; color: var(--ink-3); }
/* Призыв в шапке (28.09 Евгений: «сверху много пустого места — большую плашку „Рассчитать“»).
   Телефон: маленькая «Рассчитать», высота шапки прежняя (56 px) — квиз не сдвигается; когда снизу выехала
   своя кнопка (.has-mbar), кнопка в шапке прячется — на экране одна липкая кнопка.
   700–1079: кнопка «Рассчитать кухню». От 1080: светлая плашка с текстом и крупной жёлтой кнопкой, шапка 72 px. */
.hdr__pitch { display: flex; align-items: center; gap: 16px; min-width: 0; margin-left: auto; }
.hdr__txt { display: none; }
.hdr__cta { flex: none; }
.hdr__cta .ico { width: 18px; height: 18px; }
@media (max-width: 699px) {
  .hdr__in { gap: 10px; }
  .logo, .logo__txt { min-width: 0; }
  .logo__txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hdr__cta { min-height: 36px; padding: 0 13px; gap: 6px; border-radius: 10px; font-size: 14.5px; }
  .hdr__cta-x, .hdr__cta .ico { display: none; }
}
/* до 1079 внизу своя кнопка .mbar — пока она выехала, кнопки в шапке нет (на экране одна липкая кнопка) */
@media (max-width: 1079px) {
  .hdr__cta { transition: opacity .2s, visibility 0s; }
  .has-mbar .hdr__cta { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
}
/* подпись под логотипом: целиком или никак — без обрезки «…СПб и обл…» */
@media (max-width: 400px) { .logo__txt small { display: none; } }
@media (min-width: 700px) { .hdr__cta { min-height: 42px; padding: 0 18px; border-radius: 11px; font-size: 15.5px; } }
@media (min-width: 1080px) {
  :root { --hdr: 72px; }
  .hdr__pitch {
    gap: 20px; padding: 5px 5px 5px 18px; border-radius: 16px;
    background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 12px 28px -20px rgba(14, 26, 43, .45);
  }
  .hdr__txt { display: flex; align-items: center; gap: 12px; font-size: 15.5px; line-height: 1.25; white-space: nowrap; }
  .hdr__txt::before { /* кусочек ленты рулетки */
    content: ""; flex: none; width: 26px; height: 14px; border-radius: 2px 4px 4px 2px;
    background: repeating-linear-gradient(90deg, rgba(14, 26, 43, .7) 0 1px, transparent 1px 5px) 0 100% / 100% 5px no-repeat, var(--tape);
  }
  .hdr__txt b { font-weight: 650; letter-spacing: -.01em; }
  .hdr__txt > span { color: var(--ink-3); }
  .hdr__cta { min-height: 48px; padding: 0 22px; border-radius: 12px; font-size: 17px; font-weight: 650; }
}
@media (min-width: 1080px) and (max-width: 1199px) { .hdr__txt > span { display: none; } }

/* --- Бегущая лента условий (A9) -------------------------------------------- */
/* Сама лента — рулетка: жёлтая, с делениями и «сантиметрами» перед каждым условием.
   Без JS и при «уменьшить движение» — стоит, условия переносятся в 2 строки. */
.ticker { position: relative; z-index: 2; overflow: hidden; background: var(--tape); color: var(--ink); box-shadow: inset 0 -1px 0 rgba(14, 26, 43, .18); }
.ticker__track { display: flex; width: max-content; }
.ticker__list { display: flex; flex: none; align-items: center; min-height: 40px; padding-bottom: 6px; background: var(--ticks); }
.ticker__list li {
  display: flex; align-items: baseline; gap: 9px; padding: 0 26px 0 0; white-space: nowrap;
  font-size: 14px; font-weight: 620; letter-spacing: -.005em; line-height: 1;
}
.ticker__list li::before { content: attr(data-cm); padding-left: 2px; border-left: 1.5px solid var(--ink); font: 600 10px/1 var(--mono); color: rgba(14, 26, 43, .7); align-self: stretch; padding-top: 4px; }
/* скидка фабрики — первым пунктом, белым ярлыком. На экранах от 700 px высотой — с первого экрана;
   ниже (iPhone SE, Android с панелями) лента под квизом, скидку видно в полосе «Условий» и в окне */
.ticker__chip {
  display: inline-flex; align-items: center; gap: 6px; margin: -5px 0; padding: 5px 10px 5px 7px; border-radius: 7px;
  background: var(--card); color: var(--ink); font-weight: 680; box-shadow: 0 1px 0 rgba(14, 26, 43, .18);
}
.ticker__chip .ico { width: 16px; height: 16px; }
@media (max-width: 699px) { .ticker__chip { margin: -4px 0; padding: 4px 8px 4px 6px; } .ticker__chip .ico { width: 14px; height: 14px; } }
/* отступ слева не снимаем при запуске ленты: иначе содержимое прыгает на 16 px (CLS) */
.ticker__list { padding-left: var(--gut); }
.ticker.is-live .ticker__track { animation: ticker var(--dur, 48s) linear infinite; }
.ticker.is-live.is-paused .ticker__track { animation-play-state: paused; }
@media (hover: hover) { .ticker.is-live:hover .ticker__track { animation-play-state: paused; } }
@keyframes ticker { to { transform: translateX(calc(-100% / var(--n, 2))); } }
/* ярлык скидки, закреплённый слева (.ticker__pin): только от 1080 и только пока лента едет */
.ticker__pin { display: none; }
@media (min-width: 1080px) {
  .ticker.is-live { display: flex; }
  .ticker.is-live .ticker__track { flex: none; }
  .ticker.is-live .ticker__pin:not([hidden]) {
    position: relative; z-index: 2; flex: none; display: flex; align-items: center; min-height: 40px; margin: 0;
    padding: 0 14px 6px var(--gut); background: var(--ticks), var(--tape); box-shadow: 14px 0 14px -8px var(--tape);
    font-size: 14px; line-height: 1; white-space: nowrap;
  }
  .ticker.is-live .ticker__pin:not([hidden]) ~ .ticker__track .ticker__deal { display: none; }
}
/* телефон и планшет: первые 4 с лента стоит — ярлык скидки читается целиком */
@media (max-width: 1079px) { .ticker.is-live .ticker__track { animation-delay: 4s; } }
/* телефон: лента узкая, 30 px */
@media (max-width: 699px) {
  .ticker__list { min-height: 30px; padding-bottom: 5px; }
  .ticker__list li { gap: 7px; padding-right: 20px; font-size: 12.5px; }
  .ticker__list li::before { font-size: 9px; padding-top: 3px; }
}

/* --- Первый экран ----------------------------------------------------------- */
.hero { position: relative; display: flex; flex-direction: column; padding: 0 0 0; overflow: hidden; }
.hero > .wrap { order: 1; position: relative; z-index: 2; padding-top: 10px; padding-bottom: 28px; }
.hero > .ticker { order: 2; }
/* экран выше 700 px — лента сразу под шапкой: на первом экране телефона что-то движется с первой секунды */
@media (min-height: 700px) { .hero > .ticker { order: 0; } }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14, 26, 43, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 26, 43, .055) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(110% 70% at 75% 0%, #000 25%, transparent 72%);
  mask-image: radial-gradient(110% 70% at 75% 0%, #000 25%, transparent 72%);
}
.hero__price, .hero__work { display: none; }
.hero__grid {
  position: relative; display: grid; row-gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "right" "who";
}
.hero__intro { grid-area: intro; min-width: 0; }
.hero__right { grid-area: right; display: grid; row-gap: 14px; min-width: 0; align-content: start; }
.hero__who { grid-area: who; }

.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.eyebrow::before {
  content: ""; width: 9px; height: 9px; flex: none; border-radius: 2px;
  background: var(--tape); box-shadow: 0 0 0 1px rgba(14, 26, 43, .28);
}
.hero h1 { margin-top: 8px; font-size: clamp(24px, 6.6vw, 30px); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
/* «цену посчитает» — подчёркнуто жёлтой лентой: полоса 64–92 % высоты. Полоса — левая половина
   картинки шириной 200 %: сдвигом background-position она «прорисовывается» слева направо (M1) */
.mark { background: linear-gradient(90deg, var(--tape) 50%, transparent 50%) 0 88.9% / 200% 28% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; margin: 0 -.06em; }
.w { display: inline-block; } /* слово H1: у строчного элемента transform не работает */
.hero__sub { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }

.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.specs li {
  white-space: nowrap; padding: 6px 10px; border-radius: 9px;
  font-size: 13px; color: var(--ink-2); background: var(--card); box-shadow: 0 0 0 1px var(--line);
}
.specs b { font-weight: 650; color: var(--ink); }
/* цена — кусочком жёлтой ленты с делениями */
.specs .specs__tape { position: relative; padding-bottom: 9px; color: var(--ink); background: var(--tape) ; box-shadow: none; overflow: hidden; }
.specs .specs__tape::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, rgba(14, 26, 43, .5) 0 1px, transparent 1px 6px) 0 100% / 100% 4px no-repeat, repeating-linear-gradient(90deg, rgba(14, 26, 43, .75) 0 1px, transparent 1px 30px) 0 100% / 100% 6px no-repeat; }
/* на телефоне первый экран — под квиз: регион уже в шапке, подзаголовок в одну строку,
   из фактов — две короткие фишки без прокрутки */
@media (max-width: 699px) {
  .eyebrow, .hero__more, .specs__desk { display: none; }
  .hero h1 { margin-top: 2px; }
  .hero__sub { margin-top: 6px; }
  .specs { margin-top: 10px; }
}
/* 320×568: первый ряд карточек должен влезть — фишки прячем, заголовок мельче */
@media (max-width: 340px) {
  .specs { display: none; }
  .hero h1 { font-size: 22px; }
  .hero__sub { font-size: 14px; }
}

.hero__who { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); max-width: 60ch; }

@media (min-width: 700px) {
  .hero > .wrap { padding-top: 28px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(34px, 5.2vw, 44px); }
  .hero__sub { font-size: 17px; }
}

/* Десктоп: светло-серый фон с чертёжной сеткой (28.09 Евгений: ночной «слишком тёмный»); слева заголовок, цена и плитка с реальной работой,
   справа квиз белой карточкой и под ним «Что вы получите» */
@media (min-width: 1080px) {
  .hero { background: var(--paper-2); color: var(--ink); }
  .hero > .ticker { order: 0; }
  .hero > .wrap { padding-top: 32px; padding-bottom: 44px; }
  .hero::before {
    z-index: 0; background-size: 28px 28px;
    background-image: linear-gradient(to right, rgba(14, 26, 43, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(14, 26, 43, .06) 1px, transparent 1px);
    -webkit-mask-image: radial-gradient(120% 90% at 15% 0%, #000 30%, transparent 78%); mask-image: radial-gradient(120% 90% at 15% 0%, #000 30%, transparent 78%);
  }

  .hero__grid {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "intro right" "work right" "who right";
    column-gap: 56px; row-gap: 18px;
  }
  .hero__right { row-gap: 12px; }
  .hero__intro { padding-top: 6px; }
  .qz { align-self: start; }
  .hero h1 { margin-top: 12px; font-size: clamp(34px, 2.75vw, 40px); font-weight: 640; color: var(--ink); line-height: 1.06; }
  .hero__sub { margin-top: 12px; font-size: 16.5px; color: var(--ink-2); max-width: 47ch; }
  .specs { display: none; }
  .hero__price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 18px; }
  .hero__est { font-size: 15px; color: var(--ink-2); }
  .hero__est b { color: var(--ink); font-weight: 650; }
  .hero__est small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
  .hero__who { align-self: start; font-size: 13px; color: var(--ink-3); padding-top: 10px; border-top: 1px dashed rgba(14, 26, 43, .2); }

  /* плитка «похожая кухня»: реальная работа, по ответу о форме — работа той же формы */
  .hero__work {
    display: block; grid-area: work; position: relative; margin: 0; aspect-ratio: 2.15 / 1; overflow: hidden; isolation: isolate;
    border-radius: 18px; background: #D5DCE4;
    box-shadow: 0 26px 52px -30px rgba(14, 26, 43, .5), 0 0 0 1px rgba(14, 26, 43, .08);
  }
  .hero__work img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform .9s var(--ease); animation: heroIn 1.4s var(--ease) 1.9s backwards; }
  @keyframes heroIn { from { transform: scale(1.03); } } /* после вступления, фоном: заголовок, квиз и цена уже встали */
  .hero__work.is-swap img { opacity: 0; transform: scale(1.03); }
  .hero__work-cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 8px; padding: 40px 16px 12px;
    font-size: 14px; line-height: 1.35; color: #EEF2F7;
    background: linear-gradient(to top, rgba(7, 13, 23, .88), rgba(7, 13, 23, .55) 58%, rgba(7, 13, 23, 0));
  }
  .hero__work-t b { color: #fff; font-weight: 640; }
  .hero__work-yours { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .hero__work-yours[hidden] { display: none !important; }
  .hero__work-lbl { flex: none; font: 600 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--tape); }
  .hero__work .chips { flex-wrap: nowrap; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .hero__work .chips li { font-size: 12.5px; padding: 4px 9px 4px 7px; color: #fff; background: rgba(255, 201, 51, .16); box-shadow: inset 0 0 0 1px rgba(255, 201, 51, .5); }
}

/* Цена на жёлтой ленте рулетки: крючок слева, деления снизу */
.ptape {
  position: relative; display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-left: 7px; padding: 12px 18px 22px 16px; border-radius: 3px 8px 8px 3px;
  background: var(--tape); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(14, 26, 43, .12), 0 18px 34px -18px rgba(0, 0, 0, .55);
}
.ptape::before { content: ""; position: absolute; left: -7px; top: -4px; bottom: -4px; width: 7px; border-radius: 2px 0 0 2px; background: var(--ink); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .25); }
.ptape::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(14, 26, 43, .55) 0 1px, transparent 1px 9px) 0 100% / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgba(14, 26, 43, .75) 0 1.5px, transparent 1.5px 45px) 0 100% / 100% 12px no-repeat;
}
.ptape b { font-size: 36px; font-weight: 760; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptape span { font-size: 15px; font-weight: 520; }
.hero .ptape { transform-origin: 0 50%; animation: tapeIn .8s .15s var(--ease) backwards; }
@keyframes tapeIn { from { transform: translateX(-10px); } } /* цена видна с первого кадра: только сдвиг, без прозрачности и сжатия цифр */
.ptape--big { margin-top: 28px; padding: 18px 22px 34px 20px; flex-direction: column; gap: 4px; }
.ptape--big b { font-size: clamp(40px, 11vw, 76px); }
.ptape--big span { font-size: 16px; }
.ptape--big::after { height: 16px; background: repeating-linear-gradient(90deg, rgba(14, 26, 43, .55) 0 1px, transparent 1px 10px) 0 100% / 100% 7px no-repeat, repeating-linear-gradient(90deg, rgba(14, 26, 43, .75) 0 1.5px, transparent 1.5px 50px) 0 100% / 100% 14px no-repeat; }

/* --- «Что вы получите»: ориентир цены открывается после вопроса о длине, памятка и расчёт — после отправки */
.get {
  position: relative; padding: 14px 16px 16px; border-radius: 18px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line);
}
.get__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.get__h { font-size: 15px; font-weight: 680; letter-spacing: -.01em; }
.get__pct { font: 600 12px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.get__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
@media (min-width: 560px) { .get__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; } }
.get__list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) 22px; column-gap: 10px; align-items: center; }
.get__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.get__ico .ico { width: 21px; height: 21px; }
.get__txt { min-width: 0; }
.get__txt b { display: block; font-size: 14px; font-weight: 640; line-height: 1.2; }
.get__txt small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.get__lock {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .3s calc(var(--i) * 150ms), box-shadow .3s calc(var(--i) * 150ms);
}
.get__lock .ico { grid-area: 1 / 1; width: 13px; height: 13px; transition: transform .35s var(--spring) calc(var(--i) * 150ms), opacity .2s calc(var(--i) * 150ms); }
.get__c { transform: scale(0); opacity: 0; }
.get li.is-open .get__lock { background: var(--tape); color: var(--ink); box-shadow: none; }
.get li.is-open .get__l { transform: scale(0) rotate(-40deg); opacity: 0; }
.get li.is-open .get__c { transform: none; opacity: 1; }
.get li.is-open .get__txt small { color: var(--ink); font-weight: 600; }
.get li.is-na .get__lock { visibility: hidden; }
.get__fine { margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--ink-3); }

/* чипы ответов: «угловая», «2,5–3,5 м»… */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 560; line-height: 1.2; white-space: nowrap;
  background: var(--tape-soft); box-shadow: inset 0 0 0 1px rgba(14, 26, 43, .1);
}
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--tape); box-shadow: 0 0 0 1px rgba(14, 26, 43, .35); }
.chips li.is-new { animation: chipIn .3s var(--ease) backwards; }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }

@media (min-width: 1080px) {
  .get { padding: 13px 18px 14px; }
  .get__list { margin-top: 10px; gap: 10px 18px; }
  .get__list li { grid-template-columns: 22px minmax(0, 1fr); column-gap: 9px; align-items: start; }
  .get__ico { display: none; }
  .get__lock { grid-column: 1; grid-row: 1; margin-top: 1px; }
  .get__txt { grid-column: 2; grid-row: 1; }
}

/* --- Квиз ------------------------------------------------------------------- */
.qz {
  position: relative; min-width: 0;
  background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow);
  padding: 14px 14px 12px; color: var(--ink);
  scroll-margin-top: calc(var(--hdr) + 8px);
}
@media (min-width: 700px) { .qz { padding: 24px 24px 18px; } }
@media (min-width: 1080px) { .qz { padding: 26px 28px 20px; box-shadow: 0 2px 4px rgba(14, 26, 43, .08), 0 40px 80px -36px rgba(14, 26, 43, .38); } }

.qz__meta { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.qz__count { font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qz__pct { font: 600 12px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.qz__pct::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--line-2); vertical-align: middle; }
.qz__pct b { font-weight: 700; color: var(--ink); }
.qz__back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -8px -10px -8px auto; padding: 0 10px;
  border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 14.5px; font-weight: 500;
}
.qz__back .ico { width: 18px; height: 18px; }

/* A1. Прогресс — лента рулетки: жёлтая лента с делениями выезжает (translateX, не width) */
.tape { position: relative; height: 12px; margin-top: 8px; }
.tape__clip {
  position: absolute; inset: 0; overflow: hidden; border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(14, 26, 43, .30) 0 1px, transparent 1px 7px) 0 100% / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, rgba(14, 26, 43, .45) 0 1px, transparent 1px 35px) 0 100% / 100% 8px no-repeat,
    var(--paper);
}
.tape__fill, .tape__hook {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  transform: translateX(calc((var(--p, 0) - 1) * 100%));
  transition: transform .6s var(--ease);
  animation: tapeOut .8s .25s var(--ease) backwards;
}
.tape__fill { border-radius: 3px 1px 1px 3px; background: var(--ticks), var(--tape); }
.tape__hook { top: -3px; bottom: -3px; pointer-events: none; }
.tape__hook::after { /* крючок рулетки */
  content: ""; position: absolute; right: -3px; top: 0; bottom: 0; width: 5px; border-radius: 1.5px; background: var(--ink);
}
@keyframes tapeOut { from { transform: translateX(-100%); } }
/* через ~1,5 с после загрузки рулетку один раз «тянут и отпускают» — первый экран телефона не стоит мёртвым */
/* tapeOut остаётся в списке: если имя выпадает и возвращается, браузер запускает его заново —
   после снятия .is-tug лента снова уезжала влево и 3 с стояла пустой */
.tape.is-tug .tape__fill, .tape.is-tug .tape__hook { animation: tapeOut .8s .25s var(--ease) backwards, tug 1.1s var(--ease); }
@keyframes tug {
  0%, 100% { transform: translateX(calc((var(--p, 0) - 1) * 100%)); }
  35% { transform: translateX(calc((var(--p, 0) + .14 - 1) * 100%)); }
  65% { transform: translateX(calc((var(--p, 0) - .01 - 1) * 100%)); }
}

.qz__chips { margin-top: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.qz__chips::-webkit-scrollbar { display: none; }
.qz__chips li { font-size: 12.5px; padding: 4px 9px 4px 7px; }
@media (min-width: 1080px) { .qz__chips { display: none !important; } }

.qz__step { animation: stepIn .3s var(--ease) backwards; }
.qz__step.is-first { animation: none; } /* первый вопрос из HTML — LCP, не проявляем */
.qz__step.is-back { animation-name: stepBack; }
/* не из нуля: между шагами карточка не бывает пустой белой */
@keyframes stepIn { from { opacity: .5; transform: translateX(12px); } }
@keyframes stepBack { from { opacity: .5; transform: translateX(-12px); } }

.qz__q { margin-top: 14px; font-size: 20px; font-weight: 650; line-height: 1.2; letter-spacing: -.02em; }
.qz__q:focus { outline: none; }
.qz__hint { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 700px) {
  .qz__q { margin-top: 18px; font-size: 25px; }
  .qz__hint { font-size: 15px; }
}

.opts { margin-top: 14px; display: grid; gap: 10px; }
.opts--photo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts--list { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
  .opts { margin-top: 18px; gap: 12px; }
  .opts--photo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opts--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.opt {
  position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: left; cursor: pointer;
  border-radius: var(--r); background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .18s, transform .2s var(--ease), background-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.opt:active { transform: scale(.97); } /* A5 — карточка «вжимается» */
.opt[aria-pressed="true"], .opt[aria-pressed="true"]:hover { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.opt:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.opt__tick {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: transparent;
  background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1.5px rgba(14, 26, 43, .22);
  transition: background-color .18s, color .18s, transform .25s var(--ease);
}
.opt__tick .ico { width: 16px; height: 16px; }
.opt[aria-pressed="true"] .opt__tick { background: var(--tape); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transform: scale(1.08); }
.opt.is-picked .opt__tick { animation: tickPop .26s var(--spring); }
@keyframes tickPop { 0% { transform: scale(.4); } 100% { transform: scale(1.08); } }

/* карточка с фото: подпись поверх кадра */
.opt--photo { aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; }
.opt__img, .opt__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.opt__img img { object-fit: cover; transition: transform .6s var(--ease); }
.opt--photo .opt__txt {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 30px 10px 9px;
  color: #fff; background: linear-gradient(to top, rgba(7, 13, 23, .82), rgba(7, 13, 23, .45) 55%, rgba(7, 13, 23, 0));
}
.opt__txt b { display: block; font-size: 15px; font-weight: 630; line-height: 1.2; }
.opt__txt small {
  display: -webkit-box; margin-top: 2px; font-size: 12.5px; line-height: 1.3; opacity: .88;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
@media (max-width: 699px) {
  .opt--photo:not(.opt--blank) .opt__txt { padding: 14px 9px 7px; background: linear-gradient(to top, rgba(7, 13, 23, .8), rgba(7, 13, 23, .55) 60%, rgba(7, 13, 23, 0)); }
  .opt--photo:not(.opt--blank) .opt__txt b { font-size: 14.5px; line-height: 1.15; }
  .opt--photo:not(.opt--blank) .opt__txt small { display: none; }
}
@media (min-width: 700px) {
  .opt--photo .opt__txt { padding: 36px 14px 12px; }
  .opt__txt b { font-size: 16px; }
  .opt__txt small { font-size: 13px; }
}
/* десктоп: 4:3, как сами фото — кадр целиком, карточка квиза ниже и первый экран влезает в 900 px */
/* схема формы сверху: угол, буква П, остров — видно, даже если по фото не понять */
.opt__plan {
  position: absolute; left: 8px; top: 8px; z-index: 1; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--ink);
  box-shadow: 0 1px 3px rgba(14, 26, 43, .25);
}
.opt__plan .ico { width: 24px; height: 24px; }
/* A2. Схема появляется вместе с плашкой (не пустой белый квадрат) — следом за своей карточкой, фото не трогаем */
.opt__plan { transform-origin: 30% 30%; animation: planIn .45s var(--spring) backwards; animation-delay: calc(.22s + var(--i, 0) * 55ms); }
@keyframes planIn { from { opacity: 0; transform: scale(.5) rotate(-8deg); } }
@media (min-width: 700px) { .opt__plan { width: 38px; height: 38px; left: 10px; top: 10px; } .opt__plan .ico { width: 27px; height: 27px; } }
/* «Пока не знаю» — без фото, как лист чертежа */
.opt--blank {
  background:
    linear-gradient(to right, rgba(14, 26, 43, .06) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(to bottom, rgba(14, 26, 43, .06) 1px, transparent 1px) 0 0 / 14px 14px,
    var(--paper);
}
.opt--blank .opt__ico { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); color: var(--ink-2); }
.opt--blank .opt__ico .ico { width: 52px; height: 52px; }
.opt--blank .opt__txt { color: var(--ink); background: none; }

/* A3. Подсказка «с чего начать»: 6 с без клика — кольцо на первой карточке и «волна» галочек */
.opt.is-nudge { z-index: 1; animation: nudgePulse 1.3s var(--ease) 2; }
@keyframes nudgePulse { 0%, 100% { transform: none; } 35% { transform: scale(1.03); } }
.opt.is-nudge::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 4px var(--tape), inset 0 0 0 6px rgba(14, 26, 43, .55);
  opacity: 0; animation: nudge 1.3s var(--ease) 2;
}
.opt__hint {
  position: absolute; left: 50%; top: 46%; z-index: 4; display: grid; justify-items: center; gap: 1px; width: max-content; max-width: 88%;
  padding: 7px 12px 8px; border-radius: 12px; text-align: center; pointer-events: none;
  background: var(--tape); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), 0 10px 24px -10px rgba(14, 26, 43, .6);
  transform: translate(-50%, -50%); animation: hintIn 2.6s var(--ease) both;
}
.opt__hint b { font-size: 13.5px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.opt__hint small { font-size: 11.5px; line-height: 1.2; color: var(--ink-2); }
/* телефон: карточка ~120 px — чип в одну строку, не закрывает схему формы и подпись */
@media (max-width: 699px) { .opt__hint { top: 52%; padding: 6px 11px; } .opt__hint small { display: none; } }
@keyframes hintIn { 0% { opacity: 0; transform: translate(-50%, -35%) scale(.92); } 12%, 84% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -50%); } }
@keyframes nudge { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.opts.is-wave .opt__tick { animation: wave .6s var(--ease) calc(var(--i, 0) * 90ms) 2; }
@keyframes wave { 0%, 100% { transform: none; } 40% { transform: translateY(-5px) scale(1.18); } }

/* строка-вариант с иконкой */
.opt--row {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px 10px 10px;
  background: var(--card);
}
.opt--row .opt__ico {
  width: 44px; height: 44px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); transition: background-color .18s, transform .3s var(--spring);
}
.opt--row .opt__ico .ico { width: 36px; height: 36px; }
.opt--row[aria-pressed="true"] .opt__ico { transform: rotate(-4deg) scale(1.05); }
/* бюджет: знаки ₽ вместо иконок */
.opt__rub { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.opt--row .opt__txt { flex: 1; min-width: 0; }
.opt--row .opt__txt small { color: var(--ink-3); opacity: 1; }
.opt--row .opt__tick { position: static; flex: none; background: var(--card); }
.opt--row[aria-pressed="true"] { background: var(--tape-soft); }
.opt--row[aria-pressed="true"] .opt__ico { background: var(--tape); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
/* варианты-строки своей анимации не имеют: шаг въезжает целиком (сбоку, с .5) — без диагонали и без почти пустой карточки */

.qz__foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.qz__foot .ico { width: 16px; height: 16px; }
.nojs { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--tape-soft); font-size: 14px; }
.call__card > .nojs { margin-top: 0; }
.jsfail { display: none; }
.js-fail .jsfail { display: block; }
.no-js [data-form="quick"], .js-fail [data-form="quick"] { display: none; }

/* экран контактов */
.qz__sum {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper);
  font-size: 15px; line-height: 1.45; border-left: 3px solid var(--tape);
}
.qz__sum b { font-weight: 620; }
.qz__est { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 14.5px; line-height: 1.4; }
.qz__est b { font-size: 20px; font-weight: 740; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qz__est small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
@media (max-width: 560px) { .qz__est b { display: block; } }   /* вилка с новой строки, а не «примерно 135 000 –» в хвосте «Ориентир:» */
@media (max-width: 699px) { .qz__hint--contact { display: none; } }
@media (max-width: 559px) { .qz .field--name { display: none; } }
/* выбор канала связи (включается в config.js) */
.via { border: 0; margin: 0; padding: 0; min-width: 0; }
.via legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.via__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.via__opt { position: relative; }
.via__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.via__opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 11px; font-size: 15px; font-weight: 560; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .15s, box-shadow .15s; }
.via__opt input:checked + span { background: var(--tape-soft); box-shadow: inset 0 0 0 2px var(--ink); }
.via__opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.via__note { margin-top: 6px; font-size: 11.5px; line-height: 1.35; color: var(--ink-3); }
/* узкий телефон: четыре варианта сеткой 2×2 */
@media (max-width: 459px) {
  .via__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .via__opt span { display: flex; justify-content: center; min-height: 40px; font-size: 14.5px; }
}

/* готово */
.done { display: grid; justify-items: start; gap: 12px; padding: 10px 0 6px; }
.done__ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--tape); color: var(--ink); animation: pop .5s var(--spring) backwards;
}
.done__ico svg { width: 30px; height: 30px; }
.done__ico path { stroke-dasharray: 24; animation: draw .45s .25s var(--ease) backwards; } /* C1 — галочка прорисовывается */
@keyframes draw { from { stroke-dashoffset: 24; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.done h2, .done h3 { font-size: 24px; letter-spacing: -.02em; }
.done h2:focus, .done h3:focus { outline: none; }
.done p { font-size: 16px; color: var(--ink-2); max-width: 52ch; }
.done__next { display: grid; gap: 8px; width: 100%; }
.done__next li { display: flex; align-items: center; gap: 10px; font-size: 15px; animation: rowIn .35s var(--ease) backwards; animation-delay: calc(.35s + var(--i, 0) * 150ms); }
.done__next .ck { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tape); }
.done__next .ck .ico { width: 14px; height: 14px; }
.done__est { width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--tape-soft); font-size: 14.5px !important; line-height: 1.45; color: var(--ink) !important; }
.done__est b { font-size: 20px; font-weight: 740; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.done__est small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
/* сумма ориентира не рвётся между «80» и «000» */
/* вилка ориентира «примерно 90 000 – 144 000 ₽»: суммы неразрывные (nbsp в app.js и index.html), перенос — только после «примерно» и после тире */
.memo { width: 100%; padding: 14px 16px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.memo__h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 680; }
.memo__h .ico { color: var(--ink); }
.memo ol { margin-top: 10px; display: grid; gap: 8px; counter-reset: m; }
.memo li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); counter-increment: m; }
.memo li::before { content: counter(m); position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 6px; display: grid; place-items: center; background: var(--ink); color: var(--tape); font: 600 11.5px/1 var(--mono); }
.memo li b { color: var(--ink); font-weight: 620; }
@media (min-width: 700px) { .done h2, .done h3 { font-size: 28px; } }

/* --- Формы ------------------------------------------------------------------ */
.lf { display: grid; gap: 14px; margin-top: 16px; }
.lf__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .lf__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field__opt { margin-left: 4px; font-weight: 400; color: var(--ink-3); }
.field input {
  width: 100%; height: 54px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  font: 500 17px/1.2 var(--font); font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #8A94A3; font-weight: 400; }
.field input:hover { border-color: #9AA6B5; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 201, 51, .55); }
.field input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
.field__err { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--err); }
.field__err:empty { display: none; }
.lf > .field__err { margin-top: -6px; }

.consent { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; cursor: pointer; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.consent input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.consent__box {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); background: #fff; color: var(--tape);
  transition: background-color .15s, border-color .15s;
}
.consent__box .ico { width: 15px; height: 15px; opacity: 0; transform: scale(.5); transition: opacity .15s, transform .25s var(--spring); }
.consent input:checked + .consent__box { background: var(--ink); border-color: var(--ink); }
.consent input:checked + .consent__box .ico { opacity: 1; transform: none; }
.consent input:focus-visible + .consent__box { box-shadow: 0 0 0 4px rgba(255, 201, 51, .7), 0 0 0 5.5px var(--ink); }
.consent input[aria-invalid="true"] + .consent__box { border-color: var(--err); box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
.consent a { color: var(--ink); text-underline-offset: 2px; padding-block: 3px; }

.lf__alert {
  padding: 12px 14px; border-radius: 12px; border: 1px solid #F3C5BF;
  background: var(--err-bg); color: #7A1A12; font-size: 14.5px; line-height: 1.45;
}
.lf__alert a { color: #7A1A12; font-weight: 600; }
.lf__alert p + p { margin-top: 6px; }
.lf__btn { width: 100%; }
@media (min-width: 560px) { .lf__btn { width: auto; min-width: 260px; justify-self: start; } }
/* C1. Отправка: по кнопке бежит лента */
.lf[aria-busy="true"] .lf__btn { overflow: hidden; }
.lf[aria-busy="true"] .lf__btn::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 45%; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 5px); opacity: .75;
  animation: busy 1s linear infinite;
}
@keyframes busy { from { transform: translateX(-100%); } to { transform: translateX(240%); } }
.lf__note { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
/* согласие без галочки: строка прямо под кнопкой отправки (29.09.2026) */
.lf__agree { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.lf__btn + .lf__agree { margin-top: -6px; }
.lf__agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; padding-block: 3px; }
.pop__cta .lf__agree { margin-top: 8px; font-size: 13.5px; }

/* B2. Подсказка свайпа: лента галереи один раз отъезжает и возвращается */
.car__track.is-hint { animation: carHint 1.1s var(--ease); }
@keyframes carHint { 0%, 100% { transform: none; } 40% { transform: translateX(-56px); } }

/* --- Ленивые фото ниже первого экрана (img[data-lazy-srcset]) ---------------- */
img[data-lazy-srcset] { display: none; }
.lz { opacity: 0; transition: opacity .5s var(--ease); }
.lz.is-loaded { opacity: 1; }

/* --- Появление при прокрутке (B1) ------------------------------------------ */
.fx .rv { transition: opacity .55s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.fx .rv:not(.in) { opacity: 0; transform: translateY(18px); }
/* галерея проявляется целиком: лесенка только у первых четырёх, дальше без задержки */
.fx .car .work.rv { transition-delay: calc(min(var(--i, 0), 3) * 70ms); }

/* --- Секции ----------------------------------------------------------------- */
.sec { position: relative; padding: 64px 0; }
@media (min-width: 1080px) { .sec { padding: 112px 0; } }
.kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font: 500 12.5px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3);
}
.kicker::after {
  content: ""; width: 56px; height: 7px;
  background:
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 1px 100% no-repeat;
  opacity: .6;
}
.sec h2 { font-size: clamp(28px, 4.4vw, 46px); }
.sec__lead { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.sec__head { margin-bottom: 32px; }
@media (min-width: 1080px) {
  .sec__head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: end; margin-bottom: 56px; }
  .sec__head > .sec__lead { margin: 0; font-size: 18px; }
  .sec__head--nav { grid-template-columns: 1fr auto; }
}

/* Деления рулетки по верхнему краю секции: мелкие каждые 8 px, крупные каждые 40 px */
.photos, .price, .deal, .faq {
  --edge: repeating-linear-gradient(90deg, var(--bg-tick) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat,
          repeating-linear-gradient(90deg, var(--bg-tick) 0 1px, transparent 1px 40px) 0 0 / 100% 10px no-repeat;
}

/* 2. Фото работ: три ракурса у каждой (по тапу), картинки грузятся при подходе к экрану.
   Фон — редкие точки, затухают к низу (верхний слой — сплошной цвет секции с прозрачным «окном») */
.photos {
  overflow: hidden;
  background:
    var(--edge),
    linear-gradient(to bottom, rgba(238, 241, 244, 0) 0, var(--paper) 70%),
    radial-gradient(circle, var(--bg-dot) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--paper);
}
.car {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding-inline: max(var(--gut), calc((100% - var(--wrap)) / 2));
}
.car::-webkit-scrollbar { display: none; }
.car:focus-visible { outline-offset: -3px; }
/* проценты в padding считаются от ширины .car — край первой карточки совпадает с .wrap */
.car__track { box-sizing: content-box; display: flex; gap: 14px; width: max-content; padding: 4px max(var(--gut), calc((100% - var(--wrap)) / 2)); }
.work { width: min(78vw, 340px); flex: none; scroll-snap-align: start; }
@media (min-width: 1080px) { .car__track { gap: 20px; } .work { width: 380px; } }
.work figure { margin: 0; }
.work__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: var(--paper-2); isolation: isolate; }
/* пока фото не пришло — по серому фону бежит блик */
.fx .work__img::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-100%);
}
/* бесконечный блик — только пока фото действительно грузится (класс ставит app.js) */
.fx .work__img.is-wait::before { animation: skel 1.4s ease-in-out infinite; }
.work__img.is-loaded::before { display: none; }
/* фото без адреса (ждёт очереди загрузки) не показывает рамку «битой картинки»; без JS — фото из <noscript> */
.work__view img:not([src]):not([srcset]) { display: none; }
@keyframes skel { to { transform: translateX(100%); } }
.work__view { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.work__view img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease), transform .9s var(--ease); }
.fx .work__img:not(.is-loaded) .work__view img, .work__view.is-swap img { opacity: 0; }
.work__view:focus-visible { outline: 3px solid var(--tape); outline-offset: -3px; }
.work__tag {
  position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 9px; border-radius: 7px; pointer-events: none;
  background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--ink);
}
.work__dots {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 7px 9px; pointer-events: none;
  border-radius: 999px; background: rgba(11, 20, 34, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.work__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: transform .3s var(--spring), background-color .2s; }
.work__dots i.on { background: #fff; transform: scale(1.3); }
.work figcaption { margin-top: 14px; font-size: 15.5px; line-height: 1.45; min-height: 2.9em; color: var(--ink-2); }
.work figcaption b { color: var(--ink); font-weight: 640; }
.work__price { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.work__price b { color: var(--ink); font-weight: 650; }
.work__calc {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 0 4px 0 0;
  border: 0; background: none; cursor: pointer; font-weight: 620; font-size: 15px;
  text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.work__calc .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.work__calc:hover .ico { transform: translateX(3px); }
.car-nav { display: none; }
.work__thumbs { display: none; }
@media (min-width: 1080px) {
  .sec__head--nav { grid-template-columns: 1fr; }
  .car { overflow: visible; scroll-snap-type: none; }
  .car__track {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px;
    width: auto; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding: 4px var(--gut); box-sizing: border-box;
  }
  .work { width: auto; }
  .work:nth-child(n+9) { display: none; }
  .work__dots { display: none; }
  .work__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  .work__th {
    position: relative; display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer;
    background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .18s, transform .2s var(--ease);
  }
  .work__th img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); }
  .work__th img.is-loaded { opacity: 1; }
  .work__th.on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
  .work__th:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
}
.car-btn {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card); transition: background-color .15s, opacity .15s, transform .2s var(--ease);
}
.car-btn:active { transform: scale(.94); }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-count { min-width: 72px; text-align: center; font: 500 13px var(--mono); color: var(--ink-3); }
.photos__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: 32px; }
.photos__foot p { font-size: 14px; color: var(--ink-3); max-width: 60ch; }

/* 3. Как это работает (B4): линия-рулетка прочерчивается, шаги загораются по очереди.
   Светло-серая секция (28.09: без тёмных плит) с сеткой чертежа, затухающей от правого верхнего угла */
.how { background: var(--paper-2); color: var(--ink); overflow: hidden; }
.how::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--bg-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-line) 1px, transparent 1px),
    radial-gradient(60% 55% at 0% 100%, var(--bg-glow), transparent 70%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  -webkit-mask-image: radial-gradient(110% 100% at 100% 0%, #000 25%, rgba(0, 0, 0, .35) 75%);
  mask-image: radial-gradient(110% 100% at 100% 0%, #000 25%, rgba(0, 0, 0, .35) 75%);
}
.how .wrap { position: relative; }
.how__lead { margin-top: 20px; max-width: 40ch; font-size: clamp(18px, 2.1vw, 24px); line-height: 1.45; letter-spacing: -.012em; color: var(--ink-2); }
@media (min-width: 1080px) {
  .how__head { display: grid; grid-template-columns: .8fr 1.2fr; column-gap: 64px; align-items: end; }
  .how__lead { margin: 0; }
}
.steps { position: relative; display: grid; gap: 30px; margin: 44px 0 36px; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 18px; top: 18px; bottom: 18px; width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(14, 26, 43, .3) 0 4px, transparent 4px 8px);
}
.steps::after { width: 3px; margin-left: -1px; background: var(--tape); transform-origin: 50% 0; transform: scaleY(0); transition: transform 1.6s var(--ease) .1s; }
.steps.in::after { transform: none; }
.step { position: relative; padding-left: 56px; }
.step__n {
  position: absolute; left: 0; top: -4px; z-index: 1; width: 37px; height: 37px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper-2); isolation: isolate;
  border: 1.5px solid var(--ink); color: var(--ink); font: 600 13px/1 var(--mono);
  transition: color .3s calc(.25s + var(--i) * .28s);
}
.step__n::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 50%; background: var(--tape); transform: scale(0); transition: transform .45s var(--spring) calc(.25s + var(--i) * .28s); }
.steps.in .step__n { color: var(--ink); }
.steps.in .step__n::before { transform: none; }
.step__ico { display: block; width: 44px; height: 44px; margin-bottom: 12px; color: var(--ink); }
.step h3 { font-size: 19px; line-height: 1.25; color: var(--ink); letter-spacing: -.012em; }
.step p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.fx .steps .step { transition: opacity .5s var(--ease) calc(.2s + var(--i) * .28s), transform .6s var(--ease) calc(.2s + var(--i) * .28s); }
.fx .steps:not(.in) .step { opacity: .25; transform: translateY(10px); }
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin: 72px 0 48px; }
  .steps::before, .steps::after { left: 18px; right: 0; top: 18px; bottom: auto; width: auto; margin: -4px 0 0; }
  .steps::before {
    height: 9px;
    background:
      linear-gradient(rgba(14, 26, 43, .35), rgba(14, 26, 43, .35)) 0 50% / 100% 1px no-repeat,
      repeating-linear-gradient(90deg, rgba(14, 26, 43, .25) 0 1px, transparent 1px 14px) 0 50% / 100% 7px no-repeat;
  }
  .steps::after { height: 3px; margin-top: -1.5px; transform-origin: 0 50%; transform: scaleX(0); transition-duration: 1.8s; }
  .step { padding: 60px 0 0; }
  .step__n { top: 0; }
  .step h3 { font-size: 18px; }
  .step p { font-size: 15px; }
}
.how__pics { display: grid; gap: 22px; margin: 0 0 40px; }
@media (min-width: 700px) { .how__pics { grid-template-columns: 1fr 1fr; gap: 24px; } }
.how__pic { margin: 0; }
.how__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #D5DCE4; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -32px rgba(14, 26, 43, .45); }
.how__img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.how__ill {
  position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 3px 8px; border-radius: 6px;
  background: rgba(11, 20, 34, .66); color: rgba(255, 255, 255, .88); font-size: 11.5px; line-height: 1.3;
}
.how__pic figcaption { margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.how__pic figcaption b { color: var(--ink); font-weight: 640; }
.how__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.how__date {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: var(--card); box-shadow: inset 3px 0 0 var(--tape), 0 0 0 1px var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.4;
}
.how__date b { color: var(--ink); font-weight: 650; white-space: nowrap; background: linear-gradient(transparent 62%, rgba(255, 201, 51, .6) 62%); }
.how__date .ico { color: var(--ink); }

/* 4. Сколько стоит — белая; тёплое свечение в широком поле справа */
.price { background: var(--edge), radial-gradient(40% 70% at 100% 40%, var(--bg-glow), transparent 70%), var(--card); }
.price__grid { display: grid; gap: 36px; }
@media (min-width: 1080px) { .price__grid { grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; } }
.price__note { margin-top: 20px; max-width: 52ch; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.price__card { padding: 24px 20px; border-radius: var(--r-xl); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 700px) { .price__card { padding: 32px; } }
.price__card h3 { font-size: 22px; letter-spacing: -.015em; }
.price__free { margin-top: 14px; }
.price__free li { display: grid; grid-template-columns: 26px auto 1fr; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.price__free .ico { align-self: center; width: 22px; height: 22px; }
.price__free b { font-size: 18px; font-weight: 640; }
.price__free span { font-size: 14.5px; color: var(--ink-3); text-align: right; }
.price__where { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); }
.price__card .btn { margin-top: 22px; width: 100%; }

/* разброс цен работ — шкала-рулетка 30–50 тыс., точки работ появляются по очереди */
.range { margin: 30px 0 0; max-width: 560px; }
.range figcaption { font-size: 14px; color: var(--ink-3); }
.range__scale {
  position: relative; height: 64px; margin-top: 12px; border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(14, 26, 43, .35) 0 1px, transparent 1px 5%) 0 100% / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(14, 26, 43, .18) 0 1px, transparent 1px 1%) 0 100% / 100% 5px no-repeat,
    var(--paper);
}
.range__band {
  position: absolute; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); top: 22px; height: 12px; border-radius: 3px;
  background: var(--tape); transform-origin: 0 50%;
}
.fx .range .range__band { transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
.fx .range.in .range__band { transform: none; }
.range__dots i { /* булавка: головка над лентой, ножка до шкалы; одинаковые цены — рядом */
  position: absolute; left: calc(var(--x) * 100%); top: 8px; width: 2px; height: 30px; margin-left: calc(-1px + var(--s, 0) * 6px);
  border-radius: 1px; background: var(--ink);
}
.range__dots i::before { content: ""; position: absolute; left: -4px; top: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }
.fx .range .range__dots i { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--spring); transition-delay: calc(.9s + var(--k) * 80ms); }
.fx .range.in .range__dots i { opacity: 1; transform: none; }
.range__lo, .range__hi { position: absolute; top: 40px; font-size: 13.5px; white-space: nowrap; }
.range__lo { left: 10%; }
.range__hi { right: 10%; text-align: right; }
.range__lo b, .range__hi b { font-weight: 680; font-variant-numeric: tabular-nums; }

/* ползунок длины (B5) — только при estimate: true */
.calc { margin-top: 28px; max-width: 520px; padding: 20px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.calc__lbl { display: block; font-size: 15px; font-weight: 560; }
.calc__lbl b { font-variant-numeric: tabular-nums; }
.calc__range { width: 100%; margin: 14px 0 6px; accent-color: var(--ink); height: 28px; }
.calc__tape { position: relative; display: block; height: 14px; overflow: hidden; border-radius: 3px; background: var(--card); }
.calc__fill { position: absolute; inset: 0; background: var(--ticks), var(--tape); transform: translateX(calc((var(--len, .33) - 1) * 100%)); transition: transform .35s var(--ease); }
.calc__out { margin-top: 12px; font-size: 16px; }
.calc__out b { font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc__note { margin-top: 6px; font-size: 13px; color: var(--ink-3); }

/* 5. Что записывают в договор (B6) — бумага с сеткой чертежа, затухающей от левого нижнего угла */
.deal {
  overflow: hidden;
  background:
    var(--edge),
    radial-gradient(90% 80% at 0% 100%, rgba(238, 241, 244, 0) 0, var(--paper) 72%),
    linear-gradient(to right, var(--bg-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, var(--bg-line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
}
.deal__grid { display: grid; gap: 32px; }
.deal__photo {
  position: relative; margin: 28px 0 0; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate;
  border-radius: 18px; background: var(--paper-2); box-shadow: var(--shadow);
}
.deal__photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet__in {
  display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 5px; vertical-align: 2px; white-space: nowrap;
  font: 500 10.5px/1.3 var(--mono); font-style: normal; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); background: var(--tape-soft); box-shadow: inset 0 0 0 1px rgba(14, 26, 43, .14);
}
@media (min-width: 1080px) { .deal__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; } }
.sheet {
  position: relative; padding: 22px 20px 20px; border-radius: 6px; background: #fff;
  box-shadow: 0 1px 2px rgba(14, 26, 43, .08), 0 30px 60px -34px rgba(14, 26, 43, .45);
}
.sheet::before { /* загнутый уголок листа */
  content: ""; position: absolute; right: 0; top: 0; width: 28px; height: 28px;
  background: linear-gradient(225deg, var(--paper) 50%, #E1E6EC 50%); border-bottom-left-radius: 4px;
}
@media (min-width: 700px) { .sheet { padding: 30px 34px 26px; } }
@media (min-width: 1080px) { .sheet { transform: rotate(-.8deg); } }
.sheet__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; padding: 0 26px 14px 0; border-bottom: 2px solid var(--ink); font-size: 18px; font-weight: 680; letter-spacing: -.01em; }
.sheet__h span { font: 500 11.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sheet__rows { margin-top: 4px; }
.sheet__rows li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 13px 0; border-bottom: 1px dashed var(--line-2); }
@media (min-width: 560px) { .sheet__rows li { grid-template-columns: 26px 170px minmax(0, 1fr); align-items: center; } }
.sheet__ck { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tape); }
@media (min-width: 560px) { .sheet__ck { grid-row: auto; } }
.sheet__ck .ico { width: 15px; height: 15px; }
.sheet__k { font-size: 14px; color: var(--ink-3); }
.sheet__v { font-size: 16px; font-weight: 620; }
.fx .sheet li { transition: opacity .4s var(--ease), transform .5s var(--ease); transition-delay: calc(.35s + var(--i) * 140ms); }
.fx .sheet:not(.in) li { opacity: 0; transform: translateX(-12px); }
.fx .sheet .sheet__ck { transition: transform .45s var(--spring); transition-delay: calc(.5s + var(--i) * 140ms); }
.fx .sheet:not(.in) .sheet__ck { transform: scale(0); }
.sheet__cap { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }

/* 6. FAQ (B7): плавное раскрытие. Белая, свечение в левом поле */
.faq { background: var(--edge), radial-gradient(38% 60% at 0% 70%, var(--bg-glow), transparent 70%), var(--card); }
.faq__grid { display: grid; gap: 24px; }
@media (min-width: 1080px) { .faq__grid { grid-template-columns: .75fr 1.25fr; gap: 64px; } .faq__side { position: sticky; top: calc(var(--hdr) + 32px); align-self: start; } }
.faq__list { border-top: 1px solid var(--line-2); }
.faq__list details { border-bottom: 1px solid var(--line-2); }
.faq__list summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 0; list-style: none; cursor: pointer; font-size: 18px; font-weight: 620; line-height: 1.35; letter-spacing: -.01em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:focus-visible { outline-offset: 2px; border-radius: 6px; }
.faq__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .34s var(--ease); }
.faq__a > div { min-height: 0; overflow: hidden; }
.fx .faq__list details:not(.is-open) .faq__a { grid-template-rows: 0fr; }
.faq__a p { padding: 0 50px 22px 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; transition: opacity .3s var(--ease), transform .34s var(--ease); }
.fx .faq__list details:not(.is-open) .faq__a p { opacity: 0; transform: translateY(-6px); }
.pm { position: relative; flex: none; width: 30px; height: 30px; margin-top: -2px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); transition: background-color .2s, border-color .2s, transform .3s var(--ease); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -.9px 0 0 -6px; background: var(--ink); border-radius: 1px; transition: transform .3s var(--ease), opacity .2s; }
.pm::after { transform: rotate(90deg); }
details[open] .pm { background: var(--tape); border-color: var(--tape); transform: rotate(180deg); }
details[open] .pm::after { transform: rotate(0); opacity: 0; }
.fx details:not(.is-open) .pm { background: var(--card); border-color: var(--line-2); transform: none; }
.fx details:not(.is-open) .pm::after { transform: rotate(90deg); opacity: 1; }
.faq__list summary:hover .pm { border-color: var(--ink); }
@media (min-width: 700px) { .faq__list summary { font-size: 19px; padding: 22px 0; } }

/* 7. Финальный призыв — жёлтая лента рулетки; деления едут при прокрутке (B8) */
.call { position: relative; padding: 72px 0 64px; background: var(--tape); overflow: hidden; }
.call::before {
  content: ""; position: absolute; left: -120px; right: -120px; top: 0; height: 22px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(14, 26, 43, .55) 0 1px, transparent 1px 10px) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(14, 26, 43, .7) 0 1.5px, transparent 1.5px 50px) 0 0 / 100% 18px no-repeat;
}
@supports (animation-timeline: view()) {
  .call::before { animation: tapeRun linear both; animation-timeline: view(); }
  @keyframes tapeRun { from { transform: translateX(-100px); } to { transform: translateX(100px); } }
}
.call__grid { position: relative; display: grid; gap: 28px; }
.call h2 { font-size: clamp(28px, 4.2vw, 44px); }
.call__text p { margin-top: 14px; max-width: 44ch; font-size: 17px; line-height: 1.55; color: rgba(14, 26, 43, .82); }
.call__photo { display: none; }
@media (min-width: 1080px) {
  .call__photo {
    display: block; position: relative; margin: 28px 0 0; max-width: 520px; aspect-ratio: 2.15 / 1; overflow: hidden; isolation: isolate;
    border-radius: 18px; background: rgba(14, 26, 43, .12); box-shadow: 0 24px 48px -28px rgba(14, 26, 43, .6);
  }
  .call__photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
}
.call__card { background: var(--card); border-radius: var(--r-xl); padding: 18px; box-shadow: 0 30px 60px -32px rgba(14, 26, 43, .5); }
.call__card .lf { margin-top: 0; }
@media (min-width: 700px) { .call { padding: 96px 0 88px; } .call__card { padding: 28px; } }
@media (min-width: 1080px) { .call__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }

/* 8. Подвал — светло-серый (28.09: без тёмных плит), редкие точки */
.ftr {
  padding: 48px 0 104px; color: var(--ink-2); font-size: 14px; line-height: 1.6; border-top: 1px solid var(--line);
  background: radial-gradient(circle, var(--bg-dot) 1px, transparent 1.5px) 0 0 / 22px 22px, var(--paper-2);
}
@media (min-width: 1080px) { .ftr { padding: 56px 0 48px; } }
.ftr__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; }
.ftr__brand b { font-weight: 700; letter-spacing: -.015em; }
.ftr p { margin-top: 12px; max-width: 80ch; }
.ftr__about { margin-top: 18px !important; color: var(--ink); }
.ftr a { color: var(--ink); text-underline-offset: 3px; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ftr__small { font-size: 13px; }
.ftr__req { font-size: 12px; line-height: 1.5; color: var(--ink-3); } /* реквизиты — мелко и приглушённо (28.09) */
.ftr__req a { color: inherit; }

/* Полоса «Рассчитать кухню» в конце секций, где своей кнопки нет (условия, FAQ) */
.cta-band {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px 16px; align-items: center;
  margin-top: 40px; padding: 20px; border-radius: var(--r-xl);
  background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -34px rgba(14, 26, 43, .45);
}
.cta-band--paper { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.cta-band__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tape); color: var(--ink); }
.cta-band__ico .ico { width: 24px; height: 24px; }
.cta-band__t b { display: block; font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -.012em; }
.cta-band__t > span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.cta-band .btn { grid-column: 1 / -1; width: 100%; }
@media (min-width: 700px) {
  .cta-band { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 22px; padding: 22px 22px 22px 26px; }
  .cta-band__ico { width: 52px; height: 52px; border-radius: 14px; }
  .cta-band__ico .ico { width: 28px; height: 28px; }
  .cta-band__t b { font-size: 20px; }
  .cta-band .btn { grid-column: auto; width: auto; }
}
@media (min-width: 1080px) { .cta-band { margin-top: 64px; } }

/* Окошко с условиями — одно, в пустом поле справа от контента (app.js строит его из config.capture.sideItems).
   Колонка — ровно пустое поле справа от .wrap (процент от ширины окна без полосы прокрутки), карточка
   прижата к контенту с отступом 32 px — на контент не наезжает. Показ — класс .is-on, смена условия — .is-anim. */
.side {
  position: fixed; top: var(--hdr); bottom: 0; right: 0; z-index: 30; width: calc((100% - var(--wrap)) / 2);
  display: flex; align-items: center; justify-content: flex-start; padding: 0 16px 0 32px; pointer-events: none;
  container-type: inline-size;
}
.side__card {
  position: relative; width: 100%; max-width: 280px; padding: 20px 16px 16px; border-radius: 18px;
  background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 26px 50px -30px rgba(14, 26, 43, .5);
  pointer-events: auto; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .55s;
}
.side.is-on .side__card { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s; }
.side__card::before { /* жёлтая лента рулетки сверху карточки */
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 6px; border-radius: 0 0 4px 4px;
  background: repeating-linear-gradient(90deg, rgba(14, 26, 43, .55) 0 1px, transparent 1px 7px) 0 0 / 100% 3px no-repeat, var(--tape);
}
.side__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tape); color: var(--ink); }
.side__ico .ico { width: 24px; height: 24px; }
.side__k { margin-top: 12px; font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.side__t { margin: 4px 0 14px; min-height: 3.75em; font-size: 17px; font-weight: 650; line-height: 1.25; letter-spacing: -.012em; text-wrap: balance; }
.nw { white-space: nowrap; }
.side__btn { width: 100%; padding: 0 10px; gap: 6px; }
.side__btn .ico { width: 17px; height: 17px; }
.side__x {
  position: absolute; right: 8px; top: 14px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: none; color: var(--ink-3); cursor: pointer;
}
.side__x .ico { width: 16px; height: 16px; }
.side__card.is-anim .side__ico, .side__card.is-anim .side__t { animation: sideSwap .6s var(--ease) backwards; }
.side__card.is-anim .side__t { animation-delay: .06s; }
@keyframes sideSwap { from { opacity: 0; transform: translateY(8px); } }
/* узкое поле (окно 1720–1830): карточка компактнее, кнопка в одну строку без стрелки */
@container (max-width: 290px) {
  .side__card { padding: 18px 12px 12px; }
  .side__t { font-size: 15.5px; }
  .side__btn { padding: 0 6px; font-size: 14px; white-space: nowrap; }
  .side__btn .ico { display: none; }
}

/* Окно «Сколько метров ваша кухня?»: рулетка длины → ориентир «от N ₽» → телефон (app.js, config.capture).
   Десктоп — по центру; телефон — нижним листом, экран целиком не закрывает. */
.pop {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px;
  overscroll-behavior: contain;
}
/* подложка — «молочное стекло», не затемнение: на странице нет тёмных плит */
.pop__bg {
  position: absolute; inset: 0; background: rgba(238, 241, 244, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s var(--ease); touch-action: none;
}
.pop__box {
  --pp: 28px;
  position: relative; width: 100%; max-width: 500px; max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: 34px var(--pp) 0; border-radius: var(--r-xl); background: var(--card); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px rgba(14, 26, 43, .45);
  opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.pop.is-open .pop__bg { opacity: 1; }
.pop.is-open .pop__box { opacity: 1; transform: none; }
.pop__box::before { /* лента рулетки по верху окна */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-linear-gradient(90deg, rgba(14, 26, 43, .55) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat,
              repeating-linear-gradient(90deg, rgba(14, 26, 43, .75) 0 1.5px, transparent 1.5px 40px) 0 0 / 100% 9px no-repeat, var(--tape);
}
.pop__box:focus { outline: none; }
.pop__x {
  position: absolute; right: 12px; top: 22px; z-index: 1; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--ink); cursor: pointer;
}
.pop__k { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-right: 44px; }
.pop h2 { margin-top: 8px; padding-right: 36px; font-size: 28px; font-weight: 680; letter-spacing: -.025em; line-height: 1.12; }
.pop__sub { margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.pop__sum { margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--paper); border-left: 3px solid var(--tape); font-size: 14px; line-height: 1.4; }

/* рулетка: корпус с делениями, жёлтая лента вытягивается до выбранной длины, крючок на конце */
.rul { margin-top: 20px; }
.rul__tape { position: relative; height: 28px; }
.rul__clip {
  position: absolute; inset: 0; overflow: hidden; border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(14, 26, 43, .22) 0 1px, transparent 1px calc(100% / 60)) 0 100% / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, rgba(14, 26, 43, .4) 0 1px, transparent 1px calc(100% / 12)) 0 100% / 100% 14px no-repeat,
    var(--paper-2);
}
.rul__fill, .rul__hook {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  transform: translateX(calc((var(--p, .04) - 1) * 100%));
  transition: transform .75s cubic-bezier(.3, 1.25, .5, 1);
  animation: rulOut .9s .15s var(--ease) backwards;
}
.rul__fill {
  border-radius: 4px 1px 1px 4px;
  background:
    repeating-linear-gradient(90deg, rgba(14, 26, 43, .5) 0 1px, transparent 1px calc(100% / 60)) 0 100% / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, rgba(14, 26, 43, .75) 0 1.5px, transparent 1.5px calc(100% / 12)) 0 100% / 100% 14px no-repeat,
    var(--tape);
}
.rul__hook { top: -4px; bottom: -4px; pointer-events: none; }
.rul__hook::after { content: ""; position: absolute; right: -3px; top: 0; bottom: 0; width: 6px; border-radius: 2px; background: var(--ink); }
@keyframes rulOut { from { transform: translateX(-100%); } }
/* подсказка: ленту один раз тянут и отпускают, пока длину не выбрали */
.rul.is-tug .rul__fill, .rul.is-tug .rul__hook { animation: rulOut .9s .15s var(--ease) backwards, rulTug 1.3s var(--ease); }
@keyframes rulTug {
  0%, 100% { transform: translateX(calc((var(--p, .04) - 1) * 100%)); }
  45% { transform: translateX(calc((var(--p, .04) + .38 - 1) * 100%)); }
  75% { transform: translateX(calc((var(--p, .04) - .01 - 1) * 100%)); }
}
.rul__opts { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.rul__o { position: relative; }
.rul__o::before { /* риска от ленты к варианту */
  content: ""; position: absolute; left: 50%; top: -10px; width: 1.5px; height: 8px; margin-left: -.75px; background: rgba(14, 26, 43, .35);
}
.rul__o input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rul__o span {
  display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 54px; border-radius: 11px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .15s, box-shadow .15s, transform .25s var(--spring);
}
.rul__o b { font-size: 19px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rul__o small { font-size: 11.5px; line-height: 1; color: var(--ink-3); }
.rul__o input:checked + span { background: var(--tape); box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-2px); }
.rul__o input:checked + span small { color: var(--ink); }
.rul__o input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ориентир: появляется сразу после выбора длины; высота заглушки = высоте ориентира — окно не дёргается */
.pop__est {
  display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 2px 8px; margin-top: 14px; min-height: 110px; padding: 10px 14px; /* 110 = высота вилки: при «5+» кнопка не прыгает */
  border-radius: 12px; background: var(--paper); transition: background-color .25s;
}
.pop__est.is-on { background: var(--tape-soft); box-shadow: inset 3px 0 0 var(--tape); }
.pop__est-k { font-size: 14.5px; color: var(--ink-2); }
.pop__est b { font-size: 26px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pop__est small { flex-basis: 100%; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
.pop__est-0 { font-size: 14px; color: var(--ink-3); }
.pop__est:not(.is-on) { align-items: center; }
.pop__est:not(.is-on) .pop__est-k { flex-basis: 100%; }
.pop__deal { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; font-weight: 620; line-height: 1.35; }
.pop__deal .ico { flex: none; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: var(--tape); }
.pop__deal-k { display: block; margin-bottom: 1px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pop__form { margin-top: 14px; gap: 12px; }
/* кнопка липкая внизу окна: на низком экране и с клавиатурой она всегда видна */
.pop__cta {
  position: sticky; bottom: 0; z-index: 1; margin: 0 calc(-1 * var(--pp)) -4px; padding: 8px var(--pp) 12px;
  background: var(--card); box-shadow: 0 -12px 20px -16px rgba(14, 26, 43, .4);
}
.pop__body > :last-child { margin-bottom: 22px; }
.pop .lf__btn { width: 100%; min-width: 0; }
.pop .lf__btn.shine-on::after { animation-delay: .1s; animation-iteration-count: 1; }   /* галочку поставили — один блик */
/* до согласия кнопка — чистая обводка (не «полинявшая»): контраст текста 7:1, нажатие объясняет, чего не хватает */
.pop .lf__btn[aria-disabled="true"] { background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: not-allowed; }
.pop .lf__btn[aria-disabled="true"]:active { transform: none; }
.pop__alt { display: block; margin: 12px auto 0; }
.pop .done { padding-top: 4px; }
.pop__close { margin-top: 14px; }
@media (min-width: 700px) { .pop__box { --pp: 32px; padding-top: 38px; } .pop__body > :last-child { margin-bottom: 24px; } .pop h2 { font-size: 30px; } }
@media (hover: hover) {
  .pop__x:hover { background: var(--paper-2); }
  .side__x:hover { background: var(--paper); color: var(--ink); }
  .rul__o:hover input:not(:checked) + span { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .pop .lf__btn[aria-disabled="true"]:hover { background: var(--paper); }
}
/* телефон: нижний лист, выезжает снизу */
@media (max-width: 699px) {
  .pop { place-items: end stretch; padding: 0; }
  .pop__bg { background: rgba(238, 241, 244, .85); -webkit-backdrop-filter: none; backdrop-filter: none; }   /* без блюра: дёшево на слабых Android */
  .pop__box {
    --pp: 16px;
    max-width: none; max-height: 88vh; max-height: 88dvh; border-radius: 22px 22px 0 0;
    padding: 28px var(--pp) 0;
    box-shadow: 0 0 0 1px var(--line), 0 -24px 50px -24px rgba(14, 26, 43, .35);
    opacity: 1; transform: translateY(104%); transition: transform .42s cubic-bezier(.16, 1, .3, 1);
  }
  .pop__cta { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .pop__body > :last-child { margin-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .pop__x { top: 18px; right: 10px; width: 38px; height: 38px; }
  .pop h2 { font-size: 23px; padding-right: 40px; }
  .pop__sub { font-size: 13.5px; }
  .rul { margin-top: 14px; }
  .rul__opts { gap: 5px; }
  .rul__o span { min-height: 48px; }
  .rul__o b { font-size: 17px; }
  .pop__est { min-height: 0; margin-top: 12px; padding: 8px 12px; }
  .pop__est b { font-size: 22px; }
  .pop .lf__note { font-size: 12px; }
  .pop .consent { font-size: 12.5px; }
}
/* компактное окно — телефон и невысокий экран (ноутбук 1366×768): без заглушки ориентира и подзаголовка про длину,
   ориентир проявляется после выбора длины */
@media (max-width: 699px), (max-height: 760px) {
  .pop__sub--len { display: none; }
  .pop__est:not(.is-on) { display: none; }
  .pop__est.is-on { min-height: 0; animation: estIn .35s var(--ease); }
  @keyframes estIn { from { opacity: 0; transform: translateY(6px); } }
  .rul__o span { min-height: 44px; }
  .pop h2 { font-size: 23px; }
}
/* невысокий десктоп: окно прижато к верху и растёт вниз — при выборе длины не прыгает */
@media (min-width: 700px) and (max-height: 760px) { .pop { align-items: start; } .pop__box { padding-top: 30px; } .pop h2 { font-size: 26px; } }
/* телефон: ориентир и подписи плотнее, пустые строки ошибок не занимают места */
@media (max-width: 699px) {
  .pop__est { padding: 6px 10px; }
  .pop__est b { font-size: 21px; }
  .pop__est small { font-size: 11.5px; }
  .pop__deal { font-size: 13.5px; }
  .pop__deal-k { display: inline; margin-right: 6px; }
  .pop .lf > .field__err:empty { display: none; }
  .pop .lf__note { font-size: 11.5px; }
}
/* узкий телефон: «Кухня N м —» своей строкой, сумма — второй; вилка, которая может перенестись после «примерно»,
   держит место на две строки — при переключении длины высота блока не меняется и кнопка не прыгает */
@media (max-width: 519px) { .pop__est-k { flex-basis: 100%; } }
@media (max-width: 374px) { .pop__est b { min-height: 2.3em; } }
/* низкий телефон (SE, клавиатура открыта): ещё плотнее */
@media (max-width: 699px) and (max-height: 720px) {
  .pop__k { display: none; }
  .pop__box { padding-top: 22px; }
  .pop h2 { margin-top: 0; font-size: 21px; }
  .pop__x { top: 12px; }
  .rul { margin-top: 10px; }
  .pop__est { margin-top: 8px; }
  .pop__form { margin-top: 10px; gap: 10px; }
}

/* Мобильная кнопка снизу: «Рассчитать кухню» или «Продолжить расчёт · 2 из 5» */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 var(--line), 0 -14px 30px -20px rgba(14, 26, 43, .45);
  transform: translateY(110%); visibility: hidden;
  transition: transform .32s var(--ease), visibility 0s .32s;
}
.mbar.is-on { transform: none; visibility: visible; transition: transform .32s var(--ease), visibility 0s; }
@media (min-width: 1080px) { .mbar { display: none; } }

/* Плашка cookie (только если подключена Метрика) */
.cookie {
  position: fixed; z-index: 60; left: var(--gut); right: var(--gut); bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px; max-width: 540px; padding: 14px 14px 14px 18px;
  border-radius: 16px; background: var(--card); color: var(--ink-2); font-size: 13.5px; line-height: 1.45;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -20px rgba(14, 26, 43, .45);
}
.cookie a { color: var(--ink); }
.cookie .btn { flex: none; }
.has-mbar .cookie { bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (max-width: 699px) { .cookie { gap: 10px; padding: 10px 10px 10px 14px; font-size: 12.5px; line-height: 1.4; } }
@media (min-width: 1080px) { .has-mbar .cookie { bottom: 20px; } .cookie { left: 24px; bottom: 20px; } }

/* Наведение — только там, где есть мышь: на телефоне :hover «залипает» после тапа
   и в следующем вопросе карточка под пальцем выглядела бы уже выбранной */
@media (hover: hover) {
  .opt:hover { box-shadow: 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
  .opt:active { transform: scale(.97); }
  .opt--photo:hover .opt__img img { transform: scale(1.05); }
  .opt--row:hover .opt__ico { background: var(--tape-soft); }
  .btn:hover .ico { transform: translateX(3px); }
  .btn--tape:hover { background: var(--tape-hi); }
  .btn--ink:hover { background: #1B2B44; }
  .work:hover .work__view img { transform: scale(1.035); }
  .car-btn:hover:not(:disabled) { background: var(--tape); border-color: var(--tape); }
  .qz__back:hover { background: var(--paper); }
  .via__opt:hover span { box-shadow: inset 0 0 0 1.5px var(--ink); }
}

/* --- Документы: политика и согласие ---------------------------------------- */
.legal { background: var(--card); }
.doc { max-width: calc(760px + var(--gut) * 2); padding-top: 40px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); }
.doc h2 { margin-top: 36px; font-size: 20px; letter-spacing: -.012em; line-height: 1.3; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.doc p { margin-top: 12px; }
.doc ul { margin-top: 10px; padding-left: 0; }
.doc li { position: relative; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 10px; height: 1.5px; background: var(--ink); }
.doc__date { color: var(--ink-3) !important; }
.doc__sign, .doc__links { margin-top: 32px !important; padding-top: 20px; border-top: 1px solid var(--line); }
.todo { padding: 0 4px; border-radius: 4px; background: var(--tape); color: var(--ink); font-family: var(--mono); font-size: .9em; }
mark.todo { font-weight: 600; }

/* Старые браузеры: без aspect-ratio карточки квиза и галереи были бы высотой 0 */
@supports not (aspect-ratio: 1 / 1) {
  .opt--photo::before, .work__img::after, .how__img::before, .deal__photo::before, .hero__work::before, .work__th::before, .call__photo::before { content: ""; display: block; }
  .opt--photo::before { padding-top: 75%; }
  .work__img::after { padding-top: 125%; }
  .how__img::before { padding-top: 56.25%; }
  .deal__photo::before { padding-top: 62.5%; }
  .hero__work::before, .call__photo::before { padding-top: 46.5%; }
  .work__th::before { padding-top: 75%; }
}
@supports not (inset: 0) {
  .opt__img, .opt__img img, .work__view, .fx .work__img::before, .opt.is-nudge::after { top: 0; right: 0; bottom: 0; left: 0; }
  .work__view { height: 100%; }
}

/* =============================================================================
   Движение первого экрана и акценты ниже (M1–M9).
   Только transform/translate, opacity, clip-path и background-position. H1, цена, фишки и первые
   карточки квиза с первого кадра видны (LCP, факты): их только сдвигаем, прозрачность не трогаем.
   Цифры цены не меняются ни в одном кадре (без «счётчика»).
   Такты вступления — не всё сразу:
     0–0,9 с    заголовок: слова каскадом + жёлтая полоса (десктоп: жёлтый «натекает» до 1,3 с);
     0,2–1,05 с квиз: карточки каскадом, схемы форм, лента прогресса — главный акцент;
     1–1,9 с    цена и фишки: доезжают на место, деления ленты разматываются;
     1,5–2,6 с  «рывок» ленты прогресса (app.js) — взгляд обратно на квиз;
     1,9–3,3 с  фон: сетка, свечение, на десктопе фото работы;
     потом по одному: блик по цене 2,7 с, подсказка «Начните отсюда» 4 с (app.js), кольцо у региона 7 с. В любой момент заметно движутся 1–2 группы (_dev/motion_groups.mjs).
   Всё — внутри no-preference: при «уменьшить движение» этих анимаций нет вовсе.
   Постоянное — редко: блик 3 раза (раз в 8 с), кольцо 2 раза (раз в 7 с), «дыхание» тени — 2 вдоха; свечение на паузе вне экрана (.hero.is-off).
   ============================================================================= */

@media (prefers-reduced-motion: no-preference) {
  :root { --out: cubic-bezier(.16, 1, .3, 1); }

  /* M1. Заголовок: слова поднимаются каскадом, затем прорисовывается жёлтая полоса */
  .hero h1 .w { animation: wordUp .65s var(--out) backwards; animation-delay: calc(.04s + var(--w, 0) * 45ms); }
  @keyframes wordUp { from { transform: translateY(.3em); } }
  .hero .mark { animation: markDraw .6s var(--out) .32s backwards; }
  @keyframes markDraw { from { background-position: 100% 88.9%; } }

  /* M6. Фон: сетка чертежа проступает, медленно дышит тёплое свечение (телефон — за заголовком,
     там его не закрывает карточка квиза; десктоп — за квизом) */
  .hero::before { animation: fadeIn 1.2s ease-out 1.9s backwards; }
  @keyframes fadeIn { from { opacity: 0; } }
  .hero::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    left: 82%; top: 120px; width: 120vw; height: 120vw; margin: -60vw 0 0 -60vw; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 201, 51, .16), rgba(255, 201, 51, .06) 55%, rgba(255, 201, 51, 0));
    animation: fadeIn 1.4s ease-out 2s backwards, glow 16s ease-in-out infinite alternate;
  }
  @keyframes glow { from { transform: translate(-5%, -3%) scale(.94); } to { transform: translate(5%, 3%) scale(1.06); } }

  /* M2. Регион: два тихих кольца у квадратика (7 с и 14 с, после подсказки квиза) — и всё, не «индикатор онлайн» */
  .eyebrow { position: relative; }
  .eyebrow::after {
    content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 2px;
    box-shadow: 0 0 0 1.5px var(--tape); opacity: 0; pointer-events: none;
    animation: ping 7s cubic-bezier(.2, .7, .3, 1) 7s 2;
  }
  @keyframes ping { 0% { opacity: .6; transform: scale(1); } 24%, 100% { opacity: 0; transform: scale(2.4); } }

  /* M4. Фишки — факты: видны с первого кадра, в третьем такте мягко доезжают на место (только сдвиг);
     при наведении — чуть приподнимаются */
  .specs li { animation: chipRise .75s var(--ease) 1s backwards; }
  .specs li:nth-child(2) { animation-delay: 1.05s; }
  .specs li:nth-child(3) { animation-delay: 1.1s; }
  @keyframes chipRise { from { transform: translateY(6px); } }

  /* M3. Цена на ленте: цифра стоит с первого кадра; лента доезжает, деления «разматываются»,
     после «рывка» ленты прогресса по цене проходит лёгкий блик (2,7 с, потом раз в 8 с, 3 раза и стоп) */
  .specs .specs__tape::after { animation: ticksIn .85s var(--out) 1.05s backwards; }
  .hero .ptape::after { animation: ticksIn .9s var(--out) 1.05s backwards; }
  /* конец — inset(0), а не none: между inset и none браузер не интерполирует, деления появлялись скачком */
  @keyframes ticksIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  .specs .specs__tape, .hero .ptape {
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 60%) 150% 0 / 250% 100% no-repeat, var(--tape);
  }
  .specs .specs__tape { animation: chipRise .75s var(--ease) 1s backwards, glint 8s ease-in-out 2.7s 3; }
  .hero .ptape { animation: tapeIn .8s var(--ease) 1s backwards, glint 8s ease-in-out 2.7s 3; }
  @keyframes glint { 0% { background-position: 150% 0; } 14%, 100% { background-position: -50% 0; } }


  /* M5. Квиз: карточки с фото поднимаются каскадом (translate — отдельно от transform наведения,
     прозрачность не трогаем: фото карточек — LCP). Имя optUp остаётся в списке у .is-nudge и
     .is-picked — иначе при снятии класса каскад проигрался бы заново */
  .opts--photo .opt { animation: optUp .6s var(--out) backwards; animation-delay: calc(.2s + var(--i, 0) * 55ms); }
  @keyframes optUp { from { translate: 0 10px; } } /* 10 px < зазора 12 px: нижний ряд не наезжает на строку про телефон */
  .opts--photo .opt.is-nudge { animation: optUp .6s var(--out) backwards, nudgePulse 1.3s var(--ease) 2; animation-delay: calc(.2s + var(--i, 0) * 55ms), 0s; }
  /* выбор: пружинка карточки и галочка «прочерчивается» — целиком за 0,28 с; ~0,1 с отмеченный ответ
     стоит готовым, потом шаг за 0,12 с гаснет до .5 и уходит влево, новый въезжает с той же .5
     (config.js → advanceMs 420, app.js → is-leaving) — отклик досмотрен, пустой карточки между шагами нет */
  .opts--photo .opt.is-picked { animation: optUp .6s var(--out) backwards, pick .28s var(--out); animation-delay: calc(.2s + var(--i, 0) * 55ms), 0s; }
  .opts--list .opt.is-picked { animation: pick .28s var(--out); }
  @keyframes pick { 0% { transform: scale(.965); } 55% { transform: scale(1.01); } }
  .opt.is-picked .opt__tick .ico { animation: tickDraw .2s var(--out) .03s backwards; }
  /* шаги после первого: карточки въезжают вместе с шагом (сбоку), без своего подъёма — не по диагонали */
  .qz__step:not(.is-first) .opts--photo .opt { animation: none; }
  .qz__step:not(.is-first) .opts--photo .opt.is-picked { animation: pick .28s var(--out); }
  .qz__step.is-leaving { opacity: .5; transform: translateX(-8px); transition: opacity .12s linear, transform .12s ease-in; }
  @keyframes tickDraw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  /* лента прогресса тянется с лёгким перелётом — как рулетка с пружиной */
  .tape__fill, .tape__hook { transition: transform .8s cubic-bezier(.3, 1.3, .5, 1); }

  /* M7. Бегущая лента: мягкие края (только когда едет — без JS первые буквы не закрываем) */
  .ticker.is-live::before, .ticker.is-live::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 28px; pointer-events: none; }
  .ticker.is-live::before { left: 0; background: linear-gradient(90deg, var(--tape), rgba(255, 201, 51, 0)); }
  .ticker.is-live::after { right: 0; background: linear-gradient(270deg, var(--tape), rgba(255, 201, 51, 0)); }

  /* M8. Нижняя кнопка на телефоне: панель выезжает мягче, кнопка — следом */
  .mbar { transition: transform .5s var(--out), visibility 0s .5s; }
  .mbar.is-on { transition: transform .5s var(--out), visibility 0s; }
  .mbar.is-on .btn { animation: mbarBtn .6s var(--out) .08s backwards; }
  @keyframes mbarBtn { from { opacity: 0; transform: translateY(12px); } }

  /* M9. Ниже первого экрана: размерные линии у номеров разделов и схемы шагов прочерчиваются */
  .fx .rv .kicker::after { transform-origin: 0 50%; transition: transform .9s var(--out) .3s; }
  .fx .rv:not(.in) .kicker::after { transform: scaleX(0); }
  .fx .steps .step__ico { clip-path: inset(0); transition: clip-path .8s var(--out); transition-delay: calc(.35s + var(--i, 0) * .28s); }
  .fx .steps:not(.in) .step__ico { clip-path: inset(0 100% 0 0); }
  .fx .price__main .ptape--big::after { clip-path: inset(0); transition: clip-path 1s var(--out) .35s; }
  .fx .price__main:not(.in) .ptape--big::after { clip-path: inset(0 100% 0 0); }

  .hero.is-off::after, .hero.is-off .eyebrow::after, .hero.is-off .qz::before { animation-play-state: paused; }
}

/* планшет и шире: у карточки квиза мягко «дышит» тень (на телефоне карточка во всю ширину — не видно) */
@media (min-width: 700px) and (prefers-reduced-motion: no-preference) {
  .qz::before {
    content: ""; position: absolute; left: 7%; right: 7%; bottom: 0; height: 55%; z-index: -1; border-radius: inherit; pointer-events: none;
    box-shadow: 0 34px 64px -26px rgba(14, 26, 43, .42); opacity: .3;
    animation: breathe 5.5s ease-in-out 5s 4 alternate; /* два вдоха и стоп; чётное число — встаёт в исходную тень без скачка */
  }
  @keyframes breathe { to { opacity: 1; transform: translateY(8px) scaleX(1.04); } }
  .ticker.is-live::before, .ticker.is-live::after { width: 48px; }
  .hero::after { left: 80%; top: 230px; width: 80vw; height: 80vw; margin: -40vw 0 0 -40vw; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .specs li { transition: transform .35s var(--out); }
  .specs li:hover { transform: translateY(-2px); }
}
/* десктоп (28.09 фон светло-серый): «цену посчитает» — как на телефоне, тёмные слова с прорисовкой жёлтой полосы (M1);
   жёлтые буквы через background-clip делались под ночной фон — на светлом не читались, убраны */
@media (min-width: 1080px) and (prefers-reduced-motion: no-preference) {
  .hero::after { left: 69%; top: 46%; width: 84vw; height: 84vw; margin: -42vw 0 0 -42vw; background: radial-gradient(closest-side, rgba(255, 201, 51, .2), rgba(255, 201, 51, .075) 50%, rgba(255, 201, 51, 0)); }
}

/* «Уменьшить движение»: всё стоит, ничего не прячется */
@media (prefers-reduced-motion: reduce) {
  /* animation-delay: 0 — иначе схемы форм, лента прогресса и цена до конца задержки стояли в начальном кадре и «выпрыгивали» */
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .fx .rv:not(.in), .fx .steps:not(.in) .step, .fx .sheet:not(.in) li { opacity: 1; transform: none; }
  .fx .sheet:not(.in) .sheet__ck, .fx .range .range__band, .fx .range .range__dots i { transform: none; opacity: 1; }
  .work__img::before { display: none; }
  .opt__hint { display: none; }
  .lz { opacity: 1; }
  /* лента условий не едет: на телефоне листается пальцем, шире — стоит в 2 строки */
  .ticker { overflow-x: auto; scrollbar-width: none; }
  .ticker::-webkit-scrollbar { display: none; }
  @media (min-width: 700px) {
    .ticker__track { width: auto; }
    .ticker__list { flex: 1; flex-wrap: wrap; justify-content: center; row-gap: 6px; padding: 9px var(--gut) 14px; }
    .ticker__list li { padding-right: 18px; font-size: 13px; }
  }
}
