/* Документация Evil VPN — токены и шрифт как у evilvpn.io (ui/style.css). Сетка 8px, брейкпоинты 720 / 1024 / 1280. */
@font-face { font-family: Inter; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/inter-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0400-052F; }
@font-face { font-family: Inter; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/inter-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0400-052F; }
@font-face { font-family: Inter; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/inter-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0400-052F; }

:root {
  --outer: #080a09;
  --bg: #111312;
  --side: #151716;
  --surface: #1d201e;
  --raised: #282c29;
  --field: #292e2a;
  --line: #ffffff14;
  --line-strong: #ffffff24;
  --text: #f7f8f4;
  --muted: #a0a79f;
  --subtle: #747d74;
  --accent: #c6edaa;
  --accent-ink: #13200c;
  --accent-soft: #c6edaa1f;
  --warn: #f2c879;
  --warn-soft: #f2c8791a;
  --error: #f59b9b;
  --ok: #9fdc7c;
  --code: #1a1d1b;
  --overlay: #000000b3;
  --shadow: 0 24px 80px #0006;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --top: 64px;
  --nav-w: 272px;
  --toc-w: 216px;
  --doc-w: 760px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
[data-theme="light"] {
  --outer: #e8ece7;
  --bg: #ffffff;
  --side: #f6f8f3;
  --surface: #f1f4ee;
  --raised: #e7ede2;
  --field: #e9eee4;
  --line: #17201414;
  --line-strong: #17201424;
  --text: #171c16;
  --muted: #5d685a;
  --subtle: #788373;
  --accent: #c6edaa;
  --accent-ink: #13200c;
  --accent-soft: #6fb84126;
  --warn: #8a5a00;
  --warn-soft: #f2c87933;
  --error: #a22d2d;
  --ok: #3d7a22;
  --code: #f3f6f0;
  --overlay: #1a1f1866;
  --shadow: 0 24px 80px #23311b1f;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + var(--s3)); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
kbd { font: 600 11px/1 var(--font); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 4px 6px; }
.i { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -999px; top: var(--s1); z-index: 100; background: var(--accent); color: var(--accent-ink); padding: var(--s1) var(--s2); border-radius: var(--r-sm); }
.skip:focus { left: var(--s1); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ── Шапка ─────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s2); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: var(--s1); text-decoration: none; margin-right: auto; }
.logo-mark { width: 30px; height: 30px; }
.logo-word { font-weight: 700; font-size: 22px; letter-spacing: -1px; }
.logo-word i { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 1px; }
.logo-docs { font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent); border-radius: 6px; padding: 2px 7px; margin-left: 2px; letter-spacing: .3px; }
.searchbtn { display: none; align-items: center; gap: var(--s1); height: 40px; width: 280px; padding: 0 var(--s1) 0 var(--s2); border-radius: var(--r); background: var(--surface); color: var(--subtle); font-size: 14px; border: 1px solid var(--line); transition: border-color .2s; }
.searchbtn:hover { border-color: var(--line-strong); }
.searchbtn span { flex: 1; text-align: left; }
.top-actions { display: flex; align-items: center; gap: var(--s1); }
.iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--muted); transition: background .2s, color .2s; }
.iconbtn:hover { background: var(--surface); color: var(--text); }
.i-sun { display: none; }
[data-theme="light"] .i-sun { display: block; }
[data-theme="light"] .i-moon { display: none; }
.btn.top-cta { display: none; }

/* ── Кнопки ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-height: 48px; padding: 0 var(--s3); border-radius: var(--r); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background .2s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn .i { width: 18px; height: 18px; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { opacity: .9; }
.btn.secondary { background: var(--raised); color: var(--text); }
.btn.secondary:hover { background: var(--field); }
.btn.small { min-height: 40px; padding: 0 var(--s2); font-size: 14px; }

/* ── Каркас ────────────────────────────────────────────── */
.layout { display: block; }
.nav { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(88vw, 320px); background: var(--side); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .3s var(--ease); }
.nav.open { transform: none; box-shadow: var(--shadow); }
.nav-scroll { height: 100%; overflow-y: auto; padding: var(--s3) var(--s2) var(--s5); overscroll-behavior: contain; }
.nav-backdrop { position: fixed; inset: 0; z-index: 35; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav.open + .nav-backdrop { opacity: 1; pointer-events: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font-size: 15px; line-height: 1.35; transition: background .2s, color .2s; }
.nav-list a .i { width: 18px; height: 18px; color: var(--subtle); }
.nav-list a:hover { background: var(--surface); color: var(--text); }
.nav-list a.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.nav-list a.on .i { color: var(--accent); }
[data-theme="light"] .nav-list a.on .i { color: var(--ok); }
.nav-group { margin-top: var(--s2); }
.nav-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: var(--s1) 12px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--subtle); cursor: pointer; border-radius: 10px; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { color: var(--muted); }
.i-caret { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s; }
.nav-group:not([open]) .i-caret { transform: none; }
.nav-links { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); display: grid; gap: 2px; }
.nav-links a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { background: var(--surface); color: var(--text); }
.nav-links .i { width: 18px; height: 18px; }
.i-ext { width: 13px; height: 13px; margin-left: 4px; opacity: .6; vertical-align: -1px; }
.nav-links .i-ext { margin-left: auto; }

