/* ==========================================================================
   Bona Sort — стили. Методология БЭМ, один файл, порядок: токены → база →
   раскладка → блоки → состояния → печать.
   ========================================================================== */

:root {
  --navy: #002163;
  --navy-2: #0d2d78;
  --ink: #0e1a3f;
  --muted: #4a5578;
  --line: #dde3ef;
  --line-strong: #b9c3d9;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-softer: #f9fafd;
  --yellow: #ffc400;
  --yellow-hover: #ffb000;
  --red: #e51435;
  --ok: #0a7a3e;
  --ok-soft: #e4f4ea;
  --err: #b8132c;
  --err-soft: #fdebee;
  --info-soft: #e9eefa;

  --game: var(--navy);
  --game-solid: var(--navy);
  --game-soft: var(--bg-soft);

  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 33, 99, .06), 0 8px 24px rgba(0, 33, 99, .07);
  --shadow-lg: 0 2px 4px rgba(0, 33, 99, .06), 0 18px 48px rgba(0, 33, 99, .14);
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
}

/* ---------- База ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 72px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong, b { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }
.container--mid { max-width: calc(1040px + var(--gutter) * 2); }

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 32px; }
}

/* ---------- Кнопки ---------- */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-border: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 33, 99, .16); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled],
.btn.is-disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
  box-shadow: none;
}
.btn--primary { --btn-bg: var(--yellow); --btn-fg: var(--navy); }
.btn--primary:hover { --btn-bg: var(--yellow-hover); }
.btn--navy { --btn-bg: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-2); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-border: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-border: transparent; padding: 0 14px; }
.btn--ghost:hover { --btn-bg: var(--bg-soft); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); --btn-border: #fff; }
.btn--game { --btn-bg: var(--game-solid); --btn-fg: #fff; }
.btn--game:hover { filter: brightness(1.08); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.075rem; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid var(--btn-fg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}
.link-arrow::after { content: '→'; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Логотип ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  white-space: nowrap;
}
.logo__text b { color: var(--red); font-weight: 800; }
.logo--light { color: #fff; }
.logo--light .logo__text b { color: var(--yellow); }

/* ---------- Шапка ---------- */

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: .875rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.topbar__age {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  line-height: 1.3;
}
.topbar__age img { width: 26px; height: auto; background: #fff; border-radius: 50%; padding: 1px; }
.topbar__link { color: #fff; font-weight: 600; }
.topbar__short { display: none; }
@media (max-width: 639px) {
  .topbar__long { display: none; }
  .topbar__short { display: inline; }
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-switch__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: #cfd8f0;
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 6px;
}
.lang-switch__link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lang-switch__link--active { color: var(--navy); background: #fff; }
.lang-switch__link--active:hover { color: var(--navy); background: #fff; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.header__nav { margin-left: auto; }
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__burger {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: var(--navy);
}
.header__burger:hover { background: var(--bg-soft); }
.header__burger svg { margin: auto; }
.header__burger .icon-close { display: none; }
.header__burger[aria-expanded='true'] .icon-open { display: none; }
.header__burger[aria-expanded='true'] .icon-close { display: block; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}
.nav__link:hover { background: var(--bg-soft); color: var(--navy); }
.nav__link--active { color: var(--navy); background: var(--bg-soft); }

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.wallet-pill:hover { border-color: var(--navy); }
.wallet-pill__label { font-weight: 500; color: var(--muted); font-size: .875rem; }

.mobile-menu { display: none; }

@media (max-width: 1079px) {
  .header__nav,
  .header__actions { display: none; }
  .header__burger { display: flex; }

  .mobile-menu {
    position: fixed;
    inset: var(--menu-top, 112px) 0 0 0;
    z-index: 49;
    display: block;
    padding: 16px var(--gutter) 32px;
    background: #fff;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; }
  .mobile-menu__list { margin: 0 0 24px; padding: 0; list-style: none; }
  .mobile-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu__link::after { content: '→'; color: var(--muted); }
  .mobile-menu__actions { display: grid; gap: 10px; }
}

/* ---------- Секции ---------- */

.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 40px 0; }
.section--flush-top { padding-top: 0; }
@media (min-width: 1024px) {
  .section { padding: 80px 0; }
  .section--tight { padding: 56px 0; }
  .section--flush-top { padding-top: 0; }
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.section__title { margin: 0; }
.section__lead {
  max-width: 62ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--game-solid);
}

/* ---------- Хлебные крошки ---------- */

.crumbs { padding: 18px 0 0; font-size: .9rem; }
.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.crumbs__item:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--line-strong); }
.crumbs__link { color: var(--muted); }
.crumbs__link:hover { color: var(--navy); }

/* ---------- Декоративные фигуры (круг, полукруг, звезда из логотипов) ---------- */

.shape {
  position: absolute;
  pointer-events: none;
  color: var(--game);
}
.shape--dot { border-radius: 50%; background: currentColor; }
.shape--half { border-radius: 0 0 999px 999px; background: currentColor; }
.shape--star { fill: currentColor; }

/* ---------- Главный слайдер ---------- */

.hero { padding: 24px 0 8px; }
.hero__viewport {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero__slide {
  position: relative;
  display: none;
  grid-template-columns: 1fr;
  gap: 28px;
  min-height: 420px;
  padding: 36px 24px 88px;
  background: var(--game-soft);
  overflow: hidden;
}
.hero__slide.is-active { display: grid; animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero__content { position: relative; z-index: 2; align-self: center; max-width: 560px; }
.hero__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); margin-bottom: 16px; }
.hero__title em { font-style: normal; color: var(--game-solid); }
.hero__text { font-size: 1.125rem; color: var(--ink); margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero__meta { margin-top: 20px; font-size: .9375rem; color: var(--muted); }

.hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 220px;
}
.hero__visual .shape--dot { width: 180px; height: 180px; right: 4%; top: -8%; opacity: .9; }
.hero__visual .shape--half { width: 200px; height: 100px; left: 6%; bottom: -6%; opacity: .85; }
.hero__visual .shape--star { width: 72px; left: 10%; top: 6%; }
.hero__card {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(100%, 380px);
  aspect-ratio: 4 / 3;
  padding: 32px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
}
.hero__card img { width: 100%; max-height: 170px; object-fit: contain; }
.hero__prize {
  position: absolute;
  z-index: 3;
  right: -6px;
  bottom: -18px;
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 14px;
  transform: rotate(4deg);
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.hero__prize small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #cfd8f0; }

.hero__controls {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero__dot {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.hero__dot::before {
  content: '';
  width: 28px;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 33, 99, .25);
  transform: scaleX(.43);
  transition: transform .2s, background-color .2s;
}
.hero__dot[aria-current='true']::before { transform: none; background: var(--navy); }
.hero__pause {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-left: 6px;
  padding: 0;
  color: var(--navy);
  background: rgba(255, 255, 255, .75);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.hero__pause:hover { background: #fff; }
.hero__pause .icon-play { display: none; }
.hero__pause[aria-pressed='true'] .icon-play { display: block; }
.hero__pause[aria-pressed='true'] .icon-pause { display: none; }

@media (max-width: 899px) {
  .hero__visual { min-height: 0; padding: 8px 0 12px; }
  .hero__card { width: min(78%, 300px); padding: 20px 24px; border-radius: 22px; }
  .hero__card img { max-height: 110px; }
  .hero__prize { font-size: 1.05rem; padding: 8px 14px; bottom: -14px; }
  .hero__visual .shape--dot { width: 120px; height: 120px; }
  .hero__visual .shape--half { width: 130px; height: 65px; }
  .hero__visual .shape--star { width: 48px; }
  .hero__title { font-size: clamp(1.75rem, 1.2rem + 3vw, 2.4rem); }
  .hero__text { font-size: 1.0625rem; }
}
@media (max-width: 639px) {
  .table__game img { display: none; }
  .table th, .table td { padding: 12px; }
}
@media (min-width: 900px) {
  .hero__slide {
    grid-template-columns: 1.1fr .9fr;
    min-height: 460px;
    padding: 56px 56px 88px;
  }
  .hero__controls { left: 48px; bottom: 28px; }
}

/* ---------- Карточка игры ---------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.game-card__cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
  padding: 20px 28px;
  background: var(--game-soft);
  overflow: hidden;
}
.game-card__cover img { position: relative; z-index: 1; width: 100%; max-height: 112px; object-fit: contain; }
.game-card__cover .shape--dot { width: 120px; height: 120px; right: -40px; top: -44px; opacity: .18; }
.game-card__cover .shape--half { width: 110px; height: 55px; left: -24px; bottom: -8px; opacity: .14; }
.game-card__tag {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--game-solid);
  border-radius: 999px;
}
.game-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 18px 20px 20px; }
.game-card__name { margin: 0 0 6px; font-size: 1.0625rem; color: var(--ink); letter-spacing: -.01em; }
.game-card__name a { color: inherit; text-decoration: none; }
.game-card__name a::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.game-card__price { margin: 0; font-size: .9375rem; color: var(--muted); }
.game-card__price b { color: var(--ink); }
.game-card__prize { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--game-solid); letter-spacing: -.02em; line-height: 1.25; }
.game-card__prize small { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.game-card__draw { margin: 8px 0 0; font-size: .875rem; color: var(--muted); }
.game-card__footer { padding: 0 20px 20px; }
.game-card__btn { position: relative; z-index: 4; width: 100%; }

/* ---------- Ближайшие тиражи ---------- */

.draws {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.draws__item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.draws__date { padding: 10px 0; text-align: center; line-height: 1.1; background: var(--game-soft); border-radius: 10px; }
.draws__day { display: block; font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.draws__month { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.draws__info { min-width: 0; }
.draws__name { margin: 0; font-weight: 700; color: var(--ink); }
.draws__meta { margin: 0; font-size: .9rem; color: var(--muted); }
.draws__prize { font-weight: 700; color: var(--game-solid); }
.draws__cta { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .draws__item { grid-template-columns: 76px 1fr auto; }
  .draws__cta { grid-column: auto; }
}

/* ---------- Плашка ответственной игры ---------- */

.rg {
  position: relative;
  padding: 32px 24px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rg__title { color: #fff; margin-bottom: 8px; }
.rg__lead { color: #cfd8f0; max-width: 60ch; margin-bottom: 24px; }
.rg__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.rg__item {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
}
.rg__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 12px;
}
.rg__item-title { margin: 0 0 2px; font-size: 1.0625rem; color: #fff; letter-spacing: 0; }
.rg__item-text { margin: 0; font-size: .9375rem; color: #cfd8f0; }
.rg__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rg .shape--star { width: 120px; right: -20px; top: -24px; color: var(--yellow); opacity: .9; }
@media (min-width: 900px) {
  .rg { padding: 48px; }
  .rg__list { grid-template-columns: repeat(3, 1fr); }
}

.rg-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 14px 18px;
  font-size: .9375rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.rg-strip img { width: 32px; }
.rg-strip__text { margin: 0; flex: 1 1 260px; }

/* ---------- Таблицы ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}
.table th,
.table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.table thead th {
  background: var(--bg-soft);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.table tbody tr:last-child th,
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num,
.table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table__game { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); text-decoration: none; }
.table__game img { width: 64px; height: 36px; object-fit: contain; }
.table__game:hover { color: var(--navy); text-decoration: underline; }
.table-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.table-title { margin: 36px 0 14px; }
.table caption { padding: 12px 16px; text-align: left; font-size: .875rem; color: var(--muted); caption-side: bottom; }

/* ---------- Промо-блоки ---------- */

.promo-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 900px) {
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
}
.promo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 28px;
  background: var(--game-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.promo__logo { width: 180px; height: 90px; object-fit: contain; object-position: left center; }
.promo__title { margin: 0; font-size: 1.5rem; }
.promo__text { margin: 0; color: var(--ink); }
.promo .shape--dot { width: 160px; height: 160px; right: -50px; bottom: -60px; opacity: .2; }
.promo .shape--star { width: 56px; right: 28px; top: 24px; }
.promo__actions { position: relative; z-index: 1; }

/* ---------- Факты о призах (главная, страница выплат) ---------- */

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts__item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.facts__value { display: block; margin-bottom: 6px; font-size: 1.75rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.2; }
.facts__text { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---------- Шапка страницы игры ---------- */

.game-head {
  position: relative;
  padding: 28px 0 36px;
  background: var(--game-soft);
  overflow: hidden;
}
.game-head .shape--dot { width: 260px; height: 260px; right: -80px; top: -110px; opacity: .16; }
.game-head .shape--half { width: 220px; height: 110px; right: 18%; bottom: -30px; opacity: .12; }
.game-head__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}
.game-head__logo {
  width: 220px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.game-head__logo img { width: 100%; max-height: 110px; object-fit: contain; }
.game-head__title { margin-bottom: 10px; }
.game-head__lead { max-width: 60ch; margin: 0; font-size: 1.125rem; }
@media (min-width: 900px) {
  .game-head { padding: 36px 0 48px; }
  .game-head__inner { grid-template-columns: 240px 1fr; gap: 40px; }
  .game-head__logo { width: 240px; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats__item {
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 33, 99, .08);
}
.stats__label { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.stats__value { display: block; font-size: 1.1875rem; font-weight: 800; color: var(--navy); line-height: 1.3; }

/* ---------- Табы по странице игры ---------- */

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.subnav__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.subnav__link:hover { color: var(--navy); }
.subnav__link.is-active { color: var(--navy); border-bottom-color: var(--game); }

/* ---------- Выбор номеров ---------- */

.picker {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 1024px) {
  .picker { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
}

.picker__board {
  padding: 20px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
@media (min-width: 640px) { .picker__board { padding: 28px; } }

.picker__step + .picker__step {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-strong);
}
.picker__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.picker__title { margin: 0; font-size: 1.1875rem; color: var(--ink); }
.picker__hint { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.picker__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.picker__tools .btn { white-space: nowrap; }
.picker__tools .btn svg,
.btn svg { flex: none; }
.picker__counter {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-weight: 800;
  font-size: .9375rem;
  color: var(--game-solid);
  background: var(--game-soft);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Нижняя панель с итогом на телефоне */
.picker-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 33, 99, .08);
  transform: translateY(110%);
  transition: transform .2s;
}
.picker-bar.is-visible { transform: none; }
.picker-bar__label { display: block; font-size: .8125rem; color: var(--muted); font-weight: 600; }
.picker-bar__total { display: block; font-size: 1.375rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.picker-bar .btn { min-width: 150px; }
@media (min-width: 1024px) { .picker-bar { display: none; } }

.balls {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 480px) { .balls { gap: 10px; } }
.balls--keno { gap: 6px; max-width: 640px; }
@media (min-width: 640px) { .balls--keno { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; } }
.picker__add { margin: 18px 0 0; text-align: center; }

.ball {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 56px;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0;
  font: inherit;
  font-weight: 700;
  font-size: clamp(.95rem, .85rem + .4vw, 1.125rem);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .12s, border-color .12s, color .12s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.ball:hover { border-color: var(--game-solid); color: var(--game-solid); }
.ball[aria-pressed='true'] {
  color: #fff;
  background: var(--game-solid);
  border-color: var(--game-solid);
  transform: scale(1.04);
}
.ball:disabled { opacity: .35; cursor: not-allowed; }
.ball:disabled:hover { border-color: var(--line-strong); color: var(--ink); }

/* Барабаны для номера (Grossa, Trio) */
.digits {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 4px;
}
@media (min-width: 480px) { .digits { gap: 12px; } }
.digits__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.digits__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  padding: 0;
  color: var(--navy);
  background: var(--bg-soft);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.digits__btn:hover { background: var(--game-soft); color: var(--game-solid); }
.digits__value {
  width: 56px;
  height: 72px;
  padding: 0;
  font: inherit;
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  color: var(--navy);
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  font-variant-numeric: tabular-nums;
  caret-color: var(--game-solid);
}
.digits__value:focus { outline: none; border-color: var(--game-solid); box-shadow: 0 0 0 4px var(--game-soft); }
@media (min-width: 480px) {
  .digits__value { width: 64px; height: 80px; font-size: 2.5rem; }
  .digits__btn { width: 56px; }
}

/* Выбранные номера Grossa списком */
.tickets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.tickets__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 14px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: .08em;
  color: var(--navy);
  background: var(--game-soft);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.tickets__remove {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.tickets__remove:hover { color: var(--err); }

/* Чипы выбора (ставка, тираж, серия) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.chips__item { position: relative; }
.chips__input { position: absolute; opacity: 0; pointer-events: none; }
.chips__label {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  min-width: 64px;
  padding: 6px 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .12s, background-color .12s;
}
.chips__label small { font-weight: 500; font-size: .78rem; color: var(--muted); }
.chips__label:hover { border-color: var(--game-solid); }
.chips__input:checked + .chips__label {
  color: var(--game-solid);
  background: var(--game-soft);
  border-color: var(--game-solid);
}
.chips__input:checked + .chips__label small { color: var(--ink); }
.chips__input:focus-visible + .chips__label { outline: 3px solid var(--navy); outline-offset: 2px; }
.chips__input:disabled + .chips__label { opacity: .4; cursor: not-allowed; }

/* Переключатель дополнительной игры (Jòquer) */
.addon {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.addon__text { flex: 1; }
.addon__title { display: block; font-weight: 700; color: var(--ink); }
.addon__desc { display: block; font-size: .9rem; color: var(--muted); }
.addon__number {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--navy);
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}

/* Серии моментальных билетов */
.series {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.series__label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .12s, transform .12s;
}
.series__label:hover { border-color: var(--game-solid); }
.series__label::before {
  content: '';
  position: absolute;
  right: -26px;
  top: -26px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--series-color, var(--game));
  opacity: .22;
}
.series__price { font-size: 1.75rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.series__name { font-weight: 700; color: var(--ink); }
.series__prize { font-size: .875rem; color: var(--muted); }
.chips__input:checked + .series__label { border-color: var(--game-solid); background: var(--game-soft); }
.chips__input:focus-visible + .series__label { outline: 3px solid var(--navy); outline-offset: 2px; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}
.stepper__btn {
  width: 48px;
  height: 48px;
  padding: 0;
  font: inherit;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 0;
  cursor: pointer;
}
.stepper__btn:hover { background: var(--bg-soft); }
.stepper__value {
  width: 56px;
  height: 48px;
  font: inherit;
  font-weight: 800;
  font-size: 1.125rem;
  text-align: center;
  color: var(--navy);
  border: 0;
  -moz-appearance: textfield;
}
.stepper__value::-webkit-outer-spin-button,
.stepper__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Итог справа */
.summary {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 1024px) {
  .summary { position: sticky; top: calc(var(--header-h) + 72px); }
}
.summary__title { margin: 0 0 14px; font-size: 1.125rem; color: var(--ink); }
.summary__list { margin: 0 0 16px; padding: 0; list-style: none; }
.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: .9375rem;
  border-bottom: 1px solid var(--line);
}
.summary__row dt,
.summary__key { color: var(--muted); }
.summary__row dd,
.summary__val { margin: 0; font-weight: 700; text-align: right; color: var(--ink); }
.summary__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  min-height: 36px;
  padding: 0;
  list-style: none;
}
.summary__num {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-weight: 800;
  font-size: .9375rem;
  color: #fff;
  background: var(--game-solid);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.summary__empty { margin: 0 0 14px; font-size: .9375rem; color: var(--muted); }
.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 4px 0 16px;
}
.summary__total-label { font-weight: 700; }
.summary__total-value { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.summary__note { margin: 12px 0 0; font-size: .8125rem; color: var(--muted); text-align: center; }
.summary__error { margin: 0 0 12px; font-size: .875rem; color: var(--err); font-weight: 600; min-height: 1.2em; }

/* ---------- Текстовые страницы ---------- */

.page-head { padding: 32px 0 8px; }
.page-head__title { margin-bottom: 10px; }
.page-head__lead { max-width: 64ch; margin: 0; font-size: 1.125rem; color: var(--muted); }
.page-head__meta { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
@media (min-width: 1024px) { .page-head { padding: 48px 0 16px; } }

.prose { max-width: 72ch; }
.prose > :first-child,
.prose > section:first-child > h2:first-child { margin-top: 0; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.prose h3 { margin: 1.6em 0 .5em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--muted); }
.prose .table-wrap { margin: 1.2em 0 1.6em; }
.prose blockquote,
.note {
  margin: 1.4em 0;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.note--warn { background: #fff6dc; border-color: #f3dc9a; }
.note > :last-child { margin-bottom: 0; }

.legal {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 64px;
}
@media (min-width: 1024px) {
  .legal { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; padding-top: 32px; padding-bottom: 96px; }
}

.toc {
  align-self: start;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
@media (min-width: 1024px) {
  .toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
.toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.toc__summary::-webkit-details-marker { display: none; }
.toc__summary::after { content: '+'; font-size: 1.4rem; font-weight: 600; }
.toc[open] .toc__summary::after { content: '−'; }
.toc__list { margin: 0; padding: 0 10px 14px; list-style: none; counter-reset: toc; }
.toc__link {
  display: block;
  padding: 8px 10px;
  font-size: .9375rem;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
}
.toc__link:hover { background: #fff; color: var(--navy); }
.toc__link.is-active { background: #fff; color: var(--navy); font-weight: 700; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 40px; }
.faq__group-title { margin-bottom: 14px; }
.faq__list { display: grid; gap: 10px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq__item[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s;
}
.faq__item[open] .faq__question::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq__answer { padding: 0 20px 18px; color: var(--ink); }
.faq__answer > :last-child { margin-bottom: 0; }

/* ---------- Формы ---------- */

.card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
@media (min-width: 640px) { .card { padding: 32px; } }
.card__foot { margin-top: 20px; }
.auth { max-width: calc(560px + var(--gutter) * 2); padding-top: 24px; padding-bottom: 72px; }
.auth--wide { max-width: calc(1040px + var(--gutter) * 2); }
.card--soft { background: var(--bg-soft); border-color: transparent; }
.card__title { margin-bottom: 6px; font-size: 1.5rem; }
.card__lead { margin-bottom: 22px; color: var(--muted); }

.form { display: grid; gap: 18px; }
.form__grid { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .form__grid--2 { grid-template-columns: 1fr 1fr; }
  .form__grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.form__field { display: grid; gap: 6px; }
.form__label { font-weight: 700; font-size: .9375rem; color: var(--ink); }
.form__label small { font-weight: 500; color: var(--muted); }
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.form__input,
.form__select { height: 52px; }
.form__textarea { min-height: 140px; resize: vertical; }
.form__input::-webkit-date-and-time-value { text-align: left; }
.form__select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23002163' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form__input:hover,
.form__select:hover,
.form__textarea:hover { border-color: var(--muted); }
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(0, 33, 99, .12);
}
.form__field.is-invalid .form__input,
.form__field.is-invalid .form__select,
.form__field.is-invalid .form__textarea { border-color: var(--err); }
.form__error { margin: 0; font-size: .875rem; font-weight: 600; color: var(--err); }
.form__error:empty { display: none; }
.form__help { margin: 0; font-size: .8125rem; color: var(--muted); }

.form__password { position: relative; }
.form__password .form__input { padding-right: 56px; }
.form__reveal {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.form__reveal:hover { color: var(--navy); background: var(--bg-soft); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9375rem;
  line-height: 1.45;
  cursor: pointer;
}
.check__input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--navy);
  cursor: pointer;
}
.form__field.is-invalid .check { color: var(--err); }

.form__message {
  margin: 0;
  padding: 12px 16px;
  font-weight: 600;
  font-size: .9375rem;
  border-radius: 12px;
}
.form__message:empty { display: none; }
.form__message--error { color: var(--err); background: var(--err-soft); }
.form__message--ok { color: var(--ok); background: var(--ok-soft); }

.form__footer { margin: 0; font-size: .9375rem; color: var(--muted); text-align: center; }

/* ---------- Страница входа перед игрой ---------- */

.gate {
  display: grid;
  gap: 20px;
  padding: 8px 0 64px;
}
@media (min-width: 900px) {
  .gate { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 96px; }
}

.ticket {
  display: grid;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  padding: 20px;
  background: var(--game-soft);
  border: 2px dashed color-mix(in srgb, var(--game-solid) 45%, transparent);
  border-radius: var(--radius-lg);
}
@media (min-width: 768px) {
  .ticket { grid-template-columns: 150px 1fr auto; padding: 20px 28px; }
}
.ticket[hidden] { display: none; }
.ticket__logo { width: 150px; padding: 10px 14px; background: #fff; border-radius: 14px; }
.ticket__logo img { width: 100%; max-height: 64px; object-fit: contain; }
.ticket__title { margin: 0 0 6px; font-size: 1.0625rem; color: var(--ink); }
.ticket__line { margin: 0; font-size: .9375rem; color: var(--ink); }
.ticket__line b { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ticket__total { font-size: 1.75rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.ticket__total small { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); }

.benefits { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 12px; }
.benefits__item { display: flex; gap: 12px; align-items: flex-start; }
.benefits__item::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23002163' stroke-width='2.2'/%3E%3C/svg%3E") center no-repeat;
  border-radius: 50%;
}

.gate--form { padding-bottom: 0; }
@media (min-width: 900px) {
  .gate--form { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
  .gate__aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.gate__aside .ticket { grid-template-columns: 1fr; margin-bottom: 0; }
.form__legend {
  margin: 10px 0 -4px;
  padding-top: 14px;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.form__legend:first-child { padding-top: 0; border-top: 0; }

/* ---------- Личный кабинет ---------- */

.account { display: grid; gap: 20px; padding-top: 8px; padding-bottom: 72px; }
@media (min-width: 1024px) { .account { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; } }
.account__nav { align-self: start; }
@media (min-width: 1024px) { .account__nav { position: sticky; top: calc(var(--header-h) + 24px); } }
.account__menu { margin: 0; padding: 8px; list-style: none; background: var(--bg-soft); border-radius: var(--radius); }
.account__link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
}
.account__link:hover { background: #fff; color: var(--navy); }
.account__main { display: grid; gap: 20px; min-width: 0; }
.account__section { scroll-margin-top: calc(var(--header-h) + 24px); }

.balance {
  display: grid;
  gap: 16px;
  padding: 28px;
  color: #fff;
  background: var(--navy);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .balance { grid-template-columns: 1fr auto; align-items: end; } }
.balance__label { margin: 0; color: #cfd8f0; font-weight: 600; }
.balance__value { margin: 0; font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.balance__meta { margin: 6px 0 0; color: #cfd8f0; font-size: .9375rem; }
.balance .shape--star { width: 90px; right: 24px; top: -18px; color: var(--yellow); opacity: .9; }

.kv { display: grid; gap: 0; margin: 0; }
.kv__row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv__row:last-child { border-bottom: 0; }
.kv__key { color: var(--muted); font-size: .9375rem; }
.kv__val { margin: 0; font-weight: 600; word-break: break-word; }

.limit-list { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
@media (min-width: 768px) { .limit-list { grid-template-columns: repeat(3, 1fr); } }
.limit-list__item { padding: 16px; background: var(--bg-soft); border-radius: 14px; }
.limit-list__label { display: block; font-size: .875rem; color: var(--muted); font-weight: 600; }
.limit-list__value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.limit-list__pending { display: block; font-size: .8125rem; color: var(--muted); }

/* ---------- Уведомления ---------- */

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  font-size: .9375rem;
  background: var(--info-soft);
  border-radius: 14px;
}
.notice > :last-child { margin-bottom: 0; }
.notice--warn { background: #fff6dc; }
.notice--ok { background: var(--ok-soft); }

/* ---------- Контакты ---------- */

.contact { display: grid; gap: 24px; padding-top: 8px; padding-bottom: 72px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.3fr; gap: 40px; } }
.contact__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.contact__label { display: block; font-size: .875rem; font-weight: 700; color: var(--muted); }
.contact__value { font-size: 1.125rem; font-weight: 700; }

/* ---------- Карточки-ссылки (помощь, родительский контроль) ---------- */

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}
.link-cards__item {
  display: block;
  height: 100%;
  padding: 16px 18px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
a.link-cards__item:hover { border-color: var(--navy); }
.link-cards__title { display: block; font-weight: 800; color: var(--navy); }
.link-cards__text { display: block; margin-top: 2px; font-size: .9rem; color: var(--muted); }

/* ---------- Подвал ---------- */

.footer {
  margin-top: auto;
  padding: 56px 0 28px;
  color: #d5ddf2;
  background: var(--navy);
  font-size: .9375rem;
}
.footer a { color: #fff; }
.footer__top {
  display: grid;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
@media (min-width: 1024px) { .footer__top { grid-template-columns: 1.1fr 3fr; gap: 48px; } }
.footer__about { margin: 16px 0 0; max-width: 34ch; color: #d5ddf2; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
}
@media (min-width: 768px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer__title {
  margin: 0 0 12px;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yellow);
}
.footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.footer__link,
.footer__button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  font: inherit;
  font-size: .9375rem;
  color: #fff;
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.footer__link:hover,
.footer__button:hover { text-decoration: underline; }

.footer__badges {
  display: grid;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
@media (min-width: 900px) { .footer__badges { grid-template-columns: auto 1fr; align-items: center; gap: 40px; } }
.footer__badge-groups { display: flex; flex-wrap: wrap; gap: 20px 40px; }
@media (min-width: 900px) { .footer__badge-groups { justify-content: flex-end; } }
.footer__badge-title { margin: 0 0 10px; font-size: .8125rem; font-weight: 700; color: #d5ddf2; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.badges__item {
  display: grid;
  place-items: center;
  height: 48px;
  min-width: 64px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 10px;
}
.badges__item img { max-height: 34px; width: auto; }
.badges__item--pay img { max-height: 26px; }

.footer__age {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.footer__age img { width: 44px; background: #fff; border-radius: 50%; padding: 3px; }

.footer__bottom {
  display: grid;
  gap: 8px;
  padding-top: 24px;
  font-size: .875rem;
  color: #b9c5e4;
}
.footer__bottom p { margin: 0; }

/* ---------- Cookie ---------- */

.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: grid;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cookie-banner[hidden] { display: none; }
@media (min-width: 900px) {
  .cookie-banner { grid-template-columns: 1fr auto; align-items: center; padding: 22px 28px; bottom: 20px; }
}
.cookie-banner__title { margin: 0 0 4px; font-size: 1.0625rem; color: var(--ink); letter-spacing: 0; }
.cookie-banner__text { margin: 0; font-size: .9375rem; color: var(--muted); }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .cookie-banner__actions { grid-template-columns: repeat(3, 1fr); } }
.cookie-banner__actions .btn { min-width: 150px; }

.dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: rgba(0, 20, 60, .55); }
.dialog__inner { padding: 24px; }
@media (min-width: 640px) { .dialog__inner { padding: 32px; } }
.dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.dialog__title { margin: 0; font-size: 1.5rem; }
.dialog__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -8px -8px 0 0;
  padding: 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.dialog__close:hover { background: var(--bg-soft); }
.dialog__text { color: var(--muted); font-size: .9375rem; }
.dialog__actions { display: grid; gap: 8px; margin-top: 20px; }
@media (min-width: 480px) { .dialog__actions { grid-template-columns: 1fr 1fr; } }

.consent-list { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.consent-list__item {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.consent-list__name { display: block; font-weight: 700; }
.consent-list__desc { display: block; font-size: .875rem; color: var(--muted); }
.consent-list__fixed { flex: none; font-size: .8125rem; font-weight: 700; color: var(--ok); white-space: nowrap; padding-top: 3px; }

.switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: 2px; }
.switch__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch__track {
  position: absolute;
  inset: 0;
  background: var(--line-strong);
  border-radius: 999px;
  transition: background-color .15s;
}
.switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.switch__input:checked + .switch__track { background: var(--navy); }
.switch__input:checked + .switch__track::after { transform: translateX(22px); }
.switch__input:focus-visible + .switch__track { outline: 3px solid var(--navy); outline-offset: 2px; }

/* ---------- 404 ---------- */

.error-page { padding: 80px 0 120px; text-align: center; }
.error-page__code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: -.04em; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.error-page__text { max-width: 44ch; margin: 12px auto 28px; color: var(--muted); font-size: 1.125rem; }

/* ---------- Уменьшение анимаций ---------- */

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

/* ---------- Печать ---------- */

@media print {
  .topbar, .header, .mobile-menu, .subnav, .toc, .cookie-banner, .dialog,
  .footer__cols, .footer__badges, .hero__controls, .skip-link, .btn { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .footer { padding: 12px 0 0; color: #000; background: #fff; border-top: 1px solid #000; }
  .footer a, .footer__bottom { color: #000; }
  .legal { display: block; padding: 0; }
  .prose { max-width: none; }
  .prose a[href^='http']::after,
  .prose a[href^='/']::after { content: ' (' attr(href) ')'; font-size: .85em; color: #333; }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
  .table-wrap { border: 1px solid #999; }
}
