:root {
  /* Фон и поверхности */
  --bg: #0e1420;
  --bg-header-start: #050810;
  --bg-header-end: #1a2332;
  --bg-footer: #050810;
  --bg-card: #1a2332;
  --bg-surf: #1e2a3d;
  --bg-surf2: #2a3648;

  /* Акценты — жёлтый CTA */
  --accent: #ffcc00;
  --accent2: #ff9500;

  /* Бренд и вспомогательные */
  --brand: #4d8fff;
  --brand-dark: #2563eb;
  --success: #22c55e;
  --success-dark: #16a34a;
  --danger: #ef4444;

  /* Текст */
  --text: #ffffff;
  --text2: #a0aec0;
  --text3: #718096;
  --text-dark: #1a2332;

  /* Декор */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 204, 0, 0.3);

  /* Градиенты */
  --gradient-cta: linear-gradient(135deg, #ffcc00 0%, #ff9500 100%);
  --gradient-header: linear-gradient(180deg, #050810 0%, #1a2332 100%);
  --gradient-brand: linear-gradient(135deg, #4d8fff 0%, #a855f7 100%);
  --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);

  /* Layout */
  --header-h: 70px;
  --font: "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-padding-top: var(--header-h); scroll-behavior: smooth; }
html.menu-open, html.menu-open body { overflow: hidden; }
body {
  margin: 0; padding-top: var(--header-h);
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
p, li, td, th, h1, h2, h3, a, summary { overflow-wrap: anywhere; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: var(--gradient-header);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
}
.logo-link { flex-shrink: 0; display: block; }
.logo-img { height: 40px; width: auto; display: block; }
.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 16px; }
.main-nav a {
  display: block; padding: 6px 2px; white-space: nowrap;
  color: var(--text2); font-weight: 600; font-size: 15px; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.header-btns { display: flex; gap: 8px; flex-shrink: 0; }
.play-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 8px; white-space: nowrap;
  font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.login-btn { color: var(--text); border: 1.5px solid var(--brand); background: transparent; }
.login-btn:hover { background: var(--brand); color: var(--text); }
.reg-btn { color: var(--text); background: var(--gradient-success); border: 1.5px solid transparent; box-shadow: var(--shadow-glow); }
.reg-btn:hover { color: var(--text); transform: translateY(-1px); }

.burger-btn {
  display: none; width: 44px; height: 44px; flex-shrink: 0;
  background: var(--bg-surf); border: 1px solid var(--border-strong); border-radius: 8px;
  cursor: pointer; padding: 0; position: relative;
}
.burger-btn span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.burger-btn span:nth-child(1) { top: 14px; }
.burger-btn span:nth-child(2) { top: 21px; }
.burger-btn span:nth-child(3) { top: 28px; }
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--header-h); right: 0;
  width: 100%; max-width: 320px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--bg-card); border-left: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px 0; }
