/* Строгая линия Neon Orange (km0xrl.com/research), взята из sandbox-vpp/site/build/base.css без изменений. */

/* Neon Orange — токены дизайн-системы (tokens/*.css, версия v-051026). Шрифты подключаются в <head>. */
:root {
  --font-display: "Onest", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Golos Text", "Onest", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* tokens/colors.css */
:root {
  /* ── Neon orange: the single brand accent ───────────────────────────── */
  --orange-050: #fff4ee;
  --orange-100: #ffe3d4;
  --orange-200: #ffc6a8;
  --orange-300: #ff9f70;
  --orange-400: #ff7433;
  --orange-500: #ff4d00;
  --orange-600: #e63f00;
  --orange-700: #b83100;
  --orange-800: #7d2200;
  --orange-neon: #ff6a1a;
  --orange-hot: #ff2e00;

  /* ── Warm ink neutrals ──────────────────────────────────────────────── */
  --ink-900: #100c0a;
  --ink-800: #1b1512;
  --ink-700: #2e2622;
  --ink-600: #443a35;
  --ink-500: #5b514c;
  --ink-400: #867b75;
  --ink-300: #b3a9a3;
  --ink-200: #d9d1cc;
  --ink-100: #ece6e2;
  --ink-050: #f7f2ef;
  --white: #ffffff;

  /* ── Canvas washes ──────────────────────────────────────────────────── */
  --peach-050: #fffaf7;
  --peach-100: #fff4ef;
  --peach-200: #ffeae0;
  --peach-300: #ffdece;

  /* ── Semantic status ────────────────────────────────────────────────── */
  --success-500: #00c48c;
  --success-050: #e2fbf2;
  --warning-500: #ffc53d;
  --warning-050: #fff6df;
  --danger-500: #e5342b;
  --danger-050: #ffeceb;

  /* ── Text ───────────────────────────────────────────────────────────── */
  --text-strong: var(--ink-900);
  --text-body: var(--ink-700);
  --text-muted: var(--ink-400);
  --text-faint: var(--ink-300);
  --text-accent: var(--orange-500);
  --text-inverse: var(--white);
  --text-inverse-muted: rgba(255, 255, 255, 0.62);

  /* ── Surfaces ───────────────────────────────────────────────────────── */
  --surface-canvas: var(--peach-100);
  --surface-card: var(--white);
  --surface-sunken: var(--peach-200);
  --surface-tint: var(--orange-050);
  --surface-inverse: var(--ink-900);
  --surface-glass: rgba(255, 255, 255, 0.55);
  --surface-glass-strong: rgba(255, 255, 255, 0.82);
  --surface-glass-warm: rgba(255, 233, 222, 0.55);
  --surface-glass-dark: rgba(16, 12, 10, 0.62);

  /* ── Borders ────────────────────────────────────────────────────────── */
  --border-hairline: rgba(16, 12, 10, 0.08);
  --border-soft: rgba(16, 12, 10, 0.14);
  --border-strong: var(--ink-900);
  --border-accent: var(--orange-500);
  --border-glass: rgba(255, 255, 255, 0.7);
  --border-inverse: rgba(255, 255, 255, 0.16);

  /* ── Brand roles ────────────────────────────────────────────────────── */
  --brand-primary: var(--orange-500);
  --brand-primary-hover: var(--orange-600);
  --brand-primary-press: var(--orange-700);
  --brand-on-primary: var(--white);
  --focus-ring: rgba(255, 77, 0, 0.38);

  /* ── Gradients ──────────────────────────────────────────────────────── */
  --grad-canvas: radial-gradient(125% 95% at 10% 0%, #fffdfc 0%, #fff9f6 46%, var(--peach-200) 100%); /* @kind color */
  --grad-canvas-night: radial-gradient(100% 80% at 80% 0%, #2a1a12 0%, var(--ink-900) 60%); /* @kind color */
  --grad-neon: linear-gradient(96deg, var(--orange-hot) 0%, var(--orange-500) 46%, var(--orange-neon) 100%); /* @kind color */
  --grad-neon-soft: linear-gradient(140deg, var(--orange-100) 0%, var(--peach-100) 70%); /* @kind color */
  --grad-glass: linear-gradient(150deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 244, 238, 0.4) 100%); /* @kind color */
  --grad-track: linear-gradient(90deg, var(--orange-200) 0%, var(--orange-500) 62%, var(--orange-hot) 100%); /* @kind color */
  --grad-ghost: linear-gradient(180deg, rgba(255, 77, 0, 0.13) 0%, rgba(255, 77, 0, 0.035) 100%); /* @kind color */
}

/* tokens/typography.css */
:root {
  /* Display — Onest, tight tracking, medium-to-bold weights. Never all-caps below 18px. */
  --text-hero: 132px;
  --text-display-1: 96px;
  --text-display-2: 72px;
  --text-display-3: 56px;
  --text-title-1: 40px;
  --text-title-2: 32px;
  --text-title-3: 24px;
  --text-lead: 20px;
  --text-body-lg: 18px;
  --text-body: 16px;
  --text-body-sm: 15px;
  --text-caption: 13px;
  --text-label: 12px;

  --lh-hero: 0.82; /* @kind font */
  --lh-display: 0.84; /* @kind font */
  --lh-title: 1.06; /* @kind font */
  --lh-lead: 1.28; /* @kind font */
  --lh-body: 1.44; /* @kind font */
  --lh-caption: 1.3; /* @kind font */

  --tracking-hero: -0.045em; /* @kind font */
  --tracking-display: -0.032em; /* @kind font */
  --tracking-title: -0.02em; /* @kind font */
  --tracking-body: -0.008em; /* @kind font */
  --tracking-label: 0.02em; /* @kind font */
  --tracking-caps: 0.09em; /* @kind font */

  --weight-light: 300; /* @kind font */
  --weight-regular: 400; /* @kind font */
  --weight-medium: 500; /* @kind font */
  --weight-semibold: 600; /* @kind font */
  --weight-bold: 700; /* @kind font */
  --weight-black: 800; /* @kind font */

  /* Composed roles */
  --type-hero: var(--weight-medium) var(--text-hero) / var(--lh-hero) var(--font-display);
  --type-display-1: var(--weight-medium) var(--text-display-1) / var(--lh-display) var(--font-display);
  --type-display-2: var(--weight-medium) var(--text-display-2) / var(--lh-display) var(--font-display);
  --type-display-3: var(--weight-medium) var(--text-display-3) / var(--lh-display) var(--font-display);
  --type-title-1: var(--weight-medium) var(--text-title-1) / var(--lh-title) var(--font-display);
  --type-title-2: var(--weight-medium) var(--text-title-2) / var(--lh-title) var(--font-display);
  --type-title-3: var(--weight-medium) var(--text-title-3) / var(--lh-title) var(--font-display);
  --type-lead: var(--weight-regular) var(--text-lead) / var(--lh-lead) var(--font-text);
  --type-body-lg: var(--weight-regular) var(--text-body-lg) / var(--lh-body) var(--font-text);
  --type-body: var(--weight-regular) var(--text-body) / var(--lh-body) var(--font-text);
  --type-body-sm: var(--weight-regular) var(--text-body-sm) / var(--lh-body) var(--font-text);
  --type-caption: var(--weight-regular) var(--text-caption) / var(--lh-caption) var(--font-text);
  --type-label: var(--weight-medium) var(--text-label) / 1.2 var(--font-text);
  --type-mono: var(--weight-medium) var(--text-caption) / 1.3 var(--font-mono);
}

/* tokens/spacing.css */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --space-13: 120px;
  --space-14: 160px;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 780px;
  --gutter-desktop: 64px;
  --gutter-mobile: 20px;
  --section-y: 120px;
  --section-y-tight: 80px;
  --grid-columns: 12; /* @kind other */
  --grid-gap: 24px;

  /* Control sizing (exact, do not snap to a 4px grid) */
  --control-h-sm: 36px;
  --control-h-md: 46px;
  --control-h-lg: 56px;
  --control-pad-sm: 0 16px; /* @kind spacing */
  --control-pad-md: 0 22px; /* @kind spacing */
  --control-pad-lg: 0 30px; /* @kind spacing */
  --card-pad: 28px;
  --card-pad-lg: 36px;
}

/* tokens/radii.css */
:root {
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-3xl: 48px;
  --radius-pill: 999px;
  --radius-squircle: 30% / 30%;

  /* Roles */
  --radius-control: var(--radius-sm);
  --radius-control-pill: var(--radius-pill);
  --radius-card: var(--radius-xl);
  --radius-card-lg: var(--radius-2xl);
  --radius-panel: var(--radius-3xl);
  --radius-media: var(--radius-lg);
  --radius-tag: var(--radius-pill);

  --border-width-hairline: 1px;
  --border-width-strong: 1.5px;
  --border-width-focus: 2px;
}

/* tokens/shadows.css */
:root {
  /* Ambient, warm-tinted, always soft and low-contrast */
  --shadow-xs: 0 1px 2px rgba(16, 12, 10, 0.06);
  --shadow-sm: 0 2px 8px rgba(16, 12, 10, 0.06);
  --shadow-md: 0 10px 24px -8px rgba(16, 12, 10, 0.12);
  --shadow-lg: 0 24px 56px -20px rgba(16, 12, 10, 0.18);
  --shadow-xl: 0 40px 90px -32px rgba(16, 12, 10, 0.24);

  /* Glass: soft drop + inner top highlight */
  --shadow-glass: 0 18px 48px -22px rgba(16, 12, 10, 0.18);
  --inset-glass: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --inset-hairline: inset 0 0 0 1px rgba(255, 255, 255, 0.55);

  /* Neon: only on brand-primary surfaces and focus */
  --glow-neon-sm: 0 4px 14px rgba(255, 77, 0, 0.28);
  --glow-neon: 0 10px 32px rgba(255, 77, 0, 0.34);
  --glow-neon-lg: 0 24px 64px rgba(255, 77, 0, 0.4);
  --glow-focus: 0 0 0 4px var(--focus-ring);

  /* Blur */
  --blur-sm: blur(8px); /* @kind other */
  --blur-md: blur(18px); /* @kind other */
  --blur-lg: blur(32px); /* @kind other */
  --blur-canvas: blur(80px); /* @kind other */

  /* Protection gradients for text over 3D imagery */
  --scrim-bottom: linear-gradient(180deg, rgba(16, 12, 10, 0) 0%, rgba(16, 12, 10, 0.55) 100%); /* @kind color */
  --scrim-light: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 246, 241, 0.92) 78%); /* @kind color */
}

