/* LegalDocs · лендинг v4 (01.10.2026). Стиль «Поля и сноски»: Golos Text — интерфейс, Literata — документ и заголовки,
   PT Mono — номера; одна краска #243B80; радиус 6; бумажный фон. Разметка и композиция — с нуля, не из landing.html.
   Движение: только transform/opacity, кривая cubic-bezier(0.23, 1, 0.32, 1); щадящий режим — без сдвигов. */

@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/golos-text-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/golos-text-latin.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('/fonts/literata-cyrillic-opsz-normal.woff2') format('woff2-variations'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('/fonts/literata-latin-opsz-normal.woff2') format('woff2-variations'); 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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/pt-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --paper: #F6F6F3; --sheet: #FFFFFF; --paper-press: #EFEEE9;
  --ink: #1A1A18; --ink-2: #5E5E57; --rule: #E2E1DC; --edge-control: #8C8B83; --edge-quiet: #D3D2CB;
  --action: #243B80; --action-press: #1B2E66; --btn-main: #243B80; --btn-main-press: #1B2D63; --on-btn-main: #FFFFFF;
  --focus: #243B80; --mark: #FBEFC2; --st-done: #1E6B45;
  --tint: #ECEBE5; --tint-info: #E9EDF6; --tint-done: #E5F0E8;
  --font-doc: 'Literata', Georgia, serif; --font-ui: 'Golos Text', system-ui, sans-serif; --font-num: 'PT Mono', ui-monospace, monospace;
  --r-control: 6px; --r-sheet: 4px; --r-block: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-float: 0 1px 2px rgba(26, 26, 24, .06), 0 8px 24px rgba(26, 26, 24, .12);
  --wrap: 1120px; --gut: 24px; --head: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head) + 16px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums tabular-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--action); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--font-doc); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: 0; }
p, li, dd { text-wrap: pretty; }
summary, .sit__doc, .biz__list span, .pc__what, .disc__who, .sec__lead, .small, .art p, .why p { text-wrap: balance; }
p { margin: 0; }
.line { display: block; }
.nw { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--sheet); padding: 8px 12px; border-radius: var(--r-control); z-index: 50; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: 80px 0 0; content-visibility: auto; contain-intrinsic-size: auto 760px; }
.sec__h { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; max-width: 760px; }
.sec__lead { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 640px; }
.small { font-size: 14px; color: var(--ink-2); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--r-control); font: 500 16px/1.2 var(--font-ui); text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out); white-space: nowrap; }
.btn--main { background: var(--btn-main); color: var(--on-btn-main); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--edge-quiet); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn--main:active { background: var(--btn-main-press); }
@media (hover: hover) and (pointer: fine) {
  .btn--main:hover { background: var(--btn-main-press); }
  .btn--quiet:hover { background: var(--paper-press); }
}
.more { font-weight: 500; text-decoration: none; }
.more::after { content: ' →'; }
@media (hover: hover) and (pointer: fine) { .more:hover { text-decoration: underline; } }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease-out); }
.top.is-scrolled { border-bottom-color: var(--rule); }
.top__in { display: flex; align-items: center; gap: 24px; height: var(--head); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 600 18px/1 var(--font-ui); }
.logo img { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; margin-left: 16px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: var(--r-control); font-size: 15px;
  transition: background-color 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--paper-press); } }
.top__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top__login { color: var(--ink); text-decoration: none; padding: 8px 12px; font-size: 15px; }
@media (max-width: 1040px) { .nav { display: none; } }
@media (max-width: 560px) { .top__login { display: none; } .top__in { gap: 12px; } }

/* ---------- Первый экран ---------- */
.hero { padding: 64px 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; }
.hero__lead { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 520px; }
.find { margin-top: 32px; max-width: 560px; }
.find__label { display: block; font-weight: 500; margin-bottom: 8px; }
.find__row { display: flex; gap: 8px; }
.find__field { position: relative; flex: 1; min-width: 0; }
.find__field input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--edge-control); border-radius: var(--r-control);
  background: var(--sheet); color: var(--ink); font: 400 17px/1.3 var(--font-ui); }
.find__field input:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
.find__hint { position: absolute; left: 17px; right: 16px; top: 0; height: 52px; display: flex; align-items: center; pointer-events: none;
  color: var(--ink-2); font-size: 17px; white-space: nowrap; overflow: hidden; transition: opacity 150ms linear; }