.mobile-menu a {
  display: block; padding: 13px 20px; color: var(--text); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { background: var(--bg-surf); color: var(--accent); }

/* ---------- Content ---------- */
.content { padding-top: 20px; padding-bottom: 48px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text3); margin: 4px 0 12px; }
.breadcrumbs a { color: var(--text2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 800; margin: 12px 0 18px; }
h2 {
  font-size: clamp(1.35rem, 4.2vw, 1.95rem); font-weight: 800; margin: 56px 0 16px;
  padding-left: 14px; border-left: 4px solid var(--accent);
}
h3 { font-size: clamp(1.1rem, 3.2vw, 1.3rem); font-weight: 700; margin: 30px 0 10px; color: var(--accent); }
.content p, .content ul, .content ol { max-width: 78ch; }
.content p { margin: 0 0 14px; color: #dfe6ef; }
.content strong { color: var(--text); }
.content ul, .content ol { margin: 0 0 18px; padding-left: 22px; color: #dfe6ef; }
.content li { margin-bottom: 7px; }
.content li::marker { color: var(--accent); font-weight: 700; }

.pic {
  margin: 0 0 20px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); background: var(--bg-card);
}
.pic img { width: 100%; }

/* Home hero: H1 + main image */
.home .content > h1 { font-size: clamp(1.9rem, 7vw, 3.2rem); margin-top: 20px; }
.home .content > h1 + .pic { border-color: rgba(255, 204, 0, .35); box-shadow: var(--shadow-lg), var(--shadow-glow); }

/* Tables */
.table-wrapper {
  width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 6px 0 22px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-card);
}
.table-wrapper table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.table-wrapper td, .table-wrapper th { white-space: nowrap; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table-wrapper th { background: var(--bg-surf2); color: var(--accent); font-weight: 700; }
.table-wrapper tr:last-child td { border-bottom: 0; }
.table-wrapper tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.table-wrapper td:first-child { color: var(--text2); font-weight: 600; }

/* Buttons */
.btn-row { margin: 22px 0 8px; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  max-width: 100%; padding: 14px 30px; border-radius: 10px;
  background: var(--gradient-cta); color: var(--text-dark); font-weight: 800; font-size: 17px;
  text-decoration: none; box-shadow: var(--shadow-glow); white-space: normal;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-btn:hover { color: var(--text-dark); transform: translateY(-2px); box-shadow: 0 0 30px rgba(255, 204, 0, .45); }

/* FAQ */
.faq { display: grid; gap: 10px; margin: 8px 0 12px; max-width: 900px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 10px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 16px; position: relative;
  font-weight: 700; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--bg-surf2);
  display: grid; place-items: center; color: var(--accent); font-size: 18px; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item p { margin: 0; padding: 14px 16px 16px; color: var(--text2); }

/* Final CTA */
.final-cta {
  margin: 56px 0 0; padding: 32px 24px; text-align: center;
  border-radius: 16px; border: 1px solid rgba(255, 204, 0, .35);
  background: radial-gradient(ellipse at top, rgba(77, 143, 255, .22), transparent 70%), var(--bg-card);
  box-shadow: var(--shadow-lg);
}
.final-cta-title { font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 800; margin: 0 0 10px; color: var(--text); }
.final-cta p { margin-left: auto; margin-right: auto; color: var(--text2); }
.final-cta .cta-btn { margin-top: 8px; }

/* 404 */
.notfound { text-align: center; padding: 48px 0 24px; }
.notfound p { margin-left: auto; margin-right: auto; }
.nf-code {
  font-size: clamp(5rem, 24vw, 10rem); font-weight: 800; line-height: 1; margin: 0 0 8px !important;
  background: var(--gradient-cta); -webkit-background-clip: text; background-clip: text; color: transparent !important;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--border-strong); padding: 40px 0 28px; color: var(--text2); }
.footer-logo { margin-bottom: 22px; }
.footer-links {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 20px;
}
.footer-links a { color: var(--text2); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 18px;
  padding-top: 22px; border-top: 1px solid var(--border);
}
.age-badge {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--danger); color: var(--text); font-weight: 800;
  display: grid; place-items: center; font-size: 15px;
}
.disclaimer { flex: 1 1 300px; min-width: 0; margin: 0; font-size: 14px; line-height: 1.55; color: var(--text3); }
.copy { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--text3); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  :root { --header-h: 60px; }
  .header-inner { gap: 8px; padding: 0 12px; }
  .main-nav { display: none; }
  .logo-img { height: 36px; }
  .header-btns { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; gap: 6px; }
  .burger-btn { display: block; }
}
@media (min-width: 1200px) { .mobile-menu { display: none; } }
@media (max-width: 768px) {
  body { font-size: 16px; }
  h2 { margin-top: 44px; }
  .cta-btn { width: 100%; }
  .final-cta { padding: 24px 16px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .play-btn { padding: 8px 12px; font-size: 13px; }
  .pic { border-radius: 10px; }
}
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .header-inner { gap: 4px; padding: 0 8px; }
  .logo-img { height: 28px; }
  .header-btns { gap: 4px; }
  .play-btn { padding: 6px 8px; font-size: 12px; }
  .footer-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
