/* ═══════════════════════════════════════════════════════════════
   PLANETWIN365 – styles.css
   Production-ready · Mobile-first · No external dependencies
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────────────────────── */
:root {
  --bg:              #1a1f2b;
  --bg-soft:         #1f252f;
  --bg-panel:        #252d38;
  --bg-panel-2:      #2e3744;
  --bg-card:         #2a3240;
  --yellow:          #f2b718;
  --yellow-soft:     #fdd04a;
  --yellow-dark:     #d99e0a;
  --green:           #41ad24;
  --green-deep:      #2d8f17;
  --green-hover:     #37961e;
  --red:             #e03535;
  --text:            #f4f4f4;
  --text-dim:        #d0d0d0;
  --muted:           #8a96a8;
  --line:            rgba(255,255,255,.07);
  --line-strong:     rgba(255,255,255,.12);
  --radius:          10px;
  --radius-lg:       18px;
  --radius-xl:       24px;
  --shadow-soft:     0 8px 24px rgba(0,0,0,.28);
  --shadow-card:     0 4px 16px rgba(0,0,0,.35);
  --header-h:        52px;
  --bottom-nav-h:    64px;
  --container:       1720px;
  --gutter:          clamp(12px,2vw,24px);
  --sidebar-w:       200px;
  --transition:      .18s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 15px;
  /* Запрещаем горизонтальный скролл на уровне корня */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
img,svg { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; color: inherit; font: inherit; }
input,button,select,textarea { font-family: inherit; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

/* ── Accessibility ──────────────────────────────────────────────── */
.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;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 10000;
  padding: 10px 18px; background: var(--yellow); color: #000;
  font-weight: 700; border-radius: var(--radius);
  transition: top var(--transition);
}
.skip-link:focus { top: 8px; }

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

/* ── Utility ────────────────────────────────────────────────────── */
/* Все блочные элементы не вылезают за viewport */
.site-main,
.site-header,
.site-footer,
.mobile-bottom-nav,
.mobile-app-strip {
  width: 100%;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.section-title {
  font-size: clamp(1rem,1.5vw,1.25rem);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 20px;
}

/* ── Reveal animation ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ═══════════════════════════════════════════════════════════════
   MOBILE APP STRIP
   ═══════════════════════════════════════════════════════════════ */
.mobile-app-strip {
  display: none;
  align-items: center;
  gap: 10px;
  background: #111722;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 200;
}

.mobile-app-strip__close {
  flex-shrink: 0;
  color: var(--muted);
  padding: 4px;
  line-height: 1;
}
.mobile-app-strip__icon { flex-shrink: 0; }
.mobile-app-strip__content {
  flex: 1;
  min-width: 0;
}
.mobile-app-strip__content strong {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.mobile-app-strip__content span {
  font-size: .7rem;
  color: var(--muted);
  line-height: 1.2;
}
.mobile-app-strip__cta {
  flex-shrink: 0;
  padding: 5px 14px;
  background: var(--green);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: .03em;
}
.mobile-app-strip__cta:hover { background: var(--green-hover); }

@media (max-width: 767px) {
  .mobile-app-strip { display: flex; }
}

/* ═══════════════════════════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
  /* background управляется дочерними уровнями — top-legal-strip, promo-strip, main-brand-bar */
}

/* Level 1 – Top legal strip */
.top-legal-strip {
  background: #0e131a;
  height: 26px;
  display: flex;
  align-items: center;
}
.top-legal-strip__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-legal-strip__text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  color: #99a0ac;
  font-weight: 500;
}
.legal-icon { flex-shrink: 0; }
.top-legal-strip__right { display: flex; align-items: center; gap: 8px; }

/* Level 2 – Promo strip */
.promo-strip {
  background: var(--yellow);
  padding: 7px var(--gutter);
}
.promo-strip__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.promo-strip__text {
  font-size: .82rem;
  color: #1a1a1a;
  text-align: center;
  flex: 1;
  line-height: 1.4;
}
.promo-strip__link {
  font-weight: 700;
  text-decoration: underline;
  color: #1a1a1a;
}
.promo-strip__close {
  flex-shrink: 0;
  color: rgba(0,0,0,.55);
  padding: 4px;
  border-radius: 4px;
  line-height: 1;
}
.promo-strip__close:hover { color: #000; background: rgba(0,0,0,.08); }

/* Level 3 – Main brand bar  (dark bg, yellow accents) */
.main-brand-bar {
  background: #111722;
  border-top: 3px solid var(--yellow);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand-bar__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Burger (mobile only) */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
  flex-shrink: 0;
}
.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Brand logo — white filter so black PNG shows on dark bg */
.brand-logo { flex-shrink: 0; display: flex; align-items: center; }
.brand-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Brand nav */
.brand-nav { flex: 1; overflow: hidden; }
.brand-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  white-space: nowrap;
}
.brand-nav__link {
  display: block;
  padding: 18px 11px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: .03em;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.brand-nav__link:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
.brand-nav__link--active {
  color: var(--yellow);
}
.brand-nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px 2px 0 0;
}

/* Brand actions */
.brand-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-icon-btn {
  padding: 7px;
  border-radius: 50%;
  color: var(--text-dim);
  transition: background var(--transition), color var(--transition);
}
.brand-icon-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }

.brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  font-size: .82rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: .04em;
  transition: filter var(--transition), transform var(--transition);
  white-space: nowrap;
}
.brand-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.brand-btn:active { transform: translateY(0); }

.brand-btn--login {
  background: var(--green);
  color: #fff;
}
.brand-btn--register {
  background: var(--green);
  color: #fff;
  border: 2px solid rgba(255,255,255,.15);
}

/* Sticky header shrink */
.site-header.is-sticky .promo-strip,
.site-header.is-sticky .top-legal-strip { display: none; }

/* ─ Mobile header overrides ─────────────────────────── */
@media (max-width: 767px) {
  .top-legal-strip { display: none; }
  .promo-strip { display: none; }

  /* Мобильная шапка — жёлтая как на референсе */
  .main-brand-bar {
    background: var(--yellow);
    border-top: none;
    border-bottom: 1px solid rgba(0,0,0,.12);
  }

  .burger-btn { display: flex; }
  .burger-line { background: #1a1a1a; }

  /* Лого — чёрный на жёлтом */
  .brand-logo img {
    height: 30px;
    filter: brightness(0);
  }

  .brand-nav { display: none; }
  .brand-btn--register { display: none; }
  .brand-icon-btn { display: none; }

  /* Растягиваем логотип чтобы он занял всё пространство между burger и ACCEDI */
  .brand-bar__inner {
    height: 52px;
    padding-inline: 14px;
    gap: 0;
  }
  .brand-logo {
    flex: 1;
    justify-content: center;
  }
  .brand-actions {
    flex-shrink: 0;
    gap: 0;
  }

  /* ACCEDI на мобиле */
  .brand-btn--login {
    padding: 9px 18px;
    font-size: .82rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .brand-nav__link { font-size: .72rem; padding: 18px 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   SUBNAV SECTION
   ═══════════════════════════════════════════════════════════════ */
.subnav-section {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 54px;
  z-index: 400;
}

@media (max-width: 767px) {
  .subnav-section { top: 50px; }
}

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
}

.subnav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0; /* критично для flex child — не даёт растягиваться за контейнер */
}
.subnav-tabs::-webkit-scrollbar { display: none; }

.subnav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  position: relative;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.subnav-tab:hover { color: var(--text); }
.subnav-tab.is-active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
  font-weight: 700;
}
.subnav-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.subnav-search-trigger {
  flex-shrink: 0;
  padding-right: 0;
}

/* Search box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box__input {
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 36px 8px 14px;
  font-size: .82rem;
  color: var(--text);
  width: 200px;
  transition: border-color var(--transition), width var(--transition);
  outline: none;
}
.search-box__input::placeholder { color: var(--muted); }
.search-box__input:focus {
  border-color: var(--yellow);
  width: 240px;
}
.search-box__icon {
  position: absolute;
  right: 10px;
  color: var(--muted);
  pointer-events: none;
}

@media (max-width: 767px) {
  .subnav-tab { padding: 12px 14px; font-size: .78rem; }
  .subnav-search-trigger { display: none; }
  .subnav-section { top: 50px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO BANNER SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero-banner-section {
  background: var(--bg-soft);
  padding: 16px 0 0;
}

@media (max-width: 767px) {
  .hero-banner-section { padding: 8px 0 0; }
}

/* Static single banner */
.hero-static {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-panel);
  line-height: 0;
}

