/* ═══════════════════════════════════════════════════════
   VULKAN VEGAS CASINO — styles.css
   Production-ready | Mobile-first | No external libraries
   ═══════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─────────────────────────────────── */
:root {
  --bg: #f3f4f8;
  --bg-soft: #ffffff;
  --bg-panel: #eef1f7;
  --bg-dark: #0f1d36;
  --bg-dark2: #0a1525;
  --text: #1e2552;
  --text-light: #ffffff;
  --muted: #7a84a8;
  --line: rgba(30, 37, 82, 0.08);
  --blue: #1f6fe5;
  --blue-deep: #1758b7;
  --orange: #ff6128;
  --orange-deep: #ea541e;
  --violet: #4c39c5;
  --violet-deep: #3b2aa0;
  --green: #6ecb2c;
  --radius: 22px;
  --radius-sm: 16px;
  --radius-xs: 10px;
  --shadow-soft: 0 12px 32px rgba(30, 37, 82, 0.12);
  --shadow-card: 0 10px 24px rgba(25, 61, 142, 0.12);
  --shadow-heavy: 0 20px 60px rgba(15, 29, 54, 0.4);
  --header-h: 76px;
  --bottom-nav-h: 88px;
  --container: 1440px;
  --container-pad: clamp(16px, 4vw, 64px);
  --transition: 0.22s ease;
}

/* ─── CRITICAL: preserve [hidden] attribute ──────────── */
[hidden] { display: none !important; }

/* ─── RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* overflow-x: clip avoids the BFC that overflow-x: hidden creates
   which would break position: sticky children */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 100%;
}

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

.in-page-anchor {
  scroll-margin-top: calc(var(--header-h) + 12px);
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ─── SKIP LINK ──────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -9999px;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 14px;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 16px;
}

/* ─── SCREEN READER ONLY ─────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── CONTAINER ──────────────────────────────────────── */
.header-inner,
.search-panel-section > *,
.games-strip-section,
.games-grid-section,
.faq-inner,
.footer-top,
.footer-columns,
.footer-bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 97, 40, 0.35);
}
.btn-primary:hover {
  background: var(--orange-deep);
  box-shadow: 0 6px 22px rgba(255, 97, 40, 0.45);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

.btn-hero {
  padding: 14px 34px;
  font-size: 16px;
  letter-spacing: 0.01em;
}

/* ─── HEADER ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition), background var(--transition);
  will-change: box-shadow;
  max-width: 100%;
  overflow-x: clip;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  min-width: 0;
  max-width: 100%;
}

.header-brand { flex-shrink: 0; }
.header-logo { height: 52px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 20px;
}
.header-nav__link {
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.header-nav__link:hover {
  background: var(--bg-panel);
  color: var(--blue);
}
.header-nav__link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
  flex-shrink: 1;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-panel);
  color: var(--text);
  border: 1.5px solid var(--line);
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.header-pill:hover { background: var(--bg); border-color: var(--blue); color: var(--blue); }
.header-pill:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.header-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-xs);
  transition: background var(--transition);
}
.header-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.header-burger:hover { background: var(--bg-panel); }
.header-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer — hidden until .is-open via JS */
.mobile-drawer {
  display: none;
  flex-direction: column;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 16px var(--container-pad) 20px;
  gap: 4px;
  animation: drawerIn 0.2s ease;
}
.mobile-drawer.is-open {
  display: flex;
}
@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-drawer__link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition);
}
.mobile-drawer__link:hover { background: var(--bg-panel); color: var(--blue); }
.mobile-drawer__actions {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.mobile-drawer__actions .btn { flex: 1; }

/* ─── HERO SECTION ───────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  /* Sit above the sticky search panel in the stacking order */
  z-index: 2;
  background: var(--bg-dark);
  min-height: clamp(380px, 46vw, 520px);
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: clamp(380px, 46vw, 520px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
/* Active slide is relative so it sets the slider's intrinsic height */
.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  min-height: clamp(380px, 46vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 29, 54, 0.72) 0%,
    rgba(15, 29, 54, 0.38) 50%,
    rgba(15, 29, 54, 0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-slide__fill-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hero-slide__fill-link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -4px;
  z-index: 5;
}

.hero-characters {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-char {
  position: absolute;
  bottom: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}
.hero-char--left {
  left: 3%;
  height: 92%;
  width: auto;
  max-width: 22%;
  object-position: bottom center;
}
.hero-char--right {
  right: 3%;
  height: 90%;
  width: auto;
  max-width: 22%;
  object-position: bottom center;
}

/* Slide 1 — левая девушка вплотную к краю */
.hero-slide:nth-child(1) .hero-char--left {
  left: -1%;
  max-width: 23%;
}

/* Slide 2 — мужчина вплотную к правому краю */
.hero-slide:nth-child(2) .hero-char--right {
  right: -1%;
  max-width: 24%;
}

/* Slide 3 — персонаж крупнее */
.hero-slide:nth-child(3) .hero-char--left {
  height: 105%;
  max-width: 26%;
  left: 1%;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: #fff;
  padding: 40px var(--container-pad) 56px;
  max-width: 600px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-block;
  padding: 5px 18px;
  background: rgba(31, 111, 229, 0.25);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 12px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-actions { margin-bottom: 28px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.88;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hero controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: background var(--transition), transform var(--transition);
}
.hero-arrow:hover { background: rgba(255,255,255,0.28); }
.hero-arrow:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.hero-arrow--prev { left: 20px; }
.hero-arrow--next { right: 20px; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: background var(--transition), width var(--transition);
}
.hero-dot.is-active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}
.hero-dot:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ─── SEARCH / FILTER PANEL ──────────────────────────── */
.search-panel-section {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(30,37,82,0.06);
  position: relative;
  z-index: 1;
  overflow-x: clip;
  max-width: 100%;
}

.search-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--container-pad) 0;
  max-width: var(--container);
  margin-inline: auto;
  flex-wrap: wrap;
  min-width: 0;
  box-sizing: border-box;
}

.search-bar {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
  min-height: 0;
  max-width: 100%;
  gap: 8px;
  padding: 0 14px;
  background: var(--bg-panel);
  border: 1.5px solid var(--line);
  border-radius: 50px;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.search-bar:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 229, 0.12);
}