/* tokens/motion.css */
:root {
  --duration-instant: 90ms; /* @kind other */
  --duration-fast: 140ms; /* @kind other */
  --duration-base: 220ms; /* @kind other */
  --duration-slow: 340ms; /* @kind other */
  --duration-reveal: 520ms; /* @kind other */

  --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
  --ease-in-out-soft: cubic-bezier(0.45, 0.05, 0.55, 0.95); /* @kind other */
  --ease-spring: cubic-bezier(0.34, 1.42, 0.64, 1); /* @kind other */
  --ease-exit: cubic-bezier(0.4, 0, 1, 1); /* @kind other */

  --transition-control: background var(--duration-fast) var(--ease-out-soft),
    color var(--duration-fast) var(--ease-out-soft), box-shadow var(--duration-base) var(--ease-out-soft),
    transform var(--duration-fast) var(--ease-out-soft), border-color var(--duration-fast) var(--ease-out-soft); /* @kind other */
  --transition-surface: transform var(--duration-base) var(--ease-out-soft),
    box-shadow var(--duration-base) var(--ease-out-soft); /* @kind other */

  --press-scale: 0.985; /* @kind other */
  --hover-lift: -2px; /* @kind other */
}

/* tokens/strict.css — строгая линия */
/* Строгая линия — продуктовые интерфейсы: сайты сервисов, SaaS, веб-приложения, мобильные.
   Ровные поверхности, волосяные линии вместо теней, без градиентов и свечения.
   Тема переключается атрибутом data-theme="dark" на любом контейнере; плотность — data-density="compact". */
