/* AVATAR ARENA Реутов — лендинг.
   Мотив: шахматный пол арены (пурпур/зелень/фиолет/красный) + градиенты бренда.
   Сначала мобильная версия, брейкпоинты 768 / 1100. */

:root {
  --night: #1B1236;        /* фон — арена в полумраке */
  --night-2: #261A4A;      /* карточки на тёмном */
  --night-3: #34265F;      /* рамки, полосы */
  --paper: #F3F6FC;        /* светлые секции (бренд) */
  --ink: #1A1A1A;          /* текст на светлом (бренд) */
  --ink-2: #515569;        /* второстепенный на светлом (бренд) */
  --mist: #C2C7E1;         /* второстепенный на тёмном (бренд) */
  --white: #FFFFFF;

  --mat-pink: #E8239A;
  --mat-green: #3CCE71;
  --mat-violet: #8C3BD9;
  --mat-red: #F2384F;

  --grad: linear-gradient(90deg, #16B9FF 0%, #7067FF 19%, #B753FF 36%, #DD28E2 52%, #FF00C7 72%, #FF624E 100%);
  --grad-sun: linear-gradient(120deg, #FFA43B 0%, #F754EB 28%, #B82FF7 68%, #5F2AEC 100%);

  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-text: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --r-lg: 28px;   /* крупные блоки */
  --r-md: 18px;   /* карточки */
  --r-sm: 12px;   /* поля, фото */
  --gap: clamp(16px, 4vw, 32px);
  --sec: clamp(56px, 9vw, 112px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--white);
  font: 500 16px/1.55 var(--f-text);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 1.2em; height: 1.2em; flex: none; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #16B9FF; outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 8px; }

/* ── Типографика ── */
.h2 { font: 800 clamp(26px, 5.6vw, 48px)/1.08 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.h3 { font: 700 clamp(19px, 3.4vw, 24px)/1.2 var(--f-display); }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--mist); max-width: 62ch; margin-top: 14px; }
.light .lead, .light .muted { color: var(--ink-2); }
.kicker { color: #FFA43B; font-weight: 700; margin-bottom: 10px; }
.muted { color: var(--mist); }
.small { font-size: 13px; color: var(--mist); }
.note { margin-top: 14px; font-weight: 700; color: #3FEC94; }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--f-text); text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-position .4s ease;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--grad { background: var(--grad); background-size: 160% 100%; color: var(--white); box-shadow: 0 8px 24px -10px #DD28E2; }
.btn--grad:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn--grad:active { transform: translateY(1px); }
.btn--ghost { background: rgba(255,255,255,.1); color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.actions, .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── Шахматный пол — фирменная полоса ── */
.mats {
  height: 22px;
  background: conic-gradient(var(--mat-pink) 25%, var(--mat-green) 0 50%, var(--mat-violet) 0 75%, var(--mat-red) 0) 0 0 / 44px 44px;
}

/* ── Шапка ── */
.header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h);
  background: rgba(27,18,54,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__in { height: 100%; display: flex; align-items: center; gap: 20px; }
.header__logo img { width: 150px; height: auto; }
.nav { display: none; gap: 22px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; color: #FFA43B; }
.header__contacts { display: none; align-items: center; gap: 14px; }
.header__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.messengers { display: inline-flex; gap: 6px; }
.messengers a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); }
.messengers a:hover { background: rgba(255,255,255,.2); }
.burger { margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--white); position: relative; transition: transform .2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.nav.is-open {
  display: flex; flex-direction: column; gap: 0; position: fixed; inset: var(--header-h) 0 auto;
  background: var(--night); padding: 8px 16px 20px; border-bottom: 1px solid var(--night-3);
}
.nav.is-open a { padding: 14px 4px; font: 700 20px/1.2 var(--f-display); border-bottom: 1px solid var(--night-3); opacity: 1; }

/* ── Первый экран ── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--header-h); isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(27,18,54,.35) 0%, rgba(27,18,54,.2) 35%, rgba(27,18,54,.92) 72%, var(--night) 100%); }
.hero__char { display: none; position: absolute; z-index: -1; pointer-events: none; }
.hero__in { padding-bottom: 26px; }
.hero__place { font-weight: 700; color: #FFA43B; margin-bottom: 12px; }
.hero__title {
  font: 900 clamp(34px, 9.4vw, 84px)/1 var(--f-display); letter-spacing: -.02em; max-width: 13ch;
  text-wrap: balance;
}
.hero__lead { margin-top: 18px; max-width: 52ch; font-size: clamp(16px, 2.2vw, 19px); color: #E1E5FB; }
.hero__actions .btn { flex: 1 1 220px; }
.hero__addr { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--mist); }
.hero__addr svg { margin-top: 2px; color: #FF00C7; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 28px; border-radius: var(--r-md); overflow: hidden; background: rgba(255,255,255,.12); }
.facts li { background: rgba(27,18,54,.86); padding: 14px 14px 16px; }
.facts b { display: block; font: 800 clamp(20px, 4.6vw, 30px)/1.1 var(--f-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 400% 100%; }
.facts li:nth-child(2) b { background-position: 33% 0; }
.facts li:nth-child(3) b { background-position: 66% 0; }
.facts li:nth-child(4) b { background-position: 100% 0; }
.facts span { display: block; font-size: 13px; color: var(--mist); margin-top: 4px; }

/* ── Секции ── */
.section { padding-block: var(--sec); }
.light { background: var(--paper); color: var(--ink); }
.card { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: clamp(18px, 4vw, 32px); box-shadow: 0 24px 60px -30px rgba(46,50,77,.45); }

.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 6px;
  background: conic-gradient(var(--mat-pink) 25%, var(--mat-green) 0 50%, var(--mat-violet) 0 75%, var(--mat-red) 0) 0 0 / 11px 11px;
}

/* День рождения */
.birthday { background: radial-gradient(120% 80% at 100% 0%, #3A1D6E 0%, var(--night) 60%); }
.birthday__in { display: grid; gap: 32px; }
.birthday__media { position: relative; max-width: 480px; }
.birthday__media > img:first-child { border-radius: var(--r-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.birthday__invite { position: absolute; right: -8px; bottom: -18px; width: 34%; border-radius: var(--r-sm); box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); transform: rotate(5deg); border: 3px solid var(--white); }

/* Почему */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.why__grid li { background: var(--night-2); border-radius: var(--r-md); padding: 16px; }
.why__grid img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 10px; }
.why__grid h3 { font: 700 15px/1.25 var(--f-display); }
.why__grid p { font-size: 14px; color: var(--mist); margin-top: 6px; }

/* Форматы: фото 4:3 сверху (кадры подготовлены вручную в photos/formats), на телефоне — свайп */
.formats__grid { display: flex; gap: 12px; margin: 28px -16px 0; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
.format { flex: 0 0 78%; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--night-2); border-radius: var(--r-md); overflow: hidden; }
.format img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.format__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.format h3 { font: 700 17px/1.2 var(--f-display); }
.format p { font-size: 14px; color: var(--mist); }
.format .price { color: #3FEC94; font-weight: 700; font-size: 15px; margin-top: auto; padding-top: 4px; }
.format .btn { align-self: flex-start; margin-top: 6px; }
@media (min-width: 768px) {
  .formats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 0; padding: 0; overflow: visible; }
}
@media (min-width: 1100px) {
  .formats__grid { grid-template-columns: repeat(4, 1fr); }
}

/* Игры */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { border: 0; cursor: pointer; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--night-2); font-weight: 700; }
.chip.is-on { background: var(--white); color: var(--night); }
.games__grid { display: grid; gap: 16px; margin-top: 22px; }
.game { position: relative; background: var(--night-2); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.game[hidden] { display: none; }
.game__cover { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.game__cover img { width: 100%; height: 100%; object-fit: cover; }
.game--poster .game__cover img { object-position: 50% 20%; }
.game__play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; cursor: pointer; background: transparent;
}
.game__play span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--night); box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .15s; }
.game__play:hover span { transform: scale(1.08); }
.game__play svg { width: 26px; height: 26px; margin-left: 3px; }
.game__age { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; font: 800 13px/1 var(--f-display); background: var(--white); color: var(--night); }
.game__age--new { background: var(--grad-sun); color: var(--white); }
.game__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game__body h3 { font: 700 18px/1.2 var(--f-display); }
.game__tag { font-size: 13px; font-weight: 700; color: #FFA43B; }
.game__body p { font-size: 14px; color: var(--mist); }
@media (max-width: 767px) {
  .games__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 0 16px 8px; scroll-padding-inline: 16px; }
  .game { flex: 0 0 84%; scroll-snap-align: start; }
}
.games__more { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; background: var(--night-2); border-radius: var(--r-md); padding: 18px; }
.games__more p { max-width: 52ch; }

/* Как устроено — настоящая последовательность, поэтому номера */
.steps { display: grid; gap: 14px; margin-top: 28px; counter-reset: s; }
.steps li { position: relative; padding: 18px 18px 18px 72px; background: var(--night-2); border-radius: var(--r-md); counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font: 800 18px/1 var(--f-display); background: var(--grad); background-size: 400% 100%;
}
.steps li:nth-child(2)::before { background-position: 33% 0; }
.steps li:nth-child(3)::before { background-position: 66% 0; }
.steps li:nth-child(4)::before { background-position: 100% 0; }
.steps h3 { font: 700 17px/1.25 var(--f-display); }
.steps p { color: var(--mist); font-size: 15px; margin-top: 6px; }

/* Цены */
.prices__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: #E1E5FB; }
.switch button { border: 0; cursor: pointer; background: transparent; border-radius: 999px; padding: 9px 16px; font-weight: 700; color: var(--ink-2); line-height: 1.15; }
.switch small { display: block; font-weight: 600; font-size: 11px; }
.switch button[aria-checked="true"] { background: var(--night); color: var(--white); }
.prices .h3 { margin-top: 34px; margin-bottom: 12px; }
.play-prices { display: grid; gap: 12px; }
.play-price { display: grid; gap: 10px; background: var(--white); border-radius: var(--r-md); padding: 18px; align-items: center; }
.play-price b { display: block; font: 700 17px/1.2 var(--f-display); }
.play-price span { font-size: 14px; color: var(--ink-2); }
.play-price p { font: 800 26px/1 var(--f-display); }
.play-price p small { font: 600 13px var(--f-text); color: var(--ink-2); }
.play-price .btn { justify-self: start; }
.packages { display: grid; gap: 14px; margin-top: 16px; }
.pack { position: relative; background: var(--white); border-radius: var(--r-lg); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; border: 2px solid transparent; }
.pack--hit { border-color: transparent; background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad) border-box; }
.pack__badge { position: absolute; top: -12px; left: 20px; padding: 6px 12px; border-radius: 999px; font: 800 12px/1 var(--f-display); background: var(--grad-sun); color: var(--white); }
.pack__badge--alt { background: var(--night); }
.pack h4 { font: 800 21px/1.15 var(--f-display); margin: 0; }
.pack__meta { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.pack__price { font: 900 30px/1 var(--f-display); }
.pack__extra { font-size: 13px; color: var(--ink-2); }
.pack ul { display: grid; gap: 6px; font-size: 14px; }
.pack ul li { padding-left: 22px; position: relative; }
.pack ul li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 10px; height: 10px; border-radius: 3px; background: var(--mat-green); }
.pack details { font-size: 14px; }
.pack summary { cursor: pointer; font-weight: 700; color: #7067FF; }
.pack ol { margin-top: 8px; display: grid; gap: 4px; }
.pack ol li { display: grid; grid-template-columns: 62px 1fr; }
.pack ol b { font-weight: 800; }
.pack .btn { margin-top: auto; }
.extras { margin-top: 22px; background: var(--white); border-radius: var(--r-md); padding: 4px 18px; }
.extras summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.extras table { width: 100%; border-collapse: collapse; font-size: 14px; }
.extras td { padding: 10px 0; border-top: 1px solid #E1E5FB; vertical-align: top; }
.extras td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
.extras .muted { padding: 8px 0 14px; font-size: 13px; }
.prices__foot { margin-top: 14px; font-size: 14px; }

/* Калькулятор */
.calc { padding-top: 0; }
.calc__in { display: grid; gap: 24px; }
.calc__intro img { display: none; }
.quiz { position: relative; }
.quiz__bar { height: 8px; border-radius: 99px; background: #E1E5FB; overflow: hidden; margin-bottom: 18px; }
.quiz__bar span { display: block; height: 100%; width: 25%; background: var(--grad); transition: width .3s ease; }
.quiz__step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz__step.is-on { display: grid; gap: 14px; }
.quiz__step legend { font: 700 18px/1.25 var(--f-display); margin-bottom: 14px; padding: 0; }
.options { display: grid; gap: 10px; }
.options--row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.options--3 { grid-template-columns: repeat(3, 1fr); }
.options label { position: relative; cursor: pointer; }
.options input { position: absolute; opacity: 0; inset: 0; }
.options span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 14px; border-radius: var(--r-sm); background: var(--paper); font-weight: 700; border: 2px solid transparent; }
.options input:checked + span { border-color: #7067FF; background: #EDEBFF; }
.options input:focus-visible + span { outline: 3px solid #16B9FF; outline-offset: 2px; }
.range { display: grid; gap: 10px; font-weight: 700; }
.range output { font: 800 22px/1 var(--f-display); }
input[type="range"] { width: 100%; accent-color: #B753FF; height: 32px; }
.quiz__result { background: var(--night); color: var(--white); border-radius: var(--r-md); padding: 18px; }
.quiz__result b { display: block; font: 900 clamp(26px, 6vw, 34px)/1.1 var(--f-display); margin: 6px 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quiz__result p { font-size: 14px; color: var(--mist); }
.quiz__result .small { margin-top: 8px; }
.quiz__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.quiz__nav [data-quiz="next"] { margin-left: auto; }
.quiz .small { color: var(--ink-2); }

/* Поля */
.input { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm); border: 2px solid #DAE2EE; background: var(--white); color: var(--ink); font: 600 16px var(--f-text); }
.input:focus { border-color: #7067FF; outline: none; }
.input.is-bad { border-color: var(--mat-red); }
.field-label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: #7067FF; }
.consent.is-bad { color: var(--mat-red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: 14px; font-weight: 700; color: var(--mat-red); }
.form-msg:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Баттлы */
.battles { background: radial-gradient(100% 70% at 0% 100%, #4A1640 0%, var(--night) 65%); }
.battles__grid { display: grid; gap: 16px; margin-top: 28px; }
.battle { background: var(--night-2); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.battle > img:not(.battle__char) { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.battle__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.battle h3 { font: 800 22px/1.15 var(--f-display); }
.battle p { color: var(--mist); font-size: 15px; }
.battle .price { color: #3FEC94; font-weight: 700; }
.battle .btn { align-self: flex-start; margin-top: auto; }
.battle--tour { position: relative; background: var(--grad-sun); min-height: 320px; }
.battle--tour p { color: #FFF3FB; }
.battle--tour .battle__body { position: relative; z-index: 1; }
@media (min-width: 768px) { .battle--tour .battle__body { max-width: 62%; } }
.battle--tour .btn--grad { background: var(--white); color: var(--night); box-shadow: none; }
.tour-next { background: rgba(27,18,54,.35); border-radius: var(--r-sm); padding: 12px 14px; font-weight: 600; }
.battle__char { position: absolute; right: -40px; bottom: 0; height: 70%; width: auto; object-fit: contain; opacity: .45; }
@media (min-width: 768px) { .battle__char { opacity: 1; height: 88%; right: -24px; } }

/* Корпоративы */
.events__in { display: grid; gap: 28px; align-items: center; }
.events__text .btn { margin-top: 26px; }
.events__img { border-radius: var(--r-lg); aspect-ratio: 4/5; object-fit: cover; max-height: 560px; width: 100%; }

/* Галерея */
.gallery { padding-bottom: calc(var(--sec) - 10px); }
.gallery__track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 26px;
  padding: 0 16px 10px; scroll-padding-inline: 16px; scrollbar-width: thin;
}
.gallery__track li { flex: 0 0 auto; scroll-snap-align: start; }
.gallery__track img { height: clamp(300px, 55vw, 460px); width: auto; border-radius: var(--r-sm); object-fit: cover; }

/* Сертификат */
.gift { background: linear-gradient(180deg, var(--night) 0%, #2B1550 100%); }
.gift__in { display: grid; gap: 28px; align-items: center; }
.gift__img img { transform: rotate(-4deg); filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.form-inline { display: grid; gap: 12px; margin-top: 22px; max-width: 460px; }
.gift .consent, .gift .small { color: var(--mist); }
.gift .consent a { color: var(--white); }

/* FAQ */
.faq__in { display: grid; gap: 24px; }
.faq__list { display: grid; gap: 8px; }
.faq details { background: var(--night-2); border-radius: var(--r-md); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; translate: 0 -50%; font: 700 24px/1 var(--f-display); color: #FF00C7; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 18px 18px; color: var(--mist); max-width: 70ch; }

/* Контакты */
.contacts__in { display: grid; gap: 28px; }
.contacts__list { display: grid; gap: 12px; margin-top: 24px; }
.contacts__list li { display: flex; gap: 12px; align-items: flex-start; }
.contacts__list svg { margin-top: 2px; color: #FF00C7; }
.contacts__list a { font-weight: 700; text-decoration: none; }
.messengers--big { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.messengers--big a { width: auto; height: auto; padding: 12px 18px; border-radius: 999px; gap: 8px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; }
.contacts .card { margin-top: 26px; max-width: none; }
.contacts .card h3 { font: 700 18px/1.25 var(--f-display); }
/* видео из игр */
.reel__box { position: relative; margin-top: 28px; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.reel__video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
/* кнопка как у карточек игр; видна только на паузе */
.reel__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 96px; height: 96px; border: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--night); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .15s; }
.reel__play:hover { transform: scale(1.08); }
.reel__play svg { width: 40px; height: 40px; margin-left: 5px; }
.is-playing .reel__play { display: none; }
.reel__bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.reel__bar > * { pointer-events: auto; }
.reel__sound { order: 2; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(27,18,54,.78); color: var(--white); font: 700 14px/1 var(--f-text); cursor: pointer; backdrop-filter: blur(6px); }
/* перемотка: появляется только после первого запуска и при активности мыши */
.reel__seek { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(27,18,54,.78); color: var(--white); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.has-started.show-seek .reel__seek, .has-started:not(.is-playing) .reel__seek { opacity: 1; visibility: visible; }
.reel__time { flex: none; font: 600 13px/1 var(--f-text); font-variant-numeric: tabular-nums; }
.reel__range { --p: 0%; flex: 1; min-width: 0; height: 20px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.reel__range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #FF00C7 var(--p), rgba(255,255,255,.3) var(--p)); }
.reel__range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); }
.reel__range::-moz-range-progress { height: 4px; border-radius: 4px; background: #FF00C7; }
.reel__range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--white); }
.reel__range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--white); }
.reel__sound:hover { background: rgba(27,18,54,.92); }
.reel__sound svg { width: 22px; height: 22px; }
.reel__sound .reel__on, .reel__sound[aria-pressed="true"] .reel__off { display: none; }
.reel__sound[aria-pressed="true"] .reel__on { display: inline; }
@media (max-width: 767px) { .reel__box { border-radius: var(--r-md); } .reel__bar { left: 10px; right: 10px; bottom: 10px; gap: 8px; } .reel__sound { min-height: 36px; padding: 0 12px 0 9px; font-size: 13px; } .reel__seek { height: 36px; padding: 0 12px; gap: 8px; } .reel__time { font-size: 12px; } .reel__sound svg { width: 18px; height: 18px; } .reel__play { width: 64px; height: 64px; } .reel__play svg { width: 28px; height: 28px; margin-left: 3px; } }
.map { position: relative; min-height: 360px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(rgba(27,18,54,.55), rgba(27,18,54,.55)), url('../img/photos/arena-wide-1-sm.webp') center / cover; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__shield { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; }
.map__shield span { margin-bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(27,18,54,.8); color: var(--white); font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.map__shield:hover span, .map__shield:focus-visible span { opacity: 1; }
@media (hover: none) { .map__shield span { opacity: 1; } }
.map__load { position: absolute; inset: 0; margin: auto; width: max-content; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--white); color: var(--night); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* Подвал */
.footer { background: #120B26; padding: 40px 0 120px; font-size: 14px; color: var(--mist); }
.footer__in { display: grid; gap: 22px; }
.footer img { width: 200px; margin-bottom: 8px; }
.footer a { color: var(--white); }
.footer__social { display: flex; flex-wrap: wrap; gap: 14px; }
.footer__legal p + p { margin-top: 4px; }

/* Нижняя панель */
.bar {
  position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(27,18,54,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.1);
}
.bar a, .bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border: 0; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.bar svg { width: 20px; height: 20px; }
.bar .bar__book { background: var(--grad); font-size: 15px; }

.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(10,6,24,.6); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet__panel { width: 100%; background: var(--night-2); border-radius: 24px 24px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.sheet__title { font: 700 18px/1.2 var(--f-display); margin-bottom: 6px; }
.sheet__panel a { display: flex; gap: 12px; align-items: center; min-height: 54px; padding: 0 16px; border-radius: 14px; background: rgba(255,255,255,.08); font-weight: 700; text-decoration: none; }

/* Модальные окна */
.modal { border: 0; padding: 0; width: min(460px, 100% - 24px); border-radius: var(--r-lg); background: var(--white); color: var(--ink); max-height: calc(100svh - 24px); }
.modal--wide { width: min(880px, 100% - 24px); }
.modal::backdrop { background: rgba(10,6,24,.7); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__body { display: grid; gap: 12px; padding: 28px 22px 24px; position: relative; }
.modal__body .h3 { padding-right: 40px; }
.modal .muted { color: var(--ink-2); }
.modal .small { color: var(--ink-2); }
.modal__x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.modal__body--ok { text-align: center; justify-items: center; }
.modal__body--ok img { width: 96px; }
.game-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.game-frames img { border-radius: var(--r-sm); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.game-frames img:first-child { grid-column: 1 / -1; }

/* cookie */
.cookie { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--white); color: var(--ink); font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.35); max-width: 520px; }
.cookie[hidden] { display: none; }
.cookie .btn { flex: none; }

/* ── ≥ 768 ── */
@media (min-width: 768px) {
  :root { --header-h: 72px; }
  .header__logo img { width: 190px; }
  .why__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .why__grid li { padding: 20px; }
  .why__grid img { width: 76px; height: 76px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li { padding: 18px 20px; }
  .hero__actions .btn { flex: 0 0 auto; }
  .games__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .play-prices { grid-template-columns: 1fr 1fr; }
  .play-price { grid-template-columns: 1fr auto; }
  .play-price .btn { grid-column: 1 / -1; }
  .packages { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
  .battles__grid { grid-template-columns: 1fr 1fr; }
  .battle--tour { grid-column: 1 / -1; }
  .birthday__in { grid-template-columns: 5fr 6fr; align-items: center; gap: 48px; }
  .events__in { grid-template-columns: 6fr 5fr; gap: 48px; }
  .gift__in { grid-template-columns: 1fr 1fr; gap: 48px; }
  .contacts__in { grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
  .map { min-height: 100%; }
  .gallery__track { padding-inline: max(16px, (100% - 1200px) / 2); scroll-padding-inline: max(16px, (100% - 1200px) / 2); }
  .footer__in { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .cookie { left: 24px; bottom: 24px; }
}

/* ── ≥ 1100: десктоп ── */
@media (min-width: 1100px) {
  .nav { display: flex; }
  .header__contacts { display: flex; }
  .burger { display: none; }
  .bar, .sheet { display: none !important; }
  .footer { padding-bottom: 40px; }
  .hero { min-height: min(100svh, 900px); }
  .hero::before { background: linear-gradient(90deg, rgba(27,18,54,.94) 0%, rgba(27,18,54,.75) 42%, rgba(27,18,54,.1) 75%), linear-gradient(180deg, transparent 70%, var(--night) 100%); }
  .hero__in { padding-bottom: 40px; padding-top: 60px; }
  .hero__char { display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
  .hero__char--a { width: 420px; right: max(0px, (100% - 1300px) / 2); top: 110px; transform: rotate(6deg); }
  .hero__char--b { width: 330px; right: max(260px, (100% - 1300px) / 2 + 300px); bottom: 150px; }
  .facts { margin-bottom: 40px; }
  .games__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .packages { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .calc__in { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .calc__intro { position: sticky; top: 110px; }
  .calc__intro img { display: block; width: 300px; margin-top: 28px; }
  .battle--tour { min-height: 300px; }
  .battle--tour .battle__body { max-width: 58%; padding: 32px; }
  .battle__char { right: 6%; height: 115%; bottom: -4%; }
  .faq__in { grid-template-columns: 4fr 8fr; gap: 48px; align-items: start; }
  .faq__in > .h2 { position: sticky; top: calc(var(--header-h) + 24px); }
  .modal__body { padding: 36px 32px 30px; }
}