.find__hint.is-off { opacity: 0; }
.find__field input:focus + .find__hint, .find__field input:not(:placeholder-shown) + .find__hint { display: none; }
.find .btn { height: 52px; }
.find__out { margin-top: 8px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-control); padding: 4px; }
.find__hit { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-control);
  color: var(--ink); text-decoration: none; transition: background-color 180ms var(--ease-out); }
.find__hit + .find__hit { margin-top: 2px; }
.find__t { font-family: var(--font-doc); font-size: 17px; line-height: 1.35; }
.find__t b { font-weight: 600; background: var(--mark); border-radius: 2px; }
.find__lv { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.find__p { font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.find__go { color: var(--action); }
@media (hover: hover) and (pointer: fine) { .find__hit:hover { background: var(--paper-press); } }
.find__none { padding: 12px; color: var(--ink-2); }
.find__more { display: block; padding: 10px 12px 8px; font-size: 15px; }
@media (max-width: 640px) {
  .find__hit { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  /* На телефоне уровень и цена уходят в одну строку под названием, стрелка не нужна. */
  .find__lv, .find__p { grid-column: 2; justify-self: end; }
  .find__lv { grid-row: 1; }
  .find__p { grid-row: 2; }
  .find__go { display: none; }
}
.free { margin-top: 20px; }
.free b { font-weight: 600; font-size: 18px; display: block; }
.swipe { display: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Мини-сцена «вопрос → документ» */
.scene { position: relative; max-width: 480px; margin-left: auto; width: 100%; }
.scene__ask { display: inline-block; max-width: 340px; background: var(--btn-main); color: var(--on-btn-main); padding: 12px 16px;
  border-radius: 12px 12px 12px 4px; font-size: 16px; line-height: 1.4; }
.scene__ask small { display: block; font-size: 13px; opacity: .85; margin-bottom: 2px; }
.scene__sheet { margin-top: 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sheet); padding: 28px 28px 24px;
  font-family: var(--font-doc); font-size: 15px; line-height: 1.55; }
.scene__to { font-size: 13px; color: var(--ink-2); text-align: right; line-height: 1.45; }
.scene__title { text-align: center; margin: 16px 0 12px; font-weight: 600; letter-spacing: .08em; font-size: 14px; }
.scene__p + .scene__p { margin-top: 8px; }
.scene mark, .doc mark { background: var(--mark); color: var(--ink); border-radius: 2px; padding: 0 2px; }
.scene__fn { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); font: 400 13px/1.45 var(--font-ui); color: var(--ink-2);
  display: flex; gap: 8px; }
.scene__fn b { font-family: var(--font-num); font-weight: 400; color: var(--action); }
.ok { color: var(--st-done); white-space: nowrap; }
.ok::before { content: '✓\00A0'; }
sup.fn { font-family: var(--font-num); color: var(--action); font-size: .7em; }
.scene .st, .scene .s { animation: sceneIn 260ms var(--ease-out) both; }
.scene .scene__ask { animation-delay: 150ms; }
.scene .scene__sheet { animation-delay: 550ms; }
.scene .s1 { animation-delay: 850ms; }
.scene .s2 { animation-delay: 1050ms; }
.scene .s3 { animation-delay: 1300ms; }
.scene .s4 { animation-delay: 1550ms; }
.scene .s5 { animation-delay: 1850ms; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Ситуации ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.sit { position: relative; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-block);
  padding: 24px; transition: border-color 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sit:hover { border-color: var(--edge-control); } }
.sit__who { font-size: 13px; color: var(--ink-2); }
.sit__q { margin-top: 8px; font-family: var(--font-doc); font-size: 21px; line-height: 1.3; font-weight: 600; }
.sit__doc { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.sit__go { margin-top: auto; padding-top: 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sit__go a.main { font-weight: 500; text-decoration: none; }
.sit__go a.main::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-block); }
.sit__go a.main:focus-visible { outline: none; }
.sit:has(a.main:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.sit__price { font-size: 15px; white-space: nowrap; }
.sit__law { position: relative; z-index: 1; font-size: 14px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 80px; margin-top: 24px; }
.steps__list { list-style: none; margin: 0; padding: 0; }
.step { position: relative; min-height: 320px; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
/* Полоса-прогресс активного шага: растёт linear всю его фазу, на паузе замирает */
.step__bar { position: absolute; left: -20px; top: 28px; bottom: 28px; width: 2px; border-radius: 1px;
  background: var(--btn-main); transform: scaleY(0); transform-origin: 50% 0; }
.step:nth-child(1) .step__bar { --bar-dur: 4.5s; }
.step:nth-child(2) .step__bar { --bar-dur: 3.2s; }
.step:nth-child(3) .step__bar { --bar-dur: 5.9s; }
.step.is-on .step__bar { animation: stepFill var(--bar-dur, 4.5s) linear forwards; }
@keyframes stepFill { to { transform: scaleY(1); } }
.steps.is-held .step__bar { animation-play-state: paused; }
.step__n { font-family: var(--font-num); color: var(--ink-2); font-size: 15px; transition: color 400ms ease-in-out; }
.step h3 { margin-top: 8px; font-size: 26px; line-height: 1.25; transition: color 400ms ease-in-out; }
.step p { margin-top: 8px; color: var(--ink-2); max-width: 460px; }
.steps.live .step:not(.is-on) .step__n, .steps.live .step:not(.is-on) h3 { color: color-mix(in srgb, var(--ink-2) 55%, transparent); }
.steps.live .step.is-on .step__n, .steps.live .step.is-on h3 { color: var(--btn-main); }
.step__seek { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.step__seek:focus-visible { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .step__seek:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .steps.live .step:not(.is-on) .step__seek:hover { color: var(--ink-2); }
}
/* Рамка телефона; сцена внутри всегда светлая — рамка тоже светлых тонов */
.phone { position: sticky; top: calc(var(--head) + 40px); align-self: start; justify-self: center; margin: 24px auto 0;
  width: 372px; aspect-ratio: 390 / 760;
  border: 1px solid #E2E1DC; border-radius: 28px; overflow: hidden; background: #FFFFFF; padding: 0; }

/* ---------- Живая сцена «Три шага» (V-62, доводка V-68): экран «Новый документ», только светлая тема.
   Цикл ≈ 15,3 с; шапка «LegalDocs» и «Новый документ» не гаснут никогда — меняется только содержимое под ними.
   Кривые: появление cubic-bezier(.2,.7,.2,1), смены и кросс-фейд cubic-bezier(.4,0,.2,1); нажатие 120+180 мс. ---------- */
.ls { --l-ink: #1A1A18; --l-ink2: #63635C; --l-rule: #E2E1DC; --l-edge: #8C8B83; --l-sheet: #FFFFFF; --l-paper: #F6F6F3;
  --l-btn: #243B80; --l-on-btn: #FFFFFF; --l-done: #1E6B45; --l-mark: #FBEFC2;
  --l-in: cubic-bezier(.2, .7, .2, 1); --l-swap: cubic-bezier(.4, 0, .2, 1);
  position: absolute; inset: 0; overflow: hidden; background: var(--l-paper); color: var(--l-ink);
  font: 400 15px/1.4 var(--font-ui); user-select: none; -webkit-user-select: none;
  display: flex; flex-direction: column; }
.ls.is-seek, .ls.is-seek .ls__scr, .ls.is-seek .ls__scr *, .ls.is-seek .ls__dot { transition: none !important; animation: none !important; }
/* Постоянная шапка: полоса бренда + заголовок экрана; подсказка «Пауза» в углу рамки */
.ls__top { flex: none; display: flex; align-items: center; justify-content: center; height: 30px; background: var(--l-sheet);
  border-bottom: 1px solid var(--l-rule); font: 500 12px/1 var(--font-ui); color: var(--l-ink2); letter-spacing: .02em; }
.ls__head { flex: none; display: flex; align-items: center; height: 44px; padding: 0 16px; background: var(--l-sheet);
  border-bottom: 1px solid var(--l-rule); font-weight: 600; font-size: 14px; }
.ls__pause { position: absolute; top: 4px; right: 8px; z-index: 6; padding: 3px 9px; border: 1px solid var(--l-rule);
  border-radius: 999px; background: var(--l-sheet); color: var(--l-ink2); font: 500 12px/1.2 var(--font-ui);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 200ms var(--l-in), transform 200ms var(--l-in); }
.steps.is-held .ls__pause { opacity: 1; transform: none; }
/* Смены экранов: документы въезжает снизу (24 px) за 450 мс; уходит и кросс-фейд петли — 600 мс */
.ls__body { position: relative; flex: 1; min-height: 0; }
.ls__scr { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--l-paper); }
.ls__scr--find { transition: opacity 600ms var(--l-swap); }
.ls__scr--doc { opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity 600ms var(--l-swap), transform 600ms var(--l-swap); }
.ls.is-doc .ls__scr--find { opacity: 0; }
.ls.is-doc .ls__scr--doc { opacity: 1; transform: none; transition-duration: 450ms; }
.ls__pad { flex: 1; min-height: 0; position: relative; padding: 16px; overflow: hidden; }
.ls__l { margin: 0 0 8px; font-weight: 500; font-size: 14px; }
.ls__fld { position: relative; height: 48px; background: var(--l-sheet); border: 1px solid var(--l-edge); border-radius: 6px; }
.ls__ic { position: absolute; left: 14px; top: 16px; width: 16px; height: 16px; color: var(--l-ink2); pointer-events: none; }
.ls__q { position: absolute; left: 40px; right: 12px; top: 0; height: 46px; display: flex; align-items: center;
  font-size: 15px; white-space: nowrap; overflow: hidden; }
.ls__car { display: inline-block; width: 2px; height: 18px; margin-left: 1px; background: var(--l-ink); animation: lsCar 1.2s linear infinite; }
@keyframes lsCar { 0%, 59% { opacity: 1; } 60%, 100% { opacity: 0; } }
/* Результаты: строки каталога — Literata 16/22, мета 13, цена справа; входят по одному */
.ls__res { margin-top: 16px; }
.ls__r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; position: relative;
  padding: 8px; margin: 0 -8px; border-bottom: 1px solid var(--l-rule); border-radius: 6px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 400ms var(--l-in), transform 400ms var(--l-in), background-color 400ms ease-in-out; }
.ls__r.is-in { opacity: 1; transform: none; }
.ls.is-sel .ls__r:first-child { background: color-mix(in srgb, var(--l-ink) 14%, transparent); }
/* Нажатие: scale .97 за 120 мс и обратно за 180 мс — одной анимацией, без конфликта с переходами */
.ls.is-press .ls__r:first-child { animation: lsPress 300ms var(--l-swap); }
@keyframes lsPress { 0% { transform: scale(1); animation-timing-function: var(--l-swap); } 40% { transform: scale(0.97); animation-timing-function: var(--l-swap); } 100% { transform: scale(1); } }
.ls__rt { grid-column: 1; font: 450 16px/22px var(--font-doc); overflow-wrap: anywhere; }
.ls__rt b { font-weight: 650; background: color-mix(in srgb, var(--l-ink) 9%, transparent); border-radius: 2px; padding: 0 1px; }
.ls__rc { grid-column: 1; grid-row: 2; color: var(--l-ink2); font-size: 13px; line-height: 18px; }
.ls__rp { grid-column: 2; grid-row: 1 / 3; font-size: 13px; font-variant-numeric: tabular-nums; }
/* «Палец»: круг 28 px, полупрозрачный; идёт к первой строке по дуге 700 мс с замедлением в конце */
.ls__dot { position: absolute; right: 8px; top: 114px; width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in srgb, var(--l-ink) 22%, transparent); box-shadow: 0 2px 10px rgba(26, 26, 24, .18);
  opacity: 0; transform: translate(-26px, 300px); z-index: 2; }
.ls.is-go .ls__dot { opacity: 1; animation: lsDot 700ms var(--l-in) forwards; }
@keyframes lsDot { 0% { transform: translate(-26px, 300px); } 55% { transform: translate(-10px, 120px); } 100% { transform: translate(0, 0); } }
.steps.is-held .ls__dot { animation-play-state: paused; }
/* Подвал: подсказка → выбранный вид с ценой; кнопка из тихой становится главной */
.ls__bar { flex: none; display: grid; gap: 8px; padding: 12px 16px 16px; background: var(--l-sheet); border-top: 1px solid var(--l-rule); }
.ls__bt { display: grid; margin: 0; min-height: 18px; font-weight: 500; font-size: 13px; line-height: 18px; color: var(--l-ink); }
.ls__bt span { grid-area: 1 / 1; transition: opacity 500ms var(--l-swap); }
.ls__bt0 { opacity: 1; color: var(--l-ink2); font-weight: 400; }
.ls__bt1 { opacity: 0; white-space: nowrap; }
.ls.is-chosen .ls__bt0 { opacity: 0; }
.ls.is-chosen .ls__bt1 { opacity: 1; }
.ls__btn { position: relative; display: grid; min-height: 44px; padding: 0 16px; border-radius: 6px; align-items: center;
  border: 1px solid var(--l-rule); background: transparent; color: var(--l-ink);
  transition: background-color 500ms var(--l-swap), border-color 500ms var(--l-swap), color 500ms var(--l-swap); }
.ls__bl { grid-area: 1 / 1; text-align: center; font: 500 15px/1.2 var(--font-ui); transition: opacity 500ms var(--l-swap); }
.ls__bl0 { opacity: 1; }
.ls__bl1 { opacity: 0; }
.ls.is-chosen .ls__btn { background: var(--l-btn); border-color: var(--l-btn); color: var(--l-on-btn); }
.ls.is-chosen .ls__bl0 { opacity: 0; }
.ls.is-chosen .ls__bl1 { opacity: 1; }
/* Экран документа: шапка, два абзаца, сноска в поле; всплывашка нормы */
.ls__sheet { background: var(--l-sheet); border: 1px solid var(--l-rule); border-radius: 4px; padding: 14px 14px 12px;
  font: 400 14px/1.5 var(--font-doc); }
.ls__to { margin: 0; text-align: right; font: 400 12px/1.45 var(--font-ui); color: var(--l-ink2); }
.ls__ti { margin: 10px 0; text-align: center; font-weight: 600; font-size: 12px; letter-spacing: .08em; }
.ls__p + .ls__p { margin-top: 6px; }
.ls__fn { font-family: var(--font-num); color: var(--l-btn); font-size: 12px; padding: 0 1px; border-radius: 2px;
  transition: background-color 400ms ease-in-out; }
.ls.is-trace .ls__fn { background: var(--l-mark); }
.ls__margin { position: relative; margin-top: 12px; }
/* Сноска: раскрытие сверху — scaleY .96→1 + прозрачность, 260 мс */
.ls__note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; padding: 10px 12px;
  border: 1px solid var(--l-rule); border-radius: 6px; background: var(--l-sheet); font-size: 12px; line-height: 1.4;
  opacity: 0; transform: scaleY(.96); transform-origin: 50% 0;
  transition: opacity 260ms var(--l-in), transform 260ms var(--l-in); }
.ls.is-note .ls__note { opacity: 1; transform: none; }
.ls__note span { text-wrap: balance; }
.ls__note b { grid-row: 1 / 3; font: 400 12px var(--font-num); color: var(--l-btn); }
.ls__ok { color: var(--l-done); }
.ls__ok::before { content: '✓\00A0'; }
.ls__pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); padding: 10px 12px; background: var(--l-sheet);
  border-radius: 12px; box-shadow: 0 1px 2px rgba(26, 26, 24, .06), 0 8px 24px rgba(26, 26, 24, .12);
  transform-origin: 12px 100%; opacity: 0; transform: translateY(6px) scale(0.97); pointer-events: none;
  transition: opacity 400ms var(--l-in), transform 400ms var(--l-in); }