:root, [data-theme="light"] {
  --st-bg: #fbf9f7;
  --st-surface: #ffffff;
  --st-surface-2: #f5f1ee;
  --st-surface-3: #ece6e2;
  --st-inverse: #100c0a;
  --st-on-inverse: #ffffff;
  --st-on-inverse-2: rgba(255, 255, 255, 0.68);
  --st-line: rgba(16, 12, 10, 0.09);
  --st-line-2: rgba(16, 12, 10, 0.16);
  --st-line-3: rgba(16, 12, 10, 0.32);
  --st-text: #100c0a;
  --st-text-2: #443a35;
  --st-text-3: #756a64;
  --st-accent: #ff4d00;
  --st-accent-hover: #e63f00;
  --st-accent-press: #b83100;
  --st-accent-text: #cc3900;
  --st-accent-tint: #fff1ea;
  --st-accent-line: rgba(255, 77, 0, 0.34);
  --st-on-accent: #ffffff;
  --st-ghost: rgba(255, 77, 0, 0.06);
  --st-ok: #0a7f5a;
  --st-ok-bg: #e4f6ee;
  --st-warn: #8a5a00;
  --st-warn-bg: #fff4d9;
  --st-err: #c4261d;
  --st-err-bg: #fdecea;
  --st-overlay: rgba(16, 12, 10, 0.32);
  --st-glass: rgba(251, 249, 247, 0.8);
  --st-shadow-float: 0 1px 2px rgba(16, 12, 10, 0.05), 0 16px 40px -16px rgba(16, 12, 10, 0.22);
  --st-ring: 0 0 0 3px rgba(255, 77, 0, 0.28);
  --st-r-xs: 6px;
  --st-r-sm: 8px;
  --st-r-md: 10px;
  --st-r-lg: 14px;
  --st-r-xl: 20px;
  --st-r-pill: 999px;
  --st-row-h: 44px;
  --st-row-pad: 12px;
  color-scheme: light;
}
[data-theme="dark"] {
  --st-bg: #0d0a08;
  --st-surface: #161210;
  --st-surface-2: #1f1a17;
  --st-surface-3: #2a2420;
  --st-inverse: #f7f2ef;
  --st-on-inverse: #100c0a;
  --st-on-inverse-2: rgba(16, 12, 10, 0.68);
  --st-line: rgba(255, 240, 230, 0.08);
  --st-line-2: rgba(255, 240, 230, 0.15);
  --st-line-3: rgba(255, 240, 230, 0.34);
  --st-text: #f7f2ef;
  --st-text-2: #cfc6c0;
  --st-text-3: #9a8f89;
  --st-accent: #ff5a14;
  --st-accent-hover: #ff7433;
  --st-accent-press: #e63f00;
  --st-accent-text: #ff8247;
  --st-accent-tint: rgba(255, 90, 20, 0.13);
  --st-accent-line: rgba(255, 106, 40, 0.42);
  --st-on-accent: #ffffff;
  --st-ghost: rgba(255, 90, 20, 0.08);
  --st-ok: #3ad29f;
  --st-ok-bg: rgba(58, 210, 159, 0.12);
  --st-warn: #ffc53d;
  --st-warn-bg: rgba(255, 197, 61, 0.12);
  --st-err: #ff6b5e;
  --st-err-bg: rgba(255, 107, 94, 0.13);
  --st-overlay: rgba(0, 0, 0, 0.56);
  --st-glass: rgba(13, 10, 8, 0.78);
  --st-shadow-float: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 48px -16px rgba(0, 0, 0, 0.7);
  --st-ring: 0 0 0 3px rgba(255, 106, 40, 0.36);
  color-scheme: dark;
}
[data-density="compact"] {
  --st-row-h: 34px;
  --st-row-pad: 8px;
}

/* km0xrl.com/research — строгая линия Neon Orange (templates/strict-catalog, templates/strict-report).
   Ровный фон --st-bg, волосяные линии вместо теней, тень только у плавающих слоёв, радиусы 10/14/20.
   Тема — по настройке системы; секции с data-theme="dark" тёмные всегда. */

/* Тёмная тема по системе: те же значения, что у [data-theme="dark"] в tokens/strict.css */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --st-bg: #0d0a08; --st-surface: #161210; --st-surface-2: #1f1a17; --st-surface-3: #2a2420;
    --st-inverse: #f7f2ef; --st-on-inverse: #100c0a; --st-on-inverse-2: rgba(16, 12, 10, 0.68);
    --st-line: rgba(255, 240, 230, 0.08); --st-line-2: rgba(255, 240, 230, 0.15); --st-line-3: rgba(255, 240, 230, 0.34);
    --st-text: #f7f2ef; --st-text-2: #cfc6c0; --st-text-3: #9a8f89;
    --st-accent: #ff5a14; --st-accent-hover: #ff7433; --st-accent-press: #e63f00; --st-accent-text: #ff8247;
    --st-accent-tint: rgba(255, 90, 20, 0.13); --st-accent-line: rgba(255, 106, 40, 0.42);
    --st-ok: #3ad29f; --st-ok-bg: rgba(58, 210, 159, 0.12); --st-warn: #ffc53d; --st-warn-bg: rgba(255, 197, 61, 0.12);
    --st-err: #ff6b5e; --st-err-bg: rgba(255, 107, 94, 0.13); --st-overlay: rgba(0, 0, 0, 0.56);
    --st-shadow-float: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 48px -16px rgba(0, 0, 0, 0.7);
    --st-ring: 0 0 0 3px rgba(255, 106, 40, 0.36);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px }
body {
  margin: 0; min-height: 100vh; background: var(--st-bg); color: var(--st-text-2);
  font: 400 17px/1.6 var(--font-text); letter-spacing: -.006em; text-wrap: pretty;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; color: var(--st-text); font-family: var(--font-display); font-weight: 500; text-wrap: balance }
p { margin: 0 }
img { display: block; max-width: 100% }
a { color: inherit; text-decoration: none }
a:hover { color: var(--st-accent-text) }
:focus-visible { outline: none; box-shadow: var(--st-ring); border-radius: 8px }
::selection { background: var(--st-accent-tint); color: var(--st-text) }
button, input, textarea { font: inherit; letter-spacing: inherit }
[hidden] { display: none !important }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }
[data-theme] { background: var(--st-bg); color: var(--st-text-2) }
[data-sec] { scroll-margin-top: 84px }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px) }
.k { font: 500 12px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase }
.k-accent { color: var(--st-accent-text) }
.k-muted { color: var(--st-text-3) }
.k-strong { color: var(--st-text) }
.kline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px }
.mono { font: 400 12px/1.3 var(--font-mono); letter-spacing: .04em; color: var(--st-text-3) }
.tnum { font-variant-numeric: tabular-nums }
.ic { width: 16px; height: 16px; flex: none }

/* ── Капсула навигации ─────────────────────────────────────────────── */
.cap-wrap { position: sticky; top: 0; z-index: 30; display: flex; justify-content: center; padding: 12px 16px 0; pointer-events: none }
.cap-box { position: relative; width: min(100%, 840px); pointer-events: auto }
.cap-overlay { position: fixed; inset: 0; z-index: 29; background: var(--st-overlay); pointer-events: auto }
.capsule {
  position: relative; z-index: 31; display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 6px;
  border-radius: 16px; background: var(--st-inverse); color: var(--st-on-inverse); overflow: hidden; box-shadow: var(--st-shadow-float);
}
.capsule a, .capsule button { color: var(--st-on-inverse) }
.cap-home { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 11px; white-space: nowrap }
.cap-home:hover, .cap-icon:hover { background: rgba(127, 127, 127, .18); color: var(--st-on-inverse) }
.cap-dot { flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--st-accent) }
.cap-label { font: 500 12px/1 var(--font-mono); letter-spacing: .06em }
.cap-sep { flex: none; font: 400 13px/1 var(--font-mono); color: var(--st-on-inverse-2) }
.cap-crumb { flex: none; padding: 0 8px; font: 500 14px/1 var(--font-text); white-space: nowrap }
.cap-toc {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 0;
  border-radius: 11px; background: rgba(127, 127, 127, .16); font: 500 14px/1 var(--font-text); cursor: pointer; text-align: left;
}
.cap-toc:hover { background: rgba(127, 127, 127, .26) }
.cap-n { flex: none; font: 500 12px/1 var(--font-mono); color: var(--st-accent) }
.cap-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.cap-meta { margin-left: auto; flex: none; font: 400 12px/1 var(--font-mono); color: var(--st-on-inverse-2) }
.cap-chev { flex: none; width: 12px; height: 12px; transition: transform .15s }
.cap-toc[aria-expanded="true"] .cap-chev { transform: rotate(180deg) }
.cap-icon { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 0; border-radius: 11px; background: transparent; cursor: pointer }
.cap-key { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .4); font: 500 11px/1 var(--font-mono); color: var(--st-on-inverse-2) }
.capsule .cap-cta { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 11px; background: var(--st-on-inverse); color: var(--st-inverse); font: 500 13px/1 var(--font-text); white-space: nowrap }
.capsule .cap-cta:hover { color: var(--st-inverse); opacity: .9 }
.cap-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--st-accent) }