.search-icon { flex-shrink: 0; color: var(--muted); }

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  padding: 11px 0;
  outline: none;
}
.search-input::placeholder { color: var(--muted); }

.search-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.search-btn { padding: 8px 18px; font-size: 13px; }
.search-btn--random {
  background: var(--bg-panel);
  border: 1.5px solid var(--line);
  color: var(--text);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), border-color var(--transition);
}
.search-btn--random:hover { background: var(--bg); border-color: var(--blue); color: var(--blue); }

.search-filters {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-panel);
  border: 1.5px solid var(--line);
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
}
.filter-pill:hover { background: var(--bg); border-color: var(--blue); color: var(--blue); }
.filter-pill:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.filter-pill.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Shortcut nav */
.shortcut-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px var(--container-pad);
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.shortcut-nav::-webkit-scrollbar { display: none; }

.shortcut-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
  border: 1.5px solid transparent;
}
.shortcut-nav__link:hover { background: var(--bg-panel); color: var(--text); }
.shortcut-nav__link.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.shortcut-nav__link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.shortcut-nav__more {
  color: var(--blue);
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--line);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.shortcut-nav__more:hover { background: var(--bg-panel); }

/* ─── SECTION COMMON ─────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-inline: var(--container-pad);
  min-width: 0;
  box-sizing: border-box;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--text);
}
.section-title--light { color: #fff; }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  transition: color var(--transition);
}
.section-link:hover { color: var(--blue-deep); }
.section-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.section-link--light { color: rgba(255,255,255,0.8); }
.section-link--light:hover { color: #fff; }

/* ─── GAMES STRIP SECTION ────────────────────────────── */
.games-strip-section {
  padding: 36px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow-x: clip;
  max-width: 100%;
  box-sizing: border-box;
}

.games-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px var(--container-pad) 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.games-strip::-webkit-scrollbar { height: 4px; }
.games-strip::-webkit-scrollbar-track { background: transparent; }
.games-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* ─── GAME CARD ──────────────────────────────────────── */
.game-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.game-card--large {
  width: clamp(200px, 18vw, 260px);
}

