/* Витрина Geolum, версия 2. Все цвета токенами: светлая и тёмная темы через prefers-color-scheme и data-theme.
   Два шрифта: Unbounded (заголовок экрана, крупные цифры), Manrope (всё остальное). Один акцент: чернильный синий.
   Движение: одна кривая --ease, только transform и opacity; prefers-reduced-motion выключает всё. */
:root {
  color-scheme: light dark;
  --bg: #F2F3F5; --surface: #FFFFFF; --tray: #F7F8FA; --hover: rgba(20,22,27,.045);
  --ink: #14161B; --ink-2: #3C414A; --mute: #5F6672; --line: #CDD1D8; --line-2: #E1E4E8;
  --accent: #1F2A6B; --accent-ink: #FFFFFF; --accent-soft: #E7EAF7; --accent-line: #B9C1E6;
  --btn: #1F2A6B; --btn-ink: #FFFFFF; --btn-hover: #182055;
  --ok: #146B3F; --ok-soft: #E3F3EA; --bad: #B42318; --bad-soft: #FBE9E7; --warn: #7F5410; --warn-soft: #FBF1DF;
  --plate: #14161B; --plate-ink: #F5F6F8; --plate-mute: #A3A8B3; --plate-text: #D2D5DB; --plate-line: rgba(255,255,255,.1); --plate-accent: #9FAEEE;
  --shadow-1: 0 1px 2px rgba(20,22,27,.05), 0 10px 30px -12px rgba(20,22,27,.14);
  --r-sm: 6px; --r: 8px; --r-lg: 14px; --max: 1160px; --gutter: 24px; --top-h: 64px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1); --t: 200ms cubic-bezier(.22,.61,.36,1); --t-slow: 480ms cubic-bezier(.22,.61,.36,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1014; --surface: #15181E; --tray: #1A1E25; --hover: rgba(241,242,244,.06);
    --ink: #F1F2F4; --ink-2: #C5C9D0; --mute: #979DA8; --line: #30353D; --line-2: #22272E;
    --accent: #93A3EA; --accent-ink: #0E1014; --accent-soft: #1C2238; --accent-line: #3A4470;
    --btn: #F1F2F4; --btn-ink: #0E1014; --btn-hover: #FFFFFF;
    --ok: #5FCB8A; --ok-soft: #14301F; --bad: #FF8A7A; --bad-soft: #3A1813; --warn: #E6B35A; --warn-soft: #3A2D12;
    --plate: #181C25; --plate-ink: #F1F2F4; --plate-mute: #9AA0AB; --plate-text: #C5C9D0; --plate-line: #2B3039; --plate-accent: #93A3EA;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -12px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0E1014; --surface: #15181E; --tray: #1A1E25; --hover: rgba(241,242,244,.06);
  --ink: #F1F2F4; --ink-2: #C5C9D0; --mute: #979DA8; --line: #30353D; --line-2: #22272E;
  --accent: #93A3EA; --accent-ink: #0E1014; --accent-soft: #1C2238; --accent-line: #3A4470;
  --btn: #F1F2F4; --btn-ink: #0E1014; --btn-hover: #FFFFFF;
  --ok: #5FCB8A; --ok-soft: #14301F; --bad: #FF8A7A; --bad-soft: #3A1813; --warn: #E6B35A; --warn-soft: #3A2D12;
  --plate: #181C25; --plate-ink: #F1F2F4; --plate-mute: #9AA0AB; --plate-text: #C5C9D0; --plate-line: #2B3039; --plate-accent: #93A3EA;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -12px rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.theming, html.theming body, html.theming .top, html.theming .answer, html.theming .form-card, html.theming .plate, html.theming .input, html.theming .btn { transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-color var(--t), color var(--t); }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; font-weight: 700; }
h1 { font: 500 clamp(32px, 3.9vw, 54px)/1.02 var(--display); letter-spacing: -0.025em; max-width: 16.4em; }
h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -0.028em; max-width: 15.8em; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent-soft); color: var(--ink); }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 34.16em; }
.mute { color: var(--mute); }
.small { font-size: 14px; }
.caps { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.num, .stat b, .plate .nums b, .fact b.big { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--r-sm); z-index: 30; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) { :root { --gutter: 16px; --top-h: 56px; } body { font-size: 16px; } .lede { font-size: 17.5px; } h1 { font-size: clamp(30px, 8.6vw, 36px); max-width: none; } h2 { font-size: 26px; } .caps { font-size: 12px; letter-spacing: .06em; } }