.toc-panel {
  position: absolute; z-index: 31; left: 0; right: 0; top: 60px; max-height: min(72vh, 640px); overflow: auto; border-radius: 16px;
  background: var(--st-surface); border: 1px solid var(--st-line-2); box-shadow: var(--st-shadow-float); color: var(--st-text-2);
}
.toc-search { position: sticky; top: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--st-surface); border-bottom: 1px solid var(--st-line); color: var(--st-text-3) }
.toc-search input { flex: 1; min-width: 0; height: 32px; border: 0; outline: 0; background: transparent; font: 400 16px/1 var(--font-text); color: var(--st-text) }
.toc-search input:focus-visible { box-shadow: none }
.toc-list { padding: 8px }
.toc-group { display: block; padding: 10px 12px 6px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; color: var(--st-text-3) }
.toc-item { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 6px 12px; border-radius: 10px; color: var(--st-text) }
.toc-item:hover, .toc-item[data-cur="1"] { background: var(--st-surface-2); color: var(--st-text) }
.toc-item .n { flex: none; width: 22px; font: 500 12px/1 var(--font-mono); color: var(--st-text-2) }
.toc-item[data-cur="1"] .n { color: var(--st-accent-text) }
.toc-item .t { flex: 1; min-width: 0; font: 500 15px/1.3 var(--font-text) }
.toc-item .m { flex: none; font: 400 12px/1 var(--font-mono); color: var(--st-text-3) }
.toc-item--sm { min-height: 40px; color: var(--st-text-2) }
.toc-item--sm .n { color: var(--st-text-3); font-weight: 400 }
.toc-item--sm .t { font: 400 14px/1.35 var(--font-text) }
.toc-empty { display: block; padding: 12px; font-size: 14px; color: var(--st-text-3) }

/* ── Кнопки ────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border: 0; border-radius: 12px; font: 500 16px/1 var(--font-text); white-space: nowrap; cursor: pointer; transition: opacity .15s, background .15s, border-color .15s }
.btn small { font: 400 13px/1 var(--font-mono); letter-spacing: .02em }
.btn--dark { background: var(--st-inverse); color: var(--st-on-inverse) }
.btn--dark:hover { color: var(--st-on-inverse); opacity: .88 }
.btn--dark small { color: var(--st-on-inverse-2) }
.btn--line { border: 1px solid var(--st-line-2); background: var(--st-surface); color: var(--st-text) }
.btn--line:hover { color: var(--st-text); border-color: var(--st-line-3) }
.btn--line small { color: var(--st-text-3) }
.btn--sm { height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px }
.arrow { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--st-surface-2); color: var(--st-text); transition: background .15s, color .15s }
.arrow svg { width: 16px; height: 16px }
.arrow--dark { width: 48px; height: 48px; border-radius: 14px; background: var(--st-inverse); color: var(--st-on-inverse) }
.arrow--sm { width: 40px; height: 40px; border-radius: 11px }
a:hover .arrow, a:hover .arrow--dark { background: var(--st-accent); color: var(--st-on-accent) }
a:hover .card-t { color: var(--st-accent-text) }

/* ── 3D-визуал в слоте ─────────────────────────────────────────────── */
.slot { position: relative; overflow: hidden; background: var(--st-surface-3) }
.slot img { position: absolute; left: 50%; top: 50%; width: auto; height: 84%; max-width: 84%; object-fit: contain; transform: translate(-50%, -50%) }
.slot img.ph { left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: none }
.thesis-card .slot img.ph { height: 100% }
.badge { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--st-accent); color: var(--st-on-accent); font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase }

/* ── Шапка каталога ────────────────────────────────────────────────── */
.cat-head { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 48px) }
.cat-head-row { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px }
.h-hero { flex: 1 1 560px; font: 500 clamp(48px, 7vw, 96px)/.92 var(--font-display); letter-spacing: -.045em }
.cat-aside { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px }
.cat-aside p { font: 400 18px/1.5 var(--font-text) }
.pres { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 6px; border-radius: 10px; border: 1px solid var(--st-line-2); background: var(--st-surface); color: var(--st-text); font: 500 14px/1 var(--font-text) }
.pres:hover { color: var(--st-text); border-color: var(--st-line-3) }
.pres-play { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; background: var(--st-accent); color: var(--st-on-accent) }
.pres .mono { margin-left: 4px }

/* фильтры */
.filterbar { position: relative; background: var(--st-bg); border-bottom: 1px solid var(--st-line) }
.filterbar .wrap { padding-block: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px }
.search { flex: 0 1 320px; min-width: 200px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--st-surface); box-shadow: inset 0 0 0 1px var(--st-line-2); color: var(--st-text-3) }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--st-accent), var(--st-ring) }
.search input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font: 400 15px/1 var(--font-text); color: var(--st-text) }
.search input::placeholder { color: var(--st-text-3) }
.search input:focus-visible { box-shadow: none }
.search input::-webkit-search-cancel-button, .toc-search input::-webkit-search-cancel-button { display: none }
.chips { flex: 1 1 400px; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding-right: 32px }
.chips::-webkit-scrollbar { display: none }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--st-surface); color: var(--st-text); box-shadow: inset 0 0 0 1px var(--st-line-2); font: 500 14px/1 var(--font-text); white-space: nowrap; cursor: pointer }
.chip:hover { box-shadow: inset 0 0 0 1px var(--st-line-3) }
.chip small { font: 400 11px/1 var(--font-mono); color: var(--st-text-3) }
.chip[aria-pressed="true"] { background: var(--st-inverse); color: var(--st-on-inverse); box-shadow: none }
.chip[aria-pressed="true"] small { color: var(--st-on-inverse-2) }
.seg { flex: none; display: flex; padding: 3px; border-radius: 10px; background: var(--st-surface-2) }
.seg button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--st-text-2); cursor: pointer }
.seg button[aria-pressed="true"] { background: var(--st-surface); color: var(--st-text); box-shadow: 0 0 0 1px var(--st-line-2) }
.seg svg { width: 14px; height: 14px }