.game-card__link {
  display: block;
  position: relative;
  border-radius: inherit;
  overflow: hidden;
}

.game-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  display: block;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card__image { transform: scale(1.06); }

.game-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 29, 54, 0.92) 0%,
    rgba(15, 29, 54, 0.4) 45%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.game-card:hover .game-card__overlay,
.game-card:focus-within .game-card__overlay { opacity: 1; }

.game-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.game-card__actions {
  display: flex;
  gap: 8px;
}

.game-card__btn {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  background: var(--orange);
  color: #fff;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.game-card__btn:hover { background: var(--orange-deep); transform: scale(1.03); }
.game-card__btn--ghost {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
}
.game-card__btn--ghost:hover { background: rgba(255,255,255,0.25); }

.game-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}
.game-card__badge--hot {
  background: var(--orange);
  color: #fff;
}
.game-card__badge--new {
  background: var(--green);
  color: #fff;
}

/* ─── GAMES GRID SECTION ─────────────────────────────── */
.games-grid-section {
  padding: 36px 0;
  background: var(--bg);
  overflow-x: clip;
  max-width: 100%;
  box-sizing: border-box;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 14vw, 200px), 1fr));
  gap: 14px;
  padding-inline: var(--container-pad);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.games-grid .game-card { flex-shrink: unset; width: unset; }
.games-grid .game-card__image { aspect-ratio: 1; }

/* ─── PROMOTIONS SECTION ─────────────────────────────── */
.promotions-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1060 60%, var(--violet-deep) 100%);
  padding: 56px 0;
}

.promotions-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.promo-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.promo-tabs::-webkit-scrollbar { display: none; }

.promo-tabs__item {
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.promo-tabs__item:hover { background: rgba(255,255,255,0.15); color: #fff; }
.promo-tabs__item.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.promo-tabs__item:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.promo-slider { position: relative; }

.promo-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-heavy);
}

.promo-card__media-link {
  display: block;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}
.promo-card__media-link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

.promo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 2/1;
}

.promo-card__content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.promo-card__label {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 97, 40, 0.2);
  border: 1px solid var(--orange);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  width: fit-content;
}

.promo-card__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.promo-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  transition: background var(--transition), width var(--transition);
  cursor: pointer;
}
.promo-dot.is-active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}
.promo-dot:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ─── APP SECTION ────────────────────────────────────── */
.app-section {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--violet) 60%, var(--bg-dark) 100%);
  padding: 60px 0;
  overflow: hidden;
}

.app-banner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.app-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.app-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.app-features svg { color: var(--green); flex-shrink: 0; }

.app-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.app-qr__inner {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-xs);
  padding: 10px;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-qr__label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  font-weight: 500;
}

.app-store-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-xs);
  color: #fff;
  transition: background var(--transition), border-color var(--transition);
  min-width: 160px;
  cursor: pointer;
}
.store-btn:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.5); }
.store-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.store-btn span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 14px;
  font-weight: 700;
}
.store-btn small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
}

.app-visual {
  position: relative;
  flex-shrink: 0;
  width: clamp(180px, 20vw, 300px);
}
.app-phone {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
}

/* ─── FAQ SECTION ────────────────────────────────────── */
.faq-section {
  padding: 56px 0;
  background: var(--bg-soft);
}

.faq-inner {
  max-width: 820px;
}

.faq-inner .section-title {
  margin-bottom: 32px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  gap: 12px;
  transition: background var(--transition), color var(--transition);
}
.faq-question:hover { background: var(--bg-panel); color: var(--blue); }
.faq-question[aria-expanded="true"] { background: var(--bg-panel); color: var(--blue); }
.faq-question:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--muted);
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

.faq-answer {
  padding: 16px 22px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--line);
}

