/* Витрина Geolum. Все цвета токенами, три радиуса, одна тёмная плашка на страницу, строки вместо карточек. */
:root {
  color-scheme: light dark;
  --bg: #EDEFF1; --surface: #FFFFFF; --tray: #F6F7F9;
  --ink: #15171C; --ink-2: #3A3F47; --mute: #5B6270; --line: #CBD0D6; --line-2: #DDE1E6;
  --accent: #1F2A6B; --accent-ink: #FFFFFF; --accent-soft: #E6E9F6;
  --ok: #146B3F; --ok-soft: #E3F3EA; --bad: #B42318; --bad-soft: #FBE9E7; --warn: #7F5410; --warn-soft: #FBF1DF;
  --plate: #15171C; --plate-ink: #F5F6F8; --plate-mute: #A6ABB5; --plate-line: transparent;
  --shadow-1: 0 1px 2px rgba(21,23,28,.06), 0 6px 20px rgba(21,23,28,.07);
  --r-sm: 6px; --r: 10px; --r-lg: 14px; --max: 1120px; --gutter: 24px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1); --t: 180ms cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1114; --surface: #171A1F; --tray: #1D2127; --ink: #F2F3F5; --ink-2: #C9CDD3; --mute: #949AA5; --line: #333941; --line-2: #262B32;
    --accent: #8A9BE6; --accent-ink: #0F1114; --accent-soft: #1E2440; --ok: #5FCB8A; --ok-soft: #14301F; --bad: #FF8A7A; --bad-soft: #3A1813; --warn: #E6B35A; --warn-soft: #3A2D12;
    --plate: #22262D; --plate-ink: #F2F3F5; --plate-mute: #949AA5; --plate-line: #333941;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0F1114; --surface: #171A1F; --tray: #1D2127; --ink: #F2F3F5; --ink-2: #C9CDD3; --mute: #949AA5; --line: #333941; --line-2: #262B32;
  --accent: #8A9BE6; --accent-ink: #0F1114; --accent-soft: #1E2440; --ok: #5FCB8A; --ok-soft: #14301F; --bad: #FF8A7A; --bad-soft: #3A1813; --warn: #E6B35A; --warn-soft: #3A2D12;
  --plate: #22262D; --plate-ink: #F2F3F5; --plate-mute: #949AA5; --plate-line: #333941;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.02em; max-width: 14ch; }
h2 { font-size: clamp(26px, 2.8vw, 34px); max-width: 26ch; }
h3 { font-size: 19px; }
p { margin: 0; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 56ch; }
.mute { color: var(--mute); }
.small { font-size: 14px; }
.caps { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.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; } body { font-size: 16px; line-height: 1.6; } .lede { font-size: 18px; } h1 { font-size: 32px; } }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 18px; }
.brand svg { width: 26px; height: 26px; display: block; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 15px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); } .nav a:hover, .nav a[aria-current] { color: var(--ink); }
@media (max-width: 760px) { .nav { gap: 14px; } .nav a.hide-m, .nav .btn-sm { display: none; } }

/* Кнопки */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent; font: 600 16px/1 var(--font); cursor: pointer; text-decoration: none; transition: transform var(--t), background var(--t), border-color var(--t); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }

/* Секции: одна линия между, без инлайновых отступов */
section { padding: clamp(56px, 7vw, 88px) 0; }
section + section { border-top: 1px solid var(--line-2); }
section.tight { padding-top: 0; border-top: 0; }
.sec-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 32px; }
.grid { display: grid; gap: 0 40px; }
.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; } }

