/* =============================================================================
   cena.kuhnemer.ru — конфигуратор кухни с живым ориентиром цены.
   Палитра Кухнемера: чернила #0E1A2B, холодная бумага #EEF1F4, жёлтая лента рулетки #FFC933.
   Только светлая тема. Системные шрифты (без загрузки файлов). Анимации — только transform/opacity,
   prefers-reduced-motion — всё стоит. Mobile-first: базовые правила — для 390 px.
   v2 (02.10.2026): липкая шапка с разделами, лента условий, фото работы на первом экране,
   миллиметровка и плавающие пятна на фоне, появление блоков при прокрутке, секции «Как это работает»,
   «Работы фабрики», «Условия фабрики».
   ============================================================================= */
: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;
  --err: #B42318;
  --err-bg: #FEF3F2;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --gut: 16px;
  --hdr-h: 56px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 18px 40px -24px rgba(14, 26, 43, .30);
  --ticks: repeating-linear-gradient(90deg, rgba(14, 26, 43, .55) 0 1px, transparent 1px 7px) 0 100% / 100% 4px no-repeat,
           repeating-linear-gradient(90deg, rgba(14, 26, 43, .8) 0 1px, transparent 1px 35px) 0 100% / 100% 7px no-repeat;
  /* миллиметровка: тонкие линии каждые 8 px, чуть темнее — каждые 40 px */
  --grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M8.5 0v40M16.5 0v40M24.5 0v40M32.5 0v40M0 8.5h40M0 16.5h40M0 24.5h40M0 32.5h40' stroke='%230E1A2B' stroke-opacity='.035'/%3E%3Cpath d='M.5 0v40M0 .5h40' stroke='%230E1A2B' stroke-opacity='.075'/%3E%3C/svg%3E");
  --grid-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M8.5 0v40M16.5 0v40M24.5 0v40M32.5 0v40M0 8.5h40M0 16.5h40M0 24.5h40M0 32.5h40' stroke='%23fff' stroke-opacity='.035'/%3E%3Cpath d='M.5 0v40M0 .5h40' stroke='%23fff' stroke-opacity='.07'/%3E%3C/svg%3E");
}
@media (min-width: 700px) { :root { --gut: 32px; --hdr-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--grid) 0 0 / 40px 40px, var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gut); }
.ico { width: 20px; height: 20px; flex: none; }
.nw { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }

/* --- Фон: плавающие пятна (под всем, над миллиметровкой) ----------------------- */
.fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx i { position: absolute; display: block; width: 72vmax; height: 72vmax; border-radius: 50%; will-change: transform; animation: drift 30s ease-in-out infinite alternate; }
.fx i:nth-child(1) { left: -30vmax; top: -34vmax; background: radial-gradient(closest-side, rgba(255, 201, 51, .34), rgba(255, 201, 51, 0)); }
.fx i:nth-child(2) { right: -34vmax; top: 18vh; background: radial-gradient(closest-side, rgba(110, 146, 196, .26), rgba(110, 146, 196, 0)); animation-duration: 38s; animation-delay: -14s; }
.fx i:nth-child(3) { left: 6vw; bottom: -46vmax; background: radial-gradient(closest-side, rgba(255, 214, 92, .26), rgba(255, 214, 92, 0)); animation-duration: 44s; animation-delay: -24s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(7vmax, 5vmax, 0) scale(1.08); }
  100% { transform: translate3d(-5vmax, 9vmax, 0) scale(.94); }
}

/* --- Появление блоков при прокрутке (класс rv-on ставит cena.js; без JS всё видно сразу) --- */
.rv-on .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .75s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rv-on .rv.is-in { opacity: 1; transform: none; }

/* --- Кнопки ------------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px;
  font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn--tape { background: var(--tape); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(14, 26, 43, .12); }
.btn--tape:hover { background: var(--tape-hi); }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn[disabled] { cursor: progress; opacity: .75; }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
/* блик по кнопке шапки: 3 раза с паузой 6 с и стоп */
.shine { overflow: hidden; isolation: isolate; }
.shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, .8) 50%, transparent 85%);
  transform: translateX(-130%); animation: shine 6s 1.5s 3 backwards;
}
@keyframes shine { 0% { transform: translateX(-130%); } 14%, 100% { transform: translateX(300%); } }

