/* @fonts-begin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-cyrillic-13755630.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin-6ab57b19.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-cyrillic-13755630.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-latin-6ab57b19.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-cyrillic-13755630.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-latin-6ab57b19.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-cyrillic-e3f11026.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-1e034387.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: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/oswald-cyrillic-a8499ade.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/oswald-latin-78c7a4dd.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: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/oswald-cyrillic-a8499ade.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/oswald-latin-78c7a4dd.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;
}
/* @fonts-end */
:root {
  --bg: #16120e;
  --bg-2: #1f1913;
  --card: #241d16;
  --line: #3a2f24;
  --text: #ede3d4;
  --muted: #a8998a;
  --sand: #d9a55b;
  --rust: #c0582d;
  --ok: #7fb36a;
  --bad: #c9533f;
  --code: #120f0b;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3ebdd; --bg-2: #eadfcb; --card: #fbf6ec; --line: #dccdb3;
    --text: #2a2016; --muted: #6f604f; --sand: #a86d1f; --rust: #b04a22;
    --ok: #3f7d2e; --bad: #b0412f; --code: #efe4d0;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-image: radial-gradient(1200px 500px at 50% -120px, color-mix(in srgb, var(--rust) 22%, transparent), transparent);
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
header { padding: 56px 0 28px; text-align: center; }
.kicker { color: var(--sand); letter-spacing: .25em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
h1 { font-family: Oswald, Impact, sans-serif; font-weight: 700; font-size: clamp(44px, 9vw, 76px); line-height: 1; margin: 10px 0 12px; letter-spacing: .03em; }
h1 span { color: var(--rust); }
.lead { color: var(--muted); max-width: 560px; margin: 0 auto; }
h2 { font-family: Oswald, Impact, sans-serif; font-weight: 500; font-size: 26px; letter-spacing: .03em; margin: 0 0 14px; }
section { margin: 0 0 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }

.ip { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.ip code { flex: 1 1 260px; font: 500 clamp(18px, 4.5vw, 24px) "JetBrains Mono", Consolas, monospace; background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--sand); overflow-wrap: anywhere; }
button, .btn { font: 600 15px Inter, sans-serif; border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer; background: var(--rust); color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
button:hover, .btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* максимум 3 в ряд; неполный ряд растягивается на всю ширину; на узком экране переносятся по min-width */
.meta > div { flex: 1 1 calc((100% - 20px) / 3); min-width: 150px; }
.meta div { background: var(--bg-2); border-radius: 10px; padding: 10px 14px; }
.meta b { display: block; font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.meta span { font-weight: 600; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .dot.off { background: var(--bad); }

.tabs { display: flex; gap: 6px; background: var(--bg-2); padding: 5px; border-radius: 12px; margin-bottom: 18px; }
.tabs button { flex: 1; background: transparent; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.panel[hidden] { display: none; }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 18px 46px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); color: var(--sand); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
ol.steps > li:last-child { padding-bottom: 0; }
li strong { color: var(--text); }
.path { font: 500 14px "JetBrains Mono", Consolas, monospace; background: var(--code); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.copyline { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.copyline code { flex: 1 1 240px; font: 500 14px "JetBrains Mono", Consolas, monospace; background: var(--code); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.copyline button { padding: 8px 14px; font-size: 14px; }
.note { border-left: 3px solid var(--sand); background: var(--bg-2); padding: 12px 14px; border-radius: 0 10px 10px 0; color: var(--muted); margin-top: 14px; }
.note strong { color: var(--text); }
details { border-top: 1px solid var(--line); padding: 14px 0 0; margin-top: 16px; }
summary { cursor: pointer; font-weight: 600; }
a { color: var(--sand); }
footer { color: var(--muted); font-size: 14px; text-align: center; padding: 20px 0 44px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* навигация */
.topnav { display: flex; justify-content: center; gap: 6px; padding: 16px 0 0; flex-wrap: wrap; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; }
.topnav a:hover { color: var(--text); }
.topnav a[aria-current="page"] { color: var(--text); border-color: var(--line); background: var(--card); }

/* вики */
.wiki-header { padding: 36px 0 20px; text-align: center; }
.wiki-header h1 { font-size: clamp(36px, 7vw, 56px); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; }
.toc a:hover { border-color: var(--sand); }
article.card { scroll-margin-top: 16px; }
article h3 { font-size: 17px; margin: 22px 0 8px; }
article p { margin: 0 0 12px; }
article ul { margin: 0 0 12px; padding-left: 22px; }
article li { margin-bottom: 6px; }
.callout { border-radius: 12px; padding: 14px 16px; margin: 14px 0; border: 1px solid var(--line); background: var(--bg-2); }
.callout.good { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.callout.warn { border-color: color-mix(in srgb, var(--rust) 60%, var(--line)); }
.callout b.t { display: block; margin-bottom: 4px; }
.races { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 14px; }
.races th, .races td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.races th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.races tr.pick td { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.races td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 25%, transparent); color: var(--ok); margin-left: 6px; vertical-align: 1px; }

/* вики: страницы с боковым меню */
.wiki { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 24px; }
.wiki-side { position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.wiki-side .side-title { font: 500 13px Inter, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; padding: 6px 10px 8px; }
.wiki-side a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.wiki-side a:hover { background: var(--bg-2); }
.wiki-side a[aria-current="page"] { background: var(--bg-2); color: var(--sand); }
.wiki-side a span.ico { width: 20px; text-align: center; flex: none; }
.wiki-main h1.page { font-family: Oswald, Impact, sans-serif; font-weight: 700; font-size: clamp(32px, 6vw, 44px); line-height: 1.05; margin: 0 0 6px; letter-spacing: .02em; }
.wiki-main .page-lead { color: var(--muted); margin: 0 0 20px; }
.wiki-main > section.card { margin-bottom: 18px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 10px; }
.pager a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--text); }
.pager a:hover { border-color: var(--sand); }
.pager small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.pager .next { text-align: right; grid-column: 2; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cards a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--text); }
.cards a:hover { border-color: var(--sand); }
.cards a b { display: block; font-size: 17px; margin: 6px 0 4px; }
.cards a span { color: var(--muted); font-size: 14px; }
.cards .big { font-size: 26px; }
.launchers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.launcher { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--text); }
.launcher:hover { border-color: var(--sand); }
.launcher img { width: 56px; height: 56px; flex: none; }
.launcher b { display: block; font-size: 18px; }
.launcher span { color: var(--muted); font-size: 14px; }
h2 .h2ico { width: 30px; height: 30px; vertical-align: -6px; margin-right: 8px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ok); cursor: pointer; }
.checklist label { cursor: pointer; }
.checklist label b { display: block; }
.checklist label span { color: var(--muted); }
.checklist li.done label b { text-decoration: line-through; color: var(--muted); }
.progress { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin: 4px 0 14px; }
.progress i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .3s; }
kbd { font: 600 13px "JetBrains Mono", Consolas, monospace; background: var(--code); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.keys div { background: var(--bg-2); border-radius: 10px; padding: 8px 12px; }
@media (max-width: 760px) {
  .wiki { grid-template-columns: 1fr; padding-top: 12px; }
  .wiki-side { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 6px; -webkit-overflow-scrolling: touch; }
  .wiki-side .side-title { display: none; }
  .wiki-side a { white-space: nowrap; flex: none; font-size: 14px; padding: 8px 10px; }
}

.wiki > * { min-width: 0; }

/* иконки лаунчеров в блоке установки */
.tabico { width: 20px; height: 20px; flex: none; }
.lhead { display: flex; gap: 14px; align-items: center; background: var(--bg-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.lhead img { width: 48px; height: 48px; flex: none; }
.lhead b { display: block; font-size: 17px; }
.lhead span { color: var(--muted); font-size: 14px; }
