/* ─────────────────────────────────────────────
   Бизнес Профи — дизайн-система
   ───────────────────────────────────────────── */
:root {
  --bg: #F4F3EE;
  --surface: #FFFFFF;
  --tint: #ECEAE2;
  --ink: #0F1714;
  --ink-2: #39433F;
  --muted: #6A736E;
  --line: #DEDBD1;
  --green: #0E3B2E;
  --green-2: #15513F;
  --green-ink: #0A2A21;
  --gold: #C8A24B;
  --gold-2: #E5C777;
  --gold-soft: #F4EBD2;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 144px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-2); color: var(--ink); }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: -.02em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Типографика ── */
.h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -.035em; max-width: 18em; text-wrap: balance; }
.h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink); letter-spacing: -.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow .idx { color: var(--gold); letter-spacing: 0; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200, 162, 75, .2); }
.eyebrow--light { color: rgba(255, 255, 255, .6); }
.link { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .25s, gap .25s var(--ease); }
.link:hover { border-color: var(--ink); gap: 12px; }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 16px; letter-spacing: -.01em; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--green); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--gold { background: var(--gold-2); color: var(--green-ink); }
.btn--gold:hover { background: #EED48E; }

/* ── Шапка ── */
.header { position: sticky; top: 0; z-index: 50; background: rgba(244, 243, 238, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.header.is-stuck { border-color: var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; flex-shrink: 0; }
.logo__mark { font-size: 13px; font-weight: 600; letter-spacing: -.04em; width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: var(--gold-2); display: grid; place-items: center; }

.logo--light .logo__mark { background: var(--gold-2); color: var(--green-ink); }
.nav { display: flex; gap: 4px; }
.nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover, .nav a.is-current { background: rgba(15, 23, 20, .06); color: var(--ink); }
.header__side { display: flex; align-items: center; gap: 18px; }
.header__phone { font-family: var(--mono); font-size: 14px; letter-spacing: -.02em; white-space: nowrap; }
.header__phone:hover { color: var(--green-2); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ── Первый экран ── */
.hero { padding-top: clamp(32px, 5vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.hero__lead { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }


.hero__card { position: relative; border-radius: var(--r-lg); background: radial-gradient(120% 90% at 80% 0%, #1B5E49 0%, var(--green) 45%, var(--green-ink) 100%); color: #fff; padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.hero__card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(#000, transparent 70%); -webkit-mask-image: linear-gradient(#000, transparent 70%); }
.hero__card > * { position: relative; }
.hero__card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.hero__card-title .mono { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--gold-2); white-space: nowrap; }
.hero__dirs { display: grid; gap: 10px; }
.hero__dirs a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.hero__dirs a:hover { background: rgba(255, 255, 255, .11); border-color: rgba(229, 199, 119, .5); transform: translateX(4px); }
.hero__dir-icon { width: 44px; height: 44px; border-radius: 13px; background: rgba(229, 199, 119, .14); color: var(--gold-2); display: grid; place-items: center; }
.hero__dir-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero__dir-text { display: grid; gap: 3px; }
.hero__dir-text b { font-weight: 500; font-size: clamp(16px, 1.4vw, 19px); letter-spacing: -.015em; line-height: 1.25; }
.hero__dir-text small { font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .62); }
.hero__dir-arrow { color: rgba(255, 255, 255, .45); transition: transform .4s var(--ease), color .3s; }
.hero__dirs a:hover .hero__dir-arrow { color: var(--gold-2); transform: translateX(3px); }
.hero__from { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(8px, 2vw, 28px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero__from strong { font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--gold-2); white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.stats__item { display: flex; flex-direction: column-reverse; gap: 8px; padding: 28px 24px 0 0; }
.stats__item + .stats__item { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dd { font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; line-height: 1.1; }
.stats dt { font-size: 14px; line-height: 1.4; color: var(--muted); max-width: 16em; }

/* ── Секции ── */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--green-ink); color: #fff; }
.section__head { margin-bottom: clamp(40px, 5vw, 72px); }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__aside { max-width: 30em; color: var(--ink-2); font-size: 16px; }

/* ── О компании ── */
/* две колонки на общей сетке строк: абзац слева и ситуация справа делят одну линию */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto repeat(3, auto); column-gap: clamp(32px, 6vw, 96px); }
.about__text, .about__flow { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
.about .label { margin-bottom: 14px; }
.about__text p:not(.label) { padding: 22px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.55; letter-spacing: 0; color: var(--ink-2); }
.about__text p.lead { color: var(--ink); }
.about__text p:last-child, .cases li:last-child a { border-bottom: 1px solid var(--line); }
.cases { display: contents; }
.cases a { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; align-content: start; gap: 0 4px; height: 100%; padding: 22px 0; border-top: 1px solid var(--line); transition: padding .35s var(--ease); }
.cases a:hover { padding-left: 8px; }
.cases .mono { font-size: 12px; color: var(--gold); }
.cases__text { display: grid; gap: 6px; }
.cases__text b { font-weight: 500; font-size: 17px; line-height: 1.55; letter-spacing: -.015em; }
.cases__text small { font-size: 14px; line-height: 1.45; color: var(--muted); }
.cases i { font-style: normal; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .35s var(--ease), color .3s; }
.cases a:hover i, .cases a:focus-visible i { opacity: 1; transform: none; color: var(--ink); }


.label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }

/* ── Услуги ── */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service { background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px; border: 1px solid transparent; transition: border-color .3s, transform .4s var(--ease); }
.service:hover { border-color: var(--line); transform: translateY(-3px); }
.service--main { grid-column: 1 / -1; }
.service__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.service__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--green); color: var(--gold-2); display: grid; place-items: center; }
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service__count { font-size: 12.5px; color: var(--muted); text-align: right; }
.service .link { align-self: flex-start; margin-top: auto; }
.checks { display: grid; gap: 0; }
.checks li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 11px; height: 6px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.checks--2col { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }

/* ── Цены ── */
@keyframes panel { from { opacity: 0; transform: translateY(10px); } }



/* ── Калькулятор ── */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.calc__form { background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 36px; }
.calc__intro p { margin-top: 10px; color: var(--muted); font-size: 15.5px; max-width: 40em; }
.calc__group legend { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; }
.option span { display: block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; user-select: none; }
.option:hover span { border-color: var(--ink); }
.option input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.option input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.steppers { display: grid; }
.stepper { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); transition: opacity .3s; }
.stepper.is-off { opacity: .4; pointer-events: none; }
.stepper[hidden] { display: none; }
.options--gap { margin-top: 16px; }
.calc__hint { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 44em; }
.calc__more { border-top: 1px solid var(--line); padding-top: 24px; }
.calc__more summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); transition: color .2s; }
.calc__more summary::-webkit-details-marker { display: none; }
.calc__more summary::after { content: "+"; font: 400 20px/1 var(--font); letter-spacing: 0; color: var(--ink); transition: transform .35s var(--ease); }
.calc__more summary:hover { color: var(--ink); }
.calc__more[open] summary { margin-bottom: 14px; }
.calc__more[open] summary::after { transform: rotate(45deg); }
.stepper__label { font-size: 15.5px; line-height: 1.35; }
.stepper__label small { display: block; font-size: 13px; color: var(--muted); }
.stepper__ctrl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; flex-shrink: 0; }
.stepper__ctrl button { width: 38px; height: 38px; border: 0; background: transparent; border-radius: 50%; font-size: 18px; line-height: 1; transition: background .2s; }
.stepper__ctrl button:hover { background: var(--tint); }
.stepper__ctrl input { width: 44px; border: 0; background: transparent; text-align: center; font: 500 15px var(--mono); color: var(--ink); -moz-appearance: textfield; appearance: textfield; padding: 0; }
.stepper__ctrl input::-webkit-outer-spin-button, .stepper__ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__ctrl input:focus { outline: none; }
.stepper__ctrl:focus-within { border-color: var(--ink); }

.calc__summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--green); color: #fff; border-radius: var(--r-lg); padding: 32px; }
.calc__summary-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.calc__summary-title .mono { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--gold-2); }
.calc__lines div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.calc__lines dt { color: rgba(255, 255, 255, .75); }
.calc__approx { margin-bottom: 22px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.calc__total { display: grid; gap: 4px; padding: 22px 0 10px;border-top: 1px solid rgba(255, 255, 255, .12); }
.calc__total span { font-size: 14px; color: rgba(255, 255, 255, .6); }
.calc__total strong { font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--gold-2); }
.calc__total strong.is-text { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; }
.calc__total strong.is-bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: translateY(-3px); opacity: .7; } }
.calc__note { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .55); }