.hero-static__link {
  display: block;
  width: 100%;
}

.hero-static__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

@media (max-width: 767px) {
  .hero-static {
    border-radius: var(--radius);
  }
  .hero-static__img {
    border-radius: var(--radius);
  }
}

/* ═══════════════════════════════════════════════════════════════
   FILTER ROW
   ═══════════════════════════════════════════════════════════════ */
.filter-row-section {
  background: var(--bg-soft);
  padding: 14px 0 0;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 10px;
  border-bottom: 1px solid var(--line);
}
.filter-row__label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.filter-row__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  background: var(--green);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 20px;
  min-width: 44px;
}
.filter-row__icon {
  margin-left: auto;
  color: var(--muted);
  padding: 6px;
  border-radius: 6px;
  transition: color var(--transition);
}
.filter-row__icon:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   CATEGORY ICONS
   ═══════════════════════════════════════════════════════════════ */
.category-icons-section {
  background: var(--bg-soft);
  padding: 16px 0 0;
}

.category-icons {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  /* Важно: не позволяем overflow уйти за пределы родителя */
  max-width: 100%;
}
.category-icons::-webkit-scrollbar { display: none; }

.category-icon { flex-shrink: 0; }
.category-icon__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 12px;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.category-icon__link:hover { color: var(--text); }
.category-icon__link.is-active {
  color: var(--yellow);
}
.category-icon__link.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px; right: 8px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px 2px 0 0;
}
.category-icon__icon { line-height: 1; }
.category-icon__label { font-size: .72rem; font-weight: 600; letter-spacing: .01em; }

@media (max-width: 767px) {
  .category-icon__link { padding: 8px 12px 10px; }
  .category-icon__label { font-size: .68rem; }
}

/* ═══════════════════════════════════════════════════════════════
   GAMES GRID
   ═══════════════════════════════════════════════════════════════ */
.games-grid-section {
  background: var(--bg-soft);
  padding: 20px 0 32px;
}

.games-grid-header {
  margin-bottom: 14px;
}
.games-grid-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.games-grid-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  background: var(--green);
  color: #fff;
  font-size: .78rem;
  border-radius: 20px;
}

/* Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

@media (max-width: 1400px) {
  .games-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1100px) {
  .games-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 860px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
}

/* Game card */
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 1;
  box-shadow: var(--shadow-card);
}
.game-card__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.game-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
}
.game-card:hover .game-card__link::after {
  background: rgba(0,0,0,.22);
}
.game-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.game-card:hover .game-card__image { transform: scale(1.04); }

