/* STAVKI RATING — основная таблица стилей сайта (шапка, контент статей, таблицы, FAQ, подвал).
   Генерируется из theme/volt-shell.html + дельта редизайна (port-kit/make_site_css.py).
   Оболочка (мобильное меню, поиск, skip-ссылка, подвал) — в chrome.css. */
  :root {
    --bg: #07090F; --surface: #0E1220; --surface-2: #141A2B; --surface-3: #1B2236;
    --glass: rgba(255,255,255,.04); --glass-border: rgba(255,255,255,.09); --line: rgba(255,255,255,.10);
    --text: #F2F5FA; --muted: #98A2B3; --muted-2: #6B7588;
    --volt: #C8FF4D; --volt-ink: #0B1200; --violet: #7C5CFF; --violet-soft: rgba(124,92,255,.18);
    --success: #22D3A5; --warning: #FFB020; --danger: #FF5C7A;
    --grad: linear-gradient(135deg, #7C5CFF 0%, #C8FF4D 100%);
    --glow: 0 0 0 1px rgba(200,255,77,.28), 0 12px 40px rgba(124,92,255,.28);
    --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
    --font-display: "Golos Text", "Inter", system-ui, sans-serif;
    --font-sans: "Golos Text", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
    --container: 1240px;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative; text-rendering: optimizeLegibility; }
  /* мягкое фиолетовое свечение под шапкой — одно на все страницы */
  body::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1100px, 100%); height: 460px; transform: translateX(-50%); background: radial-gradient(60% 70% at 50% 0%, rgba(124,92,255,.20), transparent 72%); pointer-events: none; z-index: -1; }
  a { color: inherit; text-decoration: none; }
  a:hover { color: var(--volt); }
  img { max-width: 100%; display: block; }
  button { font: inherit; cursor: pointer; }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
  h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
  h2 { font-size: clamp(22px, 2.6vw, 30px); }
  h3 { font-size: 18px; font-weight: 500; }
  p { margin: 0; }
  .num { font-variant-numeric: tabular-nums; }
  .container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
  .eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
  .eyebrow::first-letter { color: var(--volt); }
  .muted { color: var(--muted); }
  .small { font-size: 13px; }
  :focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }

  /* Тонкая полоса дисклеймера */
  .topbar { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
  .topbar .container { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 6px 0; flex-wrap: wrap; }

  /* Шапка */
  .site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .site-header .container { display: flex; align-items: center; gap: 28px; height: 62px; }
  .logo { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
  .nav { display: flex; gap: 20px; font-size: 14px; font-weight: 600; margin-left: 8px; }
  .nav a { color: var(--muted); }
  .nav a:hover, .nav a.active { color: var(--text); }
  .header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  .age { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 24px; border-radius: 6px; border: 1.5px solid var(--danger); color: var(--danger); font-weight: 700; font-size: 12px; flex: none; }
  .search { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--muted); font-size: 13px; background: var(--glass); cursor: text; }
  @media (max-width: 940px) { .nav { display: none; } }

  /* Единая колонка контента: шапка статьи, оглавление и текст выровнены по одному левому краю
     (раньше .prose с max-width:75ch центрировался отдельно от шапки на всю ширину контейнера). */
  :root { --col: 820px; }
  main .container { width: min(var(--col), 100% - 32px); }

  /* Креатив «на всю страницу»: два полотна на всю высоту окна по краям, статья — по центру.
     Полотно — картинка 9:16 высотой в окно (background-size: auto 100%), ширина по полю слева/справа.
     Бейджи БК позиционируются в процентах от высоты, поэтому всегда попадают в кольца арта. */
  .wall { display: none; }
  @media (min-width: 1500px) {
    .wall { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
    .wall-side { --W: calc(100vh * .5647); --r1: 22.35%; --r2: 49.6%; --r3: 77.05%; --bd: .3276;
      position: absolute; top: 0; bottom: 0; width: min(calc((100vw - var(--col)) / 2), var(--W)); }
    .wall-side::before { content: ""; position: absolute; inset: 0; background-repeat: no-repeat; background-size: auto 100%; background-position: center; }
    .wall-left { left: 0; }
    .wall-left::before { background-image: url(/img/decor/wall-left.webp);
      -webkit-mask-image: linear-gradient(to right, #000 62%, transparent); mask-image: linear-gradient(to right, #000 62%, transparent); }
    .wall-right { right: 0; }
    .wall-right::before { background-image: url(/img/decor/wall-right.webp);
      -webkit-mask-image: linear-gradient(to left, #000 62%, transparent); mask-image: linear-gradient(to left, #000 62%, transparent); }
    /* Темы стен по разделу: тема ставится скриптом в volt-shell.html; нет JS — «праздник» (растр выше) */
    .wall[data-theme="stadium"] .wall-left::before { background-image: url(/img/decor/walls/stadium-left.svg); }
    .wall[data-theme="stadium"] .wall-right::before { background-image: url(/img/decor/walls/stadium-right.svg); }
    .wall[data-theme="quotes"] .wall-left::before { background-image: url(/img/decor/walls/quotes-left.svg); }
    .wall[data-theme="quotes"] .wall-right::before { background-image: url(/img/decor/walls/quotes-right.svg); }
    .wall[data-theme="grid"] .wall-left::before { background-image: url(/img/decor/walls/grid-left.svg); }
    .wall[data-theme="grid"] .wall-right::before { background-image: url(/img/decor/walls/grid-right.svg); }
    .wall[data-theme="orbit"] .wall-left::before { background-image: url(/img/decor/walls/orbit-left.svg); }
    .wall[data-theme="orbit"] .wall-right::before { background-image: url(/img/decor/walls/orbit-right.svg); }
    .wall-badge { position: absolute; left: 50%; width: calc(var(--W) * var(--bd)); aspect-ratio: 1; transform: translate(-50%, -50%);
      border-radius: 50%; overflow: hidden; pointer-events: auto; display: flex; align-items: center; justify-content: center; background: #0B0E16;
      box-shadow: 0 0 0 3px rgba(200,255,77,.55), 0 0 28px rgba(200,255,77,.35); transition: transform .25s ease, box-shadow .25s ease; animation: wallpulse 3.4s ease-in-out infinite; }
    .wall-badge:nth-child(2) { animation-delay: .5s; } .wall-badge:nth-child(3) { animation-delay: 1s; }
    .wall-badge:hover { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 3px var(--volt), 0 0 44px rgba(200,255,77,.7); animation-play-state: paused; }
    .wall-badge img { width: 74%; height: 74%; object-fit: contain; border-radius: 18%; }
    .wall-tag { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 11px; color: var(--muted-2); letter-spacing: .04em; }
    .wall ~ main { position: relative; z-index: 1; width: calc(var(--col) + 96px); margin-inline: auto; background: rgba(8,11,20,.86);
      border-inline: 1px solid var(--line); box-shadow: 0 0 80px rgba(0,0,0,.6); backdrop-filter: blur(10px); }
  }
  @keyframes wallpulse { 0%,100% { box-shadow: 0 0 0 3px rgba(200,255,77,.55), 0 0 22px rgba(200,255,77,.28); } 50% { box-shadow: 0 0 0 3px rgba(200,255,77,.8), 0 0 42px rgba(124,92,255,.55); } }
  @media (prefers-reduced-motion: reduce) { .wall-badge { animation: none !important; } }

  /* Кнопки */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
  .btn-primary { background: var(--volt); color: var(--volt-ink); box-shadow: 0 6px 24px rgba(200,255,77,.18); }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--glow); color: var(--volt-ink); }
  .btn-glass { background: var(--glass); border-color: var(--glass-border); color: var(--text); }
  .btn-glass:hover { background: var(--surface-3); color: var(--text); }
  .btn-official { background: transparent; border-color: var(--line); color: var(--text); }
  .btn-official:hover { border-color: var(--muted); color: var(--text); }
  .btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
  .btn-block { width: 100%; }
  @media (prefers-reduced-motion: reduce) { .btn { transition: none !important; } }

  /* Секции */
  .section { padding: 56px 0; }
  .section.tight { padding-top: 6px; padding-bottom: 24px; }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
  .section-head p { color: var(--muted); max-width: 60ch; }
  .link-more { font-size: 14px; font-weight: 600; color: var(--volt); }

  /* Хлебные крошки */
  .crumbs { padding: 16px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .crumbs a { color: var(--muted); }
  .crumbs a:hover { color: var(--text); }
  .crumbs span { color: var(--muted-2); }

  /* Плитки, инструменты, статьи */
  .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
  .tile { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: var(--surface); display: grid; gap: 6px; transition: border-color .2s, transform .15s; }
  .tile:hover { border-color: rgba(124,92,255,.5); transform: translateY(-2px); }
  .tile b { font-size: 15px; }
  .tile small { color: var(--muted); }
  .tool { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--surface); display: grid; gap: 14px; max-width: 640px; }
  .tool-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  @media (max-width: 560px) { .tool-form { grid-template-columns: 1fr; } }
  .field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
  .field input, .field select { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 12px; font: inherit; font-size: 15px; width: 100%; }
  .result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  @media (max-width: 560px) { .result { grid-template-columns: 1fr; } }
  .result div { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
  .result small { display: block; color: var(--muted); font-size: 12px; }
  .result b { font-family: var(--font-display); font-size: 22px; }
  .result .accent { color: var(--volt); }
  .articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
  .article { border-top: 2px solid var(--violet); padding-top: 12px; display: grid; gap: 6px; }
  .article b { font-size: 16px; line-height: 1.35; }
  .article small { color: var(--muted); }

  /* Текстовый контент страницы */
  .prose { max-width: none; display: grid; gap: 14px; }
  .prose > .eyebrow { margin-bottom: -6px; }
  .container > .toc + h2, .prose > .toc + h2 { margin-top: 30px !important; }
  .prose > * { min-width: 0; }
  .prose h2 { margin-top: 14px; }
  .prose h2[id] { scroll-margin-top: 84px; }
  .prose h3 { font-size: 17px; font-weight: 700; margin-top: 8px; }
  /* SEO/GEO 2026 (25.09.2026): строка метаданных статьи и оглавление из H2 (якоря фрагментов) */
  .meta-row { margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .meta-row a { text-decoration: none; }
  .toc { margin: 16px 0 4px; padding: 12px 14px; border: 1px solid var(--line, #28304a); border-radius: 12px; font-size: 14px; }
  .toc b { display: block; margin-bottom: 6px; }
  .toc ol { margin: 0; padding-left: 20px; }
  .toc li { margin: 3px 0; }
  .toc a { color: var(--volt); text-decoration: none; }
  .toc a:hover { text-decoration: underline; }
  /* h4 — подразделы свёрнутых интентов на бренд-хабах (19.09.2026). Глобальный сброс
     задаёт margin:0, без этого правила подзаголовок сливается с текстом абзаца. */
  .prose h4 { font-size: 15px; font-weight: 700; margin-top: 6px; color: var(--text); }
  .prose p { color: var(--text); }
  .prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: var(--text); }
  .prose li { line-height: 1.5; }
  .prose a { color: var(--volt); text-decoration: underline; text-underline-offset: 3px; }
  .prose strong { color: var(--text); font-weight: 700; }
  .prose .callout { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--volt); border-radius: var(--r-md); padding: 14px 16px; color: var(--muted); }
  .prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); }
  .prose table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 440px; }
  /* тень-подсказка, что таблицу можно прокрутить вбок */
  .table-wrap { background: linear-gradient(90deg, var(--surface) 30%, transparent), linear-gradient(90deg, transparent, var(--surface) 70%) 100% 0, radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.45), transparent), radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.45), transparent) 100% 0; background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
  .prose thead th { background: var(--surface-2); color: var(--text); font-weight: 700; text-align: left; }
  .prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .prose tbody tr:last-child td { border-bottom: none; }
  .prose tbody td:first-child { color: var(--text); font-weight: 600; }
  .prose caption { caption-side: bottom; color: var(--muted); font-size: 12px; padding: 8px 4px 0; text-align: left; }
  .faq { display: grid; gap: 10px; }
  .faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 4px 16px; }
  .faq summary { cursor: pointer; font-weight: 600; padding: 12px 24px 12px 0; list-style: none; position: relative; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; color: var(--muted); font-weight: 400; }
  .faq details[open] summary::after { content: "–"; }
  .faq details[open] summary { color: var(--volt); }
  .faq p { color: var(--muted); padding: 0 0 12px; }

  /* Футер */
  .footer { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line); padding: 36px 0 90px; margin-top: 30px; color: var(--muted); font-size: 13px; }
  .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 22px; }
  @media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
  @media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
  .footer h4 { font-family: var(--font-sans); font-size: 13px; color: var(--text); margin-bottom: 8px; letter-spacing: .04em; text-transform: uppercase; }
  .footer a { color: var(--muted); display: block; padding: 5px 0; }
  .footer a:hover { color: var(--text); }
  .legal-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 6px; }

  /* Липкая мобильная панель */
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px 16px; display: none; gap: 10px; align-items: center; }
  .sticky-cta .btn { flex: 1; }
  .sticky-cta small { font-size: 11px; color: var(--muted); line-height: 1.25; max-width: 130px; }
  @media (max-width: 760px) { .sticky-cta { display: flex; } }

  /* ── совместимость с разметкой «служебных» страниц (новости, каталог, контакты,
     переходы /go/): они приведены к общему дизайну тем же набором классов ── */
  .prose > details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 4px 16px; }
  .prose > details + details { margin-top: -4px; }
  .prose > details > summary { cursor: pointer; font-weight: 600; padding: 12px 24px 12px 0; list-style: none; position: relative; }
  .prose > details > summary::-webkit-details-marker { display: none; }
  .prose > details > summary::after { content: "+"; position: absolute; right: 0; top: 12px; color: var(--muted); font-weight: 400; }
  .prose > details[open] > summary::after { content: "–"; }
  .prose > details[open] > summary { color: var(--volt); }
  .prose > details > p { color: var(--muted); padding: 0 0 12px; }
  .prose .notice { border: 1px solid var(--line); border-left: 3px solid var(--volt); background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; color: var(--muted); }
  .prose .notice p { color: var(--muted); }
  .prose .notice [data-age-badge] { display: inline-block; border: 1.5px solid var(--danger); color: var(--danger); border-radius: 6px; padding: 0 6px; font-size: 12px; margin-right: 8px; }
  .prose .sources, .prose .history { font-size: 14px; color: var(--muted); }
  .prose .sources li, .prose .history li { color: var(--muted); }
  .prose .go-note { font-size: 17px; }
  .prose code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 7px; border-radius: 6px; font-size: .9em; }
  .prose .tw { display: contents; }
  .prose .catalog td:first-child { white-space: nowrap; }
  .prose .catalog .ok { color: var(--success); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
  .prose .catalog a { white-space: nowrap; }
  .btn-neutral { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); text-decoration: none !important; transition: background .2s, border-color .2s; }
  .btn-neutral:hover { background: var(--surface-3); color: var(--text); border-color: var(--muted); }
  .form { display: grid; gap: 12px; max-width: 460px; }
  .form input, .form textarea, .form select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; }
  .form button { padding: 13px 22px; border: 0; border-radius: 999px; background: var(--volt); color: var(--volt-ink); font: inherit; font-weight: 700; cursor: pointer; }
  .form .ok { color: var(--success); } .form .err { color: var(--danger); }
  @media (max-width: 560px) { .prose .catalog td:first-child { white-space: normal; } }

  /* хлебные крошки и строка автора внутри текстового контейнера — без подчёркивания «как у ссылок в тексте» */
  .prose .crumbs a, .prose .meta-row a, .prose .toc a { text-decoration: none; }
  .prose .crumbs a { color: var(--muted); }
  .prose .crumbs a:hover { color: var(--text); }
  .prose .toc a:hover { text-decoration: underline; }
  .prose > .crumbs { padding-top: 14px; margin-bottom: -4px; }
  .meta-row .muted, .meta-row { color: var(--muted); }