.ls.is-pop .ls__pop { opacity: 1; transform: none; }
.ls__pop-t { margin: 0; font-weight: 500; font-size: 12.5px; line-height: 1.4; text-wrap: balance; }
.ls__pop-ok { margin: 2px 0 0; color: var(--l-done); font-size: 12px; white-space: nowrap; }
.ls__pop-ok::before { content: '✓\00A0'; }

/* ---------- Пример документа ---------- */
.ex { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 260px); gap: 32px; align-items: start; }
.doc { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sheet); padding: 40px 48px; font: 400 17px/1.6 var(--font-doc); }
.doc__to { text-align: right; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.doc__title { text-align: center; margin: 24px 0 4px; font-size: 15px; font-weight: 600; letter-spacing: .08em; }
.doc__sub { text-align: center; font-size: 15px; color: var(--ink-2); margin-bottom: 20px; }
.doc p + p { margin-top: 12px; }
.doc__n { font-family: var(--font-num); font-size: 13px; color: var(--ink-2); margin-right: 8px; }
.fnb { font: 400 12px/1 var(--font-num); color: var(--on-btn-main); background: var(--btn-main); border: 0; border-radius: 4px;
  min-width: 20px; height: 20px; padding: 0 4px; vertical-align: super; cursor: pointer; position: relative; }
.fnb::after { content: ''; position: absolute; inset: -12px; }
.margin { font-size: 14px; line-height: 1.5; }
.note { display: block; width: 100%; text-align: left; background: transparent; border: 1px solid var(--rule); border-radius: var(--r-control); padding: 12px;
  color: var(--ink); font: inherit; cursor: pointer; transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .note:hover { background: var(--paper-press); } }
.note b { font: 400 13px var(--font-num); color: var(--action); margin-right: 6px; }
.note .ok { display: block; margin-top: 6px; font-size: 13px; }
.note__open { display: block; margin-top: 6px; color: var(--action); font-size: 13px; }
.legend { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.legend mark { background: var(--mark); color: var(--ink); padding: 0 4px; border-radius: 2px; }
.ex__more { margin-top: 24px; }

/* Окно нормы */
dialog.norm { width: min(560px, calc(100% - 32px)); max-height: min(80vh, 640px); border: 0; border-radius: 12px; padding: 0; background: var(--sheet); color: var(--ink);
  box-shadow: var(--shadow-float); }
dialog.norm::backdrop { background: rgba(23, 23, 21, .45); }
dialog.norm[open] { animation: normIn 200ms var(--ease-out); }
dialog.norm.out { opacity: 0; transform: scale(.97); transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out); }
@keyframes normIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.norm__in { padding: 24px; }
.norm__name { font-size: 20px; line-height: 1.3; padding-right: 40px; }
.norm__ok { margin-top: 8px; font-size: 14px; }
.norm__text { margin-top: 16px; font: 400 16px/1.6 var(--font-doc); }
.norm__text p + p { margin-top: 8px; }
.norm__foot { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.norm__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); border-radius: var(--r-control);
  font-size: 22px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .norm__x:hover { background: var(--paper-press); } }

