:root {
    --bg: #0f1318;
    --surface: #181d24;
    --surface-2: #1f2630;
    --line: rgba(255, 255, 255, 0.09);
    --text: #f3f5f8;
    --muted: #9aa5b4;
    --accent: #f5a642;
    --accent-hover: #ffba62;
    --accent-ink: #111418;
    --danger: #ff7a70;
    --ok: #5cd68d;
    --radius: 14px;
    --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--text); color-scheme: dark; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin: 0 auto; }

header.top {
    position: sticky; top: 0; z-index: 20;
    background: rgba(15, 19, 24, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
header.top .wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; height: 66px;
}
.brand {
    display: inline-flex; align-items: center; gap: 11px;
    font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav.links { display: flex; align-items: center; gap: 20px; }
nav.links a { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
nav.links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
    background: var(--accent); color: var(--accent-ink);
    font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none;
    transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost {
    background: rgba(255, 255, 255, 0.05); color: var(--text);
    border-color: var(--line); font-weight: 600;
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn.yandex { background: #fc3f1d; color: #fff; }
.btn.yandex:hover { background: #e33415; }
.btn.small { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.hero { padding: 34px 0 28px; }
.hero-card {
    position: relative; overflow: hidden;
    border-radius: 20px; border: 1px solid var(--line);
    background: var(--surface);
    min-height: 410px;
    display: flex; align-items: flex-end;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url("/assets/game-cover.jpg") center/cover no-repeat;
}
.hero-scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 19, 24, 0.98) 0%, rgba(15, 19, 24, 0.88) 42%, rgba(15, 19, 24, 0.35) 100%),
        linear-gradient(0deg, rgba(15, 19, 24, 0.82) 0%, transparent 55%);
}
.hero-content { position: relative; z-index: 2; padding: 44px; max-width: 650px; }
.eyebrow {
    display: inline-block; margin: 0 0 12px; padding: 5px 11px;
    border-radius: 999px; background: rgba(245, 166, 66, 0.14);
    border: 1px solid rgba(245, 166, 66, 0.32);
    color: var(--accent); font-size: 12.5px; font-weight: 600;
}
h1 { margin: 0 0 14px; font-size: clamp(32px, 5vw, 50px); line-height: 1.08; letter-spacing: -0.025em; }
.lead { margin: 0 0 24px; color: #d5dce6; font-size: 17px; max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.meta-note code { color: #dce3ec; background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 5px; }

.trust-bar {
    margin-top: 18px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px;
}
.trust-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px 18px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
}
.trust-item strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.trust-item span { font-size: 13px; color: var(--muted); display: block; word-break: break-all; }

section.block { padding: 52px 0 0; }
section.block h2 { margin: 0 0 8px; font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.02em; }
section.block .sub { margin: 0 0 24px; color: var(--muted); font-size: 15.5px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.badge-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 8px; margin-bottom: 12px;
    background: rgba(245, 166, 66, 0.14); color: var(--accent);
    font-weight: 700; font-size: 14px;
}

.reqs { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.reqs li {
    display: flex; justify-content: space-between; gap: 16px; padding: 15px 20px;
    border-bottom: 1px solid var(--line); font-size: 15px;
}
.reqs li:last-child { border-bottom: none; }
.reqs li span:first-child { color: var(--muted); }
.reqs li span:last-child { font-weight: 600; text-align: right; }

.price-box {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center;
    background: linear-gradient(135deg, #1b212a 0%, #161a20 100%);
    border: 1px solid rgba(245, 166, 66, 0.35);
    border-radius: 18px; padding: 30px;
}
.price-val { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.price-val span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-list { list-style: none; padding: 0; margin: 14px 0 0; color: #d5dce6; font-size: 14.5px; }
.price-list li { margin-bottom: 7px; }

.faq details {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; padding: 16px 20px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }

.page-head { padding: 40px 0 22px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); }
.prose h2 { margin: 28px 0 10px; font-size: 20px; }
.prose p, .prose li { color: #d2dae4; font-size: 15px; }
.prose pre, .code-box {
    background: #0b0e12; border: 1px solid var(--line); border-radius: 10px;
    padding: 13px 16px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13.5px; color: #eef2f7;
}

.auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.field input {
    width: 100%; padding: 11px 13px; border-radius: 9px;
    border: 1px solid var(--line); background: #0c1015; color: var(--text); font-size: 15px;
}
.field input:focus { outline: none; border-color: var(--accent); }
.alert {
    padding: 12px 15px; border-radius: 10px; margin-bottom: 16px; font-size: 14px;
    background: rgba(245, 166, 66, 0.12); border: 1px solid rgba(245, 166, 66, 0.35); color: #ffd9a6;
}
.alert.err { background: rgba(255, 122, 112, 0.12); border-color: rgba(255, 122, 112, 0.35); color: #ffb5af; }
.alert.ok { background: rgba(92, 214, 141, 0.12); border-color: rgba(92, 214, 141, 0.35); color: #a7f3c4; }

.code-pill {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px; border-radius: 10px; background: #0b0e12; border: 1px solid var(--line);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; word-break: break-all;
}

.breadcrumbs {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    font-size: 13.5px; color: var(--muted); margin: 0 0 14px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; text-align: left; }
table.data th, table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; font-size: 13px; background: rgba(255,255,255,0.02); }
table.data tr:last-child td { border-bottom: none; }

.tag {
    display: inline-block; padding: 3px 9px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600;
}
.tag.ok { background: rgba(92, 214, 141, 0.14); color: var(--ok); border: 1px solid rgba(92, 214, 141, 0.35); }
.tag.pending { background: rgba(245, 166, 66, 0.12); color: var(--accent); border: 1px solid rgba(245, 166, 66, 0.3); }
.tag.no { background: rgba(255, 122, 112, 0.12); color: var(--danger); border: 1px solid rgba(255, 122, 112, 0.3); }

.checker {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; margin-top: 20px;
}
.checker-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.checker select {
    width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line);
    background: #0c1015; color: var(--text); font-size: 14.5px;
}

.video-placeholder {
    border: 1px dashed rgba(255,255,255,0.2); border-radius: var(--radius);
    padding: 28px 22px; background: #12171e; text-align: left;
}
.callout {
    border-left: 3px solid var(--accent); padding: 12px 16px;
    background: rgba(245, 166, 66, 0.08); border-radius: 0 10px 10px 0;
    margin: 16px 0; font-size: 14.5px; color: #e9eef5;
}

.article-meta {
    display: flex; flex-wrap: wrap; gap: 10px 18px;
    padding: 12px 16px; margin: 14px 0 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    font-size: 13.5px; color: var(--muted);
}
.article-meta strong { color: var(--text); font-weight: 600; }
.summary-box {
    background: var(--surface-2); border: 1px solid rgba(245, 166, 66, 0.25);
    border-radius: var(--radius); padding: 16px 18px; margin: 0 0 20px;
    font-size: 15.5px; color: #e9eef5;
}
.summary-box strong.kicker {
    display: block; font-size: 12.5px; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--accent); margin-bottom: 6px;
}
.toc {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 20px; margin: 0 0 26px;
}
.toc-title { font-weight: 700; font-size: 14px; color: var(--muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { font-size: 14.5px; }

.article-body h2 { margin: 34px 0 10px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.015em; scroll-margin-top: 84px; }
.article-body h3 { margin: 22px 0 8px; font-size: 19px; color: #f7f9fc; }
.article-body p { margin: 0 0 14px; color: #dce3ec; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; color: #dce3ec; }
.article-body li { margin-bottom: 6px; }
.article-body pre {
    background: #0b0e12; border: 1px solid var(--line); border-radius: 10px;
    padding: 13px 16px; overflow-x: auto; font-size: 13.5px; margin: 12px 0 18px;
}
.article-figure { margin: 20px 0; }
.article-figure img {
    display: block; width: 100%; height: auto; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--surface);
}
.article-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.cta-inline {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 22px; margin: 26px 0; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(245, 166, 66, 0.12), rgba(24, 29, 36, 0.96));
    border: 1px solid rgba(245, 166, 66, 0.34);
}
.cta-inline h3 { margin: 0 0 4px; font-size: 18px; }
.cta-inline p { margin: 0; font-size: 13.5px; color: var(--muted); }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.guide-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .15s ease, transform .15s ease;
}
.guide-card:hover { border-color: rgba(245, 166, 66, 0.45); transform: translateY(-2px); }
.guide-card img { display: block; width: 100%; height: 150px; object-fit: cover; border-bottom: 1px solid var(--line); }
.guide-card-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.guide-card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.guide-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.guide-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; flex: 1; }

.video-facade {
    position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); background: #0c1015; margin: 18px 0;
}
.video-facade img { display: block; width: 100%; height: auto; opacity: 0.72; }
.video-play {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    background: rgba(15, 19, 24, 0.45); border: none; color: #fff; cursor: pointer; font: inherit;
}

footer.foot {
    margin-top: 68px; padding: 30px 0 42px;
    border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px;
}
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a { color: var(--muted); }

@media (max-width: 780px) {
    nav.links { display: none; }
    .hero-content { padding: 28px 22px; }
    .price-box { grid-template-columns: 1fr; }
    .reqs li { flex-direction: column; gap: 4px; }
    .reqs li span:last-child { text-align: left; }
}