/* Шапка: прозрачная сверху, при прокрутке тонкая линия и матовое стекло */
.top { position: sticky; top: 0; z-index: 20; background: transparent; border-bottom: 1px solid transparent; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.top.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line-2); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: var(--top-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 500 17px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 24px; height: 24px; display: block; color: var(--accent); }
.brand svg .dot { transform-origin: 8.3px 24px; transition: transform var(--t); }
.brand:hover svg .dot { transform: scale(1.35); }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 600; font-size: 15px; align-items: center; }
.nav a:not(.btn) { position: relative; text-decoration: none; color: var(--ink-2); padding: 6px 0; transition: color var(--t); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.theme { width: 34px; height: 34px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--mute); display: inline-grid; place-items: center; cursor: pointer; transition: border-color var(--t), color var(--t), background-color var(--t); }
.theme:hover { border-color: var(--line); color: var(--ink); background: var(--hover); }
.theme svg { width: 16px; height: 16px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; } :root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: block; } :root:not([data-theme="light"]) .theme .moon { display: none; } }
@media (max-width: 760px) { .nav { gap: 14px; font-size: 14.5px; } .nav a.hide-m, .nav .btn-sm { display: none; } }

/* Шапка v2: разметка с data-nav. Пункты, кнопка заявки, тема; до 1020 px пункты уходят в меню под шапкой */
.top[data-nav] .wrap { gap: 22px; }
.top[data-nav] .nav { gap: 22px; }
.btn.top-cta { flex: none; gap: .28em; }
.burger { display: none; }
.theme-lbl { display: none; }
@media (max-width: 1020px) {
  .top[data-nav] .wrap { gap: 6px; }
  .top[data-nav] .top-cta { margin-left: auto; min-height: 44px; }
  .top[data-nav] .burger { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; }
  .burger span { grid-area: 1 / 1; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .burger span:first-child { transform: translateY(-4px); } .burger span:last-child { transform: translateY(4px); }
  .top.open .burger span:first-child { transform: rotate(45deg); } .top.open .burger span:last-child { transform: rotate(-45deg); }
  .top[data-nav].open { background: var(--bg); border-bottom-color: var(--line-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .top[data-nav] .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0 var(--gutter) 12px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 28px 40px -28px rgba(20,22,27,.35); font-size: 17px; max-height: calc(100vh - var(--top-h)); max-height: calc(100dvh - var(--top-h)); overflow-y: auto; }
  .js .top[data-nav].open .nav { display: flex; }
  .js .top[data-nav] .nav a:not(.btn) { padding: 15px 0; border-top: 1px solid var(--line-2); color: var(--ink); }
  .js .top[data-nav] .nav a:not(.btn)::after { display: none; }
  .js .top[data-nav] .nav a[aria-current] { color: var(--accent); }
  .js .top[data-nav] .nav .theme { width: auto; height: 52px; padding: 0; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; display: flex; align-items: center; justify-content: flex-start; gap: 10px; font: 600 17px/1 var(--font); color: var(--ink-2); background: transparent; }
  .js .top[data-nav] .nav .theme-lbl { display: inline; }
  .no-js .top[data-nav] .wrap { flex-wrap: wrap; padding-bottom: 8px; } .no-js .top[data-nav] .nav { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 2px 18px; margin: 0; } .no-js .top[data-nav] .burger { display: none; }
}
@media (max-width: 359px) { .top-cta .x { display: none; } }

/* Кнопки: одна главная на экран, контурная вторая; состояния hover, focus-visible, active */
.btn { position: relative; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent; font: 600 15.5px/1 var(--font); letter-spacing: -0.005em; cursor: pointer; text-decoration: none; transition: transform var(--t), background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t); will-change: transform; }
.btn:active { transform: scale(.985); transition-duration: 80ms; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-primary::after { content: "→"; font-weight: 500; font-size: 1.1em; line-height: 0; margin-top: -2px; transition: transform .3s var(--ease); }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--hover); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }

/* Секции: один ритм, линия между */
section { padding: clamp(64px, 8vw, 112px) 0; }
section + section { border-top: 1px solid var(--line-2); }
section.tight { padding-top: 0; border-top: 0; }
/* Якорь приводит к подписи раздела, а не к пустому полю над ней */
#kak, #razbor { scroll-margin-top: calc(36px - clamp(64px, 8vw, 112px)); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.grid { display: grid; gap: 0 48px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Герой: 7/5, ответ Алисы справа, кнопки под текстом отдельной областью, цифры-реестр под ними на всю ширину.
   На телефоне (≤1000) области идут столбиком: текст, ответ Алисы, кнопки, цифры; разметка одна */
.hero { position: relative; padding: clamp(40px, 5.5vw, 76px) 0 clamp(40px, 5vw, 64px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "copy answer" "cta answer" "sys answer" "stats stats" "note note"; grid-template-rows: auto auto 1fr; gap: 28px 64px; align-items: start; }
.hero-copy { grid-area: copy; display: grid; gap: 24px; align-content: start; }
.hero .answer { grid-area: answer; }
/* Первый экран при загрузке: строки приходят сверху вниз с шагом 70 мс, ответ Алисы следом; без JS и при reduced-motion всё видно сразу */
.js .hero-copy > * { opacity: 0; animation: rise .7s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 70ms; } .js .hero-copy > :nth-child(3) { animation-delay: 140ms; } .js .hero-copy > :nth-child(4) { animation-delay: 210ms; } .js .hero-copy > :nth-child(5) { animation-delay: 280ms; }
.js .hero-cta { opacity: 0; animation: rise .7s var(--ease) 210ms both; }
.nw { white-space: nowrap; }
@media (max-width: 359px) { .nw { white-space: normal; } }
.js .hero .answer { opacity: 0; animation: rise .8s var(--ease) 240ms both; }
.js .systems, .js .sys-note { opacity: 0; animation: rise .7s var(--ease) 420ms both; }
.hero-copy .lede { max-width: 31.72em; }
.hero-cta { grid-area: cta; display: flex; gap: 12px; flex-wrap: wrap; } .hero-copy > .hero-cta { grid-area: auto; }
.stat-row { grid-area: stats; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid var(--line); margin-top: 20px; }
.stat { position: relative; padding: 22px 0 0; display: grid; gap: 8px; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) var(--d, 0ms); }
.stat.in::before, .no-js .stat::before { transform: scaleX(1); }
.stat b { font: 500 clamp(32px, 3.2vw, 44px)/1 var(--display); letter-spacing: -0.03em; }
.stat b span { font-size: inherit; color: inherit; }
.stat > span { color: var(--ink-2); font-size: 15px; line-height: 1.45; max-width: 18.3em; }
.stat small { color: var(--mute); font-size: 14px; line-height: 1.45; }
@media (max-width: 1000px) { .hero .wrap { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "copy" "cta" "answer" "sys" "stats" "note"; gap: 24px; } .hero-copy .lede { max-width: 34.16em; } .stat-row { margin-top: 8px; } }
@media (max-width: 760px) {
  .hero { padding-top: 28px; }
  .hero-copy { gap: 18px; }
  .hero-copy .lede { font-size: 17px; line-height: 1.5; }
  .hero .btn { width: 100%; }
  .stat-row { grid-template-columns: 1fr; border-top: 0; margin-top: 0; }
  .stat { grid-template-columns: max-content 1fr; align-items: baseline; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line-2); }
  .stat::before { display: none; }
  .stat b { font-size: 28px; white-space: nowrap; }
  .stat small { grid-column: 2; }
}