.results { padding-block: clamp(28px, 4vw, 48px) clamp(64px, 8vw, 112px) }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px }
.linkbtn { border: 0; background: none; padding: 0; font: 500 14px/1 var(--font-text); color: var(--st-accent-text); cursor: pointer }

/* главное исследование */
.feat { display: flex; flex-wrap: wrap; margin-bottom: 24px; border-radius: 20px; overflow: hidden; background: var(--st-surface); border: 1px solid var(--st-line-2); color: var(--st-text-2) }
.feat:hover { border-color: var(--st-line-3); color: var(--st-text-2) }
.feat .slot { flex: 1 1 480px; min-width: 0; min-height: clamp(260px, 32vw, 440px) }
.feat-body { flex: 1 1 400px; min-width: 0; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column }
.feat-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px }
.feat .card-t { display: block; margin-top: 20px; font: 500 clamp(32px, 3.6vw, 48px)/1 var(--font-display); letter-spacing: -.035em; color: var(--st-text); text-wrap: balance; transition: color .15s }
.feat-desc { display: block; margin-top: 16px; max-width: 30em; font-size: 16px; line-height: 1.5 }
.feat-nums { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 1px; background: var(--st-line); border-top: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line) }
.feat-nums > span { flex: 1 1 90px; padding: 14px 0 14px 16px; background: var(--st-surface) }
.feat-nums > span:first-child { padding-left: 0 }
.feat-nums b { display: block; font: 500 28px/1 var(--font-display); letter-spacing: -.03em; color: var(--st-text) }
.feat-nums > span:first-child b { color: var(--st-accent) }
.feat-nums small { display: block; margin-top: 6px; font-size: 13px }
.feat-foot { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px }

/* сетка и список */
.cards { display: flex; flex-wrap: wrap; gap: 24px }
.card { flex: 1 1 340px; min-width: 0; max-width: 100%; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--st-surface); border: 1px solid var(--st-line-2); color: var(--st-text-2) }
.card:hover { border-color: var(--st-line-3); color: var(--st-text-2) }
.card .slot { aspect-ratio: 16 / 10 }
.card-body { flex: 1; padding: 24px; display: flex; flex-direction: column }
.card-body .k { font-size: 11px }
.card .card-t { display: block; margin-top: 16px; font: 500 26px/1.08 var(--font-display); letter-spacing: -.025em; color: var(--st-text); text-wrap: balance; transition: color .15s }
.card-desc { display: block; margin-top: 12px; font-size: 15px; line-height: 1.5 }
.card-foot { margin-top: auto; padding-top: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px }
.card-foot > span { display: flex; flex-direction: column; gap: 8px }
.card-foot .date { font: 500 12px/1.2 var(--font-mono); letter-spacing: .04em; color: var(--st-accent-text) }
.list { border-top: 2px solid var(--st-text) }
.lrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--st-line); color: var(--st-text-2) }
.lrow:hover { color: var(--st-text-2) }
.lrow .n { flex: 0 0 40px; font: 500 13px/1 var(--font-mono); color: var(--st-accent-text) }
.lrow-main { flex: 1 1 380px; min-width: 0 }
.lrow .card-t { display: block; font: 500 21px/1.2 var(--font-display); letter-spacing: -.018em; color: var(--st-text); transition: color .15s }
.lrow-desc { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45 }
.lrow-topic { flex: 0 0 150px; font-size: 14px; color: var(--st-text-3) }
.lrow-date { flex: 0 0 170px; font: 400 12px/1.4 var(--font-mono); color: var(--st-text-3) }
[data-view="list"] .feat, [data-view="list"] .cards { display: none }
[data-view="grid"] .list { display: none }
.empty { padding: 64px 24px; border-radius: 20px; border: 1px dashed var(--st-line-3); text-align: center }
.empty b { display: block; font: 500 24px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--st-text) }
.empty span { display: block; margin-top: 8px; font-size: 15px }
.empty .btn { margin-top: 20px }


/* ── Страница исследования: герой ─────────────────────────────────── */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 64px); align-items: stretch }
.hero-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column }
.hero h1 { margin-top: 24px; font: 500 clamp(44px, 6.6vw, 92px)/.94 var(--font-display); letter-spacing: -.045em }
.hero h1.h1--long { font-size: clamp(38px, 5.2vw, 76px) }
.hero-lead { margin-top: 28px; max-width: 34em; font: 400 clamp(18px, 1.5vw, 21px)/1.5 var(--font-text); color: var(--st-text-2) }
.hero-nums { margin-top: 36px; border-top: 1px solid var(--st-line-2); display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 32px }
.hero-num { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--st-line) }
.hero-num b { min-width: clamp(100px, 12vw, 150px); font: 500 clamp(36px, 4vw, 48px)/1 var(--font-display); letter-spacing: -.04em; color: var(--st-text); font-variant-numeric: tabular-nums; white-space: nowrap }
.hero-num:first-child b { color: var(--st-accent) }
.hero-num span { font-size: 16px; line-height: 1.4 }
.hero .btns { margin-top: 32px }
.thesis-card { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--st-line-2) }
.thesis-card .slot { height: clamp(180px, 18vw, 240px); background: var(--st-surface-2) }
.thesis-card .slot img { height: 88% }
.thesis-body { flex: 1; display: flex; flex-direction: column; padding: 24px 28px 28px }
.thesis-top { display: flex; justify-content: space-between }
.thesis-list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column }
.thesis-list li { display: flex; gap: 20px; padding: 14px 0; border-top: 1px solid var(--st-line-2) }
.thesis-list li:last-child { border-bottom: 1px solid var(--st-line-2) }
.thesis-list .k { flex: none; width: 22px; padding-top: 4px; color: var(--st-accent) }
.thesis-list span:last-child { font: 500 17px/1.35 var(--font-display); letter-spacing: -.01em; color: var(--st-text) }
.thesis-foot { margin-top: auto; padding-top: 20px }

/* разделы */
.sec { padding-top: clamp(64px, 8vw, 112px) }
.sec-k { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--st-line-2) }
.sec h2, .dark-band h2, .h2 { margin-top: 20px; font: 500 clamp(34px, 4.4vw, 56px)/1 var(--font-display); letter-spacing: -.035em; text-wrap: balance }
.sec-row { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px }
.sec-row h2 { margin-top: 0 }
.sec-lead { margin-top: 16px; max-width: 36em; font-size: 16px; line-height: 1.55 }