/* ─── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark2);
  color: rgba(255,255,255,0.65);
}

.footer-top {
  padding: 48px var(--container-pad) 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand-block {
  max-width: 360px;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 10px;
  opacity: 0.75;
}
.footer-contact__link {
  font-size: 13px;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}
.footer-contact__link:hover { text-decoration-color: var(--blue); }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px var(--container-pad);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-column__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-link:hover { color: #fff; }
.footer-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 3px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px var(--container-pad) 24px;
}

.footer-legal {
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.5;
  max-width: 720px;
}

.footer-bottom__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  transition: background var(--transition);
  cursor: pointer;
}
.footer-lang:hover { background: rgba(255,255,255,0.15); color: #fff; }
.footer-lang:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.footer-18plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  transition: border-color var(--transition), color var(--transition);
}
.footer-18plus:hover { border-color: var(--orange); color: var(--orange); }
.footer-18plus:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ─── MOBILE BOTTOM NAV ──────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 900;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(30, 37, 82, 0.14);
  height: var(--bottom-nav-h);
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav__list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  width: 100%;
  min-width: 0;
  padding: 0 max(4px, env(safe-area-inset-right, 0px)) 0 max(4px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.mobile-bottom-nav__item {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mobile-bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: var(--radius-xs);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
  text-align: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.mobile-bottom-nav__link:hover { color: var(--blue); }
.mobile-bottom-nav__link.is-active { color: var(--blue); }
.mobile-bottom-nav__link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.mobile-bottom-nav__item--primary {
  position: relative;
  top: -12px;
}
.mobile-bottom-nav__link--primary {
  background: var(--orange);
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px;
  gap: 4px;
  box-shadow: 0 6px 20px rgba(255, 97, 40, 0.45);
  font-size: 11px;
}
.mobile-bottom-nav__link--primary:hover {
  background: var(--orange-deep);
  color: #fff;
}
.mobile-bottom-nav__link--primary svg { width: 20px; height: 20px; }

/* ─── SCROLL TOP BUTTON ──────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 97, 40, 0.45);
  transition: opacity 0.28s ease, transform var(--transition), background var(--transition);
  opacity: 0;
  pointer-events: none;
}
.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top-btn:hover { background: var(--orange-deep); transform: translateY(-3px); }
.scroll-top-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ─── REVEAL ANIMATIONS ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PREFERS REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════ RESPONSIVE ═════════════════════════════ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .header-pill--chat,
  .header-pill--app { display: none; }

  .promo-card {
    grid-template-columns: 1fr;
  }
  .promo-card__img { aspect-ratio: 16/7; }

  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .app-banner { grid-template-columns: 1fr; }
  .app-visual { display: none; }

  .hero-char--left { height: 72%; max-width: 24%; }
  .hero-char--right { height: 70%; max-width: 24%; }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --container-pad: 16px;
  }

  /* Header */
  .header-nav { display: none; }
  .header-pill--lang { display: none; }
  .header-burger { display: flex; }
  /* .mobile-drawer visibility is controlled only via .is-open (JS toggle) */
  .header-actions .btn { padding: 9px 16px; font-size: 13px; }
  .header-actions { gap: 6px; }

  /* Hero */
  .hero-slider { min-height: 500px; }
  .hero-slide.is-active { min-height: 500px; }
  .hero-section { min-height: 500px; }
  .hero-content { padding: 36px 80px 60px; }
  .hero-title { font-size: clamp(28px, 8vw, 48px); }
  .hero-subtitle { font-size: 18px; }
  .hero-trust { flex-direction: column; align-items: center; gap: 8px; }
  .hero-char--left {
    height: 68%;
    left: 0;
    opacity: 0.85;
    max-width: 28%;
  }
  .hero-char--right {
    height: 65%;
    right: 0;
    opacity: 0.85;
    max-width: 28%;
  }

  /* Slide 1 — левая девушка к краю на мобиле */
  .hero-slide:nth-child(1) .hero-char--left {
    left: -8px;
    max-width: 30%;
  }
  /* Slide 2 — мужчина к краю на мобиле */
  .hero-slide:nth-child(2) .hero-char--right {
    right: -8px;
    max-width: 30%;
  }
  /* Slide 3 — персонаж крупнее на мобиле */
  .hero-slide:nth-child(3) .hero-char--left {
    height: 78%;
    max-width: 32%;
    left: -4px;
  }

  .hero-arrow { width: 36px; height: 36px; }
  .hero-arrow--prev { left: 10px; }
  .hero-arrow--next { right: 10px; }

  /* Search panel */
  .search-panel {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }
  .search-bar {
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    row-gap: 10px;
  }
  .search-input {
    flex: 1 1 auto;
    padding: 8px 0;
  }
  .search-actions {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .search-btn {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }
  .search-btn--random {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 9px 10px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }
  .search-filters { justify-content: stretch; }
  .filter-pill { flex: 1; justify-content: center; }

  /* Sections */
  .section-header { padding-inline: 16px; }
  .games-strip-section { padding: 24px 0; }
  .games-grid-section { padding: 24px 0; }
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    padding-inline: 16px;
  }

  /* Deux cartes visibles sans déborder (scroll horizontal pour la suite) */
  .game-card--large {
    width: calc((100% - 14px) / 2);
    flex: 0 0 calc((100% - 14px) / 2);
    min-width: 0;
    max-width: calc((100% - 14px) / 2);
  }

  /* Promotions */
  .promotions-section { padding: 36px 0; }
  .promo-card__content { padding: 24px 20px; }
  .promo-tabs { flex-wrap: nowrap; }

  /* App */
  .app-section { padding: 40px 0; }
  .app-banner { grid-template-columns: 1fr; gap: 24px; }
  .app-actions { flex-direction: column; align-items: flex-start; }
  .app-store-btns { flex-direction: row; }

  /* FAQ */
  .faq-section { padding: 36px 0; }

  /* Footer */
  .footer-columns { grid-template-columns: 1fr 1fr; padding: 28px 16px; }
  .footer-top { padding: 28px 16px; }
  .footer-bottom { padding: 16px; flex-direction: column; gap: 8px; text-align: center; }

  /* Mobile nav */
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: var(--bottom-nav-h); }

  .header-inner { gap: 8px; }
  .section-title { min-width: 0; overflow-wrap: anywhere; }
  .section-link { flex-shrink: 0; }

  /* Scroll top */
  .scroll-top-btn { bottom: calc(var(--bottom-nav-h) + 12px); right: 16px; width: 42px; height: 42px; }
}