/* Ответ Алисы: подпись бренда. Вопрос печатается, точка думает, строки приходят по одной, последняя подсвечивается */
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
/* Вкладки систем внутри плашки: та же строка с подчёркиванием, что у городов; активная чернилами */
.answer-tabs { display: flex; gap: 0 18px; padding: 0 22px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent); }
@media (max-width: 760px) { .answer-tabs { gap: 0 14px; padding: 0 16px; } .tab { font-size: 14px; padding: 16px 0 14px; } }
@media (max-width: 1200px) { .tab .x { display: none; } }
.answer-tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--mute); padding: 14px 0 12px; margin-bottom: -1px; font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; transition: color var(--t), border-color var(--t); }
.tab .ic { width: 16px; height: 16px; stroke-width: 2; color: var(--ink-2); transition: color var(--t); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); } .tab[aria-selected="true"] .ic { color: var(--accent); }
.tab:focus-visible { outline-offset: -2px; }
.tab .x { margin-left: calc(.28em - 7px); }
.alist li small { margin-left: auto; color: var(--mute); font-size: 14px; font-weight: 500; white-space: nowrap; }
.answer-bar { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 18px 22px 16px; border-bottom: 1px solid var(--line-2); }
.answer-bar .dot { grid-row: 1 / 3; align-self: start; margin-top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.answer-bar .dot.think { animation: pulse .8s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(1.4); opacity: .45; } }
.answer-bar .lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.answer-bar .q { font-size: 17px; color: var(--ink); font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; min-height: 4.2em; }
.answer-body { padding: 8px 22px 18px; flex: 1; display: grid; align-content: start; gap: 12px; min-height: 200px; }
.alist { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; align-content: start; min-height: calc(6 * 52px); }
.alist li { counter-increment: n; display: flex; align-items: baseline; gap: 14px; padding: 11px 0; min-height: 52px; border-top: 1px solid var(--line-2); font-weight: 600; font-size: 16.5px; opacity: 0; transform: translateY(6px); animation: rise .45s var(--ease) var(--d, 0ms) forwards; }
.alist li:first-child { border-top: 0; }
.alist li::before { content: counter(n, decimal-leading-zero); color: var(--mute); font-weight: 500; min-width: 1.34em; font-size: 13px; font-variant-numeric: tabular-nums; }
.alist u { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px; padding-bottom: 2px; animation: draw .5s var(--ease) calc(var(--d, 0ms) + 260ms) forwards; }
@keyframes draw { to { background-size: 100% 2px; } }
.alist .you { color: var(--mute); position: relative; animation: rise .45s var(--ease) var(--d, 0ms) forwards, mark 1.6s var(--ease) calc(var(--d, 0ms) + 200ms); }
.alist .you u { animation: none; background: none; text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.alist .you span { margin-left: auto; color: var(--bad); font-size: 14px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
@keyframes mark { 0%, 35% { box-shadow: inset 0 0 0 100px var(--bad-soft); } 100% { box-shadow: inset 0 0 0 100px transparent; } }
@keyframes rise { to { opacity: 1; transform: none; } }
.srcs { font-size: 14px; color: var(--mute); padding-top: 4px; line-height: 1.5; min-height: calc(4px + 4.5em); opacity: 0; animation: rise .4s var(--ease) var(--d, 600ms) forwards; }
.answer-foot { display: grid; gap: 10px; padding: 0 22px 16px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.cities { display: flex; gap: 0 20px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line-2); -webkit-mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 24px), transparent); }
.cities::-webkit-scrollbar { display: none; }
.answer-foot .meta { min-height: 6em; }
@media (max-width: 760px) { .srcs { min-height: calc(4px + 6em); } .answer-foot .meta { min-height: 7.5em; } }
.city { flex: none; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--mute); padding: 16px 0 14px; margin-top: -1px; font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; transition: color var(--t), border-color var(--t); }
.city:hover, .city.hint { color: var(--ink); }
.city[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.city:focus-visible { outline-offset: -2px; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.razbor-grid { align-items: center; row-gap: 28px; } .razbor-grid .sec-head { margin-bottom: 0; }

/* Плашка итога: одна на страницу, в ней живёт дисплейный шрифт */
.plate { position: relative; min-width: 0; background: var(--plate); color: var(--plate-ink); border: 1px solid var(--plate-line); border-radius: 16px; padding: clamp(32px, 5vw, 56px); display: grid; gap: 22px; overflow: hidden; }
/* Знак в углу плашки: три линии ответа еле видны, точка перед третьей цветом акцента («компания названа») */
.plate::before, .plate::after { content: ""; position: absolute; pointer-events: none; }
.plate::before { top: -30px; right: -30px; width: 250px; height: 250px; background: var(--plate-ink); opacity: .09; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M8 8h16M8 16h11M16 24h8' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M8 8h16M8 16h11M16 24h8' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/></svg>") center / contain no-repeat; }
.plate::after { top: calc(-30px + 250px * 21.7 / 32); right: calc(-30px + 250px - 250px * 10.6 / 32); width: calc(250px * 4.6 / 32); height: calc(250px * 4.6 / 32); border-radius: 50%; background: var(--plate-accent); opacity: .6; }
/* На телефоне знак стоит над заголовком в правом углу, текст под него не заходит */
@media (max-width: 760px) { .plate { padding-top: 92px; } .plate::before { width: 96px; height: 96px; top: -8px; right: -8px; } .plate::after { top: calc(-8px + 96px * 21.7 / 32); right: calc(-8px + 96px - 96px * 10.6 / 32); width: calc(96px * 4.6 / 32); height: calc(96px * 4.6 / 32); } }
.plate .caps { color: var(--plate-mute); }
.plate h2 { font: 500 clamp(24px, 2.6vw, 34px)/1.12 var(--display); letter-spacing: -0.02em; color: var(--plate-ink); max-width: 21.8em; }
.plate p { color: var(--plate-mute); max-width: 42.7em; }
.plate a { text-decoration-color: color-mix(in srgb, var(--plate-ink) 35%, transparent); }
.plate > * { min-width: 0; position: relative; z-index: 1; }
.terms { margin: 0; display: grid; padding-top: 4px; }
.terms > div { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 10px 48px; align-items: start; border-top: 1px solid var(--plate-line); padding: 24px 0; }
.terms > div:last-child { padding-bottom: 4px; }
.terms dt { display: grid; gap: 10px; }
.terms dt span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--plate-mute); line-height: 1.35; }
.terms dt b { font: 500 26px/1.05 var(--display); letter-spacing: -0.03em; color: var(--plate-ink); }
.terms dd { margin: 0; display: grid; gap: 10px; color: var(--plate-text); font-size: 15.5px; line-height: 1.55; max-width: 37em; }
.terms dd p { color: inherit; max-width: none; }
.terms dd ol, .terms dd ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: t; }
.terms dd li { position: relative; padding-left: 26px; }
.terms dd ol li { counter-increment: t; }
.terms dd ol li::before { content: counter(t); position: absolute; left: 0; top: 0; color: var(--plate-accent); font-weight: 700; }
.terms dd ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 2px; border-radius: 2px; background: var(--plate-accent); }
@media (max-width: 760px) { .terms > div { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; } .terms dt { gap: 8px; } .terms dt b { font-size: 24px; } .terms dd { font-size: 15.5px; } }
/* Старая сетка цифр в плашке: осталась на исследовании и в примере разбора */
.plate .nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px 28px; padding-top: 8px; }
.plate .nums > div { border-top: 1px solid var(--plate-line); padding-top: 16px; }
.plate .nums b { display: block; font: 500 34px/1 var(--display); letter-spacing: -0.03em; }
.plate .nums span { display: block; color: var(--plate-mute); font-size: 14.5px; line-height: 1.5; margin-top: 10px; }
.plate .btn-primary { background: var(--plate-ink); color: var(--plate); }
.plate .btn-primary:hover { background: #fff; box-shadow: none; }
:root[data-theme="dark"] .plate .btn-primary:hover, :root:not([data-theme="light"]) .plate .btn-primary:hover { background: var(--plate-ink); }

/* Строки: нумерованные, на линиях; наведение подсвечивает номер */
.rows { display: grid; border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 1.83em minmax(0, 1fr) max-content; gap: 28px; align-items: start; border-bottom: 1px solid var(--line-2); padding: 26px 0; transition: border-color var(--t); }
.row .n { color: var(--mute); font-variant-numeric: tabular-nums; padding-top: 3px; font-weight: 600; font-size: 14px; transition: color var(--t), transform var(--t), opacity .5s var(--ease) calc(var(--d, 0ms) + 240ms); }
.row:hover .n { color: var(--accent); transform: translateX(2px); }
.row h3 { margin-bottom: 6px; }
.row p { color: var(--ink-2); font-size: 15.5px; max-width: 40.26em; }
.row .tag { color: var(--mute); font-size: 14px; font-weight: 600; white-space: nowrap; padding-top: 4px; justify-self: end; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .row { grid-template-columns: 1.83em 1fr; gap: 16px; padding: 20px 0; } .row .tag { grid-column: 2; padding-top: 0; justify-self: start; text-align: left; white-space: normal; } }
.fact { position: relative; border-top: 1px solid var(--line); padding: 20px 0 30px; display: grid; gap: 10px; align-content: start; }
.fact b.big { font: 500 36px/1 var(--display); letter-spacing: -0.03em; }
.fact p { color: var(--ink-2); font-size: 15.5px; max-width: 39.04em; }

/* Таблица: зебра, липкая шапка на десктопе, прокрутка внутри контейнера на телефоне */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
th, td { text-align: left; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 700; background: var(--bg); }
tbody tr:last-child td { border-bottom: 0; }
tbody td { transition: background-color var(--t); }
tbody tr:hover td { background: var(--hover); }
td.num { font-weight: 700; white-space: nowrap; }
td:first-child, th:first-child { padding-left: 12px; }
@media (min-width: 1000px) { .table-wrap { overflow: visible; } thead th { position: sticky; top: var(--top-h); z-index: 2; box-shadow: 0 1px 0 var(--line); } }
.scroll-hint { display: none; margin: 0 0 8px; font-size: 14px; color: var(--mute); }
.scroll-hint::after { content: " →"; }
.table-wrap.is-scroll { -webkit-overflow-scrolling: touch; }
.scroll-hint.on { display: block; }
@media (max-width: 760px) {
  .table-wrap.fit table { min-width: 0; font-size: 14px; }
  .table-wrap.fit th, .table-wrap.fit td { padding: 12px 0 12px 6px; text-align: right; }
  .table-wrap.fit th { text-transform: none; letter-spacing: 0; font-size: 12px; white-space: nowrap; }
  .table-wrap.fit th:first-child, .table-wrap.fit td:first-child { text-align: left; padding-left: 0; padding-right: 4px; }
  .table-wrap.fit td:first-child { color: var(--ink-2); line-height: 1.3; }
  .table-wrap.is-scroll th:first-child, .table-wrap.is-scroll td:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); box-shadow: 1px 0 0 var(--line-2); }
  .art .table-wrap table { min-width: 0; } .art .table-wrap table:has(th:nth-child(3)) { min-width: 560px; }
}
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-left: 12px; white-space: nowrap; }
.pill::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.pill-ok { color: var(--ok); } .pill-bad { color: var(--bad); } .pill-warn { color: var(--warn); }