/* как сделан отчёт */
.method { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; padding: 28px; border-radius: 20px; background: var(--st-surface); border: 1px solid var(--st-line) }
.method > div:first-child { flex: 1 1 380px; min-width: 0 }
.method h2 { margin-top: 14px; font: 500 28px/1.1 var(--font-display); letter-spacing: -.025em }
.method p { margin-top: 12px; max-width: 36em; font-size: 16px; line-height: 1.55 }
.pills { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; font: 500 12px/1 var(--font-text); white-space: nowrap }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor }
.pill--ok { background: var(--st-ok-bg); color: var(--st-ok) }
.pill--warn { background: var(--st-warn-bg); color: var(--st-warn) }
.pill--err { background: var(--st-err-bg); color: var(--st-err) }
.pill--plain { background: var(--st-surface-2); color: var(--st-text-2) }
.pill--plain::before { display: none }
.bento { display: flex; flex-wrap: wrap; gap: 1px; background: var(--st-line-2); border: 1px solid var(--st-line-2); border-radius: 20px; overflow: hidden }
.bento > * { background: var(--st-surface) }
.bento--sm { flex: 1 1 440px; min-width: 0; background: var(--st-line); border-color: var(--st-line); border-radius: 14px }
.cell { flex: 1 1 110px; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 8px }
.cell .k { font-size: 11px; letter-spacing: .06em; color: var(--st-text-3) }
.cell b { font: 500 28px/1 var(--font-display); letter-spacing: -.03em; color: var(--st-text); font-variant-numeric: tabular-nums; white-space: nowrap }
.cell--hl b { color: var(--st-accent) }
.cell small { font-size: 13px; line-height: 1.35 }

/* резюме с полями */
.summary { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start }
.summary-main { flex: 1 1 560px; min-width: 0; max-width: 44em }
.summary-lead { font: 400 21px/1.5 var(--font-text); color: var(--st-text) }
.summary h3 { margin-top: 48px; font: 500 22px/1.2 var(--font-display); letter-spacing: -.02em }
.findings { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 28px }
.findings li { display: flex; gap: 20px }
.findings .k { flex: none; width: 28px; padding-top: 5px; font-size: 13px; color: var(--st-accent-text) }
.findings strong { font-weight: 600; color: var(--st-text) }
.margin { flex: 0 1 300px; min-width: 0; position: sticky; top: 96px; display: flex; flex-direction: column; border-top: 2px solid var(--st-text) }
.margin > .k { padding: 14px 0 }
.margin > div { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid var(--st-line) }
.margin b { font: 500 36px/1 var(--font-display); letter-spacing: -.035em; color: var(--st-text); font-variant-numeric: tabular-nums }
.margin span { font-size: 14px; line-height: 1.45 }

/* картина в цифрах */
.bento-big { flex: 1 1 100%; min-width: 0; padding: clamp(24px, 3vw, 36px) }
.bento-big h3 { margin-top: 12px; font: 500 24px/1.2 var(--font-display); letter-spacing: -.02em }
.bento-big .note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--st-line); font-size: 14px; line-height: 1.45; color: var(--st-text-3) }
.bars { margin-top: 28px; display: flex; flex-direction: column; gap: 14px }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px }
.bar-l { flex: 0 0 260px; min-width: 0; font-size: 15px; line-height: 1.35; color: var(--st-text) }
.bar-t { flex: 1 1 200px; position: relative; height: 10px; border-radius: 3px; background: var(--st-surface-3) }
.bar-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--st-text-3) }
.bar--hl .bar-t i { background: var(--st-accent) }
.bar-v { flex: 0 0 120px; font: 500 14px/1 var(--font-mono); color: var(--st-text); text-align: right; white-space: nowrap }
.bar--hl .bar-v { color: var(--st-accent-text) }
.cell-big { flex: 1 1 220px; min-width: 0; padding: 20px 22px }
.cell-big b { display: block; font: 500 44px/1 var(--font-display); letter-spacing: -.04em; color: var(--st-text); font-variant-numeric: tabular-nums }
.cell-big:first-child b { color: var(--st-accent) }
.cell-big span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4 }

/* тренды */
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--st-text-3) }
.legend > span { display: inline-flex; align-items: center; gap: 8px }
.sig { flex: none; display: flex; gap: 2px }
.sig i { width: 14px; height: 5px; border-radius: 1px; background: var(--st-surface-3) }
.legend .sig i { width: 10px; height: 4px }
.sig[data-lvl="3"] i { background: var(--st-accent) }
.sig[data-lvl="2"] i:nth-child(-n+2) { background: var(--st-text) }
.sig[data-lvl="1"] i:first-child { background: var(--st-text-3) }
.trends { margin-top: 32px; border-top: 1px solid var(--st-line-2) }
.trend { display: flex; align-items: center; gap: 20px; min-height: 60px; padding: 14px 0; border-bottom: 1px solid var(--st-line); color: var(--st-text) }
.trend:target { background: var(--st-surface-2); box-shadow: -12px 0 0 var(--st-surface-2), 12px 0 0 var(--st-surface-2) }
.trend .n { flex: none; width: 28px; font: 500 13px/1 var(--font-mono); color: var(--st-text-3) }
.trend-main { flex: 1; min-width: 0 }
.trend-t { display: block; font: 500 17px/1.3 var(--font-display); letter-spacing: -.012em; color: var(--st-text) }
.trend-f { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--st-text-3) }
.trend-f b { font-weight: 500; color: var(--st-text-2) }

/* светофор */
.lights { margin-top: 40px }
.lights > div { flex: 1 1 280px; min-width: 0; padding: 24px }
.lights ul { margin: 16px 0 0; padding: 0; list-style: none }
.lights li { padding: 10px 0; border-top: 1px solid var(--st-line); font-size: 15px; line-height: 1.4; color: var(--st-text) }

/* тёмная секция во всю ширину */
.dark-band { margin-top: clamp(64px, 8vw, 112px) }
.dark-band > .wrap { padding-block: clamp(56px, 7vw, 96px) }
.dark-band .sec-k .k-accent { color: var(--st-accent) }
.pairs { margin-top: 40px }
.pairs > div { flex: 1 1 380px; min-width: 0; padding: 24px }
.pairs h3 { font: 500 19px/1.25 var(--font-display); letter-spacing: -.015em }
.pairs p { margin-top: 10px; font-size: 15px; line-height: 1.55 }

/* прогноз и таблицы */
.table { margin-top: 36px; border-top: 2px solid var(--st-text) }
.trow { display: grid; grid-template-columns: 40px minmax(0, 1fr) 220px; gap: 8px 20px; padding: 18px 0; border-bottom: 1px solid var(--st-line); font-size: 15px; line-height: 1.5 }
.trow .n { font: 400 13px/1.6 var(--font-mono); color: var(--st-text-3) }
.trow b { display: block; font-weight: 500; color: var(--st-text) }
.trow p { margin-top: 4px }
.trow .pills { margin-top: 0; align-content: flex-start }
.thead { padding: 14px 0; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; color: var(--st-text-3) }

