:root {
  --bg: #0d0b11;
  --surface: #16121c;
  --surface-hover: #1d1725;
  --border: #2a2334;
  --text: #f3eff7;
  --muted: #8f8699;
  --pink: #ff4d8d;
  --violet: #b84dff;
  --grad: linear-gradient(100deg, var(--pink), var(--violet));
}

* { box-sizing: border-box; margin: 0; }
html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ── Главная ─────────────────────────────────── */

body.home {
  line-height: 1.5;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-x: hidden;
}
.glow {
  position: fixed;
  width: 60vmax; height: 60vmax;
  top: -30vmax; right: -20vmax;
  background: radial-gradient(closest-side, rgba(255, 77, 141, .14), transparent 70%);
  pointer-events: none;
}
.glow--2 {
  top: auto; right: auto;
  bottom: -35vmax; left: -25vmax;
  background: radial-gradient(closest-side, rgba(184, 77, 255, .12), transparent 70%);
}
.home main { width: 100%; max-width: 480px; position: relative; }
.brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.brand b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home h1 {
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.home h1 sup {
  font-size: .45em;
  font-weight: 600;
  color: var(--pink);
  vertical-align: super;
}
.sub {
  color: var(--muted);
  margin-top: 12px;
  font-size: 16px;
}
.home nav { display: grid; gap: 12px; margin-top: 36px; }
.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.link:hover, .link:focus-visible {
  background: var(--surface-hover);
  border-color: var(--pink);
  transform: translateX(2px);
}
.link:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.link .label { font-weight: 650; font-size: 16px; }
.link .hint { color: var(--muted); font-size: 13px; margin-top: 2px; }
.link .arrow {
  flex: none;
  font-size: 18px;
  color: var(--muted);
  transition: color .15s ease;
}
.link:hover .arrow, .link:focus-visible .arrow { color: var(--pink); }
.footnote {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}
.footnote sup { color: var(--pink); }
.home footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.home footer a { color: var(--muted); text-decoration: none; }
.home footer a:hover, .home footer a:focus-visible { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .link { transition: none; }
}

/* ── Документы (соглашение, политика) ────────── */

body.doc {
  line-height: 1.65;
  padding: 48px 24px 80px;
}
.doc main { max-width: 680px; margin: 0 auto; }
.back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 32px;
}
.back:hover, .back:focus-visible { color: var(--text); }
.doc h1 {
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
.doc h2 {
  font-size: 19px;
  font-weight: 700;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.doc h2::before {
  content: "";
  display: inline-block;
  width: 22px; height: 3px;
  background: var(--grad);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
}
.doc p, .doc li { color: #cfc8d8; margin-top: 12px; font-size: 15.5px; }
.doc ul { padding-left: 22px; margin-top: 12px; }