/* Форма: заметный фокус, кнопка на всю ширину на телефоне, спокойное состояние успеха */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 16px var(--font); transition: border-color var(--t), box-shadow var(--t); }
.input::placeholder { color: var(--mute); opacity: .85; }
.input:hover { border-color: var(--ink-2); }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.check input { margin-top: 0; width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.form-card .btn { margin-top: 4px; }
.field-err { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--bad); }
.field.err .input { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.check.err input { outline: 2px solid var(--bad); outline-offset: 2px; }
.check { flex-wrap: wrap; } .check > span:not(.field-err) { flex: 1; min-width: 0; } .check .field-err { flex-basis: 100%; padding-left: 34px; }
.form-note { font-size: 14px; color: var(--mute); }
.form-ok, .form-err { padding: 12px 14px; border-radius: var(--r); font-weight: 600; font-size: 15px; animation: rise .4s var(--ease) both; }
.form-ok { background: var(--ok-soft); color: var(--ok); }
.form-err { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 760px) { .form-card { padding: 20px; } .form-card .btn, .plate .btn { width: 100%; } .btn { white-space: normal; text-align: center; padding: 12px 18px; } }

/* Вопросы */
details { border-top: 1px solid var(--line-2); }
details:last-of-type { border-bottom: 1px solid var(--line-2); }
summary { cursor: pointer; padding: 18px 0; min-height: 60px; font-weight: 700; font-size: 18px; line-height: 1.35; letter-spacing: -0.012em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color var(--t); }
summary:hover { color: var(--accent); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); color: var(--mute); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
details p { margin: -6px 0 20px; color: var(--ink-2); max-width: 40.26em; animation: rise .35s var(--ease) both; }
summary:focus-visible { outline-offset: -2px; }

/* Источники */
.sources { display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); counter-reset: s; padding: 0; margin: 0; list-style: none; max-width: 48.8em; }
.sources li { display: grid; grid-template-columns: 1.83em 1fr; gap: 12px; counter-increment: s; }
.sources li::before { content: "[" counter(s) "]"; color: var(--mute); font-variant-numeric: tabular-nums; }

