@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/onest-cyrillic.c3f4223046.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/onest-latin.cc61cbd632.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  /* только знак рубля (1 КБ вместо 28 КБ набора latin-ext); «№» есть в кириллическом файле */
  src: url('/assets/onest-rub.dc3dcebd41.woff2') format('woff2');
  unicode-range: U+20BD;
}

:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --milk: #f4f1ea;
  --sand: #e9e4da;
  --stone: #d9d3c7;
  --line: rgba(31, 34, 38, 0.12);
  --line-strong: rgba(31, 34, 38, 0.22);
  --ink: #1f2226;
  --ink-2: #474b52;
  --muted: #5f636a;
  --blue: #1f5bc7;
  --blue-ink: #17489e;
  --blue-soft: #e8eefa;
  --ok: #1d6b3f;
  --err: #a12a1c;
  --radius: 14px;
  --radius-s: 8px;
  --gutter: 16px;
  --max: 1200px;
  --header-h: 64px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow-card: 0 1px 0 rgba(31, 34, 38, 0.04), 0 24px 48px -28px rgba(31, 34, 38, 0.35);
}
@media (min-width: 760px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.has-sticky body { padding-bottom: 84px; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }

/* ---------- кнопки ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font: 600 16px/1.1 var(--font); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--fg); background: #33373d; transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(31, 34, 38, 0.6); }
.btn:active { transform: translateY(0); }
.btn--blue { --bg: var(--blue); }
.btn--blue:hover { background: var(--blue-ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(31, 34, 38, 0.05); color: var(--ink); box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn[data-state='busy']::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 250, 247, 0.0); transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { background: rgba(251, 250, 247, 0.94); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: 0.06em; font-size: 17px; white-space: nowrap; }
.brand__mark { width: 40px; height: 28px; flex: none; }
.brand__accent { color: var(--blue); font-weight: 600; }
.nav { display: none; gap: 28px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.header-cta { min-height: 42px; padding: 0 16px; font-size: 15px; }
@media (min-width: 980px) { .nav { display: flex; } }
@media (max-width: 420px) { .header-cta span { display: none; } .header-cta { padding: 0 12px; } }

/* ---------- сцена ---------- */
.scene { position: relative; background: var(--milk); }
/* высота сразу как в живом режиме (svh), чтобы при запуске скриптов сцена не меняла размер */
.scene__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.scene__poster {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 18% 8%, #fffdf8 0%, rgba(255, 253, 248, 0) 60%),
    linear-gradient(160deg, #f3f0e9 0%, #e9e5dc 100%);
}
.scene canvas, .scene__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene canvas { opacity: 0; transition: opacity 0.9s ease; }
.scene--ready canvas { opacity: 1; }
.scene__overlay { pointer-events: none; overflow: visible; clip-path: inset(var(--header-h) 0 0 0); }
.scene__tool-wrap { position: absolute; inset: 0; pointer-events: none; clip-path: inset(var(--header-h) 0 0 0); }
.scene__tool { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; will-change: transform; }
.scene__cards { position: absolute; inset: 0; pointer-events: none; }
.scene__dust-label { display: none; }

.card {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 16px;
  pointer-events: auto;
  background: rgba(251, 250, 247, 0.97);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 20px 22px;
}
.card__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 12px; }
.card__kicker::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.card h2 { font-size: clamp(26px, 6.6vw, 40px); margin-bottom: 12px; }
.card p { color: var(--ink-2); }
.card p + p { margin-top: 10px; }
.card .btn-row { margin-top: 20px; }

.card--hero { bottom: 16px; top: auto; }
.card--hero h1 { font-size: clamp(31px, 8.6vw, 64px); margin-bottom: 14px; }
.card--hero .hero-lead { font-size: clamp(16px, 4.2vw, 20px); color: var(--ink-2); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.eyebrow { font-size: 14px; color: var(--muted); margin-bottom: 14px; font-weight: 500; }

@media (min-width: 760px) {
  /* карточки центрируются в области ПОД шапкой — не заходят на название сайта */
  .scene:not(.scene--static) .scene__cards { inset: var(--header-h) 0 0 0; }
  .card { left: var(--gutter); right: auto; bottom: auto; top: 50%; transform: translateY(-50%); width: min(500px, 40vw); padding: 34px 34px 32px; }
  .card--hero { width: min(620px, 52vw); }
  /* заголовок масштабируется и по ширине, и по высоте экрана: на низких ноутбуках карточка помещается */
  .card--hero h1 { font-size: clamp(30px, min(4.6vw, 7.2vh), 64px); }
  .card h2 { font-size: clamp(24px, min(3.2vw, 5.4vh), 40px); }
}
@media (min-width: 760px) and (max-height: 760px) {
  .card { padding: 26px 28px 24px; }
  .card--hero .eyebrow { margin-bottom: 8px; }
  .card--hero h1 { margin-bottom: 10px; }
  .card .btn-row { margin-top: 14px; }
  .card--hero .hero-facts { display: none; }
  .card p + p { margin-top: 6px; }
}

/* живой режим — он же вид до запуска скриптов: видна только активная карточка (иначе на медленном
   телефоне сначала мелькали все пять карточек друг на друге). Без JavaScript — static/nojs.css. */
.scene--live .scene__stage { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.scene--live .scene__stage.is-dragging { cursor: grabbing; }
.scene--live .card { cursor: auto; -webkit-user-select: text; user-select: text; }
.scene:not(.scene--static) .card { opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s linear 0.45s, translate 0.45s ease; translate: 0 18px; }
.scene:not(.scene--static) .card.is-active { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 0.5s ease 0.05s, visibility 0s, translate 0.5s ease 0.05s; }
@media (max-width: 759px) {
  .scene:not(.scene--static) .card:not(.card--hero) { padding: 18px 18px; }
  .scene:not(.scene--static) .card:not(.card--hero) h2 { font-size: 24px; }
  .scene:not(.scene--static) .card:not(.card--hero) p { font-size: 15.5px; }
  .scene:not(.scene--static) .card:not(.card--hero) p + p { display: none; }
  .scene:not(.scene--static) .card--hero { padding: 18px 18px 18px; }
  .scene:not(.scene--static) .card--hero .eyebrow { margin-bottom: 8px; font-size: 13px; }
  .scene:not(.scene--static) .card--hero h1 { font-size: clamp(26px, 7.2vw, 34px); margin-bottom: 10px; }
  .scene:not(.scene--static) .card--hero .hero-lead { font-size: 16px; }
  .scene:not(.scene--static) .card--hero .btn-row { margin-top: 14px; }
  .scene:not(.scene--static) .card--hero .hero-facts { display: none; }
  .card--hero .btn { font-size: 15px; padding: 0 18px; }
}

/* статичный режим (reduced motion, нет WebGL, слабое устройство): обычный поток */
.scene--static .scene__stage { height: auto; overflow: visible; padding: calc(var(--header-h) + 8px) 0 0; }
.scene--static canvas, .scene--static .scene__overlay, .scene--static .scene__tool-wrap, .scene--static .progress { display: none; }
.scene--static .scene__poster { display: none; }
.scene--static .scene__cards { position: static; display: grid; gap: 16px; padding: 0 var(--gutter) 56px; max-width: var(--max); margin: 0 auto; }
.scene--static .card { position: static; transform: none; width: auto; opacity: 1; visibility: visible; translate: none; box-shadow: none; }
.scene--static .scene__still { display: block; }
.scene__still { display: none; padding: 0 var(--gutter) 16px; max-width: var(--max); margin: 0 auto; }
@media (min-width: 900px) {
  .scene--static .scene__cards { grid-template-columns: 1fr 1fr; }
  .scene--static .card--hero { grid-column: 1 / -1; }
}

/* индикатор глав */
.scene__hint {
  position: absolute; z-index: 2; display: none; align-items: center; gap: 8px; margin: 0;
  padding: 8px 14px; border-radius: 999px; background: rgba(31, 34, 38, 0.82); color: #fbfaf7;
  font-size: 14px; font-weight: 500; pointer-events: none; white-space: nowrap;
  left: 50%; transform: translateX(-50%); top: calc(var(--header-h) + 14px);
  transition: opacity 0.4s ease;
}
.scene__hint svg { width: 16px; height: 16px; flex: none; }
.scene__hint-touch { display: none; }
@media (pointer: coarse) { .scene__hint-touch { display: inline; } .scene__hint-mouse { display: none; } }
@media (min-width: 760px) { .scene__hint { top: auto; bottom: 30px; left: calc(var(--gutter) + min(620px, 52vw) + (100% - var(--gutter) - min(620px, 52vw)) / 2); width: max-content; max-width: calc(100% - 3 * var(--gutter) - min(620px, 52vw)); white-space: normal; text-align: center; } }
.scene--live.scene--ready .scene__hint { display: inline-flex; }
.scene--started .scene__hint { opacity: 0; }
.progress { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 6px; z-index: 3; }
.progress button {
  display: grid; grid-template-columns: auto 10px; align-items: center; gap: 12px; justify-items: end;
  border: 0; background: none; padding: 6px 0; cursor: pointer; color: var(--muted); font: 500 13px/1 var(--font);
}
.progress button span { opacity: 0; transform: translateX(6px); transition: opacity 0.25s, transform 0.25s; background: rgba(251, 250, 247, 0.95); padding: 5px 8px; border-radius: 6px; }
.progress button::after { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-2); background: transparent; transition: background-color 0.25s, transform 0.25s; }
.progress button[aria-current='step']::after { background: var(--ink); transform: scale(1.25); }
.progress button:hover span, .progress button:focus-visible span, .progress button[aria-current='step'] span { opacity: 1; transform: none; }
.progress__bar { position: absolute; right: 3.5px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); z-index: -1; }
.progress__bar::after { content: ''; position: absolute; inset: 0 0 auto; height: calc(var(--p, 0) * 100%); background: var(--ink); }
@media (min-width: 1100px) { .scene--live .progress { display: flex; } }

/* ---------- сравнение до/после ---------- */
.compare { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--sand); --pos: 50%; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(31, 34, 38, 0.15); pointer-events: none; }
.compare__line::after {
  content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center;
  font: 600 16px/1 var(--font); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45); letter-spacing: 2px;
}
.compare input[type='range'] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input[type='range']:focus-visible + .compare__line::after { outline: 3px solid var(--blue); outline-offset: 2px; }
.compare__tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(251, 250, 247, 0.95); font-size: 13px; font-weight: 600; pointer-events: none; }
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; }
.figure-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- секции ---------- */
.section { padding: 72px 0; }
.section--milk { background: var(--milk); }
.section--line { border-top: 1px solid var(--line); }
@media (min-width: 760px) { .section { padding: 112px 0; } }
.section__head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.section__kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); }
.section__head h2 { font-size: clamp(30px, 5.4vw, 52px); }
.section__head p { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); }