/* Small mobile ≤ 420px */
@media (max-width: 420px) {
  .header-actions .btn-secondary { display: none; }
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  .footer-columns { grid-template-columns: 1fr; gap: 20px; }
  .app-store-btns { flex-direction: column; }
}

/* ─── SEO TEXT SECTION ───────────────────────────────── */
.seo-text-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.seo-text-inner {
  max-width: 900px;
  margin-inline: auto;
  padding: 56px var(--container-pad) 64px;
}

.seo-h1 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 20px;
}

.seo-h2 {
  display: block;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 2px solid var(--orange);
}

.seo-text-inner p {
  font-size: 15px;
  line-height: 1.75;
  color: #3a4060;
  margin-bottom: 14px;
}

.seo-text-inner strong {
  color: var(--text);
  font-weight: 600;
}

/* Tables */
.seo-table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.seo-table-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 12px 16px 0;
  margin-bottom: 0 !important;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 420px;
}

.seo-table thead tr {
  background: var(--bg-dark);
  color: #fff;
}

.seo-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.seo-table tbody tr {
  border-top: 1px solid var(--line);
  transition: background var(--transition);
}

.seo-table tbody tr:hover { background: var(--bg-panel); }

.seo-table td {
  padding: 12px 16px;
  color: #3a4060;
  line-height: 1.55;
}

.seo-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* SEO FAQ */
.seo-faq {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-faq__item {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.seo-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  gap: 10px;
  transition: background var(--transition), color var(--transition);
}

.seo-faq__q:hover { background: var(--bg-panel); color: var(--blue); }
.seo-faq__q[aria-expanded="true"] { background: var(--bg-panel); color: var(--blue); }
.seo-faq__q:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }

.seo-faq__q .faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--muted);
}
.seo-faq__q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

.seo-faq__a {
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line);
}

.seo-faq__a p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .seo-text-inner { padding: 36px 16px 48px; }
  .seo-h2 { margin-top: 28px; }
  .seo-table { min-width: 320px; }
  .seo-table td:first-child { white-space: normal; }
}