/* ── Bento «Что вы получаете» ── */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 380px; overflow: hidden; border: 1px solid transparent; transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.tile:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 24px 48px -28px rgba(15, 23, 20, .28); }
.tile--a { grid-column: span 7; }
.tile--b { grid-column: span 5; }
.tile--c, .tile--d, .tile--e { grid-column: span 4; }
.tile--f { grid-column: span 12; }
.tile__idx { position: absolute; top: clamp(24px, 2.6vw, 36px); right: clamp(24px, 2.6vw, 36px); font-size: 13px; color: var(--muted); }
.tile__title { font-size: clamp(21px, 2vw, 28px); line-height: 1.15; letter-spacing: -.025em; margin-bottom: 12px; text-wrap: balance; }
.tile__body p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.tile__art { min-height: 96px; display: flex; align-items: flex-start; }

.tile--dark { background: var(--green); color: #fff; }
.tile--dark .tile__idx { color: rgba(255, 255, 255, .5); }
.tile--dark .tile__body p { color: rgba(255, 255, 255, .78); }
.tile--dark .tile__title { font-size: clamp(26px, 3vw, 42px); }
.tile--dark:hover { border-color: transparent; }
.tile--gold { background: var(--gold-soft); }
.tile--wide { flex-direction: row; align-items: center; min-height: 0; gap: clamp(24px, 5vw, 80px); }
.tile--wide .tile__idx { position: static; align-self: flex-start; order: 3; }
.tile--wide .tile__body { flex: 1 1 50%; }
.tile--wide .tile__art { flex: 1 1 50%; }

/* иллюстрации плиток */
.tile__art--bars { flex-direction: column; gap: 14px; flex: 1; justify-content: flex-end; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; width: min(100%, 360px); }
.bars span { flex: 1; height: var(--h); border-radius: 8px 8px 2px 2px; background: rgba(255, 255, 255, .14); transform-origin: bottom; transition: transform .9s var(--ease); }
.bars span.is-gold { background: var(--gold-2); }
.js .tile:not(.is-in) .bars span { transform: scaleY(.15); }
.bars span:nth-child(2) { transition-delay: .08s; } .bars span:nth-child(3) { transition-delay: .16s; }
.bars span:nth-child(4) { transition-delay: .24s; } .bars span:nth-child(5) { transition-delay: .32s; }
.bars__cap { font-size: 12px; color: rgba(255, 255, 255, .55); }


.exp { display: grid; gap: 8px; }
.exp__num { font-size: clamp(44px, 5vw, 68px); line-height: 1; letter-spacing: -.06em; color: var(--green); }
.exp__cap { font-size: 13.5px; color: var(--muted); }

.pipeline { display: flex; align-items: center; gap: 8px; width: 100%; }
.pipeline span { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); font: 500 13px var(--mono); background: var(--bg); }
.pipeline span.is-on { background: var(--green); border-color: var(--green); color: var(--gold-2); }
.pipeline i { flex: 1; height: 1px; background-image: linear-gradient(90deg, var(--muted) 50%, transparent 50%); background-size: 8px 1px; animation: dash 1.2s linear infinite; }
@keyframes dash { to { background-position: 8px 0; } }

