/* Главная Keywarden в языке самого приложения: Inter, карточки с тонкими линиями, спокойные плашки.
   Ничего не грузится со сторонних ресурсов. Анимация только дополняет: без JS и при
   prefers-reduced-motion всё видно сразу. */
:root {
  --bg: #0d0d10;
  --bg-2: #131317;
  --bg-3: #1a1a1f;
  --ink: #ececef;
  --muted: #9a9aa6;
  --line: #24242a;
  --line-2: #33333c;
  --violet: #7c5cff;
  --violet-hi: #a18bff;
  --violet-lo: #4a3a99;
  --violet-bg: rgba(124, 92, 255, 0.12);
  --on-violet: #fff;
  --ok: #4ade80;
  --ok-bg: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --no: #f87171;
  --no-bg: rgba(248, 113, 113, 0.12);
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--body);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 12px;
  --z-nav: 10;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; }
a { color: var(--violet-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-corner { background: transparent; }
img { max-width: 100%; display: block; height: auto; }
code { font: 500 0.86em var(--mono); background: var(--bg-3); border: 1px solid var(--line); padding: 0.08em 0.38em; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 2px; border-radius: 8px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); color: var(--on-violet); padding: 8px 14px; border-radius: 8px; z-index: calc(var(--z-nav) + 1); }
.skip:focus { left: 12px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -0.028em; }
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--violet-hi); }
.sub { margin: 12px 0 0; color: var(--muted); max-width: 64ch; text-wrap: pretty; }
.lead { margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 52ch; text-wrap: pretty; }
main > section { padding-block: 76px; border-top: 1px solid var(--line); }
main > section.hero, main > section.show { border-top: 0; }