.game-card__badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 3px 8px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  border-radius: 4px;
  pointer-events: none;
}
.badge--promo { background: var(--red); color: #fff; }
.badge--exclusive { background: var(--yellow); color: #1a1a1a; }

/* ═══════════════════════════════════════════════════════════════
   BONUS CARDS SECTION
   ═══════════════════════════════════════════════════════════════ */
.bonus-cards-section {
  background: var(--bg);
  padding: 32px 0;
}

.bonus-layout {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .bonus-layout {
    grid-template-columns: 1fr;
  }
  .desktop-sidebar { display: none; }
}

/* Desktop sidebar */
.desktop-sidebar {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 10px 12px;
}
.desktop-sidebar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.desktop-sidebar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  min-height: 44px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
  transition: background var(--transition), color var(--transition);
  border-top: 3px solid transparent;
  border-radius: 12px;
  text-align: center;
}
.desktop-sidebar__item:hover {
  background: var(--bg-panel-2);
  color: var(--text);
}
.desktop-sidebar__item.is-active {
  color: var(--yellow);
  background: rgba(242,183,24,.07);
  border-top-color: var(--yellow);
}

/* Bonus grid */
.bonus-content {}
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 1200px) {
  .bonus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bonus-grid { grid-template-columns: 1fr; }
}

/* Bonus card */
a.bonus-card {
  text-decoration: none;
  color: inherit;
}
.bonus-card {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bonus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

.bonus-card__image {
  position: relative;
  aspect-ratio: 2/1;
  overflow: hidden;
  background: var(--bg-card);
}
.bonus-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.bonus-card:hover .bonus-card__image img { transform: scale(1.04); }

.bonus-card__image-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, transparent 100%);
}
.bonus-card__amount {
  font-size: .78rem;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  letter-spacing: .03em;
}
.bonus-card__amount strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.bonus-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.bonus-card__title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.bonus-card__text {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}
.bonus-card__validity {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
}
.validity-label {
  font-weight: 700;
  color: var(--text-dim);
}

.bonus-card__timer {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-panel-2);
  border-radius: 6px;
  padding: 5px 10px;
  min-width: 46px;
}
.timer-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.timer-label {
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: .03em;
  margin-top: 2px;
}

.bonus-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 11px 20px;
  background: var(--green);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  border-radius: 8px;
  letter-spacing: .06em;
  transition: background var(--transition), transform var(--transition);
  align-self: stretch;
}
.bonus-card:hover .bonus-card__cta {
  background: var(--green-hover);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   HELP STRIP
   ═══════════════════════════════════════════════════════════════ */
.help-strip-section {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.help-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.help-strip__content { flex: 1; min-width: 200px; }
.help-strip__title {
  font-size: clamp(1rem,1.5vw,1.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.help-strip__desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}
.help-strip__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--green);
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  border-radius: 8px;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.help-strip__button:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .help-strip { flex-direction: column; align-items: flex-start; }
  .help-strip__button { align-self: stretch; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   INFO CONTENT SECTION
   ═══════════════════════════════════════════════════════════════ */
.info-content-section {
  background: var(--bg-soft);
  padding: 36px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; }
}

.info-card {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border: 1px solid var(--line);
}
.info-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.info-card__subtitle {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 10px;
}
.info-card__text {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
}
.info-card__text strong { color: var(--text-dim); font-weight: 600; }
.info-link {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: underline;
}
.info-link:hover { color: var(--yellow-soft); }

/* ═══════════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════════ */
.faq-section {
  background: var(--bg);
  padding: 36px 0 40px;
}

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

.faq-item {
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--line-strong); }

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
}
.faq-item__question:hover { background: var(--bg-panel-2); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--transition);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-item__answer {
  padding: 0 20px 18px;
  border-top: 1px solid var(--line);
}
.faq-item__answer p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
  padding-top: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 600;
  background: #141920;
  border-top: 1px solid var(--line-strong);
  height: var(--bottom-nav-h);
  padding-inline: 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 767px) {
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: var(--bottom-nav-h); }
}

.mobile-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  font-size: .62rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
  transition: color var(--transition);
}
.mobile-bottom-nav__item:hover { color: var(--text); }
.mobile-bottom-nav__item--active { color: var(--yellow); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE DRAWER
   ═══════════════════════════════════════════════════════════════ */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 900;
  visibility: hidden;
  pointer-events: none;
}
.mobile-drawer:not([hidden]) {
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  opacity: 0;
  transition: opacity .3s ease;
}
.mobile-drawer.is-open .mobile-drawer__overlay { opacity: 1; }