/* Подвал: строгий, колонками */
footer { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0 36px; color: var(--mute); font-size: 14px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.foot-brand { display: grid; gap: 14px; align-content: start; max-width: 20.74em; }
.foot-brand .brand { color: var(--ink); }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col .caps { margin-bottom: 4px; }
.foot-col a { color: var(--ink-2); text-decoration: none; width: fit-content; }
.foot-col a:hover, .foot-col a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.foot-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 14px; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .foot-col { gap: 0; } .foot-col .caps { margin-bottom: 6px; }
  .foot-col a { min-height: 44px; display: inline-flex; align-items: center; }
  .foot-col span { padding: 8px 0; }
  .crumbs a { padding: 12px 0; margin: -12px 0; }
  .top:not([data-nav]) .nav a:not(.btn) { padding: 12px 0; }
}

/* Движение: появление блоков при прокрутке, одна кривая; .rv ставит app.js, без него всё видно сразу */
.rv .reveal { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.rv .reveal.in { opacity: 1; transform: none; will-change: auto; }

/* Служебные страницы и статьи */
.hero.one .wrap { grid-template-columns: 1fr; grid-template-rows: none; }
.hero.one .hero-copy { max-width: 820px; }
.hero.one h1 { max-width: 21.8em; font-size: clamp(30px, 3.2vw, 44px); }
@media (max-width: 760px) { .hero.one h1 { font-size: 28px; } }
.doc { max-width: 760px; display: grid; gap: 12px; }
.doc h2 { font-size: 22px; margin-top: 24px; max-width: none; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; max-width: 42.7em; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--mute); text-decoration-color: color-mix(in srgb, var(--mute) 45%, transparent); }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--ink); }

