:root{color-scheme:light;--paper:#F4F4F0;--sheet:#FFFFFF;--ink:#000000;--ink-soft:#3D3D3D;--shade:#000000;--focus:#000000;--c1:#C6F432;--c1-ink:#000000;--c2:#6A1BD1;--c2-ink:#FFFFFF;--c3:#0A63AD;--c3-ink:#FFFFFF;--c4:#C81B78;--c4-ink:#FFFFFF;}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){color-scheme:dark;--paper:#0E0E10;--sheet:#1D1D21;--ink:#FFFFFF;--ink-soft:#C4C4CA;--shade:#C6F432;--focus:#FFFFFF;--c1:#C6F432;--c1-ink:#000000;--c2:#6A1BD1;--c2-ink:#FFFFFF;--c3:#0A63AD;--c3-ink:#FFFFFF;--c4:#C81B78;--c4-ink:#FFFFFF;}}
:root[data-theme="dark"]{color-scheme:dark;--paper:#0E0E10;--sheet:#1D1D21;--ink:#FFFFFF;--ink-soft:#C4C4CA;--shade:#C6F432;--focus:#FFFFFF;--c1:#C6F432;--c1-ink:#000000;--c2:#6A1BD1;--c2-ink:#FFFFFF;--c3:#0A63AD;--c3-ink:#FFFFFF;--c4:#C81B78;--c4-ink:#FFFFFF;}
[hidden]{display:none !important}
/* Плакатная тема: цвета и формы знаков безопасности.
   Жёлтый треугольник — предупреждение, синий круг — действие, зелёный квадрат — устройства,
   красный ромб — авария. Переменные цвета подставляет sitegen.py. */

@font-face { font-family: "Sofia Sans XC"; font-weight: 100 900; font-display: swap;
  src: url("/assets/sofia-sans-extra-condensed-latin-wght-normal-TARD1-m8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans XC"; font-weight: 100 900; font-display: swap;
  src: url("/assets/sofia-sans-extra-condensed-cyrillic-wght-normal-bLwTr6_O.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap;
  src: url("/assets/onest-latin-wght-normal-BS33RTMl.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap;
  src: url("/assets/onest-cyrillic-wght-normal-aOXgHWJl.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --display: "Sofia Sans XC", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --edge: 3px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .92; margin: 0; text-transform: uppercase; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 5; }
.skip:focus { left: 8px; top: 8px; }

/* тона: каждой группе статей — свой цвет знака */
.tone-1 { --tone: var(--c1); --on: var(--c1-ink); }
.tone-2 { --tone: var(--c2); --on: var(--c2-ink); }
.tone-3 { --tone: var(--c3); --on: var(--c3-ink); }
.tone-4 { --tone: var(--c4); --on: var(--c4-ink); }
.tone-5 { --tone: var(--ink); --on: var(--paper); }

/* ---------- шапка ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 16px; }
.brand { font: 800 1.9rem/1 var(--display); text-transform: uppercase; text-decoration: none; letter-spacing: .01em; margin-right: auto; }
.brand::before { content: ""; display: inline-block; width: .62em; height: .62em; margin-right: .3em; background: var(--c1);
  border: var(--edge) solid var(--ink); transform: rotate(45deg); vertical-align: .02em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a, .lang { font-weight: 600; text-decoration: none; padding-block: 4px; border-bottom: 3px solid transparent; }
.nav a:hover, .lang:hover { border-bottom-color: var(--ink); }
.nav a[aria-current] { border-bottom-color: var(--c4); }
.tools { display: flex; align-items: center; gap: 14px; }
.lang { border-bottom-color: var(--ink); }
.theme { width: 38px; height: 38px; display: grid; place-items: center; background: var(--sheet); border: var(--edge) solid var(--ink); border-radius: 50%; cursor: pointer; }
.theme svg { width: 18px; height: 18px; }

/* ---------- кнопки ---------- */
.btn { display: inline-block; font: 800 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  background: var(--ink); color: var(--paper); border: var(--edge) solid var(--ink); padding: 14px 26px; cursor: pointer;
  box-shadow: 6px 6px 0 var(--shade); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shade); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--shade); }
.band .btn { background: var(--on); color: var(--tone); border-color: var(--on); --shade: rgb(0 0 0 / .35); }

/* ---------- первый экран ---------- */
.hero { background: var(--c1); color: var(--c1-ink); border-block: var(--edge) solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(32px, 6vw, 88px); }
.hero h1 { font-size: clamp(3.3rem, 10.4vw, 9.6rem); font-weight: 900; line-height: .84; letter-spacing: -.01em; overflow-wrap: normal; }
:lang(ru) .hero h1 { font-size: clamp(2.9rem, 7.9vw, 7.4rem); }
.hero .tagline { font-weight: 600; margin-bottom: 18px; max-width: 30ch; }
.hero .lede { font-size: 1.2rem; max-width: 46ch; margin: 24px 0 0; }

.specimen { position: relative; }
.sheet { background: #fff; color: #000; border: var(--edge) solid #000; padding: 20px 22px; box-shadow: 10px 10px 0 #000; }
.specimen .sheet { transform: rotate(-1.4deg); }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid #000; font-size: .95rem; }
.sheet dt { color: #555; }
.sheet dd { overflow-wrap: anywhere; }
.sheet .subject { font-weight: 700; }
.sheet p { margin: 0 0 .7em; font-size: .98rem; }
.sheet p:last-child { margin-bottom: 0; }
mark { background: var(--c4); color: var(--c4-ink); padding: 1px 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.fake-button { display: inline-block; background: #000; color: #fff; font-weight: 700; padding: 8px 16px; }
.ref, .notes li::before { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; background: #000; color: #fff;
  font: 800 .95rem/1 var(--display); vertical-align: middle; margin-left: 5px; }
.notes { list-style: none; counter-reset: n; display: grid; gap: 10px; margin-top: 30px; }
.notes li { counter-increment: n; display: grid; grid-template-columns: auto 1fr; gap: 12px; font-weight: 600; line-height: 1.35; }
.notes li::before { content: counter(n); margin: 0; font-size: 1.15rem; }
.specimen-foot { margin-top: 20px; }
.specimen-foot .caption { font-size: .9rem; margin-bottom: 4px; }
.specimen-foot .action { font-weight: 800; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .specimen .ref { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
  .js .specimen dd:not(.subject) .ref { animation-delay: .5s; }
  .js .specimen .subject .ref { animation-delay: .85s; }
  .js .specimen p .ref { animation-delay: 1.2s; }
  .js .specimen p + p .ref { animation-delay: 1.55s; }
  @keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
}

/* ---------- бегущая строка ---------- */
.ticker { background: var(--ink); color: var(--paper); border-bottom: var(--edge) solid var(--ink); overflow: hidden; white-space: nowrap; }
.ticker ul { display: inline-flex; list-style: none; padding-block: 10px; animation: slide 60s linear infinite; }
.ticker li { font: 700 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; padding-inline: 22px; }
.ticker li::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: 44px; background: var(--c1); transform: rotate(45deg); }
.ticker li:nth-child(4n+2)::before { background: var(--c2); border-radius: 50%; }
.ticker li:nth-child(4n+3)::before { background: var(--c3); transform: none; }
.ticker li:nth-child(4n)::before { background: var(--c4); }
.ticker:hover ul { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker ul { animation: none; } }

/* ---------- стена плакатов ---------- */
.block { padding-block: clamp(40px, 7vw, 96px); }
.block-head { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 32px; margin-bottom: clamp(20px, 3vw, 40px); }
.block-head h2, .page-title { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 900; }
.block-head p { max-width: 38ch; margin: 0 0 .5em; color: var(--ink-soft); }
.group { margin-top: clamp(28px, 4vw, 56px); }
.group-name { display: flex; align-items: center; gap: 12px; font: 800 1.7rem/1 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.group-name svg { width: 30px; height: 30px; color: var(--tone); flex: none; }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px; list-style: none; }
.poster { display: flex; flex-direction: column; min-height: 340px; padding: 20px; background: var(--tone); color: var(--on); text-decoration: none;
  border: var(--edge) solid var(--ink); box-shadow: 6px 6px 0 var(--shade); transition: transform .14s, box-shadow .14s; }
.poster:hover, .poster:focus-visible { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--shade); }
.poster .sign { width: 112px; height: 112px; margin-bottom: auto; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 70%; }
.poster:hover .sign { transform: rotate(-8deg) scale(1.08); }
.poster h3 { font-size: 2.15rem; margin-top: 22px; }
.poster p { margin: 10px 0 0; font-size: .95rem; line-height: 1.45; }
.poster .meta { margin-top: 14px; font-size: .82rem; font-weight: 600; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .poster, .poster .sign, .btn { transition: none; } }

/* ---------- цветные полосы: игра, видео, чек-лист ---------- */
.band { background: var(--tone); color: var(--on); border-block: var(--edge) solid var(--ink); }
.band + .band { border-top: 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 6vw, 80px); }
.band h2 { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 900; }
.band p { font-size: 1.15rem; max-width: 40ch; margin: 16px 0 24px; }
.band-dark { --tone: var(--ink); --on: var(--paper); }
.band-dark .btn { background: var(--c1); color: var(--c1-ink); border-color: var(--c1); }

.mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(2deg); }
.mini-board span { aspect-ratio: 4 / 3; background: rgb(0 0 0 / .22); border: var(--edge) solid var(--on); }
.mini-board .ok { background: #fff; }
.mini-board .bad { background: var(--c1); }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
.thumbs li { aspect-ratio: 16 / 9; background: var(--tone); border: var(--edge) solid var(--paper); display: grid; place-items: center; }
.thumbs li::after, .play::before { content: ""; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--on); }

.checks { list-style: none; display: grid; gap: 8px; }
.checks label { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 12px 14px; background: rgb(0 0 0 / .18); cursor: pointer; font-weight: 500; }
.checks input { appearance: none; width: 26px; height: 26px; margin: 0; background: #fff; border: var(--edge) solid #000; display: grid; place-items: center; cursor: pointer; }
.checks input:checked::after { content: ""; width: 12px; height: 7px; border: solid #000; border-width: 0 0 4px 4px; transform: rotate(-45deg) translate(1px, -2px); }
.checks input:checked + span { text-decoration: line-through; opacity: .75; }
.progress { font: 800 1.6rem/1 var(--display); text-transform: uppercase; margin: 18px 0 0; min-height: 1em; }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.pair .poster { min-height: 260px; }
.pair .poster h3 { font-size: 3.2rem; margin-top: 0; }
.pair .poster .go { margin-top: auto; padding-top: 20px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- статья ---------- */
.art-head { background: var(--tone); color: var(--on); border-block: var(--edge) solid var(--ink); }
.art-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-block: clamp(32px, 5vw, 72px); }
.art-head h1 { font-size: clamp(2.8rem, 7.6vw, 6.4rem); font-weight: 900; }
.art-head .standfirst { font-size: 1.25rem; max-width: 46ch; margin: 22px 0 0; color: inherit; }
.art-head .meta { font-weight: 600; margin: 0 0 16px; }
.art-head .sign { width: clamp(120px, 20vw, 240px); height: auto; aspect-ratio: 1; }
.art-body { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(32px, 5vw, 64px); align-items: start; }
.prose h2 { font-size: 2.3rem; margin: 1.5em 0 .45em; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 68ch; }
.aside { display: grid; gap: 28px; position: sticky; top: 20px; }
.pull { font: 800 2.5rem/1 var(--display); text-transform: uppercase; margin: 0; padding-left: 16px; border-left: 10px solid var(--tone); }
.todo { background: var(--sheet); border: var(--edge) solid var(--ink); padding: 20px; box-shadow: 6px 6px 0 var(--shade); }
.todo h2 { font-size: 1.9rem; margin-bottom: 12px; }
.todo ul { list-style: none; display: grid; gap: 10px; }
.todo li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: .98rem; line-height: 1.4; }
.todo li::before { content: ""; width: 14px; height: 14px; margin-top: .3em; border-radius: 50%; background: var(--c2); }
.source { font-size: .92rem; color: var(--ink-soft); overflow-wrap: anywhere; margin-top: 2.2em; }
.next { margin-top: 28px; display: grid; gap: 4px; }
.next span { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.next a { font: 800 2rem/1 var(--display); text-transform: uppercase; }
.back { margin-top: 18px; font-weight: 600; }

/* ---------- обычные страницы ---------- */
.plain { padding-block: clamp(32px, 5vw, 72px); }
.standfirst { font-size: 1.2rem; max-width: 52ch; margin: 18px 0 32px; color: var(--ink-soft); }
.plain .prose p { max-width: 64ch; font-size: 1.1rem; }

.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 40px; }
.terms div { padding-block: 16px; border-top: var(--edge) solid var(--ink); }
.terms dt { font: 800 1.8rem/1 var(--display); text-transform: uppercase; margin-bottom: 6px; }

.quiz { list-style: none; display: grid; gap: 34px; max-width: 760px; }
.quiz .sheet { box-shadow: 8px 8px 0 var(--shade); }
.answers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.answers button { font: 800 1.4rem/1 var(--display); text-transform: uppercase; padding: 12px 24px; background: var(--sheet); border: var(--edge) solid var(--ink); cursor: pointer; }
.answers button:hover:not(:disabled) { background: var(--c1); color: var(--c1-ink); }
.answers button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.answers button:disabled { cursor: default; }
.verdict { margin: 16px 0 0; padding: 14px 16px; border-left: 10px solid var(--c2); background: var(--sheet); }
.js .question:not(.answered) .verdict { display: none; }
.verdict .hand { font-weight: 800; margin-right: 6px; }
.verdict .hand:empty { display: none; }
.score { font: 900 2.6rem/1 var(--display); text-transform: uppercase; margin-top: 30px; min-height: 1em; }
.js .nojs-note { display: none; }
.nojs-note { font-weight: 600; }

/* ---------- упражнения и инструменты ---------- */
.exercise, .tool { margin-top: clamp(40px, 6vw, 72px); max-width: 860px; }
.exercise:first-of-type, .tool:first-of-type { margin-top: 0; }
.exercise > h2, .tool > h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.exercise > p, .tool > p { max-width: 62ch; color: var(--ink-soft); margin-bottom: 24px; }
.sheet .url { font: 600 1rem/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; overflow-wrap: anywhere; }

.pw { display: grid; gap: 12px; max-width: 620px; }
.pw label { font-weight: 700; }
.pw-row { display: flex; gap: 10px; }
.pw input { flex: 1; min-width: 0; font: 500 1.15rem/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; padding: 14px; background: var(--sheet); color: var(--ink);
  border: var(--edge) solid var(--ink); border-radius: 0; }
.pw-toggle { font: 800 1.2rem/1 var(--display); text-transform: uppercase; padding: 0 18px; background: var(--sheet); border: var(--edge) solid var(--ink); cursor: pointer; }
.meter { height: 18px; background: var(--sheet); border: var(--edge) solid var(--ink); }
.meter span { display: block; height: 100%; width: 0; background: var(--c4); transition: width .2s; }
.pw[data-level="2"] .meter span { background: var(--c1); }
.pw[data-level="3"] .meter span, .pw[data-level="4"] .meter span { background: var(--c3); }
.pw-level { font: 900 2.4rem/1 var(--display); text-transform: uppercase; margin: 6px 0 0; }
.pw-time { font-weight: 700; margin: 0; min-height: 1.6em; }
.pw-hints { list-style: none; display: grid; gap: 6px; }
.pw-hints li { padding-left: 16px; border-left: 6px solid var(--c2); }
.pw-assume { font-size: .9rem; color: var(--ink-soft); margin: 0; }
html:not(.js) .pw, html:not(.js) .conn { display: none; }
.conn-out { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin-top: 22px; padding: 18px 20px; background: var(--sheet); border: var(--edge) solid var(--ink); max-width: 560px; }
.conn-out dt { color: var(--ink-soft); }
.conn-out dd { font: 700 1.05rem/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.conn-msg { font-weight: 600; margin: 14px 0 0; min-height: 1.6em; }

.prints { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 20px; }
.print { display: flex; flex-direction: column; aspect-ratio: 210 / 297; padding: 16px; background: var(--tone); color: var(--on); text-decoration: none;
  border: var(--edge) solid var(--ink); box-shadow: 6px 6px 0 var(--shade); transition: transform .14s, box-shadow .14s; }
.print:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--shade); }
.print .sign { width: 46%; height: auto; aspect-ratio: 1; }
.print-title { font: 900 1.7rem/.92 var(--display); text-transform: uppercase; margin-top: 14px; }
.print-kind { font-size: .82rem; font-weight: 600; margin-top: 8px; opacity: .9; }
.print .go { margin-top: auto; font-size: .9rem; font-weight: 700; text-decoration: underline; }
.mini-meter { display: grid; gap: 12px; }
.mini-meter span { height: 26px; border: var(--edge) solid var(--on); background: linear-gradient(to right, var(--on) var(--fill, 20%), transparent 0); }
.mini-meter span:nth-child(2) { --fill: 45%; }
.mini-meter span:nth-child(3) { --fill: 70%; }
.mini-meter span:nth-child(4) { --fill: 100%; }

/* ---------- страницы для печати (плакаты PDF) ---------- */
@page { size: A4; margin: 0; }
.print-body { background: #fff; }
.a4 { width: 210mm; height: 297mm; padding: 17mm 16mm 15mm; background: var(--tone); color: var(--on); display: flex; flex-direction: column; overflow: hidden;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.a4 .sign { width: 58mm; height: 58mm; margin-bottom: 9mm; flex: none; }
.a4 h1 { font-size: 31mm; font-weight: 900; line-height: .86; letter-spacing: -.01em; }
.a4 ol { list-style: none; counter-reset: n; display: grid; gap: 6.5mm; margin-top: auto; padding-top: 10mm; }
.a4 li { counter-increment: n; display: grid; grid-template-columns: 11mm 1fr; gap: 5mm; align-items: start; font: 600 5.6mm/1.32 var(--text); }
.a4 li::before { content: counter(n); display: grid; place-items: center; width: 11mm; height: 11mm; border-radius: 50%; background: var(--on); color: var(--tone); font: 900 7mm/1 var(--display); }
.a4.tone-5 { --tone: #fff; --on: #000; border: 5mm solid #000; padding: 12mm 11mm 10mm; }
.a4.check li::before { content: ""; border-radius: 0; background: #fff; border: 1mm solid #000; width: 9mm; height: 9mm; }
.a4.check h1 { font-size: 27mm; }
.a4.check li { font-size: 5mm; gap: 4mm; }
.a4.check ol { gap: 5mm; }

/* ---------- видео ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 30px 24px; list-style: none; }
.frame { position: relative; aspect-ratio: 16 / 9; background: var(--tone); color: var(--on); border: var(--edge) solid var(--ink); box-shadow: 6px 6px 0 var(--shade); overflow: hidden; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame .label { position: absolute; left: 16px; top: 14px; right: 16px; font: 900 2.4rem/.92 var(--display); text-transform: uppercase; }
.frame .src { position: absolute; left: 16px; bottom: 12px; font-weight: 700; font-size: .9rem; }
.play { position: absolute; right: 16px; bottom: 14px; width: 68px; height: 68px; border-radius: 50%; background: var(--on); border: 0; cursor: pointer; display: grid; place-items: center; padding-left: 6px; transition: transform .15s; }
.play::before { border-color: transparent transparent transparent var(--tone); }
.play:hover { transform: scale(1.12); }
.video p { margin: 18px 0 6px; color: var(--ink-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.video .yt { font-size: .92rem; font-weight: 600; }

/* ---------- игра ---------- */
.game { max-width: 760px; }
.hud { display: flex; flex-wrap: wrap; gap: 8px 28px; font: 800 1.7rem/1 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.hud b { font-weight: 900; font-size: 1.25em; margin-left: 6px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px; background: var(--ink); border: var(--edge) solid var(--ink); }
.cell { position: relative; aspect-ratio: 4 / 3; background: var(--paper); border: 0; padding: 8px; cursor: pointer; display: grid; align-content: center; justify-items: center; gap: 6px;
  font: 600 .82rem/1.2 var(--text); color: var(--ink); text-align: center; overflow: hidden; }
.cell:disabled { cursor: default; }
.board { counter-reset: cell; }
.cell { counter-increment: cell; font-size: clamp(.68rem, 1.5vw, 1rem); }
.cell:empty::after { content: counter(cell); font: 900 3.4rem/1 var(--display); opacity: .14; }
.cell .tag { font: 800 clamp(.8rem, 1.9vw, 1.35rem)/1 var(--display); text-transform: uppercase; padding: 5px 10px; }
.cell.real { background: #fff; color: #000; box-shadow: inset 0 0 0 4px var(--c2); }
.cell.real .tag { background: var(--c2); color: var(--c2-ink); }
.cell.fake { background: var(--c4); color: var(--c4-ink); font-weight: 800; }
.cell.fake .tag { background: var(--c1); color: var(--c1-ink); }
.cell.hit { background: var(--c3); color: var(--c3-ink); }
.cell.miss { background: #000; color: #fff; }
.cell .bar { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: currentColor; transform-origin: left; animation: drain linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: no-preference) { .cell.fake { animation: shout .28s steps(2) infinite; } @keyframes shout { 50% { filter: brightness(1.25); } } }
.game-foot { margin-top: 18px; display: grid; gap: 12px; justify-items: start; }
.game-msg { font-weight: 600; min-height: 1.6em; margin: 0; }
.game-lesson { font: 800 2rem/1 var(--display); text-transform: uppercase; margin: 0; max-width: 24ch; }
.js .game .nojs-note, html:not(.js) .game .board, html:not(.js) .game .hud, html:not(.js) .game .game-foot .btn { display: none; }
@media (max-width: 520px) { .cell { padding: 4px; } .cell .tag { padding: 3px 6px; } .board { gap: 6px; padding: 8px; } }

/* ---------- подвал, 404 ---------- */
.foot { border-top: var(--edge) solid var(--ink); padding-block: 26px 40px; display: grid; gap: 12px; font-size: .92rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 600; }
.foot p { margin: 0; color: var(--ink-soft); }
.notfound { padding-block: clamp(40px, 9vw, 120px); }
.notfound .big { font: 900 clamp(7rem, 30vw, 20rem)/.8 var(--display); color: var(--c4); margin: 0; }
.notfound p { font-size: 1.15rem; max-width: 44ch; }

@media (max-width: 860px) {
  .hero-grid, .band-grid, .art-body { grid-template-columns: minmax(0, 1fr); }
  .art-head .wrap { grid-template-columns: minmax(0, 1fr); }
  .art-head .sign { width: 110px; order: -1; }
  .aside { position: static; }
  .brand { width: 100%; }
}

.foot .credit { font-weight: 700; }

/* 0d3aa22ba7 */