.mobile-drawer__panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: none; }

/* Drawer header */
.mobile-drawer__header {
  background: var(--yellow);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.mobile-drawer__close {
  color: #1a1a1a;
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
}
/* В drawer header фон жёлтый — убираем invert, показываем чёрный логотип */
.mobile-drawer__header .brand-logo img {
  height: 26px;
  filter: brightness(0);
}
.mobile-drawer__header .brand-btn--login {
  margin-left: auto;
  padding: 7px 16px;
  font-size: .78rem;
}

/* Drawer cats */
.mobile-drawer__cats {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
  background: var(--bg-panel);
  flex-shrink: 0;
}
.mobile-drawer__cats::-webkit-scrollbar { display: none; }

.drawer-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition);
}
.drawer-cat:hover { color: var(--text); }
.drawer-cat__icon { color: var(--muted); }

/* Drawer nav */
.mobile-drawer__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.mobile-drawer__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  transition: background var(--transition), color var(--transition);
}
.mobile-drawer__link:hover {
  background: var(--bg-panel);
  color: var(--text);
}
.mobile-drawer__link svg { flex-shrink: 0; color: var(--muted); }

/* Drawer footer */
.mobile-drawer__footer {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-panel);
  flex-shrink: 0;
}
.drawer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.drawer-legal-text {
  font-size: .7rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: #141920;
  border-top: 1px solid var(--line-strong);
}