/* Герой: две колонки одной высоты, цифры-реестр под ними на всю ширину */
.hero { padding: clamp(36px, 4.5vw, 56px) 0 clamp(36px, 4.5vw, 52px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; align-items: stretch; }
.hero-copy { display: grid; gap: 22px; align-content: start; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
.stat { position: relative; padding: 18px 0 0; display: grid; gap: 6px; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease) var(--d, 0ms); }
.stat.in::before, .no-js .stat::before { transform: scaleX(1); }
.stat b { font-size: clamp(34px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.stat b span { font-size: inherit; color: inherit; }
.stat > span { color: var(--ink-2); font-size: 14px; max-width: 28ch; }
.stat small { color: var(--mute); font-size: 12.5px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero .btn { width: 100%; }
  .stat-row { grid-template-columns: 1fr; border-top: 0; }
  .stat { grid-template-columns: max-content 1fr; align-items: baseline; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
  .stat b { white-space: nowrap; }
  .stat::before { display: none; }
  .stat b { font-size: 30px; }
  .stat small { grid-column: 2; }
}

/* Карточка ответа Алисы: одна из двух белых поверхностей на странице */
.answer { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-1); display: flex; flex-direction: column; overflow: hidden; }
.answer-bar { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: var(--tray); }
.answer-bar .dot { flex: none; margin-top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.answer-bar .dot.think { animation: pulse .6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }
.answer-bar .q { font-size: 15px; color: var(--ink-2); font-weight: 600; line-height: 1.4; }
.answer-body { padding: 14px 20px 18px; flex: 1; display: grid; align-content: start; gap: 12px; }
.alist { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; }
.alist li { counter-increment: n; display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-weight: 600; opacity: 0; transform: translateY(4px); animation: rise .35s 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: 400; min-width: 2.2ch; font-size: 14px; }
.alist u { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.alist .you { color: var(--mute); } .alist .you u { text-decoration: line-through; text-decoration-color: var(--bad); }
.alist .you span { margin-left: auto; color: var(--bad); font-size: 13px; font-weight: 600; white-space: nowrap; }
.alist li { flex-wrap: nowrap; }
.razbor-grid { align-items: center; } .razbor-grid .sec-head { margin-bottom: 0; }
@keyframes rise { to { opacity: 1; transform: none; } }
.srcs { font-size: 13px; color: var(--mute); padding-top: 4px; line-height: 1.5; }
.answer-foot { display: grid; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--mute); }
.cities { display: flex; flex-wrap: wrap; gap: 6px; }
.city { border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: var(--r-sm); padding: 6px 10px; min-height: 32px; font: 600 13px/1 var(--font); cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t); }
.city[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.city.hint { border-color: var(--ink); }
.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; } }

/* Плашка итога (одна на страницу) */
.plate { background: var(--plate); color: var(--plate-ink); border: 1px solid var(--plate-line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); display: grid; gap: 18px; }
.plate .caps { color: var(--plate-mute); }
.plate h2 { color: var(--plate-ink); max-width: 26ch; }
.plate p { color: var(--plate-mute); max-width: 70ch; }
.plate .nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; }
.plate .nums b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.plate .nums span { display: block; color: var(--plate-mute); font-size: 14px; margin-top: 6px; }

/* Строки: нумерованные, на линиях, без белых плиток */
.rows { display: grid; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 3ch minmax(0, 64ch) auto; gap: 24px; align-items: start; border-bottom: 1px solid var(--line-2); padding: 22px 0; }
.row .n { color: var(--mute); font-variant-numeric: tabular-nums; padding-top: 2px; }
.row h3 { margin-bottom: 4px; }
.row p { color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }
.row .tag { color: var(--mute); font-size: 13px; font-weight: 600; white-space: nowrap; padding-top: 3px; }
@media (max-width: 760px) { .row { grid-template-columns: 3ch 1fr; } .row .tag { grid-column: 2; } }
.fact { border-top: 1px solid var(--line); padding: 18px 0 26px; display: grid; gap: 8px; align-content: start; }
.fact b.big { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.fact p { color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }

/* Таблица */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(to right, var(--bg) 30%, transparent) left, linear-gradient(to left, var(--bg) 30%, transparent) right; background-repeat: no-repeat; background-size: 40px 100%; background-attachment: local; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--tray); }
td.num { font-weight: 700; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 700; margin-left: 6px; }
.pill-ok { background: var(--ok-soft); color: var(--ok); } .pill-bad { background: var(--bad-soft); color: var(--bad); } .pill-warn { background: var(--warn-soft); color: var(--warn); }


/* Форма: вторая белая поверхность */
.form-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-1); display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 16px var(--font); }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form-note { font-size: 13px; color: var(--mute); }
.form-ok { background: var(--ok-soft); color: var(--ok); padding: 12px 14px; border-radius: var(--r); font-weight: 600; }
.form-err { background: var(--bad-soft); color: var(--bad); padding: 12px 14px; border-radius: var(--r); font-weight: 600; }

/* Вопросы */
details { border-top: 1px solid var(--line-2); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line-2); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; color: var(--mute); font-weight: 400; }
details[open] summary::after { content: "–" / ""; }
details p { margin-top: 10px; color: var(--ink-2); max-width: 64ch; }

/* Источники */
.sources { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); counter-reset: s; padding: 0; margin: 0; list-style: none; }
.sources li { display: grid; grid-template-columns: 3ch 1fr; gap: 10px; counter-increment: s; }
.sources li::before { content: "[" counter(s) "]"; color: var(--mute); }

/* Подвал */
footer { border-top: 1px solid var(--line-2); padding: 32px 0 44px; color: var(--mute); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

/* Движение: только заголовки секций и линии цифр; без JS всё видно */
.js .sec-head.reveal { opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .sec-head.reveal.in { opacity: 1; transform: none; }

/* Служебные страницы: герой в одну колонку, длинный текст документа, ссылки подвала */
.hero.one .wrap { grid-template-columns: 1fr; }
.hero.one .hero-copy { max-width: 760px; }
.doc { max-width: 760px; display: grid; gap: 12px; }
.doc h2 { font-size: 22px; margin-top: 22px; max-width: none; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; max-width: 70ch; }
.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); }