/* --- Шапка (липкая) ------------------------------------------------------------ */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--card); border-bottom: 1px solid var(--line); }
.hdr::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; pointer-events: none;
  background: linear-gradient(rgba(14, 26, 43, .13), rgba(14, 26, 43, 0)); opacity: 0; transition: opacity .25s;
}
.hdr.is-scrolled::after { opacity: 1; }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--hdr-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo__txt b { font-size: 17px; }
.logo__txt small { font-size: 12px; color: var(--ink-3); }
.hdr__nav { display: none; }
.hdr__cta { flex: none; min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; }
.hdr__cta-l { display: none; }
.hdr__back { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }

/* --- Лента-рулетка с условиями ---------------------------------------------------- */
.ticker { position: relative; 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; animation: ticker 52s linear 2.5s infinite; }   /* первые 2,5 с стоит: скидку успевают прочитать */
@media (hover: hover) { .ticker:hover .ticker__track { animation-play-state: paused; } }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker__list { display: flex; flex: none; align-items: center; min-height: 30px; padding: 0 0 5px var(--gut); background: var(--ticks); }
.ticker__list li {
  display: flex; align-items: baseline; gap: 7px; padding-right: 22px; white-space: nowrap;
  font-size: 12.5px; font-weight: 620; letter-spacing: -.005em; line-height: 1;
}
.ticker__list li::before { content: attr(data-cm); align-self: stretch; padding: 3px 0 0 2px; border-left: 1.5px solid var(--ink); font: 600 9px/1 var(--mono); color: rgba(14, 26, 43, .7); }
.ticker__chip {
  display: inline-flex; align-items: center; gap: 6px; margin: -4px 0; padding: 4px 8px 4px 6px; border-radius: 7px;
  background: var(--card); font-weight: 680; box-shadow: 0 1px 0 rgba(14, 26, 43, .18);
}
.ticker__chip .ico { width: 14px; height: 14px; }