.main { min-width: 0; padding: var(--s3) var(--s2) var(--s6); }
.doc { max-width: var(--doc-w); margin: 0 auto; }
.toc { display: none; }

/* ── Текст ─────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--subtle); margin-bottom: var(--s2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--muted); }
.i-sep { width: 14px; height: 14px; opacity: .6; }
.doc h1 { font-size: clamp(34px, 7vw, 48px); line-height: 1.05; letter-spacing: -1.6px; margin: 0 0 var(--s2); font-weight: 700; }
.doc h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.6px; margin: var(--s6) 0 var(--s2); font-weight: 700; position: relative; }
.doc h3 { font-size: 19px; line-height: 1.3; margin: var(--s4) 0 var(--s1); font-weight: 600; position: relative; }
.anchor { margin-left: var(--s1); color: var(--subtle); text-decoration: none; opacity: 0; font-weight: 400; transition: opacity .2s; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
.doc p, .doc ul, .doc ol { margin: 0 0 var(--s2); color: var(--muted); }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--subtle); }
.doc strong, .doc b { color: var(--text); font-weight: 600; }
.doc a:not(.btn):not(.card) { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
[data-theme="light"] .doc a:not(.btn):not(.card) { text-decoration-color: var(--ok); }
.doc a:not(.btn):not(.card):hover { text-decoration-color: currentColor; }
.lead { font-size: 18px; line-height: 1.6; }
.doc .lead { color: var(--muted); }
.doc code { font: 500 14px/1.4 var(--mono); background: var(--code); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--text); word-break: break-word; }
.uipath { display: inline; }
.uipath b { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; margin: 2px 0; font-weight: 600; font-size: 14.5px; line-height: 1.6; white-space: nowrap; }
.uipath .i-sep { width: 14px; height: 14px; margin: 0 2px; vertical-align: -2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: var(--s3) 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: var(--s5) 0; }

/* Шаги инструкции */
.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s3) 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 var(--s4) 56px; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.steps > li::after { content: ""; position: absolute; left: 17px; top: 44px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.steps > li:last-child { padding-bottom: var(--s1); }
.steps > li:last-child::after { display: none; }
.steps > li > h3 { margin: 4px 0 var(--s1); font-size: 18px; }
.steps > li > p:last-child { margin-bottom: 0; }

/* Выноски */
.note { display: flex; gap: 12px; padding: var(--s2) 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin: var(--s3) 0; }
.note > .i { margin-top: 2px; color: var(--muted); }
.note div { min-width: 0; color: var(--muted); font-size: 15px; }
.note div > b:first-child { display: block; color: var(--text); margin-bottom: 2px; }
.note p { margin: 0 0 var(--s1); }
.note p:last-child { margin: 0; }
.note-tip { background: var(--accent-soft); border-color: transparent; }
.note-tip > .i { color: var(--accent); }
[data-theme="light"] .note-tip > .i { color: var(--ok); }
.note-warn { background: var(--warn-soft); border-color: transparent; }
.note-warn > .i { color: var(--warn); }

/* Скриншоты */
.shots { display: flex; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px var(--s1); margin: var(--s3) -4px; scrollbar-width: thin; }
.shot { margin: var(--s3) 0; }
.shots .shot { margin: 0; scroll-snap-align: start; }
.shot-zoom { display: block; cursor: zoom-in; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 12px 40px #0000002e; transition: transform .3s var(--ease); }
.shot-zoom:hover { transform: translateY(-2px); }
.shot-phone .shot-zoom { width: 232px; border-radius: 26px; }
.shot-desktop .shot-zoom { border-radius: var(--r-lg); }
.shot figcaption { font-size: 13px; color: var(--subtle); margin-top: 10px; max-width: 232px; line-height: 1.45; }
.shot-desktop figcaption { max-width: none; }

/* Карточки */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: var(--s3) 0; }
.card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--s2); align-items: center; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .25s var(--ease), background .2s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card-icon { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--raised); color: var(--text); }
.card b { font-size: 16px; padding-right: var(--s3); }
.card small { color: var(--subtle); font-size: 13.5px; line-height: 1.4; padding-right: var(--s3); }
.card-arrow { position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--subtle); transition: transform .2s, color .2s; }
.card:hover .card-arrow { transform: translateX(3px); color: var(--text); }
.card b:only-of-type { grid-row: span 2; }