.art-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 64px; align-items: start; }
@media (min-width: 1000px) { .art-grid.has-toc { grid-template-columns: minmax(0, 41.48em) 240px; gap: 48px 72px; justify-content: start; } .toc { position: sticky; top: calc(var(--top-h) + 24px); } }
.toc { display: grid; gap: 4px; align-content: start; border-top: 1px solid var(--line); padding-top: 14px; }
.toc .caps { margin-bottom: 6px; }
.toc a { font-size: 14px; color: var(--mute); text-decoration: none; padding: 4px 0 4px 12px; border-left: 2px solid transparent; line-height: 1.4; transition: color var(--t), border-color var(--t); }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 999px) { .toc { order: -1; } }
.art { max-width: 41.48em; display: grid; gap: 16px; }
.art h2 { font-size: clamp(23px, 2vw, 27px); margin-top: 28px; max-width: none; scroll-margin-top: calc(var(--top-h) + 20px); }
.art h3 { font-size: 19px; margin-top: 10px; }
.art p, .art li { color: var(--ink-2); font-size: 17px; line-height: 1.65; max-width: 41.48em; }
.art ul, .art ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.art blockquote { margin: 16px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1.45; letter-spacing: -0.012em; max-width: 36.6em; }
.art .table-wrap { margin: 8px 0; } .art table { min-width: 560px; }
@media (max-width: 760px) { .art p, .art li { font-size: 16.5px; line-height: 1.6; } .art blockquote { font-size: 18px; padding-left: 18px; } }
.art a { color: var(--ink); }
.art strong { color: var(--ink); }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--mute); }
.crumbs { font-size: 14px; color: var(--mute); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--mute); text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.byline { border-top: 1px solid var(--line-2); padding-top: 18px; font-size: 14px; color: var(--mute); max-width: 41.48em; }
.faq-wrap { max-width: 760px; }
.related .row { grid-template-columns: 1.83em minmax(0, 1fr); }
.related h3 a, .post-list h3 a { text-decoration: none; }
.related h3 a:hover, .post-list h3 a:hover { color: var(--accent); }
.post-list .row h3 { font-size: 20px; }

