/* generated by scripts/fonts.mjs — do not edit */
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/ibm-plex-sans-cyrillic-ext-400-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/ibm-plex-sans-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fonts/ibm-plex-sans-cyrillic-ext-600-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fonts/ibm-plex-sans-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/ibm-plex-mono-cyrillic-ext-400-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fonts/ibm-plex-mono-cyrillic-ext-500-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fonts/ibm-plex-mono-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

/* ==========================================================================
   Design tokens — direction C «одна система, два климата» (CONCEPT.md §7)
   studio: тёмный игровой климат по умолчанию; systems: светлый документный,
   тёмный — по prefers-color-scheme. [data-theme] — ручное переключение (позже).
   ========================================================================== */
:root {
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.24rem + 0.65vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.46rem + 1.4vw, 2.625rem);
  --step-4: clamp(2.25rem, 1.6rem + 3.1vw, 4rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: clamp(4rem, 3rem + 5vw, 7.5rem);

  --radius-s: 6px; --radius-m: 12px; --radius-l: 20px;
  --container: 1200px; --measure: 68ch; --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- STUDIO: dark (default) ---------- */
[data-site="studio"] {
  color-scheme: dark;
  --bg: #0d0e12;
  --bg-elev: #13151a;
  --surface: #171a20;
  --surface-2: #1f232b;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.18);
  --text: #f4f2ed;
  --muted: #a6a9b2;
  --accent: #ff6a3d;
  --accent-hover: #ff8560;
  --on-accent: #1a0b04;
  --accent-soft: rgba(255,106,61,.13);
  --ok: #54d18a;
  --glow: radial-gradient(60% 60% at 70% 0%, rgba(255,106,61,.18), transparent 70%);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -24px rgba(0,0,0,.8);
}
[data-site="studio"][data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5f1; --bg-elev: #efece6; --surface: #ffffff; --surface-2: #f1eee8;
  --line: rgba(20,20,25,.10); --line-strong: rgba(20,20,25,.22);
  --text: #15161a; --muted: #585c66;
  --accent: #c2410c; --accent-hover: #a8380a; --on-accent: #ffffff; --accent-soft: rgba(194,65,12,.10);
  --ok: #17803d; --glow: none; --shadow: 0 12px 30px -20px rgba(0,0,0,.25);
}

/* ---------- SYSTEMS: light paper (default) ---------- */
[data-site="systems"] {
  color-scheme: light;
  --font-display: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --bg: #f5f3ec;
  --bg-elev: #eeebe2;
  --surface: #fffdf8;
  --surface-2: #f0ede4;
  --line: #dcd7ca;
  --line-strong: #b9b3a3;
  --text: #16181b;
  --muted: #565a62;
  --accent: #0e5c61;
  --accent-hover: #0a4a4e;
  --on-accent: #ffffff;
  --accent-soft: #e2eeec;
  --ok: #17803d;
  --glow: none;
  --shadow: 0 1px 0 rgba(0,0,0,.02), 0 10px 24px -18px rgba(30,30,20,.25);
  --radius-m: 4px; --radius-l: 8px;
}
@media (prefers-color-scheme: dark) {
  [data-site="systems"]:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101315; --bg-elev: #15191b; --surface: #181c1f; --surface-2: #1f2427;
    --line: #2b3134; --line-strong: #414a4e;
    --text: #ecebe6; --muted: #9ea4a8;
    --accent: #62c6c8; --accent-hover: #86d6d7; --on-accent: #06201f; --accent-soft: rgba(98,198,200,.12);
    --ok: #54d18a;
    --shadow: none;
  }
}
[data-site="systems"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #101315; --bg-elev: #15191b; --surface: #181c1f; --surface-2: #1f2427;
  --line: #2b3134; --line-strong: #414a4e; --text: #ecebe6; --muted: #9ea4a8;
  --accent: #62c6c8; --accent-hover: #86d6d7; --on-accent: #06201f; --accent-soft: rgba(98,198,200,.12); --shadow: none;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 var(--space-4); letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
[data-site="systems"] h1, [data-site="systems"] h2 { font-weight: 600; letter-spacing: -0.015em; }
[data-site="systems"] h3 { font-weight: 600; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.2em; }
li + li { margin-top: .35em; }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-7) 0; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: var(--radius-s); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.section--alt { background: var(--bg-elev); border-block: 1px solid var(--line); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--space-7); font-size: var(--step-2); }
.prose h3 { margin-top: var(--space-6); }
.grid { display: grid; gap: var(--space-5); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; }
}

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; width: 22%; }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: var(--step--1); }
.field .hint { color: var(--muted); font-size: var(--step--1); font-weight: 400; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
fieldset { border: 0; padding: 0; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.checks { display: grid; gap: 8px; }
@media (min-width: 720px) { .checks--2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 var(--step-0)/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
[data-site="systems"] .btn { border-radius: var(--radius-s); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: var(--step--1); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
[data-site="systems"] .brand { font-weight: 600; }
.brand__sub { display: block; font: 400 .72rem/1.2 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-5); }
.nav__list { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav__list li + li { margin: 0; }
.nav__list a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: var(--step--1); padding: 8px 0; }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--text); }
.menu { margin-left: auto; display: none; }
.menu > summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 14px; font-weight: 600; font-size: var(--step--1); }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--space-5) var(--gutter) var(--space-6); }
.menu__panel ul { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.menu__panel li + li { margin-top: 0; border-top: 1px solid var(--line); }
.menu__panel a:not(.btn) { display: block; padding: 14px 0; text-decoration: none; font-size: var(--step-1); font-weight: 600; }
@media (max-width: 859px) { .nav { display: none; } .menu { display: block; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 2rem + 7vw, 8rem) var(--space-9); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.hero > .container { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 .78rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-5); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.hero h1 { max-width: 20ch; }
[data-site="systems"] .hero h1 { max-width: 22ch; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 58ch; margin-bottom: var(--space-6); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__media { margin-top: var(--space-8); display: grid; gap: var(--space-4); grid-template-columns: repeat(12, 1fr); }
.hero__shot { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.hero__shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.hero__shot:nth-child(1) { grid-column: 1 / span 12; }
.hero__shot:nth-child(2), .hero__shot:nth-child(3) { grid-column: span 6; }
@media (min-width: 860px) {
  .hero__shot:nth-child(1) { grid-column: 1 / span 7; grid-row: span 2; }
  .hero__shot:nth-child(2), .hero__shot:nth-child(3) { grid-column: 8 / span 5; }
  .hero__shot:nth-child(1) img { aspect-ratio: auto; }
}

/* ---------- section head ---------- */
.section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-7); max-width: 64ch; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: var(--step-1); }
.section-head--row { max-width: none; }
@media (min-width: 860px) { .section-head--row { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat { padding: var(--space-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat__value { font: 800 var(--step-3)/1 var(--font-display); letter-spacing: -0.03em; }
.stat__label { margin-top: var(--space-2); font-size: var(--step--1); color: var(--muted); }
.source-note { margin-top: var(--space-3); font: 400 .75rem/1.4 var(--font-mono); color: var(--muted); }

/* ---------- cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 0; color: var(--muted); font-size: var(--step--1); }
.card__num { font: 500 .8rem/1 var(--font-mono); color: var(--accent); letter-spacing: .06em; }
.card__foot { margin-top: auto; padding-top: var(--space-4); }
.card--link:hover { border-color: var(--line-strong); }

/* ---------- game card ---------- */
.game { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.game__shot { aspect-ratio: 16/9; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.game__shot img, .game__shot picture { width: 100%; height: 100%; object-fit: cover; }
.game__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.game__top { display: flex; gap: var(--space-3); align-items: center; }
.game__icon { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex: none; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font: 800 1.1rem/1 var(--font-display); color: var(--muted); }
.game__icon img { width: 100%; height: 100%; object-fit: cover; }
.game__title { font: 700 var(--step-1)/1.2 var(--font-display); margin: 0; }
.game__genre { font-size: var(--step--1); color: var(--muted); }
.game__pitch { color: var(--muted); margin: 0; font-size: var(--step--1); }
.game__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: var(--step--1); }
.game__facts li { margin: 0; }
.game__facts b { font-weight: 700; }
.game__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 .72rem/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.chip--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.chip--prelaunch::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { margin: 0; font-size: .75rem; padding: 4px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--text); }
.img-missing { width: 100%; height: 100%; background: repeating-linear-gradient(135deg, var(--surface-2) 0 12px, var(--surface) 12px 24px); }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(var(--cols, 5), minmax(0,1fr)); border-top: 0; } }
.steps > li { margin: 0; counter-increment: step; padding: var(--space-5) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3); }
.steps > li::before { content: counter(step, decimal-leading-zero); font: 500 .85rem/1.6 var(--font-mono); color: var(--accent); }
@media (min-width: 900px) {
  .steps--row > li { grid-template-columns: 1fr; border-bottom: 0; border-top: 2px solid var(--line-strong); padding: var(--space-4) var(--space-4) 0 0; }
  .steps--row > li:first-child { border-top-color: var(--accent); }
}
.steps h3 { margin: 0 0 6px; font-size: var(--step-0); }
.steps p { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* ---------- compare table (stacks on mobile) ---------- */
.compare td:first-of-type { color: var(--muted); }
.compare td:last-of-type { color: var(--text); }
.compare th[scope="row"] { font-family: var(--font-display); }
@media (max-width: 759px) {
  .compare thead { position: absolute; left: -10000px; }
  .compare tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { display: block; width: auto; padding: 4px 0; border: 0; }
  .compare td::before { content: attr(data-label); display: block; font: 500 .7rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
}

/* ---------- lists ---------- */
.checklist, .xlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li, .xlist li { margin: 0; padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.xlist li::before, .xlist li::after { content: ""; position: absolute; left: 3px; top: .8em; width: 13px; height: 2px; background: var(--muted); transform: rotate(45deg); }
.xlist li::after { transform: rotate(-45deg); }

/* ---------- founder ---------- */
.person { display: flex; gap: var(--space-5); align-items: center; }
.person__photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid var(--line-strong); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font: 700 var(--step-1)/1.2 var(--font-display); margin: 0; }
.quote { font: 600 var(--step-2)/1.35 var(--font-display); letter-spacing: -0.01em; margin: 0 0 var(--space-5); max-width: 36ch; text-wrap: balance; }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); display: grid; gap: var(--space-5); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; } }
.cta-band h2 { margin: 0 0 var(--space-2); font-size: var(--step-3); }
.cta-band p { margin: 0; color: var(--muted); }
.alt-contacts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--step--1); color: var(--muted); list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.alt-contacts li { margin: 0; }

/* ---------- footnotes ---------- */
.fnref { font: 500 .7em/1 var(--font-mono); margin-left: 2px; }
.fnref a { text-decoration: none; color: var(--accent); padding: 0 2px; }
.footnotes { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.footnotes__title { font: 500 .78rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footnotes ol { padding-left: 1.4em; }
.fnback { text-decoration: none; }

/* ---------- diagram ---------- */
.diagram { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); padding: var(--space-5); }
.diagram svg { width: 100%; height: auto; }
.diagram text { font-family: var(--font-mono); fill: var(--text); }
.diagram .d-box { fill: var(--surface-2); stroke: var(--line-strong); }
.diagram .d-core { fill: var(--accent-soft); stroke: var(--accent); }
.diagram .d-line { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.diagram .d-ro { stroke-dasharray: 5 4; }
.diagram .d-muted { fill: var(--muted); }
.diagram figcaption { margin-top: var(--space-3); font-size: var(--step--1); color: var(--muted); }

/* ---------- note / callout ---------- */
.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: var(--space-4) var(--space-5); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.callout p:last-child { margin: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-8) var(--space-6); margin-top: var(--space-9); font-size: var(--step--1); color: var(--muted); }
.site-footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font: 500 .75rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
.lang-switch { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }

/* ---------- reveal (progressive) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* media fill */
.hero__shot picture, .game__shot picture, .game__icon picture, .person__photo picture { width: 100%; height: 100%; }
.hero__shot img { height: 100%; }
.steps--row > li { align-content: start; }
.compare--even td:first-of-type { color: var(--text); }
.diagram { overflow-x: auto; }
.diagram svg { min-width: 640px; }

/* systems-only: документная сетка */
[data-site="systems"] .hero { border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }
[data-site="systems"] .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), var(--bg) 85%); }
[data-site="systems"] .card { border-radius: var(--radius-m); }
[data-site="systems"] .section-num { font: 500 .8rem/1 var(--font-mono); color: var(--accent); letter-spacing: .06em; display: block; margin-bottom: var(--space-3); }
[data-site="systems"] .stats { border-radius: var(--radius-m); }