/* Строка с копированием */
.code { display: flex; align-items: center; gap: var(--s1); background: var(--code); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 6px 6px var(--s2); margin: var(--s2) 0; }
.code code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; overflow-x: auto; white-space: nowrap; font-size: 14px; }
.code .iconbtn.done { color: var(--ok); }

/* Таблицы */
.table { overflow-x: auto; margin: var(--s3) 0; border: 1px solid var(--line); border-radius: var(--r); }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.table th, .table td { text-align: left; padding: 12px var(--s2); border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--subtle); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; background: var(--surface); }
.table tr:last-child td { border-bottom: 0; }
.table td { color: var(--muted); }
.table td b { color: var(--text); }

/* Вопрос-ответ */
.faq { border-top: 1px solid var(--line); margin: var(--s3) 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: 18px 0; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 18px; height: 18px; color: var(--subtle); transition: transform .2s; transform: rotate(90deg); }
.faq details[open] summary .i { transform: rotate(-90deg); }
.faq details > div { padding: 0 0 var(--s2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Главная */
.hero { position: relative; display: grid; gap: var(--s3); align-items: center; padding: var(--s4) var(--s3); border-radius: var(--r-xl); background: radial-gradient(120% 120% at 100% 0%, #c6edaa1a 0%, transparent 55%), var(--surface); border: 1px solid var(--line); overflow: hidden; margin-bottom: var(--s4); }
.hero .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--subtle); }
.hero h1 { margin: var(--s1) 0 var(--s2); }
.hero h1 em { font-style: normal; color: var(--accent); }
[data-theme="light"] .hero h1 em { color: var(--ok); }
.hero p { color: var(--muted); margin: 0 0 var(--s3); max-width: 480px; }
.hero-art { width: 200px; justify-self: center; filter: drop-shadow(0 20px 40px #6fe0391f); }
.hero .actions { margin: 0; }
.status-line { display: flex; align-items: center; gap: var(--s1); font-size: 14px; color: var(--muted); margin-top: var(--s2); text-decoration: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); flex: none; }
.dot.down { background: var(--error); box-shadow: 0 0 0 4px color-mix(in srgb, var(--error) 20%, transparent); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 20%, transparent); }
.platforms { grid-template-columns: 1fr 1fr; }
.platforms .card { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 12px; padding: 20px; align-items: start; }
.platforms .card-icon { grid-row: auto; }
.platforms .card b, .platforms .card small { padding-right: 0; }
.platforms .card-arrow { top: 22px; margin-top: 0; }

/* Статус */
.status-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); margin: var(--s3) 0; }
.status-head b { font-size: 18px; }
.status-head small { color: var(--subtle); margin-left: auto; }
.status-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: var(--s3) 0; }
.status-row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--bg); }
.status-row b { font-weight: 600; }
.status-row small { color: var(--subtle); }
.status-row > div { flex: 1; min-width: 0; }
.status-row .st { font-size: 14px; color: var(--muted); white-space: nowrap; min-width: 88px; text-align: right; }
.load { width: 64px; height: 6px; border-radius: 4px; background: var(--raised); overflow: hidden; flex: none; }
.load i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.load .w1 { width: 10%; }
.load .w2 { width: 20%; }
.load .w3 { width: 30%; }
.load .w4 { width: 40%; }
.load .w5 { width: 50%; }
.load .w6 { width: 60%; }
.load .w7 { width: 70%; }
.load .w8 { width: 80%; }
.load .w9 { width: 90%; }
.load .w10 { width: 100%; }