/* полоса фактов */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { list-style: none; padding: 22px 20px 22px 0; display: grid; gap: 4px; }
.facts li + li { border-top: 1px solid var(--line); }
.facts b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.facts span { color: var(--muted); font-size: 15px; }
@media (min-width: 760px) {
  .facts li + li { border-top: 0; border-left: 1px solid var(--line); padding-left: 24px; }
}
.facts { margin: 0; padding: 0; }

/* прайс */
.prices { display: grid; gap: 28px; }
@media (min-width: 980px) { .prices { grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; } }
.price-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.price-list li { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price-list .t { flex: 1; font-size: 18px; }
.price-list .t small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.price-list .v { font-weight: 600; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-sub { margin-top: 28px; }
.price-sub h3 { font-size: 20px; margin-bottom: 4px; }
.notes { margin: 28px 0 0; padding: 22px 22px 22px 22px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; }
.notes li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; }
.notes li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.notes li strong { color: var(--ink); font-weight: 600; }
/* «Заказать химчистку» под прайсом: из цен можно сразу позвонить или написать */
.price-order { margin-top: 28px; padding: 24px 22px; background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 16px); }
.price-order h3 { font-size: 22px; margin: 0 0 6px; }
.price-order p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }
.price-order__buttons { display: grid; gap: 10px; }
.price-order__buttons .btn { width: 100%; justify-content: center; }
@media (min-width: 560px) { .price-order__buttons { grid-template-columns: 1fr 1fr; } .price-order__buttons .btn:first-child { grid-column: 1 / -1; } }