.footer-top { padding: 44px 0 32px; }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1100px) {
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
  .footer-column--map { display: none; }
}
@media (max-width: 600px) {
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.footer-title {
  font-size: .78rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-link {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--text); }

/* Map block */
a.footer-map-block {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.footer-map-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-map-title {
  font-size: .75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.footer-map-icon {}

/* Footer bottom */
.footer-bottom {
  background: #0e131a;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.footer-legal-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-legal-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.footer-legal-text {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}
.footer-legal-company {
  font-size: .68rem;
  color: #5a6270;
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
}

.footer-legal-link {
  color: var(--yellow);
  text-decoration: underline;
}
.footer-legal-link:hover { color: var(--yellow-soft); }

@media (max-width: 768px) {
  .footer-legal-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-legal-company { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING ELEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 700;
  width: 40px; height: 40px;
  background: var(--bg-panel-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateY(10px);
  border: 1px solid var(--line-strong);
}
.back-to-top:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-to-top:hover {
  background: var(--bg-panel);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .back-to-top { bottom: calc(var(--bottom-nav-h) + 12px); }
}

/* Floating badge */
.floating-badge {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--yellow);
  border-radius: 50%;
  width: 62px; height: 62px;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(242,183,24,.4);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.floating-badge img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.floating-badge__label {
  font-size: .55rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: .06em;
  margin-top: -28px;
  background: var(--yellow);
  width: 100%;
  text-align: center;
  padding: 2px 0 3px;
}
.floating-badge:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(242,183,24,.5);
}

@media (max-width: 767px) {
  .floating-badge { bottom: calc(var(--bottom-nav-h) + 8px); width: 56px; height: 56px; }
  .floating-badge img { width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════════════════════════════
   BODY LOCK (for drawer)
   ═══════════════════════════════════════════════════════════════ */
.body-locked {
  overflow: hidden;
  touch-action: none;
}

/* ═══════════════════════════════════════════════════════════════
   SEO TEXT SECTION
   ═══════════════════════════════════════════════════════════════ */
.seo-text-section {
  background: var(--bg);
  padding: 52px 0 60px;
  border-top: 1px solid var(--line);
}

.seo-content {
  max-width: 900px;
  margin-inline: auto;
}

/* Headings */
.seo-h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -.01em;
}

.seo-h2 {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* Paragraphs */
.seo-p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 14px;
}
.seo-p strong {
  color: var(--text-dim);
  font-weight: 600;
}

/* Tables */
.seo-table-wrap {
  margin: 28px 0;
}
.seo-table-caption {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: .01em;
}
.seo-table-note {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 10px;
  font-style: italic;
}
.seo-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  max-width: 100%;
  display: block;
}
.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.seo-table thead {
  background: var(--bg-panel-2);
}
.seo-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
  font-size: .78rem;
}
.seo-table td {
  padding: 9px 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: .8rem;
  line-height: 1.5;
  word-break: break-word;
  hyphens: auto;
}
.seo-table tbody tr:last-child td { border-bottom: none; }
.seo-table tbody tr:nth-child(odd) { background: var(--bg-panel); }
.seo-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.seo-table tbody tr:hover { background: var(--bg-panel-2); }
.seo-table td:first-child {
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
}

/* Узкие экраны (телефон / портрет планшета): вся таблица в ширину без гориз. скролла */
@media (max-width: 768px) {
  .seo-table-scroll {
    overflow-x: visible;
    -webkit-overflow-scrolling: auto;
  }
  .seo-table {
    table-layout: fixed;
    min-width: 0;
    width: 100%;
    font-size: clamp(0.5625rem, 2.65vw, 0.6875rem);
  }
  .seo-table th,
  .seo-table td {
    padding: 5px 3px;
    white-space: normal;
    line-height: 1.22;
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .seo-table th {
    font-size: clamp(0.5rem, 2.4vw, 0.625rem);
    letter-spacing: 0;
    white-space: normal;
  }
  .seo-table td:first-child {
    white-space: normal;
  }
  .seo-table-caption {
    font-size: clamp(0.72rem, 3.2vw, 0.82rem);
    line-height: 1.3;
  }
  .seo-table-note {
    font-size: clamp(0.65rem, 2.9vw, 0.75rem);
    line-height: 1.35;
  }
}

@media (max-width: 400px) {
  .seo-table th,
  .seo-table td {
    padding: 4px 2px;
  }
}

/* Two-column tables row */
.seo-tables-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}
/* На планшетах и мобиле — одна колонка */
@media (max-width: 860px) {
  .seo-tables-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* Дополнительно защищаем обёртку каждой таблицы */
.seo-tables-row .seo-table-wrap {
  margin: 0;
  min-width: 0; /* flex/grid child не растягивается за контейнер */
  overflow: hidden;
}

/* SEO FAQ */
.seo-faq {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.seo-faq .seo-h2 { margin-top: 0; }

/* Desktop tuning: cleaner centered SEO composition */
@media (min-width: 1024px) {
  .seo-content {
    max-width: 1040px;
  }

  .seo-h1,
  .seo-h2,
  .seo-p,
  .seo-table-caption,
  .seo-table-note {
    text-align: center;
  }

  .seo-table-wrap,
  .seo-faq {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }
}

.seo-faq-item {
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--transition);
}
.seo-faq-item[open] { border-color: var(--line-strong); }

.seo-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
  list-style: none;
}
.seo-faq-q:hover { background: var(--bg-panel-2); }
.seo-faq-q .faq-chevron { flex-shrink: 0; color: var(--muted); transition: transform var(--transition); }
.seo-faq-item[open] .seo-faq-q .faq-chevron { transform: rotate(180deg); }

.seo-faq-a {
  padding: 0 20px 16px;
  border-top: 1px solid var(--line);
}
.seo-faq-a p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.75;
  padding-top: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════ */
@media print {
  .site-header,.mobile-bottom-nav,.mobile-drawer,
  .floating-badge,.back-to-top,.mobile-app-strip { display: none !important; }
  body { background: #fff; color: #000; }
}