/* --- шапка --- */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: rgba(13, 13, 16, 0); border-bottom: 1px solid transparent; transition: background 200ms, border-color 200ms; }
.nav.scrolled { background: rgba(13, 13, 16, 0.86); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { font: 600 16px var(--body); letter-spacing: -0.015em; display: flex; gap: 9px; align-items: center; color: var(--ink); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 4px; font-size: 14px; }
.nav-links a, .nav-right .docs { color: var(--muted); padding: 6px 10px; border-radius: 8px; transition: color 140ms, background 140ms; }
.nav-links a:hover, .nav-right .docs:hover { color: var(--ink); background: var(--bg-3); text-decoration: none; }
.nav-links a[aria-current="true"], .nav-right .docs[aria-current] { color: var(--ink); }
.nav-right { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.gh, .menu-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); transition: color 140ms, border-color 140ms; }
.gh:hover, .menu-btn:hover { color: var(--ink); border-color: var(--line-2); }
.gh svg { width: 16px; height: 16px; fill: currentColor; }
.nav-links .only-narrow { display: none; }
.menu-btn { display: none; cursor: pointer; padding: 0; }
.menu-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; list-style: none; cursor: pointer; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; font: 500 13px var(--body); color: var(--muted); user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.lang summary:hover, .lang[open] summary { color: var(--ink); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 100%; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
.lang-menu a { display: block; padding: 6px 10px; border-radius: 6px; font: 500 13px var(--body); color: var(--muted); white-space: nowrap; }
.lang-menu a:hover { text-decoration: none; background: var(--bg-3); color: var(--ink); }
.lang-menu a[aria-current="page"] { color: var(--ink); }

/* --- кнопки, плашки --- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 9px; font: 500 14.5px var(--body); border: 1px solid transparent; cursor: pointer; transition: background 140ms, border-color 140ms, transform 120ms var(--out); }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--violet); color: var(--on-violet); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.btn.primary:hover { background: #8b6dff; }
.btn.ghost { background: var(--bg-2); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--line-2); background: var(--bg-3); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.badge { display: inline-block; font: 500 11.5px var(--body); padding: 2px 7px; border-radius: 6px; background: var(--warn-bg); color: var(--warn); margin-left: 8px; vertical-align: 2px; letter-spacing: 0; }
.more { display: inline-block; margin-top: 16px; font-size: 14.5px; font-weight: 500; }
.more::after { content: " →"; }
.mark { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 700 11px/1 var(--body); }
.mark.yes { background: var(--ok-bg); color: var(--ok); }
.mark.part { background: var(--warn-bg); color: var(--warn); }
.mark.no { background: var(--no-bg); color: var(--no); }

/* --- переключатели разделов: сегменты, как в приложении --- */
.tour-keys, .rival-keys, .os-keys { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; margin-top: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; max-width: 100%; }
.tour-keys .key, .rival-keys .key, .os-keys .key { appearance: none; border: 0; background: none; color: var(--muted); font: 500 14px var(--body); padding: 7px 12px; border-radius: 8px; cursor: pointer; transition: color 140ms, background 140ms; }
.tour-keys .key > span, .rival-keys .key > span, .os-keys .key > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tour-keys .key:hover, .rival-keys .key:hover, .os-keys .key:hover { color: var(--ink); }
.tour-keys .key[aria-selected="true"], .rival-keys .key[aria-selected="true"], .os-keys .key[aria-selected="true"] { background: var(--bg-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
/* в обзоре подпись главная, цифра рядом как подсказка клавиши */
.tour-keys .key > span { flex-direction: row-reverse; font: 500 11px var(--mono); color: var(--muted); }
.tour-keys .key small { font: 500 14px var(--body); color: inherit; }
.tour-keys .key small::first-letter { text-transform: uppercase; }
.tour-keys .key:hover small, .tour-keys .key[aria-selected="true"] small { color: var(--ink); }
.tour-keys .key small { color: var(--muted); display: inline-block; }
.rival-keys .key small, .os-keys .key small { font: 400 12.5px var(--body); color: var(--muted); }

/* --- первый экран --- */
.hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; padding-block: 72px 56px; }
.hero > * { min-width: 0; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.trust b { color: var(--ink); font-weight: 500; }
/* демо лаунчера: карточка как окно лаунчера в приложении */
.rig { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.3); overflow: hidden; }
.rig .row { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rig .key { cursor: pointer; }
.rig .key > span { display: block; font: 500 12px var(--mono); color: var(--ink); background: var(--bg-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 3px 8px; transition: background 120ms, border-color 120ms, transform 100ms var(--out); }
.rig .key small { display: none; }
.rig .key.down > span, .rig .key:active > span { background: var(--violet); border-color: var(--violet); color: var(--on-violet); transform: translateY(1px); }
.rig .key.accent > span { color: var(--violet-hi); }
.rig .key.accent.down > span { color: var(--on-violet); }
.rig .plus { color: var(--muted); font-size: 13px; padding-inline: 2px; }
.screen { font: 500 13.5px/1.9 var(--mono); padding: 14px 16px; min-height: 148px; color: var(--muted); }
.screen b { color: var(--ink); font-weight: 600; }
.screen .ok { color: var(--ok); }
.screen .row-hit { display: block; margin: 2px -8px; padding: 1px 8px; border-radius: 7px; background: var(--violet-bg); color: var(--ink); }
.screen .row-hit + br { display: none; }
.screen .caret { display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--violet-hi); animation: blink 1s steps(2) infinite; }
.screen .bar { height: 2px; margin-top: 12px; border-radius: 2px; background: var(--line); overflow: hidden; }
.screen .bar i { display: block; height: 100%; background: var(--violet); transform-origin: left; transition: transform 1s linear; }
.rig .hint { margin: 0; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
@keyframes blink { 50% { opacity: 0; } }
/* снимок окна в рамке, без наклона */
.show { padding-block: 0 84px; }
.show img, .tour-panel img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95); background: var(--bg-2); }

/* --- обзор возможностей --- */
.tour-panel { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 44px; align-items: center; margin-top: 28px; }
.tour-panel > * { min-width: 0; }
.tour-panel h3 { font-size: 22px; letter-spacing: -0.02em; }
.tour-panel p { color: var(--muted); margin: 10px 0 0; }
.facts { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 10px; height: 6px; border-left: 2px solid var(--violet-hi); border-bottom: 2px solid var(--violet-hi); transform: rotate(-45deg); }
.tour-panel.enter > * { animation: rise 360ms var(--out) backwards; }
.tour-panel.enter > img { animation-delay: 50ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* --- безопасность: карточки со строками, как разделы настроек --- */
.spec { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec .key { padding: 14px 16px; border-right: 1px solid var(--line); }
.spec .key:last-child { border-right: 0; }
.spec .key > span { display: block; font: 600 15px var(--body); letter-spacing: -0.01em; }
.spec .key small { display: block; margin-top: 2px; font: 400 12.5px var(--body); color: var(--muted); letter-spacing: 0; }
.spec .key.accent > span { color: var(--violet-hi); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.two > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.two h3 { display: flex; align-items: center; gap: 9px; padding: 13px 18px; font-size: 14.5px; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.two ul { list-style: none; margin: 0; padding: 0; }
.two li { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.two li:last-child { border-bottom: 0; }
.two li b { display: block; font-weight: 600; font-size: 14.5px; }
.two li span { display: block; margin-top: 2px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.two .more { margin: 0; display: block; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; }

/* --- сравнение --- */
.duel { margin-top: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 14.5px; }
.duel-head, .duel-row { display: grid; grid-template-columns: 0.9fr 1fr 1fr; gap: 16px; align-items: center; padding: 11px 18px; }
.duel-head { background: var(--bg-3); font-weight: 600; font-size: 13.5px; }
.duel-head .us { color: var(--violet-hi); }
.duel-row { border-top: 1px solid var(--line); }
.duel-row .label { color: var(--muted); }
.cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.duel .rival { display: none; }
.duel .rival.on { display: flex; }
.duel-head .rival.on { display: inline; }
.duel.swap .duel-row > :last-child, .duel.swap .duel-head .them { animation: rise 300ms var(--out) backwards; }
.verdict { margin-top: 16px; padding: 14px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.verdict .key { display: none; }
.verdict p { margin: 0; color: var(--muted); max-width: 86ch; }
.verdict p b { color: var(--ink); font-weight: 600; }
.verdict .rival { display: none; }
.verdict .rival.on { display: block; }
.note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

/* --- переезд --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 20px; }
.step .key > span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--violet-bg); color: var(--violet-hi); font: 600 13px var(--mono); }
.step h3 { margin-top: 14px; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span { font: 500 12px var(--body); color: var(--muted); padding: 2px 8px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line); }

/* --- установка --- */
.os-panel { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; margin-top: 16px; }
.os-panel + .os-panel { margin-top: 32px; }
.js .os-panel + .os-panel { margin-top: 16px; }
.os-panel > * { min-width: 0; }
.os-panel h3 { font-size: 19px; }
.os-panel p { color: var(--muted); margin: 8px 0 16px; font-size: 15px; }
.term { background: #09090b; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; font: 500 13.5px/1.85 var(--mono); overflow-x: auto; white-space: pre; margin: 0; color: var(--ink); }
.term .p { color: var(--violet-hi); user-select: none; }
.term .c { color: var(--muted); }
.os-panel.enter > * { animation: rise 340ms var(--out) backwards; }
.os-panel.enter > :nth-child(2) { animation-delay: 50ms; }
/* где ещё работает: браузеры и телефоны, у каждой платформы свой статус */
.reach { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; margin-top: 40px; }
.reach-group { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.reach-group h3 { padding: 16px 18px 0; }
.reach-group p { margin: 4px 0 0; padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.reach-list { list-style: none; margin: auto 0 0; padding: 0; }
.reach-list li { border-top: 1px solid var(--line); }
.reach-item { display: flex; align-items: center; gap: 10px; padding: 11px 18px; color: var(--muted); font-size: 14.5px; }
.reach-item b { font-weight: 500; color: var(--ink); }
.reach-item .state { font: 500 12px var(--body); color: var(--muted); padding: 2px 8px; border-radius: 6px; background: var(--bg-3); }
.reach-item.live .state { color: var(--ok); background: var(--ok-bg); }
.reach-item .state i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.reach-item .go { margin-left: auto; color: var(--violet-hi); font-weight: 500; }
a.reach-item { transition: background 140ms; }
a.reach-item:hover { background: var(--bg-3); text-decoration: none; }
div.reach-item b { color: var(--muted); }
div.reach-item .state { margin-left: auto; }

/* --- вопросы: на широком экране список слева и ответ в карточке справа --- */
.faq-grid > div:first-child { min-width: 0; }
.faq-list { margin-top: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
details + details { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 13px 18px; font: 500 15px/1.4 var(--body); transition: background 140ms; }
summary:hover { background: var(--bg-3); }
summary::-webkit-details-marker { display: none; }
summary .n { flex: none; font: 500 12px var(--mono); color: var(--muted); width: 16px; }
summary::after { content: "+"; margin-left: auto; font: 400 18px/1 var(--body); color: var(--muted); transition: transform 200ms var(--out); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0; padding: 0 18px 16px 46px; max-width: 72ch; font-size: 15px; }
details[open] p { animation: rise 300ms var(--out); }
.faq-screen { display: none; }
@media (min-width: 961px) {
  .js .faq-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; align-items: end; }
  .js .faq-list details p { display: none; }
  .js .faq-list summary::after { content: "→"; transform: none; opacity: 0; font-size: 15px; transition: opacity 140ms; }
  .js .faq-list details.active summary { background: var(--violet-bg); }
  .js .faq-list details.active summary .n { color: var(--violet-hi); }
  .js .faq-list details.active summary::after { opacity: 1; color: var(--violet-hi); }
  .js .faq-screen { display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px 26px; min-height: 260px; }
  .faq-screen .prompt { font: 500 12px var(--mono); color: var(--muted); margin-bottom: 12px; }
  .faq-screen .prompt b { color: var(--violet-hi); font-weight: 500; }
  .faq-screen h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
  .faq-screen p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.65; }
  .faq-screen.swap > * { animation: rise 320ms var(--out) backwards; }
  .faq-screen.swap > :nth-child(2) { animation-delay: 30ms; } .faq-screen.swap > :nth-child(3) { animation-delay: 60ms; }
}

/* --- финал и подвал --- */
main > section.final { text-align: center; }
.final h2, .final .sub { margin-inline: auto; }
.final .cta { justify-content: center; }
footer { padding-block: 28px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 6px 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* --- первая загрузка: слова заголовка поднимаются по очереди --- */
.js .hero h1 .w { display: inline-block; animation: rise 520ms var(--out) backwards; animation-delay: calc(var(--i) * 35ms); }
.js .hero .lead, .js .hero .cta, .js .hero .trust { animation: rise 560ms var(--out) 260ms backwards; }
.js .hero .rig { animation: rise 640ms var(--out) 180ms backwards; }
/* --- появление разделов: .pre ставит JS только тем, что ниже первого экрана --- */
.reveal { transition: opacity 480ms var(--out), transform 480ms var(--out); transition-delay: calc(var(--d, 0) * 50ms); }
.pre .reveal { opacity: 0; transform: translateY(10px); }

/* --- страница установки --- */
.inst-hero { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; padding-block: 56px 72px; }
main > section.inst-hero { border-top: 0; }
.inst-hero > * { min-width: 0; }
.inst-hero .lead { margin: 16px 0 0; }
.quick { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.quick .term { font-size: 13px; padding-inline: 16px; }
.quick-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin: 0 0 12px; font: 500 13px var(--body); color: var(--violet-hi); }
.quick-note { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); }
[data-copy] { position: relative; }
/* все системы одной высоты: переключение не двигает страницу */
.os-panel .term { font-size: 13px; padding-inline: 16px; min-height: calc(4 * 1.85em + 34px); }
[data-copy], .inst-more .term, .hand .term { white-space: pre-wrap; }
.copy-btn { position: absolute; top: 10px; right: 10px; font: 500 12px var(--body); color: var(--ink); background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 7px; padding: 5px 10px; cursor: pointer; transition: border-color 140ms; }
.quick-label .copy-btn { position: static; }
.copy-btn:hover { border-color: var(--muted); }
.hand { margin-top: 6px; border: 0; }
.hand summary { padding: 6px 0; font: 500 14.5px var(--body); color: var(--violet-hi); justify-content: flex-start; gap: 8px; }
.hand summary:hover { background: none; }
.hand summary::after { margin-left: 0; font-size: 16px; color: var(--violet-hi); }
.hand .term { margin-top: 10px; font-size: 13.5px; }
.hand[open] .term { animation: rise 300ms var(--out); }
.plats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.plats.two-up { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 760px; }
.plat { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
h2 + .plats, .sub + .plats { margin-top: 24px; }
.plats.stack .plat-top { flex-direction: column; align-items: flex-start; }
/* Firefox на всю строку: текст слева, кнопка справа; ниже компактный ряд «скоро» */
.plats.ext { grid-template-columns: repeat(3, 1fr); }
.plats.ext .live { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 24px; padding: 20px 22px; }
.plats.ext .live .plat-top { justify-content: flex-start; }
.plats.ext .live p { grid-column: 1; }
.plats.ext .live .btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; }
@media (max-width: 620px) { .plats.ext { grid-template-columns: 1fr; } .plats.ext .live { grid-template-columns: 1fr; row-gap: 12px; } .plats.ext .live .btn { grid-column: 1; grid-row: auto; } }
.plat-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.plat h3 { margin: 0; font-size: 17px; }
.plat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.plat p code { font-size: 12.5px; word-break: break-all; }
.plat .btn { margin-top: auto; align-self: flex-start; }
.plat.live { border-color: var(--violet-lo); background: linear-gradient(180deg, var(--violet-bg), transparent 70%), var(--bg-2); }
.chip { flex: none; font: 500 12px var(--body); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.chip.ok { color: var(--ok); background: var(--ok-bg); }
.chip.ok::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.chip.soon { color: var(--warn); background: var(--warn-bg); }
.chip.work { color: var(--violet-hi); background: var(--violet-bg); }
.inst-more { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.inst-more > * { min-width: 0; }
.inst-more p { color: var(--muted); margin: 8px 0 14px; }
.inst-more .term { font-size: 13.5px; }
@media (max-width: 960px) { .inst-hero, .inst-more { grid-template-columns: 1fr; gap: 28px; } .inst-hero { padding-block: 36px 56px; } }
@media (max-width: 620px) { .quick { padding: 14px; } .plat { padding: 16px; } }

/* --- страница синхронизации --- */
.flow { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px 16px; }
.flow-row { display: flex; align-items: center; }
.node { flex: 1 1 0; min-width: 0; display: grid; gap: 3px; padding: 14px 10px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); text-align: center; }
.node b { font: 600 14.5px var(--body); letter-spacing: -0.01em; }
.node small { font: 400 12px/1.4 var(--body); color: var(--muted); }
.node.hub { border-color: var(--violet-lo); background: linear-gradient(180deg, var(--violet-bg), transparent 80%), var(--bg-3); }
.link { flex: 0 0 34px; height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--violet-lo) 0 4px, transparent 4px 8px); }
.link i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--violet-hi); animation: hop 2.6s var(--out) infinite; }
.link + .node + .link i { animation-delay: 1.3s; }
@keyframes hop { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.flow figcaption { margin-top: 14px; font-size: 14.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flow .file { font: 500 12px var(--mono); color: var(--ink); background: var(--bg-3); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }
.soon-row { margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 760px; }
.setup { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.setup li { position: relative; padding: 58px 18px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.setup .num { position: absolute; top: 18px; left: 18px; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font: 600 13px var(--mono); color: var(--violet-hi); background: var(--violet-bg); }
.setup p { color: var(--muted); margin: 6px 0 0; font-size: 14.5px; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; margin-top: 28px; }
.rule { padding: 16px 0; border-top: 1px solid var(--line); }
.rule h3 { font-size: 16px; margin-bottom: 4px; }
.rule p { margin: 0; color: var(--muted); font-size: 15px; }
.know { margin: 20px 0 32px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 72ch; }
.know li { position: relative; padding-left: 22px; color: var(--muted); }
.know li::before { content: ""; position: absolute; left: 3px; top: 0.66em; width: 6px; height: 6px; border-radius: 2px; background: var(--violet-hi); }
@media (max-width: 860px) { .setup { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .flow-row { flex-direction: column; } .link { flex-basis: 28px; width: 2px; height: 28px; background: repeating-linear-gradient(180deg, var(--violet-lo) 0 4px, transparent 4px 8px); } .link i { display: none; } .node { width: 100%; } }

/* --- узкие экраны --- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 44px 40px; }
  .tour-panel, .os-panel, .reach, .two { grid-template-columns: 1fr; }
  .tour-panel { gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr 1fr; }
  .spec .key { border-bottom: 1px solid var(--line); }
  .spec .key:nth-child(2n) { border-right: 0; }
  .spec .key:last-child { grid-column: 1 / -1; border-bottom: 0; }
  main > section { padding-block: 56px; }
  .show { padding-block: 0 56px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; gap: 2px; padding: 10px 24px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links { display: flex; }
  .nav-links .only-narrow { display: block; }
  .nav-right .docs { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 620px) {
  .duel-head, .duel-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 11px 14px; }
  .duel-head > :first-child { display: none; }
  .duel-row .label { grid-column: 1 / -1; font-size: 13px; }
  .tour-keys, .rival-keys, .os-keys { display: flex; }
  .term { white-space: pre-wrap; overflow-wrap: anywhere; }
  .lead { font-size: 16.5px; }
}
@media (max-width: 400px) {
  .wrap { width: calc(100% - 32px); }
  .nav.open .nav-links { padding-inline: 16px; }
  .nav .wrap { gap: 10px; }
  .nav-right { gap: 6px; }
  .brand { flex: none; }
}
@media (max-width: 360px) { .nav .gh { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pre .reveal { opacity: 1; transform: none; }
}