/* действия */
.acts { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px }
.act { flex: 1 1 260px; min-width: 0; padding: 24px; border-radius: 20px; background: var(--st-surface); border: 1px solid var(--st-line-2) }
.act ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px }
.act li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--st-text) }
.act li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--st-accent) }

/* содержание полной версии */
.toc-grid { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 32px 48px }
.toc-part { flex: 1 1 330px; min-width: 0 }
.toc-part h3 { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--st-text); font: 500 18px/1.25 var(--font-display); letter-spacing: -.012em }
.toc-part ol { margin: 0; padding: 0; list-style: none }
.toc-part li > a, .toc-part li > span { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--st-line); font-size: 15px; line-height: 1.4; color: var(--st-text-2) }
.toc-part li > a:hover { color: var(--st-accent-text) }
.toc-part em { font: normal 400 12px/1.4 var(--font-mono); color: var(--st-text-3); white-space: nowrap }

/* файлы */
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 18px 0; border-bottom: 1px solid var(--st-line); color: var(--st-text-2) }
.frow:hover { color: var(--st-text-2) }
.ftype { flex: 0 0 56px; display: inline-flex; align-items: center; justify-content: center; height: 30px; border-radius: 8px; background: var(--st-inverse); color: var(--st-on-inverse); font: 500 11px/1 var(--font-mono); letter-spacing: .04em }
.ftype--web { background: var(--st-accent-tint); color: var(--st-accent-text) }
.frow-main { flex: 1 1 300px; min-width: 0 }
.frow .card-t { display: block; font: 500 19px/1.25 var(--font-display); letter-spacing: -.014em; color: var(--st-text); transition: color .15s }
.frow-sub { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--st-text-3) }
.frow .mono { flex: 0 0 auto }

/* следующее исследование */
.next { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin: clamp(64px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); padding: 28px; border-radius: 20px; background: var(--st-inverse); color: var(--st-on-inverse) }
.next:hover { color: var(--st-on-inverse); opacity: .94 }
.next-main { flex: 1 1 360px; min-width: 0 }
.next .k { color: var(--st-on-inverse-2) }
.next .card-t { display: block; margin-top: 12px; font: 500 clamp(24px, 2.6vw, 32px)/1.1 var(--font-display); letter-spacing: -.025em; color: var(--st-on-inverse) }
.next .arrow { width: 52px; height: 52px; border-radius: 14px; background: var(--st-accent); color: var(--st-on-accent) }
a.next:hover .card-t { color: var(--st-on-inverse) }

/* футер */
.footer { border-top: 1px solid var(--st-line) }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px 32px; font-size: 14px; color: var(--st-text-3) }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px }
.footer a { color: var(--st-text-2) }

@media (max-width: 760px) {
  [data-m-hide] { display: none !important }
  .cap-wrap { position: fixed; top: auto; bottom: 0; left: 0; right: 0; padding: 0 10px 10px }
  .toc-panel { top: auto; bottom: 60px }
  body { padding-bottom: 76px }
  .trow { grid-template-columns: 28px minmax(0, 1fr) }
  .trow > .pills { grid-column: 2 }
  .thead { display: none }
  .bar-l { flex-basis: 100% }
  .bar-v { flex-basis: 80px }
  .hero-nums { column-gap: 16px }
  .summary-lead { font-size: 18px }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { transition-duration: .01ms !important }
}
@media print {
  .cap-wrap, .filterbar { display: none !important }
  body { padding-bottom: 0 }
}

/* методика: раскрывающийся блок под карточкой */
.method-more { flex: 1 1 100%; padding-top: 16px; border-top: 1px solid var(--st-line) }
.method-more summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font: 500 15px/1.3 var(--font-text); color: var(--st-text) }
.method-more summary::-webkit-details-marker { display: none }
.method-more summary::after { content: "+"; font: 400 18px/1 var(--font-mono); color: var(--st-text-3) }
.method-more[open] summary::after { content: "−" }
.method-more ol { margin: 16px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; max-width: 52em; font-size: 15px; line-height: 1.5 }
.method-more ol li::marker { font: 500 12px var(--font-mono); color: var(--st-accent-text) }
.method-more p { max-width: 52em; font-size: 15px }

.facts { margin-top: 12px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 16px; font-size: 15px; line-height: 1.5 }
.facts dt { font: 500 11px/22px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--st-text-3) }
.facts dd { margin: 0; color: var(--st-text-2) }
.facts ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px }
.facts li { position: relative; padding-left: 16px }
.facts li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--st-accent) }
.facts .code { font: 500 12px/1 var(--font-mono); color: var(--st-text-3) }
.trow .meta { display: block; margin-top: 2px; font-size: 14px; color: var(--st-text-3) }
.grp { margin-top: 56px }
.grp + .table { margin-top: 16px }
.lnk { color: var(--st-accent-text); text-decoration: underline; text-underline-offset: 3px }
.map-head { padding-block: clamp(32px, 5vw, 64px) 0 }
.map-head h1 { margin-top: 20px }
.map-head .btns { margin-top: 28px }
.sub { margin-top: 12px; font: 500 clamp(19px, 1.9vw, 24px)/1.25 var(--font-display); letter-spacing: -.015em; color: var(--st-text-3); text-wrap: balance }
.map-nums { margin-top: 40px }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; gap: 0 }
  .facts dd { margin-bottom: 10px }
}

/* Схема карты (mind map): центр — исследование, ветви — разделы, листья — строки разделов.
   Линии — рамки псевдоэлементов, без скрипта. Узко — дерево по порядку разделов (order),
   от 1140px — ветви по сторонам: слева что делаем, справа на чём (direction: rtl зеркалит левую сторону). */
