/* PANTIVISTLAND — тёмная тема. Без внешних шрифтов и библиотек. */
:root {
  --bg: #0d1117;
  --bg2: #111821;
  --card: #151c26;
  --card2: #1c2531;
  --line: #28323f;
  --text: #f3ede4;
  --muted: #9fabbb;
  --accent: #ff7a1a;
  --accent2: #ffc857;
  --teal: #2dd4bf;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 122, 26, .10), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(45, 212, 191, .06), transparent 60%);
  background-attachment: fixed;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
code, kbd {
  font-family: var(--mono);
  font-size: .9em;
  background: #0b0f16;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .45em;
  color: #ffe0c2;
}
kbd { border-bottom-width: 2px; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #111; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1; margin-top: 2px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 8px 10px; border-radius: 8px; font-size: .92rem; font-weight: 600; }
.nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--card2); }
.nav a.cta { color: #1a0d07; background: linear-gradient(135deg, var(--accent), var(--accent2)); margin-left: 6px; }
.nav a.cta:hover { filter: brightness(1.08); }
.burger { display: none; margin-left: auto; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .2s, opacity .2s; }

@media (max-width: 1060px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
  .js-off .nav { display: flex; position: static; flex-direction: row; background: none; border: 0; padding: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 150px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 60% at 78% 18%, rgba(255, 122, 26, .30), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(45, 212, 191, .15), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 48px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); background: rgba(255, 200, 87, .08); border: 1px solid rgba(255, 200, 87, .25); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.grad { background: linear-gradient(120deg, var(--accent), var(--accent2) 60%, #ffe6b0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: #cfd6df; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.skyline { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; height: 130px; color: #0a0e13; pointer-events: none; }
.skyline svg { width: 100%; height: 100%; }
@media (max-width: 860px) {
  .hero { padding: 56px 0 120px; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform .15s, filter .15s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { color: #1a0d07; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 8px 30px rgba(255, 122, 26, .25); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text); background: var(--card); border-color: var(--line); }
.btn-ghost:hover { background: var(--card2); border-color: #39435a; }
.btn-sm { padding: 9px 14px; font-size: .9rem; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---------- Status card ---------- */
.status-card { background: linear-gradient(180deg, rgba(26, 33, 48, .92), rgba(19, 24, 34, .92)); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.status-card h2 { font-size: 1.05rem; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(251, 191, 36, .15); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); animation: pulse 2s infinite; }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 4px rgba(248, 113, 113, .15); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.status-hint { color: var(--muted); font-size: .92rem; margin: 6px 0 16px; }
.connect { display: flex; gap: 8px; align-items: stretch; }
.connect code { flex: 1; display: flex; align-items: center; padding: 11px 12px; font-size: .95rem; overflow-x: auto; white-space: nowrap; border-radius: 10px; }
.wipe-row { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wipe-row b { color: var(--text); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.kicker { color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.page-hero { padding: 54px 0 34px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 80% 0%, rgba(255, 122, 26, .12), transparent 70%); }
.page-hero p { color: #cfd6df; font-size: 1.1rem; max-width: 68ch; margin-bottom: 0; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .2s; }
a.card { display: block; color: inherit; }
a.card:hover, .card.hover:hover { border-color: #3b4660; transform: translateY(-2px); text-decoration: none; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: #bcc6d6; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 122, 26, .22), rgba(255, 200, 87, .12)); border: 1px solid rgba(255, 200, 87, .25); margin-bottom: 14px; color: var(--accent2); }
.ico svg { width: 24px; height: 24px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--card); padding: 20px; text-align: center; }
.stat b { display: block; font-size: 2rem; font-weight: 850; line-height: 1.1; background: linear-gradient(120deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .88rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Badges / callouts ---------- */
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.b-dev { color: var(--warn); background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); }
.b-soon { color: var(--teal); background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .3); }
.b-ok { color: var(--ok); background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .3); }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--card); border-radius: 10px; padding: 14px 18px; margin: 0 0 1.2em; }
.callout.warn { border-left-color: var(--warn); }
.callout.info { border-left-color: var(--teal); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: #fff; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps > li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 78px; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-weight: 850; font-size: 1.2rem; color: #1a0d07; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.steps h3 { margin-bottom: .3em; }
.steps p:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .steps > li { padding: 70px 18px 18px; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 0 0 1.4em; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--card2); color: #d4dcea; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody tr:hover td { background: rgba(255, 255, 255, .02); }
caption { text-align: left; padding: 12px 16px; font-weight: 700; color: var(--muted); caption-side: top; }

/* ---------- Prose (rules etc.) ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.rule { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 0 0 12px; display: grid; grid-template-columns: 56px 1fr; gap: 14px; }
.rule .n { font-family: var(--mono); font-weight: 800; color: var(--accent2); font-size: 1rem; padding-top: 2px; }
.rule p { margin: 0; color: #cfd6df; }
.rule b { color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.toc a { display: block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: .9rem; font-weight: 600; }
.toc a:hover { color: var(--text); border-color: #39435a; text-decoration: none; }

/* ---------- FAQ ---------- */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; }
details[open] { border-color: #3b4660; }
summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--accent2); font-size: 1.5rem; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details .ans { padding: 0 20px 16px; color: #cfd6df; }
details .ans p:last-child { margin-bottom: 0; }

/* ---------- Two-col feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.list-clean { list-style: none; padding: 0; }
.list-clean li { padding-left: 1.6em; position: relative; }
.list-clean li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6em; height: .6em; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.price { font-weight: 800; color: var(--accent2); white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band { padding: 46px 0; text-align: center; background: radial-gradient(70% 140% at 50% 0%, rgba(255, 122, 26, .18), transparent 70%), var(--bg2); border-top: 1px solid var(--line); }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0a0e13; padding: 40px 0 26px; color: var(--muted); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--text); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.legal { border-top: 1px solid var(--line); padding-top: 18px; font-size: .82rem; }

/* ---------- Misc ---------- */
.noscript-note { padding: 10px 20px; background: var(--card2); text-align: center; color: var(--muted); font-size: .9rem; }
.soon-link[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.big404 { font-size: clamp(5rem, 22vw, 11rem); font-weight: 900; line-height: 1; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .skyline { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Язык, вход, служебное ---------- */
[hidden] { display: none !important; }
.i18n-pending body { visibility: hidden; }
.lang-switch { display: flex; margin-left: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.lang-switch button { background: none; border: 0; color: var(--muted); font: inherit; font-size: .82rem; font-weight: 800; letter-spacing: .06em; padding: 8px 11px; cursor: pointer; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { color: #1a0d07; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.nav a.steam, .nav a.acc { border: 1px solid var(--line); background: var(--card); color: var(--text); margin-left: 6px; }
.nav a.steam:hover, .nav a.acc:hover { border-color: #3b4660; background: var(--card2); }
@media (max-width: 1060px) {
  .lang-switch { margin-left: auto; }
  .burger { margin-left: 8px; }
  .nav a.steam, .nav a.acc { margin: 8px 0 0; text-align: center; }
}

/* ---------- Шапка: вмещаем 9 пунктов + вход + язык ---------- */
.site-header .wrap { max-width: 1320px; }
.header-in { gap: 10px; }
.nav a { padding: 8px 8px; font-size: .88rem; }
.nav a.cta, .nav a.steam, .nav a.acc { margin-left: 4px; }
.lang-switch { order: 3; }
.nav { order: 2; }
.burger { order: 4; }
@media (max-width: 1240px) {
  .burger { display: block; margin-left: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav a.cta, .nav a.steam, .nav a.acc { margin: 8px 0 0; text-align: center; }
  .lang-switch { margin-left: auto; }
  .js-off .nav { display: flex; position: static; flex-direction: row; background: none; border: 0; padding: 0; }
}