/* калькулятор */
.calc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-card); }
@media (min-width: 980px) { .calc { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; } }
.calc h3 { font-size: 22px; margin-bottom: 6px; }
.calc > p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.calc fieldset { border: 0; margin: 0; padding: 0; }
.calc legend { padding: 0; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.qty label { font-size: 15.5px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; font: 500 20px/1 var(--font); color: var(--ink); cursor: pointer; border-radius: 999px; }
.stepper button:hover { background: rgba(31, 34, 38, 0.06); }
.stepper input { width: 36px; text-align: center; border: 0; background: transparent; font: 600 16px var(--font); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.area { width: 96px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 16px var(--font); text-align: right; background: #fff; }
.checks { display: grid; gap: 8px; margin-top: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.calc__result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ink); }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__total span { color: var(--muted); font-size: 15px; }
.calc__total output { font-size: 30px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc__lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.calc__lines li { display: flex; justify-content: space-between; gap: 12px; }
.calc__note { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.calc__error { color: var(--err); font-size: 14px; margin-top: 8px; }

/* шаги */
.steps { counter-reset: step; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-size: 15px; font-weight: 600; color: var(--blue-ink); padding-top: 4px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 21px; }
.steps p { color: var(--ink-2); }
@media (max-width: 759px) {
  /* телефон: меньше воздуха, чтобы раздел целиком помещался на экран под шапкой и над нижней кнопкой */
  .section { padding: 40px 0; }
  .section__head { gap: 6px; margin-bottom: 16px; }
  .section__head h2 { font-size: 25px; }
  .section__head p { font-size: 16px; }
  #how { padding-top: 28px; scroll-margin-top: -22px; } /* верхний отступ уходит под шапку */
  /* номер шага — в строке заголовка, описание на всю ширину: меньше строк */
  .steps li { display: block; padding: 8px 0; }
  .steps li::before { display: inline-block; width: 30px; font-size: 13px; padding-top: 0; vertical-align: 1px; }
  .steps h3 { display: inline; font-size: 17px; line-height: 1.3; }
  .steps p { margin-top: 2px; font-size: 14.5px; line-height: 1.38; }
}
@media (min-width: 980px) {
  .steps { grid-template-columns: repeat(5, 1fr); border-top: 0; gap: 0; }
  .steps li { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--ink); padding: 22px 22px 0 0; }
  .steps li::before { grid-row: auto; margin-bottom: 18px; }
}

/* оборудование и подход */
.grid-2 { display: grid; gap: 16px; }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 24px; } .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: grid; gap: 10px; align-content: start; }
.section--milk .tile { background: var(--paper); }
.tile h3 { font-size: 21px; }
.tile p { color: var(--ink-2); font-size: 16px; }
.tile__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.tile img { border-radius: var(--radius-s); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.disclaimer { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 760px; }

/* загрязнения */
.stains { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stain { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stain h3 { font-size: 20px; }
.stain p { color: var(--ink-2); }
@media (min-width: 760px) { .stains { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* сушка */
.care { display: grid; gap: 24px; }
@media (min-width: 900px) { .care { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; } }
.care__big { font-size: clamp(56px, 10vw, 104px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; }
.care__big small { display: block; font-size: 18px; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-top: 10px; }
.dos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dos li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.dos li::before { content: '—'; color: var(--blue); font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 0 22px; color: var(--ink-2); max-width: 720px; display: grid; gap: 10px; }

/* финальный блок */
.final { background: var(--ink); color: #f4f2ee; }
.final .section__kicker { color: #9fbcf3; }
.final .section__head p { color: #c9cbcf; }
.final a:not(.btn) { color: #cfdcf7; }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; } }
.messengers { display: grid; gap: 16px; align-content: start; }
.messengers .btn { width: 100%; }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--light:hover { background: #ecebe7; color: var(--ink); }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.template { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.template label { font-size: 14px; color: #c9cbcf; }
.template textarea { width: 100%; resize: none; border: 0; background: transparent; color: #fff; font: 400 16px/1.5 var(--font); padding: 0; }
.template .btn { min-height: 42px; justify-self: start; font-size: 14px; }
.final .muted { color: #b4b7bc; font-size: 14.5px; }
.no-contacts { padding: 20px; border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: var(--radius); color: #d7d8db; }

/* форма */
.lead-box { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 24px 20px; }
@media (min-width: 760px) { .lead-box { padding: 32px; } }
.lead-box h3 { font-size: 24px; margin-bottom: 6px; }
.lead-box > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field legend { font-size: 14.5px; font-weight: 600; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type='text'], .field input[type='tel'], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--font);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field [aria-invalid='true'] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(161, 42, 28, 0.12); }
.field__error { color: var(--err); font-size: 14px; min-height: 0; }
.field__error:empty { display: none; }
.segmented { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.segmented .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; font-weight: 500; }
.segmented input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.segmented input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.row-2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); margin: 6px 0 4px; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-box .btn { width: 100%; margin-top: 12px; }
.status { margin-top: 14px; font-size: 15px; padding: 0; border-radius: 10px; }
.status:empty { display: none; }
.status[data-kind='ok'] { color: var(--ok); background: #e7f3ec; padding: 14px 16px; }
.status[data-kind='error'] { color: var(--err); background: #fbeceb; padding: 14px 16px; }
.status[data-kind='info'] { color: var(--muted); }
.lead-box__note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* отзывы и кейсы */
.reviews { display: grid; gap: 16px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; }
.review footer { color: var(--muted); font-size: 14px; }

/* подвал */
.site-footer { background: #17191c; color: #c4c6ca; padding: 48px 0 40px; font-size: 14.5px; }
.site-footer a, .site-footer .linklike { color: #e3e5e8; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 15px; color: #fff; letter-spacing: 0; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .small { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #9a9da3; font-size: 13px; display: grid; gap: 6px; }

/* мобильная кнопка */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 250, 247, 0.97); box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%); transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 760px) { .sticky-cta { display: none; } html.has-sticky body { padding-bottom: 0; } }

/* меню «Рассчитать стоимость по фото»: снизу на телефоне, по центру на компьютере */
.photo-menu {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%;
  background: transparent; color: var(--ink);
}
.photo-menu::backdrop { background: rgba(23, 25, 28, 0.48); }
.photo-menu__box {
  position: relative; background: var(--paper);
  border-radius: 20px 20px 0 0; padding: 26px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 48px -24px rgba(23, 25, 28, 0.45);
}
.photo-menu[open] .photo-menu__box { animation: photo-menu-up 0.24s ease-out; }
@keyframes photo-menu-up { from { transform: translateY(24px); opacity: 0; } }
.photo-menu__title { font-size: 21px; line-height: 1.25; margin: 0 40px 6px 0; letter-spacing: -0.01em; }
.photo-menu__sub { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.photo-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.photo-menu__item {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.photo-menu__item:hover { color: var(--ink); border-color: var(--blue); background: var(--blue-soft); }
.photo-menu__item:active { transform: scale(0.99); }
.photo-menu__note { color: var(--muted); font-weight: 400; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.photo-menu__arrow { margin-left: auto; color: var(--blue); font-weight: 500; }
.photo-menu__foot { margin: 16px 0 0; color: var(--muted); font-size: 13.5px; text-align: center; }
.photo-menu__close {
  position: absolute; top: 14px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-2); font-size: 28px; line-height: 1; cursor: pointer;
}
.photo-menu__close:hover { background: rgba(31, 34, 38, 0.06); color: var(--ink); }
@media (min-width: 760px) {
  .photo-menu { margin: auto; max-width: 440px; }
  .photo-menu__box { border-radius: 20px; padding: 30px 28px 22px; box-shadow: var(--shadow-card); }
}
@media (prefers-reduced-motion: reduce) { .photo-menu[open] .photo-menu__box { animation: none; } }

/* cookie */
.cookie {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 16px; z-index: 60; max-width: 560px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 18px; display: grid; gap: 12px; font-size: 14.5px;
}
.cookie .btn { min-height: 42px; font-size: 14.5px; }
.cookie__title { padding-right: 36px; font-weight: 700; font-size: 16.5px; line-height: 1.3; color: var(--ink); }
.cookie__title + p { margin-top: -6px; }
.cookie__close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-2); font-size: 26px; line-height: 1; cursor: pointer;
}
.cookie__close:hover { background: rgba(31, 34, 38, 0.06); color: var(--ink); }
.cookie__close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* «Настройки cookie» в подвале: кнопка, выглядящая как ссылка */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

/* баннер тестовой версии */
.staging-banner { position: fixed; left: 8px; bottom: 8px; z-index: 70; background: #f5d76e; color: #2b2300; font: 600 11px/1 var(--font); padding: 5px 8px; border-radius: 6px; pointer-events: none; }

/* юридические страницы */
.doc { padding: calc(var(--header-h) + 40px) 0 80px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 6px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc .todo { background: #fff6d6; border: 1px solid #ecd27a; padding: 2px 6px; border-radius: 4px; color: #4a3b00; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.equipment__title { font-size: 21px; margin: 48px 0 0; }
.equipment { margin-top: 18px; }
/* «Кто приедет»: фото мастера + плитки оборудования и средств */
.crew { display: grid; gap: 16px; margin-top: 18px; }
.crew__photo { margin: 0; }
.crew__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.crew__side { display: grid; gap: 16px; align-content: start; }
.equipment--stack { margin-top: 0; display: grid; gap: 16px; }
.tile .crew__fact { font-weight: 600; color: var(--ink); }
@media (min-width: 760px) {
  .crew { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .crew__photo { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- игра «Испачкай и почисти» ---------- */
.scene__game-btn {
  position: absolute; z-index: 3; display: none; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(251, 250, 247, 0.94); color: var(--ink); font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap;
  right: var(--gutter); top: calc(var(--header-h) + 10px);
  box-shadow: 0 6px 18px -10px rgba(31, 34, 38, 0.45);
}
.scene__game-btn svg { width: 20px; height: 20px; flex: none; color: var(--blue); }
.scene__game-btn:hover { border-color: var(--ink); }
.scene__game-btn[disabled] { opacity: 0.6; cursor: progress; }
.scene--live.scene--ready .scene__game-btn { display: inline-flex; }
@media (max-width: 759px) {
  /* подсказку прижимаем влево, чтобы рядом поместилась кнопка игры */
  .scene__hint { left: var(--gutter); transform: none; }
  .scene__game-btn { right: auto; left: var(--gutter); top: calc(var(--header-h) + 62px); }
  .scene__game-btn span { font-size: 13px; }
}
@media (max-width: 759px) and (max-height: 600px) {
  /* низкий телефон: подсказка и кнопка игры — в одну строку, у кнопки короткая надпись */
  .scene__hint { top: calc(var(--header-h) + 8px); padding: 6px 10px; font-size: 12px; gap: 5px; }
  .scene__game-btn { top: calc(var(--header-h) + 8px); left: auto; right: var(--gutter); min-height: 32px; padding: 0 11px; }
  .scene__game-more { display: none; }
}
@media (min-width: 760px) {
  /* кнопка игры — над подсказкой, по центру области ковра справа от карточек (раньше налезали друг на друга) */
  .scene__game-btn { top: auto; right: auto; bottom: 84px; left: calc(var(--gutter) + min(620px, 52vw) + (100% - var(--gutter) - min(620px, 52vw)) / 2); transform: translateX(-50%); }
}
@media (min-width: 760px) and (max-width: 979px) { .scene__game-btn { bottom: 104px; } } /* подсказка тут в две строки */

html.game-lock, html.game-lock body { overflow: hidden; overscroll-behavior: none; }
html.game-lock .site-header, html.game-lock .sticky-cta, html.game-lock .staging-banner { visibility: hidden; }
.scene--game .scene__cards, .scene--game .scene__hint, .scene--game .progress, .scene--game .scene__game-btn,
.scene--game .scene__overlay, .scene--game .scene__tool-wrap { display: none !important; }
.scene--game .scene__stage { cursor: auto; }

.game { position: absolute; inset: 0; z-index: 6; touch-action: none; -webkit-user-select: none; user-select: none; }
.game[hidden] { display: none; }
.game__stains, .game__sprites { position: absolute; inset: 0; width: 100%; height: 100%; }
.game__stains { mix-blend-mode: multiply; pointer-events: none; }
.game__sprites { touch-action: none; cursor: pointer; }
.game__sprites.is-cleaning { cursor: crosshair; }

.game__top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) 12px; pointer-events: none;
}
.game__meter, .game__exit { pointer-events: auto; }
.game__meter {
  margin: 0; display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 999px;
  background: rgba(251, 250, 247, 0.94); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
}
.game__meter b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.game__time { font-variant-numeric: tabular-nums; color: var(--muted); }
.game__exit {
  min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fbfaf7;
  font: 600 14.5px/1 var(--font); cursor: pointer;
}
.game__exit:hover { background: #000; }

.game__toast {
  position: absolute; left: 50%; z-index: 3; transform: translate(-50%, 8px); opacity: 0; transition: opacity 0.25s, transform 0.25s;
  bottom: calc(var(--game-panel, 132px) + 12px); max-width: min(560px, calc(100% - 2 * var(--gutter)));
  margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(31, 34, 38, 0.9); color: #fbfaf7;
  font-size: 14px; line-height: 1.35; text-align: center; pointer-events: none;
}
.game__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.game__panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 10px 0 calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: rgba(251, 250, 247, 0.96); border-top: 1px solid var(--line);
}
.game__tabs { display: flex; gap: 6px; padding: 0 var(--gutter) 8px; }
.game__tabs button {
  min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink-2); font: 600 14px/1 var(--font); cursor: pointer;
}
.game__tabs button[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fbfaf7; }
.game__items {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 2px; scroll-snap-type: x proximity;
  touch-action: pan-x; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.game__items::-webkit-scrollbar { display: none; }
.game__item {
  flex: none; scroll-snap-align: start; display: grid; justify-items: center; align-content: start; gap: 3px;
  width: 92px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font: 600 13px/1.15 var(--font); text-align: center; cursor: pointer;
}
.game__item svg { width: 28px; height: 28px; color: var(--ink-2); }
.game__item-t { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.game__item-n { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.game__item[aria-pressed='true'] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.game__item[aria-pressed='true'] svg { color: var(--blue); }
.game__item--degreaser svg { color: #b8862c; }
.game__item--stain svg { color: #a8324f; }
.game__item--enzyme svg { color: #6f8a1f; }
.game__item--freeze svg { color: #3a8ccf; }
@media (min-width: 760px) {
  .game__panel { left: 50%; right: auto; bottom: 18px; transform: translateX(-50%); width: min(980px, calc(100% - 2 * var(--gutter))); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-card); padding: 12px 0; }
  .game__items { overflow: visible; }
  .game__item { flex: 1 1 0; min-width: 0; width: auto; }
  .game__toast { bottom: calc(var(--game-panel, 150px) + 30px); }
}

.game__done { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: var(--gutter); background: rgba(31, 34, 38, 0.28); }
.game__done[hidden] { display: none; }
.game__card {
  width: min(460px, 100%); max-height: calc(100% - 2 * var(--gutter)); overflow: auto;
  background: var(--paper); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-card); color: var(--ink);
}
.game__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); }
.game__title { margin: 0 0 12px; font-size: 24px; line-height: 1.2; }
.game__sub { margin: 0 0 8px; color: var(--ink-2); }
.game__lines { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.game__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.game__total { margin: 0 0 6px; font-weight: 600; }
.game__note { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.game__actions { display: grid; gap: 8px; }
.game__actions .btn { width: 100%; }