/* ---------- Почему ---------- */
.why { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.why h3 { font-family: var(--font-ui); font-size: 19px; font-weight: 600; line-height: 1.35; }
.why p { margin-top: 8px; color: var(--ink-2); }
.why .small { margin-top: 6px; }
.why__i { width: 32px; height: 32px; border-radius: 8px; background: var(--tint-info); color: var(--action); display: grid; place-items: center; margin-bottom: 12px; }
.why__i svg { width: 18px; height: 18px; }

/* ---------- Цены ---------- */
.price { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pc { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-block); padding: 28px; display: flex; flex-direction: column; }
.pc--free { background: var(--tint-done); border-color: transparent; }
.pc__name { font-weight: 500; }
.pc__sum { margin-top: 12px; font: 600 44px/1 var(--font-doc); }
.pc__sum small { font: 500 18px var(--font-ui); color: var(--ink-2); margin-right: 6px; }
.pc__what { margin-top: 12px; }
.pc__cond { margin-top: 8px; }
.lv { list-style: none; margin: 16px 0 0; padding: 0; }
.lv li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.lv li span:first-child { color: var(--ink-2); }
.lv li b { font-weight: 500; white-space: nowrap; }
.pc .btn { margin-top: auto; align-self: flex-start; }
.pc__spacer { flex: 1; min-height: 20px; }
.disc { margin-top: 16px; background: var(--tint-info); border-radius: var(--r-block); padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.disc h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.disc__who { margin-top: 8px; font-weight: 500; }
.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.ladder li { background: var(--sheet); border-radius: var(--r-control); padding: 12px 8px; text-align: center; }
.ladder b { display: block; font: 600 24px/1.1 var(--font-doc); color: var(--action); }
.ladder span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.disc__cond { grid-column: 1 / -1; margin-top: -12px; }
.noshop { margin-top: 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.noshop p { font-size: 18px; font-weight: 500; }

/* ---------- V-70: строка под ситуациями, гарантия у цены, юрлицо, плашка скидок ---------- */
.cards-note { margin-top: 20px; max-width: 640px; color: var(--ink-2); font-size: 16px; }
.pc__gtd { margin-top: 14px; font-size: 15px; }
.legal-line { margin-top: 16px; }
.disc--one { display: block; }
.disc__line { font: 600 clamp(20px, 2.2vw, 26px)/1.3 var(--font-doc); max-width: 720px; }
.disc__all { margin-top: 16px; }
.disc__all summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--action); }
.disc__all summary::-webkit-details-marker { display: none; }
.disc__all summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 180ms var(--ease-out); }
.disc__all[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.disc__all .ladder { margin-top: 20px; max-width: 720px; }
.disc__all .small { margin-top: 12px; }
.disc--one > .small { display: block; margin-top: 16px; }

/* ---------- Бизнес ---------- */
.biz { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-block); padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.biz .sec__h { margin-top: 8px; font-size: clamp(24px, 2.8vw, 34px); }
.biz__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.biz__list b { display: block; font-weight: 600; }
.biz__list span { color: var(--ink-2); }
.biz__act { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Справочник ---------- */
.mag { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.art { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-block); background: var(--tint); color: var(--ink); text-decoration: none;
  transition: background-color 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .art:hover { background: var(--paper-press); } }
.art__rub { font-size: 13px; color: var(--ink-2); }
.art h3 { margin-top: 8px; font-size: 20px; line-height: 1.3; }
.art p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.art__go { margin-top: auto; padding-top: 16px; color: var(--action); font-weight: 500; font-size: 15px; }
.mag__all { margin-top: 24px; }

/* ---------- Вопросы и финал ---------- */
.faq { margin-top: 32px; max-width: 800px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 28px; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg); transition: transform 180ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details p { padding: 0 40px 20px 0; color: var(--ink-2); }
.final { margin: 96px 0 0; padding: 64px 48px; background: var(--btn-main); color: var(--on-btn-main); border-radius: var(--r-block); text-align: center; }
.final h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; }
.final .btn { margin-top: 28px; background: var(--on-btn-main); color: var(--btn-main); }
@media (hover: hover) and (pointer: fine) { .final .btn:hover { background: color-mix(in srgb, var(--on-btn-main) 88%, var(--btn-main)); } }
.final p { margin-top: 12px; opacity: .9; font-size: 15px; }

/* ---------- Подвал ---------- */
.foot { margin-top: 64px; padding: 40px 0 48px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot__links a { color: var(--ink); }
.foot__links button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.foot__req { margin-top: 16px; max-width: 760px; }

/* Логотипы платёжных систем — строка в подвале; только светлая тема */
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.pay__l { font-size: 13px; color: var(--ink-2); }
.pay__i { display: block; height: 22px; width: auto; }

/* ---------- Появление второстепенного ---------- */
.rv.wait { opacity: 0; transform: translateY(16px); }
.rv.wait.in { opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }

/* ---------- Адаптив ---------- */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .scene { margin: 0; }
  .cards, .mag, .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price { grid-template-columns: 1fr; }
  .disc { grid-template-columns: 1fr; }
  .disc__cond { margin-top: -16px; }
  .biz { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
  .ex { grid-template-columns: 1fr; }
}
/* Шаги и сцена в колонку до 900 — уже двухколоночная сетка теснит текст шагов */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .phone { position: relative; top: auto; order: -1; width: min(340px, 100vw - 32px); margin: 0 auto 28px; }
  .step__bar { left: -12px; }
  .step { min-height: 0; padding: 32px 0 0; }
}
@media (max-width: 760px) {
  :root { --gut: 16px; --head: 56px; }
  body { font-size: 16px; }
  .sec { padding-top: 64px; }
  .hero { padding-top: 32px; }
  .hero__lead { font-size: 17px; }
  .cards, .mag, .why { grid-template-columns: 1fr; }
  .why { gap: 28px; }
  .doc { padding: 24px 20px; font-size: 16px; }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .disc { padding: 24px; }
  .pc { padding: 24px; }
  .biz { padding: 24px; }
  .final { padding: 48px 20px; margin-top: 64px; }
  .find__row { flex-direction: column; }
  .find .btn { width: 100%; }
  .find__hint { font-size: 16px; }
  .faq summary { font-size: 17px; }
}
@media (max-width: 760px) {
  /* Карточки ситуаций и статей — лента вбок внутри блока; страница вбок не прокручивается */
  .cards, .mag { display: flex; gap: 12px; margin: 28px calc(-1 * var(--gut)) 0; padding: 0 var(--gut) 4px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
  .cards::-webkit-scrollbar, .mag::-webkit-scrollbar { display: none; }
  .sit, .art { flex: 0 0 82%; scroll-snap-align: start; }
  .sit { padding: 20px; }
  .sit__q { font-size: 19px; }
  .sit__doc { margin-top: 8px; }
  .sit__go { padding-top: 12px; }
  .swipe { display: block; margin-top: 8px; }
  .why { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .why > div { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; }
  .why > div > * { grid-column: 2; }
  .why__i { grid-column: 1 !important; grid-row: 1 / span 3; margin: 0; }
  .why h3 { font-size: 17px; }
  .why p { font-size: 15px; margin-top: 2px; }
  .why .small { font-size: 13px; }
  .art p { margin-top: 8px; }
  .art { padding: 20px; }
  .art h3 { font-size: 18px; }
  .pc__sum { font-size: 36px; margin-top: 8px; }
  .price { gap: 12px; margin-top: 28px; }
  .lv li { padding: 6px 0; }
  .final h2 { font-size: 22px; }
}
@media (max-width: 400px) {
  .sit, .art { flex-basis: 90%; padding: 18px; }
  .sit__q { font-size: 18px; }
  .art h3 { font-size: 17px; }
  .sec__h { font-size: 23px; }
  .hero h1 { font-size: 27px; }
}
@media (max-width: 340px) {
  .sit__q { font-size: 16px; }
  .art h3 { font-size: 16px; }
  .sit__doc { font-size: 14px; }
  .biz__list span { font-size: 15px; }
  .final h2 { font-size: 20px; }
  .biz, .sit, .pc, .disc { padding-left: 20px; padding-right: 20px; }
  .sec__h { font-size: 21px; }
  .hero h1 { font-size: 25px; }
}
@media (max-width: 380px) {
  .find__hint { font-size: 15px; }
  .ladder b { font-size: 21px; }
}

/* ---------- Щадящий режим ---------- */
@media (prefers-reduced-motion: reduce) {
  .rv.wait, .scene .st, .scene .s { opacity: 1; transform: none; transition: none; animation: none; }
  .ls, .ls *, .ls__dot { transition: none !important; animation: none !important; }
  .ls__car { opacity: 1; }
  .step.is-on .step__bar { animation: none; transform: scaleY(1); }
  .ls.is-go .ls__dot { opacity: 1; transform: none; animation: none; }
  dialog.norm[open] { animation: none; }
  .faq summary::after, .disc__all summary::after, .btn { transition: none; }
}

/* ---------- Образец целиком (obrazec.html) ---------- */
.ob-hero { padding-top: 40px; }
.hero .ob-h1 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; }
.ob-sec { padding-top: 32px; }
.doc--full { max-width: 720px; margin-right: 300px; }
.doc__h { font: 600 17px/1.4 var(--font-doc); margin: 28px 0 12px; }
.doc__sign { margin-top: 32px !important; }
.doc__line { display: inline-block; width: 140px; border-bottom: 1px solid var(--ink-2); margin: 0 4px; }
.side { float: right; clear: right; width: 260px; margin-right: -332px; display: flex; flex-direction: column; gap: 8px; font: 400 14px/1.5 var(--font-ui); }
.ob-note { margin-top: 16px; max-width: 720px; }
@media (max-width: 1100px) {
  .doc--full { margin-right: 0; }
  .side { display: none; }
}

/* ---------- Для бизнеса (biznes.html) ---------- */
.bizdocs { max-width: 720px; margin-top: 28px; }
.bizdocs li { font-size: 17px; padding: 12px 0; }
.bizdocs a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .bizdocs a:hover { text-decoration: underline; } }
.disc__h { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
@media (max-width: 400px) { .hero .ob-h1 { font-size: 24px; } }
@media (max-width: 340px) { .doc__h { font-size: 15px; } .hero .ob-h1 { font-size: 22px; } }
