/* Спидик: «киберспорт-ночь». Графит, электрик-лайм, циан, магента. Основа: токены, шапка, кнопки, секции. */
:root {
  --ink: #07080F; --ink-2: #0b0d18; --panel: #10131f; --panel-2: #161b2c; --line: #222a40; --line-2: #34415f;
  --text: #eaeef8; --dim: #98a2bf; --faint: #7f8aac;
  --lime: #c8ff00; --cyan: #19e5ff; --mag: #ff2e88;
  --lime-a: rgba(200, 255, 0, .14); --cyan-a: rgba(25, 229, 255, .14); --mag-a: rgba(255, 46, 136, .16);
  --f-head: 'Russo One', 'Arial Black', system-ui, sans-serif;
  --f-body: 'Exo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-num: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --lv0: var(--mag); --lv1: #ff8a3d; --lv2: var(--cyan); --lv3: #7df0b4; --lv4: var(--lime);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.55 var(--f-body); min-height: 100vh; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lime); }
button, input { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 32px); }

/* фон: канвас-«варп» + сетка и сканлайны поверх */
#warp { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; background: var(--ink); }
.veil { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 30% 20%, transparent 40%, rgba(7, 8, 15, .6) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); }
main, footer, .top { position: relative; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; transition: top .2s var(--ease-out); }
.skip:focus { top: 10px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 8, 15, .84); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 400 22px/1 var(--f-head); flex: none; min-height: 44px; min-width: 44px; }
.logo:hover { color: var(--lime); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--dim); text-decoration: none; padding: 10px 12px; border-radius: 8px; white-space: nowrap; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; transition: color .15s, background-color .15s; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--text); background: var(--panel); } }
@media (max-width: 760px) { .top-in { gap: 8px; } .logo span { font-size: 19px; } }
@media (max-width: 560px) { .logo span { display: none; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--lime); background: var(--lime); color: var(--ink); font: 700 16px/1 var(--f-body); cursor: pointer; text-decoration: none; transition: transform .16s var(--ease-out), background-color .16s, color .16s, border-color .16s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-danger { color: #ff7aa9; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #dcff4d; color: var(--ink); }
  .btn-ghost:hover { background: var(--panel-2); color: var(--text); border-color: var(--lime); }
  .btn-danger:hover { border-color: var(--mag); color: #ff7aa9; }
}
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { min-height: 44px; min-width: 44px; padding: 0 12px; background: transparent; border: 1px solid var(--line-2); border-radius: 8px; color: var(--dim); cursor: pointer; font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { color: var(--text); border-color: var(--lime); } }

/* секции-«описания» */
.sec { padding-block: clamp(48px, 8vw, 96px); }
.sec > h2, .sec-row h2 { font-size: clamp(28px, 4vw, 42px); }
.sec-lede { color: var(--dim); max-width: 64ch; margin-top: 12px; }
.sec-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.sec-h { font-size: 22px; margin: 40px 0 16px; }

.foot { padding-block: 40px 56px; color: var(--dim); font-size: 15px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.foot-s { font-size: 14px; color: var(--faint); }
.foot-s a { color: var(--dim); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--lime); color: var(--text); padding: 12px 20px; border-radius: 10px; z-index: 60; max-width: min(92vw, 520px); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); animation: toast-in .22s var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