/* Блок поддержки и соседние страницы */
.help-box { max-width: var(--doc-w); margin: var(--s6) auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: 20px var(--s3); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.help-box > .i { width: 28px; height: 28px; color: var(--accent); }
[data-theme="light"] .help-box > .i { color: var(--ok); }
.help-box div { flex: 1; min-width: 200px; }
.help-box p { margin: 0; color: var(--muted); font-size: 14.5px; }
.pager { max-width: var(--doc-w); margin: var(--s3) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager a { display: grid; gap: 2px; padding: var(--s2) 20px; border-radius: var(--r-lg); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; min-width: 0; }
.pager a:hover { border-color: var(--line-strong); }
.pager small { color: var(--subtle); font-size: 13px; }
.pager b { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; }
.pager-next { text-align: right; }
.pager-next b { justify-content: flex-end; }
.i-flip { transform: rotate(180deg); }
.pager .i { width: 16px; height: 16px; }

.foot { border-top: 1px solid var(--line); padding: var(--s4) var(--s2); display: grid; gap: var(--s2); color: var(--subtle); font-size: 14px; }
.foot p { margin: var(--s1) 0 0; }
.foot a { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* Поиск */
.search { position: fixed; inset: 0; z-index: 60; background: var(--overlay); display: flex; justify-content: center; align-items: flex-start; padding: 12vh var(--s2) var(--s2); }
.search[hidden], .lightbox[hidden] { display: none; }
.search-box { width: min(640px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--side); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 var(--s2); border-bottom: 1px solid var(--line); }
.search-field .i { color: var(--subtle); }
.search-field input { flex: 1; min-width: 0; height: 60px; background: none; border: 0; color: var(--text); font: 400 17px var(--font); outline: none; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { list-style: none; margin: 0; padding: var(--s1); overflow-y: auto; }
.search-results a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.search-results a small { display: block; font-size: 12px; color: var(--subtle); margin-bottom: 2px; }
.search-results a b { display: block; font-weight: 600; }
.search-results a span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results a mark { background: var(--accent-soft); color: var(--text); border-radius: 3px; padding: 0 2px; }
.search-results li.on a, .search-results a:hover { background: var(--surface); }
.search-empty { padding: var(--s3); margin: 0; color: var(--muted); font-size: 15px; }
.search-empty a { color: var(--text); }

.lightbox { position: fixed; inset: 0; z-index: 70; background: #000000e6; display: grid; place-items: center; padding: var(--s3); cursor: zoom-out; }
.lightbox img { max-height: 92vh; max-width: 100%; width: auto; border-radius: var(--r-lg); }
.lightbox-close { position: absolute; top: var(--s2); right: var(--s2); color: #fff; }

/* Плавное появление */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ── Брейкпоинты ───────────────────────────────────────── */
@media (min-width: 720px) {
  .top { padding: 0 var(--s3); }
  .main { padding: var(--s5) var(--s4) var(--s8); }
  .cards { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr auto; padding: var(--s5); }
  .hero-art { width: 220px; }
  .shot-phone .shot-zoom { width: 260px; }
  .shot figcaption { max-width: 260px; }
  .foot { grid-template-columns: 1fr auto; align-items: end; padding: var(--s4); }
  .btn.top-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .burger, .top-actions [data-search] { display: none; }
  .searchbtn { display: flex; }
  .layout { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); }
  .nav { position: sticky; top: var(--top); height: calc(100vh - var(--top)); width: auto; transform: none; background: transparent; border-right: 1px solid var(--line); z-index: 1; }
  .nav-backdrop { display: none; }
  .main { padding: var(--s5) var(--s6) var(--s8); }
  .logo { margin-right: var(--s3); }
  .top-actions { margin-left: auto; }
}
@media (min-width: 1280px) {
  .layout { grid-template-columns: var(--nav-w) minmax(0, 1fr) var(--toc-w); }
  .toc { display: block; position: sticky; top: var(--top); align-self: start; max-height: calc(100vh - var(--top)); overflow-y: auto; padding: var(--s5) var(--s3) var(--s3) 0; font-size: 14px; }
  .toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--subtle); margin-bottom: 12px; }
  .toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--subtle); text-decoration: none; line-height: 1.4; }
  .toc a:hover { color: var(--text); }
  .toc a.on { color: var(--text); border-left-color: var(--accent); }
}
@media print {
  .top, .nav, .toc, .pager, .help-box, .foot, .search, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