.infinity { font: 400 96px/0.7 var(--font); letter-spacing: -.05em; color: var(--green); display: inline-block; transition: transform .8s var(--ease); }
.tile:hover .infinity { transform: scale(1.08) rotate(-4deg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(200, 162, 75, .35); }

.saved { display: grid; gap: 8px; }
.saved li { font: 400 13.5px var(--mono); color: var(--muted); position: relative; width: fit-content; }
.saved li::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.tile.is-in .saved li::after { transform: scaleX(1); }
.saved li:nth-child(2)::after { transition-delay: .15s; } .saved li:nth-child(3)::after { transition-delay: .3s; }

.tile__art--status { flex-direction: column; gap: 8px; }
.status { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; border-radius: 14px; background: var(--bg); font-size: 15px; }
.status b { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--green-2); background: rgba(21, 81, 63, .1); padding: 4px 10px; border-radius: 999px; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #2FA37A; box-shadow: 0 0 0 0 rgba(47, 163, 122, .5); animation: pulse 2.4s infinite; }
.status:nth-child(2) .status__dot { animation-delay: .8s; } .status:nth-child(3) .status__dot { animation-delay: 1.6s; }
@keyframes pulse { 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 163, 122, 0); } }

/* ── Нам доверяют ── */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin-bottom: 20px; }
.proof > div { padding: clamp(24px, 3vw, 40px) 24px clamp(24px, 3vw, 40px) 0; }
.proof > div + div { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.proof dd { font-size: clamp(40px, 6vw, 84px); font-weight: 400; line-height: 1; letter-spacing: -.06em; }
.proof dt { margin-top: 12px; font-size: 14.5px; color: var(--muted); max-width: 18em; line-height: 1.4; }

.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin-top: 40px; }
.clients > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.client { --c: var(--green); display: flex; flex-direction: column; align-items: flex-start; width: 100%; height: 100%; min-height: 250px; padding: 26px; text-align: left; border: 0; background: transparent; position: relative; transition: background .35s; }
.client:hover, .client:focus-visible { background: var(--surface); }
.client__mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-weight: 600; font-size: 19px; letter-spacing: -.03em; background: var(--tint); color: var(--muted); margin-bottom: auto; transition: background .35s, color .35s, transform .5s var(--ease), border-radius .5s var(--ease); }
.client:hover .client__mark, .client:focus-visible .client__mark { background: var(--c); color: #fff; transform: rotate(-6deg) scale(1.05); border-radius: 50%; }
.client__name { font-size: 18px; font-weight: 500; letter-spacing: -.015em; margin-top: 36px; color: var(--ink-2); transition: color .35s; }
.client:hover .client__name { color: var(--ink); }
.client__field { font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 4px; }
.client__more { font-size: 13px; font-weight: 500; margin-top: 18px; color: var(--c); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
.client:hover .client__more, .client:focus-visible .client__more { opacity: 1; transform: none; }
.client--cta { background: var(--gold-soft); --c: var(--green); }
.client--cta .client__mark { background: var(--surface); color: var(--ink); font-weight: 400; font-size: 26px; }
.client--cta .client__more { opacity: 1; transform: none; color: var(--ink); }
.client--cta:hover { background: var(--gold-2); }

.confs { margin-top: clamp(56px, 7vw, 96px); }
.confs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.confs__nav { display: flex; gap: 8px; flex-shrink: 0; }
.confs__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 17px; transition: background .25s, color .25s, border-color .25s, opacity .25s; }
.confs__btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.confs__btn:disabled { opacity: .35; cursor: default; }

/* Лента сториз: вертикальные карточки 9:16, горизонтальная прокрутка со снапом */
.stories { --w: clamp(240px, 26vw, 330px); display: grid; grid-auto-flow: column; grid-auto-columns: var(--w); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 4px var(--pad) 18px; margin-inline: calc(var(--pad) * -1); scrollbar-width: none; cursor: grab; }
.stories::-webkit-scrollbar { display: none; }
.stories.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.stories:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--r); }
.story { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; scroll-snap-align: start; background: radial-gradient(120% 80% at 70% 10%, color-mix(in srgb, var(--tone) 70%, #fff 12%), var(--tone) 60%); isolation: isolate; box-shadow: 0 18px 40px -24px rgba(15, 23, 20, .5); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.story:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(15, 23, 20, .6); }
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story:hover .story__img { transform: scale(1.05); }
/* Затемнение снизу и сверху — чтобы подпись читалась на любом фото */
.story__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55) 75%, rgba(0, 0, 0, .82) 100%); }
.story__bar { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.story__bar i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 3.5s linear; }
.story:hover .story__bar i, .story.is-in .story__bar i { transform: scaleX(1); }
/* Мобильный режим сториз: бар активной карточки заполняется, затем лента листается дальше (script.js) */
@keyframes story-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stories.is-auto .story__bar i { transition: none; transform: scaleX(0); }
.stories.is-auto .story.is-active .story__bar i { animation: story-bar 5s linear forwards; }
.stories.is-auto.is-paused .story.is-active .story__bar i { animation-play-state: paused; }
.story__cap { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 20px; display: grid; gap: 8px; color: #fff; }
.story__meta { justify-self: start; font-size: 11.5px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.story__title { margin: 0; font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance;
  /* Многослойная тень: плотная у букв и мягкая широкая — текст «парит» над фото */
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .45), 0 0 48px rgba(0, 0, 0, .25); }
.tech { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 40px; margin-top: 16px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--green); color: #fff; }
.tech .label { grid-column: 1 / -1; color: rgba(255, 255, 255, .6); margin: 0; }
.tech__text { font-size: clamp(21px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.03em; max-width: 24em; text-wrap: balance; }
.tech__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tech__tags li { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(229, 199, 119, .45); color: var(--gold-2); white-space: nowrap; }
.partners { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 24px; margin-top: clamp(40px, 5vw, 72px); }
.partners__title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.partners__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.partners__row li { height: 96px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; padding: 18px 22px; transition: border-color .3s, transform .4s var(--ease); }
.partners__row li:hover { border-color: var(--ink); transform: translateY(-3px); }
.partners__row img { max-height: 52px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .55; mix-blend-mode: multiply; transition: filter .4s, opacity .4s; }
.partners__row li:hover img { filter: none; opacity: 1; }

/* ── FAQ ── */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__hint { margin-top: 24px; color: var(--ink-2); font-size: 15.5px; max-width: 26em; }
.faq__hint a { border-bottom: 1px solid var(--gold); white-space: nowrap; }
.faq__hint a:hover { color: var(--green-2); }
.accordion { border-bottom: 1px solid var(--line); }
.acc { border-top: 1px solid var(--line); }
.acc h3 { font: inherit; }
.acc__btn { display: grid; grid-template-columns: 40px 1fr 44px; align-items: center; gap: 12px; width: 100%; padding: 26px 0; border: 0; background: transparent; text-align: left; }
.acc__num { font-size: 13px; color: var(--muted); transition: color .3s; }
.acc__q { font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; transition: color .3s; }
.acc__btn:hover .acc__q { color: var(--green-2); }
.acc__icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .3s, border-color .3s, transform .5s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--ink); translate: -50% -50%; transition: transform .5s var(--ease), background .3s; }
.acc__icon::after { transform: rotate(90deg); }
.acc__btn:hover .acc__icon { border-color: var(--ink); }
.acc.is-open .acc__icon { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.acc.is-open .acc__icon::before, .acc.is-open .acc__icon::after { background: #fff; }
.acc.is-open .acc__icon::after { transform: rotate(0deg); }
.acc.is-open .acc__num { color: var(--gold); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; min-height: 0; visibility: hidden; opacity: 0; transition: opacity .4s, visibility 0s .55s; }
.acc.is-open .acc__inner { visibility: visible; opacity: 1; transition: opacity .5s .12s, visibility 0s; }
.acc__inner p { padding: 0 56px 30px 52px; max-width: 38em; font-size: 17px; line-height: 1.65; color: var(--ink-2); }

/* ── Контакты ── */
.contacts { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contacts__lead { margin-top: 24px; max-width: 30em; color: rgba(255, 255, 255, .72); font-size: 18px; }
.contacts__list { margin-top: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contacts__list div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.contacts__list dt { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .5); padding-top: 4px; }
.contacts__list dd { font-size: 18px; letter-spacing: -.01em; }
.contacts__list a { transition: color .25s; }
.contacts__list a:hover { color: var(--gold-2); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.socials a { display: inline-flex; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: 14px; transition: background .25s, color .25s, border-color .25s; }
.socials a:hover { background: #fff; color: var(--green-ink); border-color: #fff; }

.form { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.form__title { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 6px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; color: rgba(255, 255, 255, .65); }
.field i { font-style: normal; opacity: .7; }
.field input { height: 56px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); padding: 0 18px; font: 400 17px var(--font); color: #fff; transition: border-color .25s, background .25s; width: 100%; }
.field input::placeholder { color: rgba(255, 255, 255, .32); }
.field input:hover { border-color: rgba(255, 255, 255, .35); }
.field input:focus { outline: none; border-color: var(--gold-2); background: rgba(255, 255, 255, .08); }
.field.is-error input { border-color: #F08C7A; }
.form__attached { font-size: 13.5px; padding: 12px 16px; border-radius: 12px; background: rgba(229, 199, 119, .12); color: var(--gold-2); }
.form__status { font-size: 14.5px; min-height: 0; color: var(--gold-2); }
.form__status:empty { display: none; }
.form__status.is-error { color: #F4A493; }
.form__legal { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .5); }
.form__legal a { text-decoration: underline; text-underline-offset: 3px; }
.form__legal a:hover { color: #fff; }

.map { margin-top: clamp(40px, 6vw, 80px); border-radius: var(--r-lg); overflow: hidden; height: clamp(280px, 36vw, 440px); background: var(--green); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.6) contrast(1.05); transition: filter .5s; }
.map:hover iframe { filter: none; }

/* ── Подвал ── */
.footer { background: var(--green-ink); color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 48px; font-size: 14px; }
.footer__row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 40px; align-items: start; }
.footer__brand .logo { color: #fff; margin-bottom: 14px; }
.footer__brand p { max-width: 24em; }
.footer__legal { display: grid; gap: 4px; font-size: 13px; }
.footer__links { display: grid; gap: 6px; justify-items: end; text-align: right; }
.footer__links a:hover { color: #fff; }

/* ── Лайтбокс ── */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 20, 16, .78); backdrop-filter: blur(6px); }
.lightbox[open] { animation: panel .35s var(--ease); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: 12px; background: #fff; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-size: 15px; }
.lightbox__close { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; line-height: 1; z-index: 1; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }

/* ── Появление при прокрутке ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s, box-shadow .5s var(--ease), background .35s; transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .tile.reveal.is-in:hover, .js .service.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ── Адаптив ── */
@media (max-width: 1180px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .header__phone { display: none; }
  .checks--2col { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr) 320px; }
  .partners { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; gap: 0; padding: 16px var(--pad) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; height: calc(100dvh - var(--header-h)); }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease), visibility 0s; }
  .nav a { padding: 18px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
  .nav a:hover, .nav a.is-current { background: none; }
  .hero__grid, .about, .faq, .contacts { grid-template-columns: 1fr; }
  .about { grid-template-rows: none; row-gap: 48px; }
  .about__text, .about__flow { display: block; grid-row: auto; }
  .cases a { height: auto; }
  .faq__head { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .services { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc__summary { position: sticky; top: auto; bottom: 12px; z-index: 5; padding: 22px; box-shadow: 0 16px 40px rgba(6, 30, 23, .35); }
  .calc__summary .calc__lines, .calc__summary .calc__note, .calc__summary-title { display: none; }
  .calc__total { grid-template-columns: 1fr auto; align-items: baseline; padding: 0 0 6px; border: 0; }
  .calc__approx { margin-bottom: 12px; font-size: 12.5px; }
  .calc__total strong { font-size: 30px; }
  .calc__total strong.is-text { font-size: 20px; }
  .tile--a, .tile--b { grid-column: span 12; }
  .tile--c, .tile--d, .tile--e { grid-column: span 6; }
  .tile--e { grid-column: span 12; min-height: 0; }
  .tile { min-height: 320px; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .client__more { opacity: 1; transform: none; }
  .partners__row { grid-template-columns: repeat(3, 1fr); }
  .footer__row { grid-template-columns: 1fr 1fr; }
  .footer__links { justify-items: start; text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__side .btn { display: none; }
  .hero__actions .btn { width: 100%; }
  .checks--2col { grid-template-columns: 1fr; }
  .tech { grid-template-columns: 1fr; }
  .tech__tags { justify-content: flex-start; }
  .hero__dirs a { padding: 14px; gap: 12px; }
  .hero__dir-arrow { display: none; }
  .service__head { grid-template-columns: auto 1fr; }
  .service__count { grid-column: 1 / -1; text-align: left; }
  .section__head--split { align-items: flex-start; }
  .stepper { align-items: flex-start; }
  .tile--c, .tile--d { grid-column: span 12; }
  .tile { min-height: 0; }
  .tile--wide { flex-direction: column; align-items: stretch; }
  .proof { grid-template-columns: 1fr; }
  .proof > div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; padding: 20px 0; }
  .proof > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .proof dd { font-size: 44px; } .proof dt { margin: 0; }
  .client { min-height: 210px; padding: 18px; }
  .client__name { font-size: 16px; margin-top: 24px; }
  .partners__row { grid-template-columns: repeat(2, 1fr); }
  .acc__btn { grid-template-columns: 28px 1fr 40px; padding: 22px 0; }
  .acc__icon { width: 40px; height: 40px; }
  .acc__inner p { padding: 0 0 26px 40px; font-size: 16px; }
  .contacts__list div { grid-template-columns: 1fr; gap: 4px; }
  .footer__row { grid-template-columns: 1fr; gap: 28px; }
  .lightbox__close { top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── Согласие в форме ── */
.agree { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); cursor: pointer; }
.agree input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.agree input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--green-ink); border-bottom: 2px solid var(--green-ink); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.agree input:checked { background: var(--gold-2); border-color: var(--gold-2); }
.agree input:checked::after { opacity: 1; }
.agree input:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.agree.is-error input { border-color: #F08C7A; }
.agree a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.agree a:hover { text-decoration-color: currentColor; }
.socials__note { margin-top: 12px; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .45); max-width: 34em; }

/* ── Карта по клику ── */
.map { position: relative; }
.map__stub { height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; }
.map__addr { font-size: clamp(17px, 1.8vw, 21px); letter-spacing: -.015em; color: #fff; }
.map__note { font-size: 12.5px; color: rgba(255, 255, 255, .5); }

/* ── Баннер cookie ── */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(440px, calc(100vw - 40px)); padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(15, 23, 20, .35); opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.cookie.is-open { opacity: 1; transform: none; }
.cookie__text { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.cookie__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie__actions .btn { flex: 1 1 auto; }

/* ── Правовые страницы ── */
.doc { padding-block: clamp(40px, 6vw, 88px) var(--section); }
.doc__wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.doc__nav { position: sticky; top: calc(var(--header-h) + 32px); display: grid; border-top: 1px solid var(--line); }
.doc__nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; color: var(--muted); transition: color .2s; }
.doc__nav a:hover, .doc__nav a[aria-current] { color: var(--ink); }
.doc__nav a[aria-current] { font-weight: 500; }
.doc__body { max-width: 760px; }
.doc__title { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.doc__lead { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 36em; }
.doc__sec { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc__sec h2 { display: flex; gap: 16px; align-items: baseline; font-size: 21px; letter-spacing: -.02em; margin-bottom: 14px; }
.doc__sec h2 .mono { font-size: 13px; color: var(--gold); min-width: 20px; }
.doc__sec p, .doc__sec li { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.doc__sec p + p, .doc__sec ul + p, .doc__sec p + ul, .doc__sec .doc__table + p { margin-top: 12px; }
.doc__sec ul { display: grid; gap: 8px; padding-left: 0; }
.doc__sec li { position: relative; padding-left: 22px; }
.doc__sec li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 8px; height: 1.5px; background: var(--gold); }
.doc__sec a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.doc__table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.doc__table table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; line-height: 1.5; }
.doc__table th, .doc__table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc__table th { font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.doc__table tr:last-child td { border-bottom: 0; }
.doc__date { margin-top: 44px; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) {
  .doc__wrap { grid-template-columns: minmax(0, 1fr); }
  .doc__nav { position: static; }
}
@media (max-width: 640px) {
  .confs__nav { display: none; }
  .stories { --w: calc(100vw - var(--pad) * 2); gap: 10px; }
  .story:hover { transform: none; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
}