.mm-cap { margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--st-line-2) }
.mm {
  --mm-trunk: color-mix(in srgb, var(--st-accent) 45%, var(--st-bg));
  --mm-twig: color-mix(in srgb, var(--st-text) 20%, var(--st-bg));
  margin-top: 28px; display: flex; flex-direction: column;
}
.mm ul { margin: 0; padding: 0; list-style: none }
.mm-root { align-self: flex-start; display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-radius: 14px; background: var(--st-accent); color: var(--st-on-accent) }
.mm-root .k { font-size: 11px; color: rgba(255, 255, 255, .72) }
.mm-root b { font: 500 18px/1.15 var(--font-display); letter-spacing: -.015em }
.mm-side { display: contents }
.mm-branch { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 20px; padding-block: 16px 0; padding-inline-start: 44px }
.mm-branch::before { content: ""; position: absolute; inset-inline-start: 20px; top: 0; bottom: 0; border-inline-start: 1.5px solid var(--mm-trunk) }
.mm-branch--end::before { display: none }
.mm-node { position: relative; flex: none; width: 150px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 8px; padding: 10px 12px; border-radius: 10px; background: var(--st-surface); border: 1px solid var(--st-line-2); color: var(--st-text); direction: ltr; transition: border-color .15s }
.mm-node:hover { color: var(--st-text); border-color: var(--st-line-3) }
.mm-node b { grid-column: 1 / -1; font: 500 16px/1.2 var(--font-display); letter-spacing: -.01em; transition: color .15s }
.mm-node:hover b { color: var(--st-accent-text) }
.mm-node .mono { font-size: 11px }
.mm-node::after { content: ""; position: absolute; inset-inline-start: -25px; width: 24px; top: 50%; border-top: 1.5px solid var(--mm-trunk) }
.mm-branch--end .mm-node::after { top: -17px; bottom: 50%; border-inline-start: 1.5px solid var(--mm-trunk); border-top: 0; border-bottom: 1.5px solid var(--mm-trunk); border-end-start-radius: 10px }
.mm-leaves { flex: 1 1 280px; min-width: 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px }
.mm-leaf { display: inline-flex; align-items: baseline; gap: 8px; padding: 3px 9px; border-radius: 7px; background: var(--st-surface); box-shadow: inset 0 0 0 1px var(--st-line); font: 400 13px/1.3 var(--font-text); color: var(--st-text-2); transition: color .15s, background .15s }
.mm-t { direction: ltr; unicode-bidi: isolate }
.mm-c { flex: none; min-width: 2.1em; font: 500 11px/1 var(--font-mono); color: var(--st-text-3) }

@media (min-width: 1140px) {
  .mm { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center }
  .mm-root { grid-column: 2; grid-row: 1; position: relative; align-self: center; width: 150px; margin-inline: 28px; padding: 18px }
  .mm-root::before, .mm-root::after { content: ""; position: absolute; top: 50%; width: 28px; border-top: 1.5px solid var(--mm-trunk) }
  .mm-root::before { right: 100% }
  .mm-root::after { left: 100% }
  .mm-side { display: flex; flex-direction: column; grid-row: 1; padding-inline-start: 28px }
  .mm-side--left { grid-column: 1; direction: rtl }
  .mm-side--right { grid-column: 3 }
  .mm-branch { flex-wrap: nowrap; align-items: center; gap: 0 20px; padding-block: 10px; padding-inline-start: 0 }
  .mm-branch::before, .mm-branch--end::before { display: block; inset-inline-start: -28px; width: 28px }
  .mm-branch:first-child::before { top: 50%; border-top: 1.5px solid var(--mm-trunk); border-start-start-radius: 10px }
  .mm-branch:last-child::before { bottom: 50%; border-bottom: 1.5px solid var(--mm-trunk); border-end-start-radius: 10px }
  .mm-node::after { inset-inline-start: -29px; width: 28px }
  .mm-branch:first-child .mm-node::after, .mm-branch:last-child .mm-node::after { display: none }
  .mm-leaves { position: relative; flex: 1; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 0; padding-inline-start: 20px }
  .mm-leaves::before { content: ""; position: absolute; inset-inline-start: -20px; width: 20px; top: 50%; border-top: 1px solid var(--mm-twig) }
  .mm-leaves > li { position: relative }
  .mm-leaf { padding: 2px 8px; background: none; box-shadow: none }
  .mm-leaf:hover { background: var(--st-surface-2) }
  .mm-leaves > li::before, .mm-leaves > li::after { content: ""; position: absolute; inset-inline-start: -20px; width: 20px }
  .mm-leaves > li::before { top: 0; bottom: 0; border-inline-start: 1px solid var(--mm-twig) }
  .mm-leaves > li::after { top: 50%; border-top: 1px solid var(--mm-twig) }
  .mm-leaves > li:first-child::before { top: 50%; border-top: 1px solid var(--mm-twig); border-start-start-radius: 8px }
  .mm-leaves > li:last-child::before { bottom: 50%; border-bottom: 1px solid var(--mm-twig); border-end-start-radius: 8px }
  .mm-leaves > li:first-child::after, .mm-leaves > li:last-child::after { display: none }
}
.atl-count { margin-top: 24px }
.atl-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 28px 16px }
.grp + .atl-grid { margin-top: 16px }
.tile { min-width: 0; display: flex; flex-direction: column; gap: 12px }
.tile-b { min-width: 0; display: flex; flex-direction: column; gap: 4px }
.tile-k { font: 500 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--st-text-3) }
.tile b { font: 500 17px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--st-text); text-wrap: balance }
.tile p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--st-text-2) }
.tile .meta { margin-top: 0 }
.tile .facts { margin-top: 6px; grid-template-columns: 1fr; gap: 0; font-size: 14px }
.tile .facts dt { line-height: 18px }
.tile .facts dd { margin-bottom: 6px }
.tile .pills { margin-top: 6px }
.slot { position: relative; margin: 0; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--st-surface-2); display: grid; place-items: center }
.slot img, .slot video { width: 100%; height: 100%; object-fit: contain; display: block }
.tile .slot img { object-fit: cover }
.slot--empty { background: repeating-linear-gradient(135deg, var(--st-surface) 0 9px, var(--st-surface-2) 9px 18px); box-shadow: inset 0 0 0 1px var(--st-line-2) }
.slot-f { max-width: calc(100% - 16px); overflow-wrap: anywhere; padding: 4px 8px; border-radius: 6px; background: var(--st-bg); font: 500 11px/1.35 var(--font-mono); color: var(--st-text-3) }
.slot figcaption { position: absolute; left: 8px; top: 8px; padding: 4px 7px; border-radius: 5px; background: var(--st-bg); font: 500 10px/1 var(--font-mono); letter-spacing: .08em; color: var(--st-text-2) }
.atl-brands { margin-top: 16px }
.atl-brands .pill:hover { color: var(--st-accent-text) }
.sec .acts { margin-top: 32px }
.cases { margin-top: 32px }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px 32px; padding-block: 28px; border-top: 1px solid var(--st-line-2) }
.case:last-child { border-bottom: 1px solid var(--st-line-2) }
.case-t { min-width: 0 }
.case-h { display: flex; gap: 14px; align-items: flex-start }
.case-n { flex: none; min-width: 2.4em; padding-top: 5px; font: 500 13px/1 var(--font-mono); color: var(--st-accent-text) }
.poster { flex: none; width: 56px; max-width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: var(--st-surface-2); box-shadow: 0 0 0 1px var(--st-line-2) }
.poster--wide { object-fit: contain }
.case .poster { width: 48px }
.tile-hd { min-width: 0; display: flex; gap: 12px; align-items: flex-start }
.tile-hd > div { min-width: 0; display: flex; flex-direction: column; gap: 4px }
.case-h b { display: block; font: 500 20px/1.25 var(--font-display); letter-spacing: -.012em; color: var(--st-text); text-wrap: balance }
.case .facts { grid-template-columns: 150px minmax(0, 1fr) }
.case .pills { margin-top: 14px }
.case-media { min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start }