/* Движение v3. Фон «город и три системы»: canvas за первым экраном, рисует app.js; без JS фона нет */
.bgfield, canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
.bgfield.on, canvas.field.on { opacity: 1; }
section.hero + section { border-top-color: var(--line-2); }
/* Значки систем: один стиль, линии 1,75, currentColor; подписи рядом, примечание о владельцах названий одной строкой */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -5px; }
.systems { grid-area: sys; align-self: end; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; font-size: 14px; font-weight: 600; color: var(--mute); letter-spacing: -0.005em; }
.sys { display: inline-flex; align-items: center; gap: 8px; transition: color .6s var(--ease); }
.sys .ic { color: var(--ink-2); transition: color .6s var(--ease), transform .6s var(--ease); }
.sys.on { color: var(--ink); } .sys.on .ic { color: var(--accent); transform: scale(1.08); }
.sys-note { grid-area: note; font-size: 14px; line-height: 1.45; color: var(--mute); max-width: none; margin-top: -8px; }
.caps-ic { display: inline-flex; align-items: center; gap: 8px; } .caps-ic .ic { width: 18px; height: 18px; color: var(--ink-2); }
.th-ic { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .th-ic .ic { width: 14px; height: 14px; stroke-width: 2; color: var(--ink-2); }
@media (max-width: 760px) { .systems { gap: 8px 18px; } .sys-note { margin-top: -4px; } }
/* Маршрут «Как это работает»: линия слева от номеров прорисовывается один раз за 900 мс, точки шагов загораются по очереди */
.rows[data-route] { position: relative; }
.route { position: absolute; left: -22px; top: 0; width: 24px; overflow: visible; pointer-events: none; }
.route path { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset .9s var(--ease); }
.route circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .4s var(--ease) var(--d, 0ms), transform .4s var(--ease) var(--d, 0ms), fill .4s var(--ease) var(--d, 0ms); }
.route circle:last-child { fill: var(--accent); }
.rows.go .route path { stroke-dashoffset: 0; }
.rows.go .route circle { opacity: 1; transform: none; }
/* Переходы рядов и фактов: разделительная линия вырастает слева направо за 500 мс, затем текст; стаггер 60 мс */
.rv .rl { border-color: transparent; } .rv .rows.rl { position: relative; }
.rv .rl::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line-2); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease) var(--d, 0ms); }
.rv .row.rl::after { bottom: -1px; }
.rv .fact.rl::after { top: -1px; background: var(--line); }
.rv .rows.rl::after { top: -1px; background: var(--line); }
.rv .rl.in::after { transform: scaleX(1); }
.rv .row.rl > :not(.n), .rv .fact.rl > * { transition: opacity .55s var(--ease) calc(var(--d, 0ms) + 240ms), transform .55s var(--ease) calc(var(--d, 0ms) + 240ms); }
.rv .row.rl:not(.in) > *, .rv .fact.rl:not(.in) > * { opacity: 0; transform: translateY(6px); }
.rv .row.rl:not(.in) > .n { transform: none; }

@media (max-width: 999px) { .toc a { padding: 13px 0 13px 12px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route path { stroke-dashoffset: 0; } .route circle { opacity: 1; transform: none; }
  .rv .rl::after { transform: scaleX(1); } .rv .row.rl > *, .rv .fact.rl > * { opacity: 1; transform: none; }
  .js .systems, .js .sys-note, .bgfield, canvas.field { opacity: 1; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv .reveal { opacity: 1; transform: none; }
  .js .hero-copy > *, .js .hero-cta, .js .hero .answer { opacity: 1; }
  .alist li, .srcs { opacity: 1; transform: none; }
  .alist u { background-size: 100% 2px; }
  .stat::before { transform: scaleX(1); }
}