/* --- Первый экран ------------------------------------------------------------ */
/* телефон/планшет: фото фоном под затемнением, текст белый; карточка цены наезжает на низ (−28 px) */
.hero { position: relative; overflow: hidden; color: #fff; background: #2A3442; }
.hero__in { position: relative; z-index: 1; padding-top: 22px; padding-bottom: 82px; }
.hero__txt { position: relative; z-index: 1; }
.hero__ph { position: absolute; inset: 0; z-index: 0; }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 26, 43, .74) 0%, rgba(14, 26, 43, .58) 45%, rgba(14, 26, 43, .80) 100%);
}
.hero__cap { position: absolute; left: var(--gut); right: var(--gut); bottom: 42px; z-index: 2; display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__cap-t { overflow: hidden; text-overflow: ellipsis; }
.hero__cap-d { display: none; }
.tag { flex: none; display: inline-block; padding: 4px 9px; border-radius: 7px; background: rgba(255, 255, 255, .94); font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.eyebrow { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.hero .eyebrow { color: rgba(255, 255, 255, .78); }
.hero h1 { font-size: clamp(26px, 7.4vw, 44px); max-width: 24ch; }
.hero__sub { margin-top: 10px; max-width: 62ch; color: var(--ink-2); }
.hero .hero__sub { color: rgba(255, 255, 255, .86); }
.trust { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--tape); box-shadow: inset 0 0 0 1px rgba(14, 26, 43, .3); }

/* --- Конфигуратор: ориентир + 4 шага ------------------------------------------ */
.cfg { display: grid; gap: 14px; padding-bottom: 28px; }
.steps { display: grid; gap: 14px; min-width: 0; }
.sum { position: relative; z-index: 2; margin-top: -28px; }

.sum__card {
  position: relative; overflow: hidden;
  padding: 22px 20px 18px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow);
}
/* лента рулетки по верхнему краю карточки; при пересчёте цены «щёлкает» на одно деление */
.sum__card::before { content: ""; position: absolute; top: 0; left: -14px; right: -14px; height: 8px; background: var(--ticks), var(--tape); opacity: .95; }
.sum__card:has(.is-bump)::before { animation: tape .42s var(--ease); }
@keyframes tape { from { transform: translateX(-7px); } to { transform: none; } }
.sum__h { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.sum__price { margin-top: 2px; }
.sum__price b {
  display: block; font-size: clamp(28px, 8.4vw, 42px); font-weight: 750; line-height: 1.1;
  letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.sum__cfg { margin-top: 8px; font-size: 15px; font-weight: 600; }
.sum__note { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.sum .btn { margin-top: 14px; }
.sum__fine { margin-top: 8px; font-size: 13px; text-align: center; color: var(--ink-3); }
/* «щелчок» цифры: сумма падает на место сверху, как деление рулетки */
.is-bump { animation: bump .42s var(--ease); }
@keyframes bump { 0% { transform: translateY(-.22em); opacity: .3; } 45% { transform: translateY(.05em); opacity: 1; } 100% { transform: none; } }
.sum__price b, .plate__p b { transform-origin: left center; }

.step { min-width: 0; margin: 0; padding: 18px 14px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.step__h { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.step__n { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.step__h { flex-wrap: wrap; }
.step__t { flex: 1 1 0; min-width: 0; }   /* 02.10: заголовок рядом с номером шага, а не строкой ниже */
.step__opt { flex-basis: 100%; margin: -6px 0 0 38px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.step__hint { clear: both; padding-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.step__isl { transition: background-color .2s; border-radius: 4px; }
.step__isl.is-on { background: var(--tape-soft); box-shadow: 0 0 0 3px var(--tape-soft); color: var(--ink); font-weight: 600; }

.opts { display: grid; gap: 10px; margin-top: 12px; }
.opts--shape { grid-template-columns: 1fr 1fr; }
.opts--len { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.opts--fac { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opts--when { grid-template-columns: 1fr; gap: 8px; }

.opt { position: relative; display: block; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt__box {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line-2);
  transition: box-shadow .15s, background-color .15s;
}
.opt:hover .opt__box { box-shadow: 0 0 0 1px var(--ink-3); }
.opt input:checked + .opt__box { box-shadow: 0 0 0 2px var(--ink); background: var(--tape-soft); }
.opt input:focus-visible + .opt__box { outline: 3px solid var(--ink); outline-offset: 3px; }
.opt__tick {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--tape); color: var(--ink);
  box-shadow: 0 0 0 2px #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease);
}
.opt__tick .ico { width: 18px; height: 18px; }
.opt input:checked + .opt__box .opt__tick { opacity: 1; transform: none; }

.opt__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px 14px 0 0; background: var(--paper-2); }
.opt__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.opt:hover .opt__img img { transform: scale(1.04); }
.opt__plan { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .94); color: var(--ink); }
.opt__plan .ico { width: 22px; height: 22px; }
.opt__txt { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px 11px; line-height: 1.25; }
.opt__txt b { font-size: 16px; font-weight: 650; }
.opt__txt small { font-size: 13px; color: var(--ink-3); }

.opt--len .opt__box, .opt--via .opt__box {
  min-height: 52px; flex-direction: row; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.opt--len input:checked + .opt__box { background: var(--ink); color: #fff; }
.opt--via .opt__box { min-height: 48px; font-size: 15px; }
.opt--via input:checked + .opt__box { background: var(--ink); color: #fff; }

.opt--fac .opt__txt { align-items: center; padding: 8px 6px 10px; }
.sw { height: 64px; border-radius: 14px 14px 0 0; }
.sw--film { background: linear-gradient(90deg, rgba(255,255,255,.0) 0 10%, rgba(14,26,43,.10) 10% 12%, rgba(255,255,255,0) 12% 88%, rgba(14,26,43,.10) 88% 90%, rgba(255,255,255,0) 90%), linear-gradient(#E9E2D6, #DED5C6); }
.sw--plastic { background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.75) 42%, rgba(255,255,255,0) 54%), linear-gradient(#C9D3DE, #AEBBCA); }
.sw--enamel { background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.22) 46%, rgba(255,255,255,0) 57%), linear-gradient(#56707A, #3F5862); }

.opt--row .opt__box { flex-direction: row; align-items: center; gap: 12px; min-height: 56px; padding: 8px 46px 8px 10px; }
.opt--row .opt__txt { padding: 0; }
.opt--row .opt__tick { top: 50%; margin-top: -14px; right: 12px; }
.opt__ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--paper); }

/* --- Заявка ------------------------------------------------------------------- */
.order { padding-bottom: 36px; scroll-margin-top: 12px; }
.order__card { position: relative; overflow: hidden; max-width: 660px; margin-inline: auto; padding: 26px 16px 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.order__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--ticks), var(--tape); opacity: .95; }
.order h2 { font-size: clamp(23px, 6vw, 30px); }
.order h2:focus { outline: none; }
.order__sum { margin-top: 14px; padding: 12px 14px; border: 1px solid #F1DA8C; border-radius: 14px; background: var(--tape-soft); }
.order__price { font-size: 14px; color: var(--ink-2); }
.order__price b { display: block; color: var(--ink); font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.order__cfg { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.order__cfg .link { margin-left: 6px; font-size: 14px; }
.order__lead { margin-top: 14px; color: var(--ink-2); }
.order__who { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

.lf { display: grid; gap: 16px; margin-top: 16px; }
.lf__row { display: grid; gap: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.field__opt { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.field input {
  width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff; font-size: 18px; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #7A8494; }
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(14, 26, 43, .18); }
.field input[aria-invalid="true"] { border-color: var(--err); background: var(--err-bg); }
.field__err { margin-top: 6px; font-size: 14px; color: var(--err); }
.field__err:empty { display: none; }
.via { min-width: 0; margin: 0; padding: 0; border: 0; }
.via legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.via__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.via__note { margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.via__note + .via__note { margin-top: 4px; }
.lf__alert { padding: 12px 14px; border: 1px solid #F4C7C3; border-radius: 12px; background: var(--err-bg); color: var(--err); font-size: 14px; }
.lf__alert p + p { margin-top: 6px; }
.lf__alert a { color: var(--err); font-weight: 600; }
.lf__agree, .lf__note { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.lf__agree { margin-top: -6px; }
.lf__agree a { color: var(--ink-2); }

.done { text-align: left; margin-top: 16px; }
.done__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--tape); color: var(--ink); }
.done__ico .ico { width: 26px; height: 26px; }
.done h3 { margin-top: 12px; font-size: 22px; }
.done h3:focus { outline: none; }
.done p { margin-top: 8px; color: var(--ink-2); }
.done .link { display: inline-block; margin-top: 14px; min-height: 44px; }

/* --- Общие части секций ------------------------------------------------------------ */
.sec { position: relative; padding: 44px 0 48px; }
.sec__head { max-width: 760px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 650 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kicker::before { content: ""; width: 26px; height: 8px; border-radius: 2px; background: var(--ticks), var(--tape); background-size: 100% 4px, 100% 7px, auto; }
.sec h2 { font-size: clamp(24px, 6.4vw, 38px); }
.sec__lead { margin-top: 10px; max-width: 62ch; color: var(--ink-2); }

/* --- Как это работает (белая полоса с рулеткой по краю) ------------------------------- */
.how { background: var(--card); }
.how::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: var(--ticks), var(--tape); }
.formula {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 20px; padding: 14px 16px;
  border: 1px dashed var(--line-2); border-radius: 14px; background: var(--grid) 0 0 / 40px 40px, var(--paper);
}
.formula__k { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.formula b { font-size: clamp(20px, 5.6vw, 26px); font-weight: 750; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.formula__n { font-size: 14px; color: var(--ink-2); }
.how__steps { position: relative; display: grid; gap: 12px; margin-top: 22px; }
/* лента рулетки вдоль шагов: телефон — вертикально слева, ПК — горизонтально над шагами */
.how__steps::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 21px; width: 6px; border-radius: 3px;
  background: repeating-linear-gradient(180deg, rgba(14, 26, 43, .5) 0 1px, transparent 1px 7px), var(--tape);
  transform-origin: top; transition: transform 1.1s var(--ease) .15s;
}
.rv-on .how__steps:not(.is-in)::before { transform: scaleY(0); }
.how__steps li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 2px 14px; align-items: start; padding: 4px 0 8px; }
.how__n { grid-row: span 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--tape); font: 700 15px/1 var(--mono); box-shadow: 0 0 0 4px var(--card); }
.how__ico { display: none; }
.how__steps h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.01em; padding-top: 2px; }
.how__steps p { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.rv-on .how__steps li { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(.25s + var(--i, 0) * 110ms); }
.rv-on .how__steps.is-in li { opacity: 1; transform: none; }
.how__steps.rv { opacity: 1; transform: none; }

/* --- Работы фабрики (тёмная полоса) ------------------------------------------------- */
.works { color: #fff; background: radial-gradient(60% 50% at 85% 0%, rgba(255, 201, 51, .16), rgba(255, 201, 51, 0)), var(--grid-w) 0 0 / 40px 40px, var(--ink); }
.works .kicker { color: rgba(255, 255, 255, .7); }
.works .sec__lead { color: rgba(255, 255, 255, .78); }
.works__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-top: 22px; }
.work figure { display: flex; flex-direction: column; gap: 8px; }
.work__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 16px; background: #1E2A3B; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work:hover .work__img img { transform: scale(1.05); }
.work__img .tag { position: absolute; left: 8px; top: 8px; font-size: 11px; padding: 3px 7px; }
.work figcaption { font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.work figcaption b { color: #fff; font-weight: 650; }
.works__foot { display: grid; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.works__foot p { font-size: 14px; color: rgba(255, 255, 255, .72); }

/* --- Условия фабрики ------------------------------------------------------------------ */
.deal { background: linear-gradient(180deg, rgba(255, 246, 218, .75), rgba(255, 246, 218, 0) 70%); }
.deal__grid { display: grid; gap: 22px; }
.deal__photo { position: relative; overflow: hidden; margin-top: 20px; aspect-ratio: 16 / 10; border-radius: 18px; background: var(--paper-2); box-shadow: var(--shadow); }
.deal__photo img { width: 100%; height: 100%; object-fit: cover; }
.deal__photo .tag { position: absolute; left: 12px; top: 12px; }
.sheet { position: relative; overflow: hidden; padding: 22px 18px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.sheet::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--ticks), var(--tape); }
.sheet__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.sheet__h span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.sheet__rows li { display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sheet__ck { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tape); }
.sheet__ck .ico { width: 16px; height: 16px; }
.sheet__k { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.sheet__v { font-size: 16px; font-weight: 600; line-height: 1.35; }
.sheet__in { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 6px; background: var(--paper); font-size: 12px; font-style: normal; font-weight: 600; color: var(--ink-2); vertical-align: 1px; }
.sheet__disc { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--tape-soft); border: 1px solid #F1DA8C; font-weight: 650; line-height: 1.35; }
.sheet__disc .ico { padding: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--tape); }
.sheet__cap { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.sheet .btn { margin-top: 16px; }

/* --- Вопросы ------------------------------------------------------------------ */
.faq { padding-top: 40px; padding-bottom: 36px; }
.faq h2 { margin-bottom: 12px; font-size: clamp(23px, 6vw, 30px); }
.faq details { max-width: 860px; margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.faq summary { position: relative; min-height: 56px; padding: 15px 48px 15px 16px; font-weight: 650; line-height: 1.35; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; top: 50%; right: 18px; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--ink); transition: transform .2s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 16px 16px; color: var(--ink-2); }

/* --- Подвал ------------------------------------------------------------------- */
.ftr { padding: 26px 0 30px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ftr p + p { margin-top: 10px; }
.ftr__brand { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); }
.ftr__brand .logo__mark { width: 28px; height: 28px; }
.ftr__req { font-size: 12px; color: var(--ink-3); }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ftr__legal a { display: inline-block; padding: 6px 0; }

/* --- Плашка ориентира внизу (телефон) ----------------------------------------- */
.plate {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--card);
  box-shadow: 0 -12px 30px -14px rgba(14, 26, 43, .28);
  transform: translateY(110%); visibility: hidden;
  transition: transform .25s var(--ease), visibility 0s linear .25s;
}
.plate.is-on { transform: none; visibility: visible; transition: transform .25s var(--ease), visibility 0s; }
.plate__in { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plate__p { min-width: 0; }
.plate__p small { display: block; overflow: hidden; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.plate__p b { display: block; font-size: 19px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plate .btn { flex: none; padding: 0 14px; font-size: 15px; }
body.has-plate { padding-bottom: 80px; }

/* --- Политика ----------------------------------------------------------------- */
.doc { max-width: 820px; padding-top: 24px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(26px, 6vw, 36px); }
.doc h2 { margin-top: 26px; font-size: 20px; }
.doc p, .doc li { margin-top: 10px; color: var(--ink-2); }
.doc ul { padding-left: 20px; list-style: disc; }
.doc__date { color: var(--ink-3); }

/* --- Шире телефона ------------------------------------------------------------- */
@media (min-width: 700px) {
  .opts--shape { grid-template-columns: repeat(4, 1fr); }
  .opts--len { grid-template-columns: repeat(8, 1fr); }
  .opts--when { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 22px 20px 20px; }
  .lf__row { grid-template-columns: 1fr 1fr; }
  .order__card { padding: 32px 28px 24px; }
  .step__opt { flex-basis: auto; margin: 0 0 0 auto; padding-left: 8px; font-size: 12px; }
  .hdr__cta { min-height: 44px; padding: 0 20px; font-size: 16px; border-radius: 12px; }
  .hdr__cta-l { display: inline; }
  .hdr__cta-s { display: none; }
  .ticker__list { min-height: 40px; padding-bottom: 6px; }
  .ticker__list li { gap: 9px; padding-right: 28px; font-size: 14px; }
  .ticker__list li::before { padding-top: 4px; font-size: 10px; }
  .ticker__chip { margin: -5px 0; padding: 5px 10px 5px 7px; }
  .ticker__chip .ico { width: 16px; height: 16px; }
  .hero__in { padding-top: 34px; padding-bottom: 96px; }
  .hero__cap { bottom: 46px; }
  .hero__cap-d { display: inline; }
  .sec { padding: 64px 0 68px; }
  .works__grid { grid-template-columns: repeat(3, 1fr); gap: 22px 18px; margin-top: 30px; }
  .work figcaption { font-size: 14.5px; }
  .work__img .tag { left: 12px; top: 12px; font-size: 12px; padding: 4px 9px; }
  .works__foot { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .sheet { padding: 26px 26px 22px; }
  .formula { padding: 16px 20px; }
  .formula__k { flex-basis: auto; }
}
@media (min-width: 1024px) {
  /* шапка: разделы страницы */
  .hdr__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 8px; }
  .hdr__nav a { position: relative; padding: 10px 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
  .hdr__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--tape); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .hdr__nav a:hover { color: var(--ink); }
  .hdr__nav a:hover::after { transform: none; }

  /* первый экран: текст слева, фото справа; карточка цены заходит на низ фото */
  .hero { color: var(--ink); background: none; overflow: visible; }
  .hero__in { display: grid; grid-template-columns: minmax(0, 1fr) clamp(400px, 40vw, 500px); gap: 44px; align-items: center; padding-top: 36px; padding-bottom: 28px; }
  .hero .eyebrow { color: var(--ink-3); }
  .hero .hero__sub { color: var(--ink-2); }
  .hero h1 { max-width: 22ch; font-size: clamp(36px, 3.6vw, 46px); }
  .hero__ph { position: relative; inset: auto; align-self: end; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 26px; background: var(--paper-2); box-shadow: 0 30px 60px -30px rgba(14, 26, 43, .45); }
  .hero__ph img { object-position: 50% 58%; }
  .hero__ph::after { background: linear-gradient(180deg, rgba(14, 26, 43, .55) 0%, rgba(14, 26, 43, 0) 32%); }
  .hero__cap { top: 16px; bottom: auto; left: 16px; right: 16px; white-space: normal; align-items: flex-start; flex-direction: column; gap: 6px; }

  .cfg { grid-template-columns: minmax(0, 1fr) 360px; gap: 14px 28px; align-items: start; padding-bottom: 40px; }
  .sum { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--hdr-h) + 16px); margin-top: -176px; }
  .steps { grid-column: 1; grid-row: 1; }
  .plate { display: none; }
  body.has-plate { padding-bottom: 0; }
  .faq { padding-bottom: 56px; }
  /* заявка — в колонке шагов, под ними, а не по центру страницы */
  .order { padding-bottom: 48px; }
  .order__card { max-width: calc(100% - 388px); margin-inline: 0; }
  .faq details { max-width: calc(100% - 388px); }

  /* как это работает: 4 шага в ряд, лента — горизонтально над номерами */
  .how__steps { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 34px; padding-top: 0; }
  .how__steps::before { top: 21px; bottom: auto; left: 24px; right: 24px; width: auto; height: 6px; background: repeating-linear-gradient(90deg, rgba(14, 26, 43, .5) 0 1px, transparent 1px 7px), var(--tape); transform-origin: left; }
  .rv-on .how__steps:not(.is-in)::before { transform: scaleX(0); }
  .how__steps li { display: block; padding: 0; }
  .how__n { margin-bottom: 18px; }
  .how__ico { display: block; width: 44px; height: 44px; margin-bottom: 10px; color: var(--ink); }
  .how__steps h3 { font-size: 19px; }
  .how__steps p { margin-top: 6px; font-size: 15px; }
  .formula { display: inline-flex; }

  .deal__grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 48px; align-items: start; }
  .work__img { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* лента стоит: вторая копия не нужна, условия листаются пальцем */
  .ticker { overflow-x: auto; }
  .ticker__list--dup { display: none; }
}
