:root {
  color-scheme: dark light;
  --accent: #7c3aed; --accent-soft: rgba(124,58,237,.14);
  --bg: #100d14; --surface: #19151e; --text: #f3eef7; --muted: #c8becf; --border: #39313f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 50% -20%,rgba(124,58,237,.22),transparent 34rem),var(--bg); color: var(--text); font: 16px/1.7 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
a { color: #b794f6; text-underline-offset: 3px; }
.topbar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border); background: rgba(16,13,20,.88); backdrop-filter: blur(16px); }
.nav { width: min(1080px,calc(100% - 32px)); min-height: 68px; margin: auto; display: flex; align-items: center; gap: 20px; }
.brand { margin-right: auto; color: var(--text); font-size: 19px; font-weight: 800; text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 9px; border-radius: 9px; background: var(--accent); color: #fff; }
.nav-link { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.nav-link:hover { color: var(--text); }
.language { padding: 7px 11px; border: 1px solid var(--border); border-radius: 10px; }
main { width: min(860px,calc(100% - 32px)); margin: 42px auto 80px; }
.document,.card { border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(180deg,rgba(255,255,255,.025),transparent 8rem),var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.document { padding: clamp(24px,5vw,58px); }
.document h1 { margin: 0 0 26px; font-size: clamp(30px,5vw,45px); line-height: 1.15; }
.document h2 { margin: 42px 0 12px; padding-top: 8px; font-size: 23px; line-height: 1.3; }
.document p,.document li { color: var(--muted); }
.document strong { color: var(--text); }
.document ul { padding-left: 22px; }
.hero { text-align: center; padding: 46px 0 26px; }
.hero h1 { margin: 0; font-size: clamp(36px,7vw,62px); line-height: 1.04; }
.hero p { max-width: 660px; margin: 18px auto 0; color: var(--muted); font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 32px; }
.card { display: block; padding: 24px; color: var(--text); text-decoration: none; transition: .18s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card span { display: inline-block; margin-bottom: 22px; padding: 7px 10px; border-radius: 9px; background: var(--accent-soft); color: #c4a7ff; font-size: 13px; font-weight: 750; }
.card h2 { margin: 0 0 8px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
footer { width: min(860px,calc(100% - 32px)); margin: -50px auto 34px; color: var(--muted); text-align: center; font-size: 13px; }
@media (prefers-color-scheme: light) {
  :root { --bg:#f4f2f7; --surface:#fff; --text:#221d27; --muted:#5f5665; --border:#ddd6e3; }
  body { background: radial-gradient(circle at 50% -20%,rgba(124,58,237,.13),transparent 34rem),var(--bg); }
  .topbar { background: rgba(244,242,247,.9); }
}
@media (max-width:720px) { .nav { gap:12px; } .nav-link:not(.language) { display:none; } .grid { grid-template-columns:1fr; } main { margin-top:24px; } .document { border-radius:16px; } }
