:root {
  --bg: #05060c;
  --bg-soft: #0b0e1a;
  --panel: rgba(18, 22, 40, 0.6);
  --panel-border: rgba(120, 140, 255, 0.14);
  --text: #e7ecff;
  --text-dim: #8a93b8;
  --accent: #38e8d0;
  --accent-2: #7c5cff;
  --accent-3: #ff5ca8;
  --ok: #38e8a0;
  --warn: #ffcf5c;
  --err: #ff6b6b;
  --radius: 16px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 700px at 10% 110%, rgba(56, 232, 208, 0.12), transparent 55%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: 0.2px; }

/* ---- Доступность: фокус, пропуск навигации, скрытый текст ---------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Не показываем рамку фокуса по клику мышью, только при навигации с клавиатуры. */
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: fixed; top: 10px; left: 50%; transform: translate(-50%, -160%);
  z-index: 100; padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #04121a; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow); transition: transform .25s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Тонкий скроллбар в стиле темы --------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: rgba(120,140,255,0.35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(120,140,255,0.3); border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(120,140,255,0.5); background-clip: padding-box; }
