/* ============================================================
   VARIABLES
   ============================================================ */

:root {
  /* Controls — единая высота инпутов и кнопок. Исключения со своей высотой:
     шапка (.header__cta 40px), hero-CTA (.hero__btn / .hero__actions .btn 48/56px). */
  --control-h: 48px;
  /* Colors */
  --color-primary: #008fca;
  --color-accent: #00a6eb;
  --color-white: #ffffff;
  --color-bg-dark: #010931;
  --color-bg-overlay: rgba(1, 9, 49, 0.76);
  --color-glass: rgba(255, 255, 255, 0.12);
  --color-glass-subtle: rgba(255, 255, 255, 0.08);
  --color-menu-overlay: rgba(1, 9, 49, 0.5);

  /* Gradient */
  --gradient-hero: linear-gradient(
    170.75deg,
    rgb(23, 5, 75) 12.99%,
    rgba(19, 32, 84, 0) 43.71%,
    rgba(20, 30, 83, 0.061) 77.58%,
    rgba(19, 32, 84, 0.154) 77.74%,
    rgb(29, 0, 159) 111.31%
  );

  /* Typography */
  --font-family: 'Geist', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;

  /* Font sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-display-mobile: 40px;
  --text-display: clamp(2.5rem, 7.5vw, 7.5rem);

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 64px;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;

  /* Layout */
  --container-desktop: 1376px;
  --container-mobile: 390px;

  /* Blur */
  --blur-sm: 30px;
  --blur-md: 48px;
}

/* ============================================================
   BASE
   ============================================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  background-color: var(--color-bg-dark);
  /* Vercel page background: radial gradient (replaces bg-page.jpg) */
  background: radial-gradient(circle at center, #002981 0%, #010931 100%);
  background-attachment: fixed;
  line-height: 1.4;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* Utility */
.container {
  width: 100%;
  max-width: var(--container-desktop);
  margin: 0 auto;
}

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

/* ============================================================
   SHARED UTILITIES
   Extracted from duplicated patterns across blocks.
   ============================================================ */

/* ─── Section label ─────────────────────────────────────────────────────────
   Used by: .clubs__label, .abonement__label, .promo__label, .games__label,
            .sert__label, .center__label, .equip__label, .test__label,
            .franch__label — all were identical.
   Each block-specific selector is now an alias via the class directly in HTML,
   but we keep the BEM names as they appear in the HTML and unify the rule here.
*/
.clubs__label,
.abonement__label,
.promo__label,
.games__label,
.sert__label,
.center__label,
.equip__label,
.test__label,
.franch__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

/* clubs__label has a slightly different letter-spacing (0.7px) — keep override */
.clubs__label {
  letter-spacing: 0.7px;
}

/* ─── Price row ─────────────────────────────────────────────────────────────
   Used by: .club-card__price-row, .club-modal__price-row — were identical.
*/
.club-card__price-row,
.club-modal__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Price label ───────────────────────────────────────────────────────────
   Used by: .club-card__price-label, .club-modal__price-label — were identical.
*/
.club-card__price-label,
.club-modal__price-label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  line-height: 1.4;
}

/* ─── Price value ───────────────────────────────────────────────────────────
   Used by: .club-card__price-value, .club-modal__price-value — were identical.
*/
.club-card__price-value,
.club-modal__price-value {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: 1.4;
}

/* ─── Meta item ─────────────────────────────────────────────────────────────
   Used by: .club-card__meta-item, .club-modal__meta-item — were identical.
*/
.club-card__meta-item,
.club-modal__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: 1.4;
}
/* Optical centering: Geist sits ~1px high in its line box, so the value reads
   slightly above the icon center though the boxes are centered. Nudge text down. */
.club-card__meta-item > span,
.club-card__meta-item > a,
.club-modal__meta-item > span,
.club-modal__meta-item > a {
  position: relative;
  top: 1px;
}

.club-card__meta-item a,
.club-modal__meta-item a {
  color: inherit;
  text-decoration: none;
}
.club-card__meta-item a:hover,
.club-modal__meta-item a:hover {
  color: var(--color-accent);
}

/* ─── Glass card base ───────────────────────────────────────────────────────
   Used by multiple block cards: abonement-card article, promo-card article,
   game-card, test-card, equip-card — all shared the same glass surface.
*/
.abonement-card article,
.promo-card article,
.test-card,
.equip-card {
  background: rgba(89, 105, 146, 0.22);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

/* ============================================================
   HERO — Header + Hero section + Mobile Menu
   ============================================================ */

/* ─── Shared button utilities ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-h);
  padding: 0 32px;
  line-height: 1;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
/* Свечение акцентом — ТОЛЬКО у primary (UI-ELEMENTS.md) */
.btn--primary:hover {
  background: var(--color-accent);
  box-shadow: 0 0 16px rgba(0, 166, 235, 0.45), 0 0 28px rgba(0, 166, 235, 0.18);
}

.btn--ghost {
  background: var(--color-glass);
  color: var(--color-white);
  border: none;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 3px solid var(--color-primary);
}
.btn--secondary:hover {
  background: var(--color-primary);
}

/* ─── HEADER ───────────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  background: rgba(0, 1, 44, 0.40);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 16px;
  max-width: none;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo img:first-child {
  width: 48px;
  height: 48px;
}

.header__logo img:last-child {
  display: block;
}

.header__nav {
  display: none;
}

.header__cta {
  display: none;
}

/* Hamburger button */
.header__burger {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.header__burger-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 0;
  transition: background 0.3s ease, transform 0.2s ease, opacity 0.2s ease;
}
.header__burger:hover .header__burger-line {
  background: var(--color-btn-primary);
}

/* ─── MOBILE MENU ──────────────────────────────────────────────────────────── */
/*
  [hidden] is removed by JS then --open class is added.
  display:flex !important is needed so the element is rendered during the
  transition even though [hidden] might still briefly apply.
*/
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex !important;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu--open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-menu-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-menu__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  height: 100%;
  background: rgba(0, 1, 44, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu--open .mobile-menu__panel {
  transform: none;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.mobile-menu__close:hover {
  opacity: 1;
}

.mobile-menu__nav {
  flex: 1;
  padding: var(--space-xl) var(--space-md);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__link {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}
.mobile-menu__link:hover {
  color: var(--color-accent);
}

.mobile-menu__footer {
  padding: var(--space-xl) var(--space-md);
  padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
}

.mobile-menu__cta {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* ─── HERO SECTION ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Background layers */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-layer {
  position: absolute;
  inset: 0;
}

/* Layer 1: dark base overlay */
.hero__bg-layer--overlay {
  background: rgba(0, 1, 44, 0.76);
}

/* Layer 2: blend image (mix-blend-mode: screen, positioned as in Figma) */
.hero__bg-layer--blend-wrap {
  mix-blend-mode: screen;
  overflow: hidden;
}

/* Mobile positions */
.hero__bg-blend-img {
  position: absolute;
  width: 1200.58%;
  height: 832.15%;
  left: -318.32%;
  top: -415.61%;
  max-width: none;
}

/* Layer 3: main F1 photo */
.hero__bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.43;
}

/* Layer 3 как видео: видео по умолчанию (и на мобиле тоже); постер = фолбэк только при reduced-motion / нет видео */
.hero__bg-video { display: block; }
.hero__bg-poster { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__bg-video { display: none; }
  .hero__bg-poster { display: block; }
}

/* Layer 4: light overlay (mix-blend-mode: hard-light) */
.hero__bg-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: hard-light;
}

/* Layer 5: gradient */
.hero__bg-layer--gradient {
  background: var(--gradient-hero);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-inline: var(--space-md);
  padding-bottom: 60px;
  padding-top: 80px;
}

.hero__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero__subtitle {
  font-size: var(--text-base);
  font-weight: var(--font-weight-light);
  color: var(--color-white);
  letter-spacing: 0;
  margin-bottom: var(--space-sm);
}

.hero__heading {
  font-size: var(--text-display);
  font-weight: var(--font-weight-light);
  line-height: 1;
  letter-spacing: -1.2px;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

.hero__heading-accent {
  color: var(--color-accent);
  display: block;
}

.hero__heading-white {
  color: var(--color-white);
  display: block;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.hero__actions .btn {
  width: 100%;
  justify-content: center;
}

.hero__btn {
  height: 48px;
  font-size: var(--text-sm);
  padding: 0 32px;
  letter-spacing: 0.04em;
}

/* ─── DESKTOP ───────────────────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .header__inner {
    gap: var(--space-xl);
    padding: 16px;
  }

  /* Desktop blend image positions (different from mobile) */
  .hero__bg-blend-img {
    width: 898.51%;
    height: 2021.65%;
    left: -135.31%;
    top: -1250.64%;
  }

  .header__logo img:first-child {
    width: 48px;
    height: 48px;
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }

  /* Hero — content anchored to bottom-left */
  .hero__inner {
    padding-inline: var(--space-xl);
    padding-bottom: 80px;
    display: flex;
    align-items: flex-end;
  }

  .hero__body {
    gap: var(--space-xl);
  }

  .hero__text {
    gap: var(--space-md);
  }

  .hero__heading {
    font-size: var(--text-display);
    letter-spacing: -0.03em;
    margin-bottom: 0;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: flex-start;
  }

  .hero__actions .btn {
    width: auto;
    height: 56px;
  }
}

@media (min-width: 1200px) {
  .header__inner {
    padding-inline: 16px;
  }

  .hero__inner {
    padding-inline: var(--space-xl);
  }
}

/* Header: full horizontal nav shown from 1280px. Short label "Академия" (vs the long
   "Центр подготовки пилотов") + 16px group gaps keep total ~1230px, so it fits from 1280.
   Nav is in normal flow (margin-inline:auto) — can never overlap logo/actions. */
@media (min-width: 1280px) {
  .header__inner {
    position: relative;
    gap: 16px;
  }

  .header__nav {
    display: flex;
    margin-inline: auto;
    justify-content: center;
    min-width: 0;
  }

  .header__nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .header__nav-link {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
  }
  .header__nav-link:hover {
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
  }

  .header__account {
    margin-right: 0;
  }

  .header__cta {
    display: inline-flex;
    flex-shrink: 0;
    height: 40px;
    padding-block: 0;
  }

  .header__burger {
    display: none;
  }
}

/* ============================================================
   BLOCK2 — Features (Преимущества)
   ============================================================ */

.features {
  padding: 60px var(--space-md);
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.features__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0, 166, 235, 0.6);
}

.features__item-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.features__item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.features__item-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.features__item-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.2;
}

.features__item-desc {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

@media (min-width: 769px) {
  .features {
    padding: 120px var(--space-xl);
  }

  .features__list {
    flex-direction: row;
    gap: var(--space-md);
    align-items: stretch;
  }

  .features__item {
    flex: 1;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-xs) 80px var(--space-xs) var(--space-lg);
    border-bottom: none;
    border-left: 1px solid rgba(0, 166, 235, 0.6);
  }

  .features__item-icon {
    width: 80px;
    height: 80px;
  }
}

/* ============================================================
   BLOCK3 — Clubs (Клубы)
   ============================================================ */

.clubs {
  padding-block: 80px;
}

.clubs__content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-inline: var(--space-md);
  max-width: var(--container-desktop);
  margin-inline: auto;
}

/* Section header */
.clubs__heading {
  font-size: 36px;
  font-weight: var(--font-weight-light);
  letter-spacing: -1.08px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
}

/* ─── TAB BAR ────────────────────────────────────────────────────────────────── */
/* Mobile city selector — visible mobile only */
.clubs__city-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clubs__city-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.clubs__city-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: rgba(89, 105, 146, 0.22);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
}

.clubs__city-btn-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.clubs__city-btn[aria-expanded="true"] .clubs__city-btn-chevron {
  transform: rotate(180deg);
}

/* City dropdown overlay */
.clubs__city-dropdown {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #3a3d47;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.clubs__city-dropdown[hidden] {
  display: none;
}

.clubs__city-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clubs__city-option {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-white);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.clubs__city-option:hover,
.clubs__city-option--active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-accent);
}

/* Desktop: hide mobile selector, show tabs */
.clubs__tabs-wrap {
  display: none;
  border-bottom: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 769px) {
  .clubs__city-select {
    display: none;
  }
  .clubs__tabs-wrap {
    display: block;
  }
}

.clubs__tabs-wrap::-webkit-scrollbar {
  display: none;
}

.clubs__tabs {
  display: flex;
  align-items: stretch;
  min-width: max-content;
}

.clubs__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  margin-bottom: 0;
}

.clubs__tab:hover:not(.clubs__tab--active) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}

.clubs__tab--active {
  background: var(--color-accent);
}

/* ─── CARDS GRID ─────────────────────────────────────────────────────────────── */
.clubs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ─── CLUB CARD ──────────────────────────────────────────────────────────────── */
.club-card {
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  background: rgba(89, 105, 146, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Photo area */
.club-card__photo-wrap {
  position: relative;
  aspect-ratio: 420 / 240;
  overflow: hidden;
  flex-shrink: 0;
}

.club-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  transition: transform 0.5s ease-out;
}

.club-card:hover .club-card__photo {
  transform: scale(1.05);
}

/* ─── SCROLL REVEAL (generic) ────────────────────────────────────────────────
   Hidden state applies ONLY when JS adds `reveal-on` to <body>, so without JS
   everything stays visible. JS (app.js) adds `is-visible` via IntersectionObserver.
   Matches the Vercel ScrollReveal behaviour. */
.reveal-on .scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal-on .scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.club-card__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: rgba(12, 14, 18, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 9999px;
}

.club-card__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #373a41;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.club-card__dot--active {
  background: #cecfd2;
}

/* Body */
.club-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.club-card__name {
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 8px;
}

.club-card__address {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: 1.4;
  font-style: normal;
  margin: 0;
}

/* Info row: left (icons+meta) + right (prices) */
.club-card__info {
  display: flex;
  gap: 24px;
}

.club-card__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.club-card__meta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Prices */
.club-card__prices {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* Buttons */
.club-card__actions {
  display: flex;
  gap: 8px;
}

.club-card__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 14px 24px;
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.club-card__btn--details {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  color: var(--color-white);
}
.club-card__btn--details:hover {
  background: rgba(255, 255, 255, 0.18);
}

.club-card__btn--book {
  background: transparent;
  color: var(--color-white);
  border: 3px solid var(--color-primary);
}
.club-card__btn--book:hover {
  background: var(--color-primary);
}

/* Hidden by filter */
.club-card[hidden] {
  display: none;
}

@media (min-width: 769px) {
  .clubs {
    padding-block: 120px;
  }

  .clubs__content {
    padding-inline: var(--space-xl);
  }

  .clubs__heading {
    font-size: 52px;
    letter-spacing: -1.56px;
    text-transform: uppercase;
  }

  .clubs__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1200px) {
  .clubs__content {
    padding-inline: var(--space-xl);
  }

  .clubs__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   CLUB-MODAL — Club detail popup
   ============================================================ */

/* ─── OVERLAY ──────────────────────────────────────────────────────────────── */
.club-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.club-modal[hidden] { display: none !important; }

.club-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.club-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 1, 44, 0.76);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

/* ─── PANEL ────────────────────────────────────────────────────────────────── */
.club-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(89, 105, 146, 0.22);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.club-modal__panel-bg {
  display: none; /* декоративная текстура убрана — чистое стекло как в попапе */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: hard-light;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.club-modal--open .club-modal__panel {
  transform: translateX(0);
}

/* ─── CLOSE BUTTON ─────────────────────────────────────────────────────────── */
.club-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.club-modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.club-modal__close img {
  width: 18px;
  height: 18px;
  display: block;
}

/* ─── SCROLLER ─────────────────────────────────────────────────────────────── */
.club-modal__scroller {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.club-modal__scroller::-webkit-scrollbar { width: 4px; }
.club-modal__scroller::-webkit-scrollbar-track { background: transparent; }
.club-modal__scroller::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 2px; }

/* ─── HEADER (name + gallery) ──────────────────────────────────────────────── */
.club-modal__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* gallery sits flush against the top; side padding stays so the gallery's
     full-width escape (margin-left:-32 / width:+64) keeps working */
  padding: 0 32px;
}

.club-modal__name {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.08px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
  margin: 0;
  padding-right: 52px; /* room for close button */
}

/* ─── GALLERY ──────────────────────────────────────────────────────────────── */
.club-modal__gallery {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  /* escape header's 32px padding on both sides so gallery is full panel width */
  width: calc(100% + 64px);
  margin-left: -32px;
}

.club-modal__track {
  display: flex;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.club-modal__slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
}

.club-modal__slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Side slides dim */
.club-modal__slide:not(.club-modal__slide--active) {
  opacity: 0.5;
}

/* Navigation arrows */
.club-modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.club-modal__arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}

.club-modal__arrow--prev { left: 12px; }
.club-modal__arrow--next { right: 12px; }

.club-modal__arrow img {
  width: 10px;
  height: 18px;
  display: block;
}

/* Progress bar */
.club-modal__progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.club-modal__progress-fill {
  height: 100%;
  background: var(--color-accent);
  opacity: 0.8;
  transition: width 0.35s ease;
}

/* ─── CONTENT ──────────────────────────────────────────────────────────────── */
.club-modal__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 32px;
}

.club-modal__info-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.club-modal__subtitle {
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.2;
  margin: 0;
}

.club-modal__address {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: 1.4;
  font-style: normal;
  margin: 0;
}

/* Two-column info: meta + prices */
.club-modal__info {
  display: flex;
  gap: 24px;
}

.club-modal__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.club-modal__meta-item img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.club-modal__prices {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* ЗАБРОНИРОВАТЬ button */
.club-modal__book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 14px 24px;
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.club-modal__book-btn:hover {
  background: var(--color-accent);
}

/* Directions */
.club-modal__directions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.club-modal__directions-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 18px;
}

.club-modal__directions-text {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  line-height: 1.4;
  margin: 0;
}

/* Map */
.club-modal__map-wrap {
  overflow: hidden;
  aspect-ratio: 957 / 471;
  flex-shrink: 0;
}

.club-modal__map {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.club-modal__map-link {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-primary, #008fca);
  text-align: right;
  text-decoration: none;
  opacity: 0.8;
}
.club-modal__map-link:hover { opacity: 1; }

@media (min-width: 769px) {
  .club-modal {
    align-items: stretch;
    justify-content: flex-end;
  }

  .club-modal__panel {
    width: 596px;
    height: 100%;
    max-height: none;
  }

  .club-modal__slide img {
    height: 340px;
  }

  .club-modal__name {
    font-size: 36px;
  }
}

/* ============================================================
   BLOCK4 — Abonement (Клубные карты / Абонементы)
   ============================================================ */

.abonement {
  padding-block: 80px;
}

.abonement__inner {
  max-width: var(--container-desktop);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* Section header */
.abonement__header {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.abonement__heading {
  font-size: 40px;
  font-weight: var(--font-weight-light);
  letter-spacing: -1.2px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
}

.abonement__desc {
  font-size: 20px;
  font-weight: var(--font-weight-light);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* ─── MOBILE CAROUSEL ─────────────────────────────────────────── */
.abonement__carousel-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.abonement__carousel-wrap::-webkit-scrollbar {
  display: none;
}

.abonement__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  min-width: max-content;
}

/* Carousel nav */
.abonement__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.abonement__arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.abonement__arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}

.abonement__arrow img {
  width: 8px;
  height: 16px;
  display: block;
}

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

.abonement__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
  cursor: pointer;
}

.abonement__dot--active {
  background: #cecfd2;
}

/* ─── CARDS ────────────────────────────────────────────────────── */
.abonement-card {
  flex: 0 0 303px;
  scroll-snap-align: start;
}

/* Card base — overrides shared glass surface */
.abonement-card article {
  background: rgba(89, 105, 146, 0.22);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 446px;
}

/* Featured card */
.abonement-card--featured article {
  background: rgba(89, 105, 146, 0.4);
}

.abonement-card__title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.abonement-card__subtitle {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 16px;
}

.abonement-card__name {
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}

.abonement-card__desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.abonement-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.abonement-card__price-value {
  font-size: 36px;
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
  letter-spacing: -1.08px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.abonement-card__price-period {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.abonement-card__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding-bottom: 24px;
}

.abonement-card__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.abonement-card__feature img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.abonement-card__btn {
  height: 44px;
  padding: 14px 24px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  width: 100%;
  margin-top: auto;
  transition: background 0.2s, border-color 0.2s;
}

.abonement-card__btn--primary {
  background: var(--color-primary);
}

.abonement-card__btn--primary:hover {
  background: var(--color-accent);
}

.abonement-card__btn--secondary {
  background: transparent;
  border: 3px solid var(--color-primary);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.abonement-card__btn--secondary:hover {
  background: var(--color-primary);
}

/* ─── DESKTOP ─────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .abonement {
    padding-block: 120px;
  }

  .abonement__inner {
    padding-inline: var(--space-xl);
  }

  .abonement__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 64px;
    min-height: 280px;
  }

  .abonement__header-left {
    padding-right: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .abonement__heading {
    font-size: 52px;
    letter-spacing: -1.56px;
  }

  /* Restore grid, hide carousel controls */
  .abonement__carousel-wrap {
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    scroll-snap-type: none;
  }

  .abonement__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    min-width: unset;
  }

  .abonement-card {
    flex: none;
  }

  .abonement__nav {
    display: none;
  }
}

@media (min-width: 1200px) {
  .abonement__inner {
    padding-inline: var(--space-xl);
  }
}

/* ============================================================
   BLOCK5 — Promo (Акции / Бонусы)
   ============================================================ */

.promo {
  padding: 60px var(--space-md);
}

.promo__inner {
  padding-inline: 0;
}

/* Section header */
.promo__header {
  margin-bottom: var(--space-2xl);
}

.promo__heading {
  font-size: 36px;
  font-weight: var(--font-weight-light);
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.promo__desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* Cards grid */
.promo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* Promo card — glass surface defined in shared utilities above */
.promo-card article {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Card media */
.promo-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 4;
  overflow: hidden;
}

.promo-card__media--layered {
  /* Stacked images */
}

.promo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Second promo: layered images */
.promo-card__img--base {
  position: relative;
  z-index: 0;
}

.promo-card__img--overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Card body */
.promo-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.promo-card__title {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.promo-card__text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  flex: 1;
}

.promo-card__btn {
  align-self: stretch;
  width: 100%;
  margin-top: auto;
}

@media (min-width: 769px) {
  .promo {
    padding: 120px var(--space-xl);
  }

  .promo__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
    margin-bottom: var(--space-2xl);
  }

  .promo__heading {
    font-size: 52px;
    letter-spacing: -1.56px;
    margin-bottom: 0;
  }

  .promo__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .promo {
    padding-inline: var(--space-xl);
  }
}

/* ============================================================
   BLOCK6 — Games (Игры / Симуляторы)
   ============================================================ */

.games {
  padding-block: 80px;
}

.games__inner {
  max-width: var(--container-desktop);
  margin-inline: auto;
  padding-inline: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ─── Section header (mobile: stack, desktop: 2-col) ─── */
.games__header {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.games__header-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.games__heading {
  font-size: 40px;
  font-weight: var(--font-weight-light);
  letter-spacing: -1.2px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
}

.games__subdesc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.games__desc {
  font-size: 18px;
  font-weight: var(--font-weight-light);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}
/* В левой колонке (header-left имеет gap:0) восстанавливаем отступ между
   двумя абзацами .games__desc — родной ритм правой колонки был 18px. */
.games__header-left .games__desc:not(:last-child) {
  margin-bottom: 18px;
}

.games__header-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ─── Carousel ─────────────────────────────────────────── */
.games__carousel {
  position: relative;
}

.games__scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.games__scroll::-webkit-scrollbar {
  display: none;
}

.games__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: max-content;
}

/* ─── Game card ─────────────────────────────────────────── */
.game-card {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-card__img-wrap {
  aspect-ratio: 267 / 400;
  overflow: hidden;
  width: 100%;
  background: rgba(89, 105, 146, 0.22);
}

.game-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card__title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* ─── Nav (mobile: flex row below, desktop: absolute) ─── */
.games__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.games__arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.games__arrow:hover {
  background: rgba(255, 255, 255, 0.16);
}

.games__arrow img {
  width: 8px;
  height: 16px;
  display: block;
}

/* ─── CTA ────────────────────────────────────────────────── */
.games__cta {
  display: flex;
  justify-content: center;
}

.games__btn {
  height: 44px;
  padding: 14px 24px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.games__btn:hover {
  background: var(--color-accent);
}

/* ─── DESKTOP ────────────────────────────────────────────── */
@media (min-width: 769px) {
  .games {
    padding-block: 120px;
  }

  .games__inner {
    padding-inline: var(--space-xl);
    gap: 64px;
  }

  .games__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
    min-height: 280px;
  }

  .games__header-left {
    padding-right: 100px;
    gap: 32px;
  }

  /* Правый текст — по нижнему краю блока (левая колонка задаёт высоту ряда). */
  .games__header-right {
    align-self: end;
  }

  .games__heading {
    font-size: 52px;
    letter-spacing: -1.56px;
  }

  .games__track {
    gap: 16px;
  }

  .game-card {
    flex: 0 0 267px;
  }

  .game-card__title {
    font-size: var(--text-sm);
  }

  /* Arrows over the carousel */
  .games__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(calc(-50% - 24px)); /* shift up to center on image */
    margin-top: 0;
    pointer-events: none;
  }

  .games__arrow {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (min-width: 1200px) {
  .games__inner {
    padding-inline: var(--space-xl);
  }
}

/* ============================================================
   BLOCK7 — Sert (Подарочные сертификаты)
   ============================================================ */

.sert {
  padding-block: 80px;
}

.sert__inner {
  max-width: var(--container-desktop);
  margin-inline: auto;
  padding-inline: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Info block (mobile: 1st, desktop: right-top) ─────────── */
.sert__info {
  display: flex;
  flex-direction: column;
}

.sert__eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 16px;
}

.sert__heading {
  font-size: 36px;
  font-weight: var(--font-weight-light);
  letter-spacing: -1.08px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
  margin: 0 0 20px;
}

.sert__desc {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin: 0;
}

.sert__feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.sert__feat-title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1.2;
  margin: 0 0 8px;
}

.sert__feat-desc {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 0;
}

/* ── Left: carousel + controls ───────────────────────────── */
.sert__left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sert__sub-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 8px;
}

/* Certificate carousel */
.sert__design-section {
  display: flex;
  flex-direction: column;
}

.sert__carousel-wrap {
  overflow: hidden;
}

.sert__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sert__slide {
  flex: 0 0 100%;
}

.sert__slide img {
  width: 100%;
  aspect-ratio: 356 / 200;
  object-fit: cover;
  display: block;
  background: rgba(89, 105, 146, 0.22);
}

.sert__slide-name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  margin: 12px 0 0;
}

.sert__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.sert__arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.sert__arrow:hover { background: rgba(255, 255, 255, 0.14); }
.sert__arrow:disabled { opacity: 0.3; cursor: default; }

.sert__dots {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.sert__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s;
}
.sert__dot--active {
  background: #cecfd2;
}

/* Order section */
.sert__order-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Custom select */
.sert__select-wrap {
  position: relative;
}

.sert__select {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-family: var(--font-family);
  transition: border-color 0.2s ease;
}
.sert__select:hover { border-color: rgba(255, 255, 255, 0.35); }
.sert__select[aria-expanded="true"] { border-color: var(--color-accent); }

.sert__select-mins {
  flex: 1;
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  text-align: left;
}

.sert__select-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sert__select-price {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
}

.sert__chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.sert__select[aria-expanded="true"] .sert__chevron {
  transform: rotate(180deg);
}
.sert__select[aria-expanded="true"] .sert__chevron path { stroke: var(--color-accent); stroke-opacity: 1; }

/* Dropdown panel */
.sert__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  padding: 6px 0;
  background: #050f30;
  border: 1px solid rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}
.sert__dropdown[hidden] { display: none; }

.sert__price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sert__price-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sert__price-option span:first-child {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
}
.sert__price-option span:last-child {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
}
.sert__price-option:hover {
  background: rgba(255, 255, 255, 0.06);
}
.sert__price-option:hover span {
  color: var(--color-accent);
}
/* Выбранное значение — просто синим текстом (без фоновой подсветки). */
.sert__price-option--active span { color: var(--color-accent); }

/* Buy button */
.sert__buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.25s ease;
}
.sert__buy-btn:hover { background: var(--color-accent); box-shadow: 0 0 16px rgba(0, 166, 235, 0.45), 0 0 28px rgba(0, 166, 235, 0.18); }

.sert__terms-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-accent);
  align-self: center;
  padding: 12px 24px;
  transition: color 0.2s;
}
.sert__terms-btn:hover { color: var(--color-primary); }

/* ── Desktop ──────────────────────────────────────────────── */
@media (min-width: 769px) {
  .sert__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* распорки 1fr сверху/снизу центрируют группу инфо+фичи по высоте
       карусели (как Vercel justify-center), не растягивая разрыв */
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 0;
    row-gap: 48px;
    padding-inline: var(--space-xl);
    /* DOM order: info, left, feats
       Grid: left=col1 (вся высота), info=col2 row2, feats=col2 row3 */
  }

  .sert__info {
    grid-column: 2;
    grid-row: 2;
    padding-left: 80px;
  }

  .sert__left {
    grid-column: 1;
    grid-row: 1 / 5;
    justify-content: space-between;
  }

  .sert__feats {
    grid-column: 2;
    grid-row: 3;
    padding-left: 80px;
    gap: 40px;
  }

  .sert__heading {
    font-size: 52px;
    letter-spacing: -1.56px;
  }

  .sert__feat-title {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  .sert__inner {
    padding-inline: var(--space-xl);
  }
  .sert__info,
  .sert__feats {
    padding-left: 100px;
  }
}

/* ============================================================
   BLOCK8 — Center (Центр подготовки пилотов)
   ============================================================ */

.center {
  padding-block: 60px;
}

.center__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-inline: var(--space-md);
  max-width: var(--container-desktop);
  margin-inline: auto;
}

/* Top — photo (mobile: first) + content (mobile: second) */
.center__top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.center__photo-wrap {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.center__photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.center__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.center__heading {
  font-size: 36px;
  font-weight: var(--font-weight-light);
  letter-spacing: -1.08px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: 16px;
}

.center__desc {
  font-size: var(--text-base);
  font-weight: var(--font-weight-light);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin-bottom: 24px;
}

.center__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.center__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.center__btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.center__btn--primary:hover {
  background: var(--color-accent);
}

.center__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  color: var(--color-white);
}
.center__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Steps */
.center__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.center__step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.center__step:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.center__step-num {
  font-size: 30px;
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 56px;
}

.center__step-title {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.center__step-desc {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  margin: 0;
}

/* ─── DESKTOP ────────────────────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .center {
    padding-block: 120px;
  }

  .center__inner {
    padding-inline: var(--space-xl);
    gap: 64px;
  }

  /* Content left, photo right */
  .center__top {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .center__content {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
  }

  .center__photo-wrap {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
  }

  /* Мероприятия — зеркало академии: фото слева, контент справа */
  .center--events .center__content { order: 2; }
  .center--events .center__photo-wrap { order: 1; }

  .center__heading {
    font-size: 52px;
    letter-spacing: -1.56px;
  }

  .center__desc {
    font-size: 18px;
    line-height: 1.4;
  }

  /* Steps — horizontal row */
  .center__steps {
    flex-direction: row;
    gap: 0;
  }

  .center__step {
    flex: 1;
    flex-direction: column;
    gap: 32px;
    padding-block: 16px;
    padding-inline: 24px;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid var(--color-accent);
  }

  .center__step:last-child {
    border-bottom: none;
  }

  .center__step-num {
    font-size: 52px;
    letter-spacing: -1.56px;
    min-width: auto;
  }

  .center__step-title {
    font-size: 24px;
  }

  .center__step-desc {
    font-size: var(--text-base);
  }
}

@media (min-width: 1200px) {
  .center__inner {
    padding-inline: var(--space-xl);
  }
}

/* ============================================================
   BLOCK9 — Equip (Оборудование)
   Mobile-first, BEM: .equip, .equip__item
   ============================================================ */

.equip {
  padding-block: 80px;
}

.equip__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-inline: var(--space-md);
  max-width: var(--container-desktop);
  margin-inline: auto;
}

/* ─── HEADER ──────────────────────────────────────────────────── */
.equip__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.equip__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.equip__heading {
  font-size: 40px;
  font-weight: var(--font-weight-light);
  letter-spacing: -1.2px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
}

.equip__desc {
  font-size: 18px;
  font-weight: var(--font-weight-light);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* ─── BODY: photo + accordion ─────────────────────────────────── */
.equip__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Photo — mobile: скрыто (фото показывается в раскрытом пункте); desktop: справа */
.equip__photo-wrap {
  width: 100%;
  margin-bottom: 0;
  flex-shrink: 0;
  display: none;
}

.equip__photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Мобайл: фото внутри раскрытого пункта аккордеона */
.equip__item-photo {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 16px;
}

/* ─── ACCORDION ───────────────────────────────────────────────── */
.equip__accordion {
  width: 100%;
}

.equip__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.equip__item--open {
  border-top: 4px solid var(--color-accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.equip__item:not(.equip__item--open) {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* Remove duplicate border between items */
.equip__item + .equip__item:not(.equip__item--open) {
  border-top: none;
}

.equip__item-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.equip__item-title {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 1.2;
}

.equip__item-title--accent {
  color: var(--color-accent);
}

/* +/− icon via CSS */
.equip__icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.equip__icon::before,
.equip__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-accent);
  border-radius: 1px;
}

/* Horizontal bar (always visible) */
.equip__icon::before {
  width: 20px;
  height: 2px;
  transform: translate(-50%, -50%);
}

/* Vertical bar (visible only when collapsed = button[aria-expanded=false]) */
.equip__icon::after {
  width: 2px;
  height: 20px;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.2s;
}

/* Hide vertical bar when expanded */
.equip__item-hd[aria-expanded="true"] .equip__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}


.equip__item-sub {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.equip__item-body {
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.equip__item-body[hidden],
.equip__item-sub[hidden] {
  display: none;
}

.equip__item-body p {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.equip__item-body ul {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.equip__item-body li {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* ─── DESKTOP ────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .equip {
    padding-block: 80px;
  }

  .equip__inner {
    padding-inline: var(--space-xl);
    gap: 64px;
  }

  /* Header: two columns */
  .equip__header {
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
    min-height: 200px;
  }

  .equip__header-left {
    flex: 1 1 0;
    padding-right: 100px;
  }

  .equip__header-right {
    flex: 1 1 0;
    padding-left: 100px;
    padding-bottom: 32px;
  }

  .equip__heading {
    font-size: 52px;
    letter-spacing: -1.56px;
  }

  /* Body: accordion left + photo right */
  .equip__body {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
  }

  /* Accordion: left, 50% width */
  .equip__accordion {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 100px;
    order: 1;
  }

  /* Photo: right, 50% width */
  .equip__photo-wrap {
    flex: 1 1 0;
    min-width: 0;
    order: 2;
    margin-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
  }

  /* Десктоп: фото в пунктах скрыто — используется большое фото справа */
  .equip__item-photo { display: none; }
}

@media (min-width: 1200px) {
  .equip__inner {
    padding-inline: var(--space-xl);
  }
}

/* ============================================================
   BLOCK10 — Test (Отзывы / Testimonials)
   Mobile-first, BEM: .test, .test-card
   ============================================================ */

.test {
  padding-block: 80px;
  overflow: hidden;
}

.test__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-inline: var(--space-md);
  max-width: var(--container-desktop);
  margin-inline: auto;
}

/* ─── HEADER ──────────────────────────────────────────────────── */
.test__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.test__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.test__heading {
  font-size: 36px;
  font-weight: var(--font-weight-light);
  letter-spacing: -1.08px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
}

/* Rating block */
.test__rating {
  display: flex;
  align-items: center;
  gap: 16px;
}

.test__rating-score {
  font-size: 52px;
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
  letter-spacing: -1.56px;
  line-height: 1;
}

.test__rating-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test__stars {
  font-family: 'Segoe UI Symbol', sans-serif;
  font-size: 24px;
  color: var(--color-accent);
  letter-spacing: -0.96px;
  line-height: 1;
}

.test__rating-count {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* ─── MARQUEE (desktop only) ──────────────────────────────────── */
.test__marquee {
  display: none;
}

@keyframes marquee-fwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marquee-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ─── MOBILE CARDS ────────────────────────────────────────────── */
.test__mobile-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── CARD ────────────────────────────────────────────────────── */
.test-card {
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 260px;
}

.test-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.test-card__name {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  line-height: 1.4;
}

.test-card__stars {
  font-family: 'Segoe UI Symbol', sans-serif;
  font-size: 20px;
  color: var(--color-accent);
  letter-spacing: -0.96px;
  line-height: 1;
}

.test-card__text {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  flex: 1;
}

.test-card__photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.test-card__photos img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
}

/* Скрытые карточки — после .test-card чтобы не перебивалось */
.test-card--more {
  display: none;
}

/* ─── ACTIONS ─────────────────────────────────────────────────── */
.test__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.test__btn-more {
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: none;
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.test__btn-more:hover {
  background: rgba(255, 255, 255, 0.18);
}

.test__btn-more[hidden] {
  display: none;
}

.test__btn-review {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.test__btn-review:hover {
  background: var(--color-accent);
}

/* ─── DESKTOP ────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .test {
    padding-block: 80px;
  }

  .test__inner {
    padding-inline: var(--space-xl);
    gap: 48px;
    /* Marquee выходит за пределы inner — переопределим overflow на section */
  }

  /* Header */
  .test__header {
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
  }

  .test__header-left {
    flex: 1 1 0;
  }

  .test__rating {
    flex: 1 1 0;
    padding-left: 100px;
    padding-bottom: 4px;
  }

  .test__heading {
    font-size: 52px;
    letter-spacing: -1.56px;
  }

  .test__rating-score {
    font-size: 72px;
    letter-spacing: -2.16px;
    line-height: 0.9;
  }

  .test__stars {
    font-size: 32px;
  }

  .test__rating-count {
    font-size: var(--text-base);
  }

  /* Show marquee, hide mobile stack */
  .test__marquee {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* вылезаем за padding inner */
    margin-inline: calc(-1 * var(--space-xl));
  }

  .test__mobile-cards {
    display: none;
  }

  .test__actions {
    display: none;
  }

  /* Each row */
  .test__row {
    overflow: hidden;
    width: 100%;
  }

  .test__track {
    display: flex;
    gap: 16px;
    width: max-content;
  }

  .test__row--fwd .test__track {
    animation: marquee-fwd 35s linear infinite;
  }

  .test__row--rev .test__track {
    animation: marquee-rev 35s linear infinite;
  }

  /* Pause on hover */
  .test__row:hover .test__track {
    animation-play-state: paused;
  }

  /* Card inside marquee: fixed width */
  .test__marquee .test-card {
    flex: 0 0 380px;
    width: 380px;
    min-height: 260px;
  }
}

@media (min-width: 1200px) {
  .test__inner {
    padding-inline: var(--space-xl);
  }

  .test__marquee {
    margin-inline: calc(-1 * var(--space-2xl));
  }
}

/* ============================================================
   BLOCK11 — Franch (Франшиза)
   Mobile-first, BEM: .franch
   ============================================================ */

.franch {
  overflow: hidden;
}

.franch__inner {
  display: flex;
  flex-direction: column;
}

/* ─── INFO COLUMN ─────────────────────────────────────────────── */
.franch__info {
  padding: 80px var(--space-md);
}

.franch__info-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.franch__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.franch__heading {
  font-size: 36px;
  font-weight: var(--font-weight-light);
  letter-spacing: -1.08px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
}

.franch__desc {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.franch__list {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.franch__list li {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Stats */
.franch__stats {
  display: flex;
  gap: 16px;
  padding-block: 16px;
}

.franch__stat {
  flex: 1;
  border-left: 1px solid var(--color-accent);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.franch__stat-val {
  font-size: 52px;
  font-weight: var(--font-weight-light);
  color: var(--color-accent);
  letter-spacing: -1.56px;
  line-height: 1;
  text-transform: uppercase;
}

.franch__stat-label {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ─── FORM COLUMN ─────────────────────────────────────────────── */
.franch__form-wrap {
  background: linear-gradient(180deg, rgba(89, 105, 146, 0.3) 0%, rgba(89, 105, 146, 0) 100%);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  padding: 32px var(--space-md);
}

.franch__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.franch__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.franch__field-label {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.3;
}
.franch__field-label span { color: #E2273C; }

.franch__input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  background: rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.franch__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.franch__input:focus {
  border-color: var(--color-accent);
}

/* Select wrapper */
.franch__select-wrap {
  position: relative;
}

.franch__select {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
}

.franch__chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Textarea */
.franch__textarea {
  height: 110px;
  min-height: 110px;
  padding: 18px;
  resize: vertical;
}

/* Consent */
.franch__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.franch__consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.franch__consent input[type="checkbox"]:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.franch__consent span {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.franch__consent-link {
  color: var(--color-accent);
  text-decoration: none;
}

.franch__consent-link:hover {
  text-decoration: underline;
}

/* Submit */
.franch__submit {
  width: 100%;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.franch__submit:hover {
  background: var(--color-accent);
}

/* ─── DESKTOP ────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .franch__inner {
    flex-direction: row;
    align-items: stretch;
    max-width: var(--container-desktop);
    margin-inline: auto;
  }

  .franch__info {
    flex: 1 1 0;
    padding: 80px 100px 80px 32px;
  }

  .franch__heading {
    font-size: 52px;
    letter-spacing: -1.56px;
  }

  .franch__form-wrap {
    flex: 1 1 0;
    padding: 32px;
    display: flex;
    align-items: center;
  }

  .franch__form {
    width: 100%;
  }

  .franch__row {
    flex-direction: row;
    gap: 16px;
  }

  .franch__row .franch__field {
    flex: 1;
  }
}

@media (min-width: 1200px) {
  .franch__info {
    padding-left: var(--space-2xl);
  }
}

/* ─── FRANCHISE PHOTO (правая колонка = фото вместо формы, fill) ─── */
.franch__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.franch__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 769px) {
  .franch__media {
    flex: 1 1 0;
    aspect-ratio: auto;
  }
}

/* ============================================================
   CONTACT — «Связаться с нами» (форма по центру; вынесена из франшизы)
   ============================================================ */
.contact {
  width: 100%;
  padding: 64px var(--space-md);
}
.contact__inner {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact__heading {
  font-size: 36px;
  font-weight: var(--font-weight-light);
  letter-spacing: -1.08px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.05;
  text-align: center;
}
.contact__form-wrap {
  background: linear-gradient(180deg, rgba(89, 105, 146, 0.3) 0%, rgba(89, 105, 146, 0) 100%);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  padding: 32px var(--space-md);
}
@media (min-width: 769px) {
  .contact {
    padding: 96px 32px;
  }
  .contact__heading {
    font-size: 52px;
    letter-spacing: -1.56px;
  }
  .contact__form-wrap {
    padding: 40px;
  }
}

/* ─── UI DROPDOWN (кастомный select: тёмная панель, accent, по Figma 1162-18731) ─── */
.ui-dropdown { position: relative; }
.ui-dropdown__btn {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--text-base);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.ui-dropdown__btn:hover { border-color: rgba(255, 255, 255, 0.35); }
.ui-dropdown__btn:focus-visible { outline: none; border-color: var(--color-accent); }
.ui-dropdown.is-open .ui-dropdown__btn { border-color: var(--color-accent); }
.ui-dropdown.is-invalid .ui-dropdown__btn { border-color: #E2273C; }

.ui-dropdown__value {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-dropdown__value.has-value { color: var(--color-white); }

.ui-dropdown__chevron {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ui-dropdown.is-open .ui-dropdown__chevron {
  margin-top: 2px;
  transform: rotate(-135deg);
  border-color: var(--color-accent);
}

.ui-dropdown__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #050f30;
  border: 1px solid rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}
.ui-dropdown__list[hidden] { display: none; }

.ui-dropdown__opt {
  padding: 13px 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-base);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.ui-dropdown__opt:hover,
.ui-dropdown__opt.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-accent);
}

.ui-dropdown__error {
  display: none;
  margin-top: 8px;
  color: #E2273C;
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.3px;
}
.ui-dropdown.is-invalid + .ui-dropdown__error { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    padding-bottom: env(safe-area-inset-bottom);
}

.footer__inner {
  max-width: var(--container-desktop);
  margin-inline: auto;
}

/* ─── Technical partner strip ─────────────────────────────── */
.footer__partner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px var(--space-md);
}
/* Divider under partner strip - full page width (content stays centered) */
.footer__partner::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.footer__partner-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-align: center;
}

.footer__partner-logo {
  height: 34px;
  width: auto;
}

/* ─── Main content ────────────────────────────────────────── */
.footer__main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px var(--space-md) 0;
}

/* Logo */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  margin-bottom: 32px;
}

.footer__logo img {
  display: block;
  flex-shrink: 0;
}
.footer__logo img:first-child {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.footer__logo img:last-child {
  width: 160px;
  height: 18px;
  object-fit: contain;
}

/* Mobile nav: vertical list */
.footer__nav-list {
  display: flex;
  flex-direction: column;
}

.footer__nav-link {
  display: block;
  padding: 16px 0;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__nav-link:hover {
  color: var(--color-accent);
}

/* CTA */
.footer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 16px;
  padding: 14px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
  width: 100%;
}
.footer__cta:hover {
  background: var(--color-accent);
}

/* ─── Bottom row ──────────────────────────────────────────── */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px var(--space-md);
}

/* Company info */
.footer__company {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer__requisites {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.footer__contact-link {
  color: inherit;
  text-decoration: none;
}
.footer__contact-link:hover {
  color: var(--color-accent);
}

/* Right side: socials + legal */
.footer__right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__socials {
  display: flex;
  gap: 8px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 1;
  transition: opacity 0.2s;
}
.footer__social:hover {
  opacity: 0.8;
}

.footer__social img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer__legal-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-decoration: underline;
  transition: opacity 0.2s;
}
.footer__legal-link:hover {
  opacity: 0.7;
}

/* ─── Desktop ─────────────────────────────────────────────── */
@media (min-width: 769px) {
  .footer__partner {
    padding: 32px var(--space-xl);
  }

  .footer__main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px var(--space-xl);
    gap: 16px;
  }

  .footer__logo {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .footer__nav {
    flex: 1;
  }

  .footer__nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  .footer__nav-link {
    padding: 14px 8px;
  }

  .footer__cta {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 32px var(--space-xl);
  }

  .footer__right {
    align-items: flex-end;
    flex-shrink: 0;
  }

  .footer__socials {
    justify-content: flex-end;
  }

  .footer__social {
    flex: none;
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 1200px) {
  .footer__partner,
  .footer__main,
  .footer__bottom {
    padding-inline: var(--space-xl);
  }
}


/* ============================================================
   GAME MODAL
   ============================================================ */

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.game-modal[hidden] { display: none !important; }
.game-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.game-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 1, 44, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.game-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  background: rgba(89, 105, 146, 0.22);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.game-modal--open .game-modal__panel {
  transform: translateX(0);
}

/* Close button */
.game-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: none;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
}

/* Scrollable content */
.game-modal__scroller {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 32px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Title */
.game-modal__title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
  margin: 0;
}

/* Gallery */
.game-modal__gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Full-bleed: cancel the scroller's top + side padding so the image sits
     flush against the top and both edges of the panel. */
  margin: -32px -16px 0;
}
.game-modal__gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.game-modal__gallery::-webkit-scrollbar { display: none; }

/* Each slide fills the panel width and snaps into place. */
.game-modal__gallery-item {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  overflow: hidden;
}
.game-modal__gallery-item img {
  width: 100%;
  display: block;
}

/* SINGLE: only the cover exists -> show it as a full-width poster in its
   natural 2:3 ratio (cover art is 600x900). No crop, no progress bar. */
.game-modal__gallery-wrap--single .game-modal__gallery {
  overflow: visible;
}
.game-modal__gallery-wrap--single .game-modal__gallery-item {
  aspect-ratio: 1 / 1;
}
.game-modal__gallery-wrap--single .game-modal__gallery-item img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.game-modal__gallery-wrap--single .game-modal__progress-track {
  display: none;
}

/* CAROUSEL: cover + screenshots -> uniform landscape frames so the portrait
   cover and landscape screenshots sit consistently while swiping. */
.game-modal__gallery-wrap--carousel .game-modal__gallery-item {
  aspect-ratio: 16 / 9;
}
.game-modal__gallery-wrap--carousel .game-modal__gallery-item img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.game-modal__gallery-wrap--carousel .game-modal__gallery-item--cover img {
  object-position: center top;
}

.game-modal__progress-track {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.game-modal__progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  /* width and left controlled by JS */
}

/* Meta */
.game-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.game-modal__meta-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.game-modal__meta-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  line-height: 16px;
  white-space: nowrap;
}
.game-modal__meta-value {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Tags */
.game-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.game-modal__tags:empty { display: none; }
.game-modal__tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-white);
  white-space: nowrap;
}

/* Placeholder shown when content (tags / description) isn't filled in yet. */
.game-modal__placeholder,
.game-modal__desc--placeholder {
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
}
.game-modal__placeholder {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
}

/* CTA */
.game-modal__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.game-modal__cta:hover { background: var(--color-accent); }

/* Description */
.game-modal__desc-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.game-modal__desc {
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-modal__desc--expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.game-modal__show-more {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-primary);
  text-align: left;
  padding: 0;
  transition: color 0.2s;
}
.game-modal__show-more:hover { color: var(--color-accent); }

/* Footer navigation */
.game-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.game-modal__nav-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  min-width: 0;
}
.game-modal__nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.game-modal__nav-btn--next {
  flex-direction: row;
}
.game-modal__nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  flex-shrink: 0;
}
.game-modal__nav-title {
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

/* ── Desktop ─────────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .game-modal__panel {
    max-width: 560px;
  }
  .game-modal__scroller {
    padding: 32px 32px 16px;
  }
  .game-modal__gallery-wrap {
    /* match the wider desktop side padding for the full-bleed image */
    margin: -32px -32px 0;
  }
  .game-modal__title {
    font-size: 36px;
    letter-spacing: -1.08px;
  }
  .game-modal__nav-title {
    max-width: 130px;
  }
}

/* ── Game cards — clickable ──────────────────────────────────────── */
.game-card {
  cursor: pointer;
}
.game-card:hover .game-card__img-wrap img {
  transform: scale(1.04);
  transition: transform 0.3s ease;
}
.game-card__img-wrap img {
  transition: transform 0.3s ease;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ORDER MODALS — Certificate & Subscription purchase popups
   ═══════════════════════════════════════════════════════════════════════════ */

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.order-modal[hidden] { display: none !important; }

.order-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.order-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(89, 105, 146, 0.22);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-modal--open .order-modal__panel {
  transform: translateX(0);
}

.order-modal__scroller {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.order-modal__scroller::-webkit-scrollbar { width: 4px; }
.order-modal__scroller::-webkit-scrollbar-track { background: transparent; }
.order-modal__scroller::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.order-modal__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
}

@media (max-width: 600px) {
  .order-modal__panel { max-width: 100%; }
  .order-modal__body { padding: 32px 16px 16px; }
}

.order-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.order-modal__close:hover { background: rgba(255,255,255,0.16); }

.order-modal__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-modal__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

@media (max-width: 600px) {
  .order-modal__title { font-size: 30px; }
}

.order-modal__subtitle {
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.order-modal__summary {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 600px) {
  .order-modal__summary { flex-direction: column; }
  .order-modal__cert-preview { width: 100%; }
}

.order-modal__cert-preview {
  width: 165px;
  flex-shrink: 0;
  box-shadow: 0px 11px 50.8px 0px rgba(0,0,0,0.35);
}

.order-modal__cert-img { width: 100%; height: auto; display: block; }

.order-modal__cert-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.order-modal__cert-name {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.order-modal__cert-meta { display: flex; flex-direction: column; gap: 4px; }

.order-modal__cert-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.order-modal__cert-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.order-modal__cert-value { font-size: 14px; color: rgba(255,255,255,0.8); }

.order-modal__form { display: flex; flex-direction: column; gap: 24px; }

.order-modal__field { display: flex; flex-direction: column; gap: 8px; }

.order-modal__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #00a6eb;
}

.order-modal__field-hint {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 0;
  margin-top: -4px;
}

.order-modal__input {
  width: 100%;
  height: 48px;
  padding: 14px;
  background: rgba(0,0,0,0.22);
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.order-modal__input::placeholder { color: rgba(255,255,255,0.5); }
.order-modal__input:focus { border-color: rgba(255,255,255,0.5); }
.order-modal__input.is-invalid { border-color: #f87171; }

.order-modal__footer { display: flex; flex-direction: column; gap: 24px; }

.order-modal__total {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}
.order-modal__total-label { color: #fff; }
.order-modal__total-price { color: #00a6eb; }

.order-modal__submit {
  width: 100%;
  height: 50px;
  background: #008fca;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.order-modal__submit:hover { background: #007aad; }
.order-modal__submit:disabled { background: #555; cursor: not-allowed; }

.order-modal__legal {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  margin: 0;
}
.order-modal__legal a { color: #00b7f1; text-decoration: none; }
.order-modal__legal a:hover { text-decoration: underline; }

.order-modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 32px 0;
}
.order-modal__success[hidden],
.order-modal__form[hidden] { display: none !important; }
.order-modal__success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #008fca;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
}
.order-modal__success-title {
  font-size: 24px; font-weight: 600; color: #fff;
  text-transform: uppercase; margin: 0;
}
.order-modal__success-text {
  font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.4; margin: 0;
}

/* Terms popup */
.terms-list { display: flex; flex-direction: column; gap: 24px; }
.terms-item { display: flex; gap: 12px; align-items: flex-start; }
.terms-item__num {
  font-size: 24px; font-weight: 300; line-height: 1;
  color: #00a6eb; text-transform: uppercase; flex-shrink: 0; width: 32px;
}
.terms-item__content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.terms-item__title {
  font-size: 16px; font-weight: 600; text-transform: uppercase;
  color: #fff; line-height: 1.2; margin: 0;
}
.terms-item__text { font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.4; margin: 0; }
.terms-item__text a { color: #008fca; text-decoration: underline; }

.terms-apply { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.terms-apply__title {
  font-size: 24px; font-weight: 300; line-height: 1;
  text-transform: uppercase; color: #fff; margin: 0;
}
.terms-apply__text { font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.4; margin: 0; }

/* sert__buy-btn as <button> */
button.sert__buy-btn {
  display: block; width: 100%; text-align: center;
  cursor: pointer; border: none; font-family: inherit;
}

/* ── HEADER AUTH BLOCK ───────────────────────────────────────────────────── */
.header__account{display:none;align-items:center;gap:8px;text-decoration:none;color:inherit;height:40px;padding:0 16px;border:none;margin-right:8px;transition:background .15s;box-sizing:border-box;text-transform:uppercase;letter-spacing:.04em;font-weight:700;font-size:13px}
.header__account:hover{background:rgba(255,255,255,.05)}
.header__account-avatar{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--color-accent,#00A6EB);color:#fff;font-weight:700;font-size:13px}
.header__account-name{font-size:14px;font-weight:500;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header__account--guest{height:40px;padding:0 16px;border-radius:0;font-size:var(--text-xs);font-weight:700;letter-spacing:.04em;text-transform:uppercase}
@media(min-width:1280px){.header__account{display:inline-flex}}
@media(max-width:768px){.header__account-name{display:none}}

/* ============================================================
   БРЕНД-КАНОН SMP / SimClubs — STYLE.md + TYPOGRAPHY.md
   Применяется ко ВСЕМ кнопкам и элементам. Грузится на всех страницах
   (главная, бронирование, кабинет, авторизация — все наследуют layouts.app).
   ============================================================ */

/* STYLE.md §3 — никаких скруглений: кнопки, карточки, инпуты, фото, бейджи, аватары */
*, *::before, *::after { border-radius: 0 !important; }

/* STYLE.md §1 / TYPOGRAPHY.md — заголовки КАПСОМ (через CSS, не в тексте контента) */
h1, h2, h3 { text-transform: uppercase; }

/* STYLE.md §2 — текст ВСЕХ кнопок капсом, единый трекинг 0.04em, плавный box-shadow */
button,
.btn,
[class*="__btn"],
[class*="-btn"],
[class*="__cta"],
[class*="__submit"],
.games__btn,
.sert__buy-btn,
.sert__terms-btn,
.test__btn-more,
.test__btn-review {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* STYLE.md §2 — неоновое свечение при ховере ТОЛЬКО у primary (сплошная заливка #008fca/#00a6eb) */
.btn--primary:hover,
.abonement-card__btn--primary:hover,
.center__btn--primary:hover,
.franch__submit:hover,
.order-modal__submit:hover,
.sert__buy-btn:hover,
.test__btn-review:hover,
.games__btn:hover,
.club-modal__book-btn:hover,
.game-modal__cta:hover {
  box-shadow: 0 0 16px rgba(0, 166, 235, 0.45), 0 0 28px rgba(0, 166, 235, 0.18);
}

/* По требованию заказчика — свечение также у SECONDARY-кнопок (прозрачные с
   акцентным бордером, ховер заливает акцентом). Ghost-кнопки НЕ трогаем.
   Намеренное расхождение со STYLE.md §2. */
.btn--secondary:hover,
.abonement-card__btn--secondary:hover,
.club-card__btn--book:hover,
.btn-secondary:hover {
  /* Заливка и бордер — тем же accent #00a6eb, что и у primary:hover (свечение ниже того же
     цвета). Перекрывает базовые правила (background:var(--color-primary)) ниже по источнику. */
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 16px rgba(0, 166, 235, 0.45), 0 0 28px rgba(0, 166, 235, 0.18);
}

/* Состояния DISABLED + FOCUS (паритет с дизайн-системой Vercel button.tsx) */
.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}
/* Видимое фокус-кольцо у всех интерактивных кнопок — доступность (клавиатура) */
.btn:focus-visible,
.clubs__tab:focus-visible,
[class*="__btn"]:focus-visible,
[class*="__cta"]:focus-visible,
[class*="__submit"]:focus-visible,
.header__account:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-bg-dark), 0 0 0 4px var(--color-accent);
}

/* СОСТОЯНИЕ PRESSED (active) — отклик нажатия ЦВЕТОМ («вдавленный» тёмный тон),
   без масштабирования. Покой → ховер (ярче) → нажатие (темнее). Плавность — transition. */
.btn,
.clubs__tab,
[class*="__btn"],
[class*="__cta"],
[class*="__submit"],
.header__account {
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.25s ease;
}
/* Primary / заливные акцентные — на нажатии темнее (#0079ac), свечение сохраняем */
.btn--primary:active,
.abonement-card__btn--primary:active,
.center__btn--primary:active,
.franch__submit:active,
.order-modal__submit:active,
.sert__buy-btn:active,
.test__btn-review:active,
.games__btn:active,
.club-modal__book-btn:active,
.game-modal__cta:active {
  background: #0079ac;
  box-shadow: 0 0 16px rgba(0, 166, 235, 0.45), 0 0 28px rgba(0, 166, 235, 0.18);
}
/* Secondary — на нажатии заливка тем же тёмным тоном (и бордер) */
.btn--secondary:active,
.abonement-card__btn--secondary:active,
.club-card__btn--book:active,
.btn-secondary:active {
  background: #0079ac;
  border-color: #0079ac;
  box-shadow: 0 0 16px rgba(0, 166, 235, 0.45), 0 0 28px rgba(0, 166, 235, 0.18);
}
/* Ghost — глубже стекла: white 24% (press-шаг из UI-kit) */
.btn--ghost:active {
  background: rgba(255, 255, 255, 0.24);
}
/* Табы городов — нажатие глубже ховера (white 16%), текст accent */
.clubs__tab:active {
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-accent);
}

/* ============================================================
   ОСНОВНОЙ (BODY) ТЕКСТ — Light 300 (фирстиль).
   База + вся прозовая копия (описания/абзацы/списки). Заголовки (600/700),
   лейблы (500), цены/счётчики/мета/имена/контролы остаются на своих весах.
   ============================================================ */
body {
  font-weight: var(--font-weight-light);
}
.features__item-desc,
.club-card__address,
.club-modal__address,
.club-modal__directions-text,
.sert__desc,
.sert__feat-desc,
.center__step-desc,
.equip__item-body p,
.equip__item-body li,
.test-card__text,
.franch__desc,
.franch__list li,
.game-modal__desc {
  font-weight: var(--font-weight-light);
}

/* ============================================================
   СОСТОЯНИЯ КАРТОЧЕК/ПОВЕРХНОСТЕЙ как на Vercel (glass-surface.ts)
   Покой 0.22 → hover 0.32 → нажатие (active) 0.44; transition 200ms.
   Картинки внутри — зум 1.05 на hover (club/game уже есть; добавляем promo).
   ============================================================ */
.club-card,
.abonement-card article,
.promo-card article,
.test-card,
.equip-card {
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, transform 0.2s ease-out;
}
.club-card:hover,
.abonement-card article:hover,
.promo-card article:hover,
.test-card:hover,
.equip-card:hover {
  background: rgba(89, 105, 146, 0.32);
}
.club-card:active,
.abonement-card article:active,
.promo-card article:active,
.test-card:active,
.equip-card:active {
  background: rgba(89, 105, 146, 0.44);
}

/* Зум картинки promo на hover (паритет с club/game) */
.promo-card__media {
  overflow: hidden;
}
.promo-card__img {
  transition: transform 0.5s ease-out;
}
.promo-card:hover .promo-card__img {
  transform: scale(1.05);
}

/* ============================================================
   ALIGN TO VERCEL REFERENCE (appended override)
   - Section vertical rhythm: 64 / 96 / 120  (Vercel py-16 / md:py-24 / xl:py-30)
   - Section H2: fluid clamp 40 -> 48px       (Vercel typeSectionTitle 2.5-3rem)
   Wins by source order (single-class specificity); horizontal padding untouched.
   ============================================================ */
:root { --section-py: 64px; }

.features,
.clubs,
.abonement,
.promo,
.games,
.sert,
.center,
.equip,
.test,
.franch__info {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.clubs__heading,
.abonement__heading,
.promo__heading,
.games__heading,
.sert__heading,
.center__heading,
.equip__heading,
.test__heading,
.franch__heading {
  font-size: clamp(2.5rem, 5vw, 3rem);
}

@media (min-width: 768px) {
  :root { --section-py: 96px; }
}

@media (min-width: 1280px) {
  :root { --section-py: 120px; }
}

/* ============================================================
   WIDTH ALIGNMENT (appended override)
   - features & promo were edge-to-edge (inner padding 0; padding on root).
     Bring them onto the standard section pattern used by clubs/sert/games/etc:
     max-width 1376 + margin auto + padding-inline 16 -> 32 (769) -> 64 (1200).
   - games: carousel goes full-bleed (100vw) like Vercel; header stays contained.
   ============================================================ */
.features,
.promo {
  padding-left: 0;
  padding-right: 0;
}

.features__inner,
.promo__inner {
  max-width: var(--container-desktop);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 769px) {
  .features__inner,
  .promo__inner { padding-inline: var(--space-xl); }
}

@media (min-width: 1200px) {
  .features__inner,
  .promo__inner { padding-inline: var(--space-xl); }
}

/* games: full-bleed carousel (Vercel bleedFullWidth) */
.games__carousel {
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  transform: translateX(-50%);
}

/* reviews marquee: full-bleed (was constrained to container) — desktop only */
@media (min-width: 769px) {
  .test__marquee {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
  }
}

/* === Vercel typography parity override (append wins by source order) === */
/* Section H2 + hero headings -> bold 700 (Vercel typeSectionTitle / typeHeroHeadline).
   Docker rendered these at font-weight 300 (light); Vercel is bold. Colors already match. */
.hero__heading,
.clubs__heading,
.club-modal__name,
.abonement__heading,
.promo__heading,
.games__heading,
.sert__heading,
.center__heading,
.equip__heading,
.test__heading,
.franch__heading {
  font-weight: 700;
}

/* Tariff price value -> bold 700 (Vercel typePrice) */
.abonement-card__price-value {
  font-weight: 700;
}

/* Desktop H2 size 52px -> 48px to match Vercel display token max (3rem); -4% tracking */
@media (min-width: 769px) {
  .clubs__heading,
  .abonement__heading,
  .promo__heading,
  .games__heading,
  .sert__heading,
  .center__heading,
  .equip__heading,
  .test__heading,
  .franch__heading {
    font-size: 48px;
    letter-spacing: -0.04em;
  }
}

/* ============================================================
   ПАГИНАТОР — единый стиль (ui-kit). ЕДИНСТВЕННЫЙ допустимый вид пагинации:
   полоски — неактивная короткая серая, активная широкая акцентная.
   Анимированный вариант (.is-animated) — для hero/слайдеров («в шапке»).
   Применять класс .pager / .pager__dot[ --active][ is-animated] для новых.
   Существующие пагинаторы каруселей приведены к этому виду ниже.
   ============================================================ */
.pager,
.sert__dots,
.abonement__dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.pager__dot,
.sert__dot,
.abonement__dot {
  display: block;
  width: 24px;
  height: 4px;
  padding: 0;
  border: none;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: width 0.5s ease-out, background-color 0.5s ease-out;
}
.pager__dot:hover,
.sert__dot:hover,
.abonement__dot:hover {
  background: rgba(255, 255, 255, 0.5);
}
.pager__dot--active,
.sert__dot--active,
.abonement__dot--active {
  width: 40px;
  background: var(--color-accent);
}

/* Анимированная активная полоска (hero/слайдер «в шапке») — заполнение слева направо.
   Длительность задаётся через --pager-duration (по умолчанию 6s). */
.pager__dot--active.is-animated {
  width: 56px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.pager__dot--active.is-animated::after {
  content: '';
  position: absolute;
  inset: 0;
  transform-origin: left;
  background: var(--color-accent);
  animation: pagerProgress var(--pager-duration, 6s) linear forwards;
}
@keyframes pagerProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Отзывы: primary-кнопка «Оставить отзыв» видна и на десктопе ── */
@media (min-width: 769px) {
  .test__actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 32px;
  }
  .test__btn-more { display: none; }            /* «Показать ещё» — только мобайл */
  .test__btn-review { width: auto; min-width: 280px; }
}
.test__btn-review:hover {
  box-shadow: 0 0 16px rgba(0, 166, 235, 0.45), 0 0 28px rgba(0, 166, 235, 0.18);
}

/* ============================================================
   UNIFIED SECTION-HEADER RHYTHM (sync Vercel, принцип «внутреннее-внешнее»)
   Лейбл секции: 14px / 500 / 0.04em / accent
   Внутренний ритм: лейбл ↔ заголовок = 24px (Vercel gap-6);
                    заголовок ↔ подзаголовок = 32px (Vercel gap-8)
   ============================================================ */
.clubs__label,
.promo__label,
.abonement__label,
.center__label,
.games__label,
.equip__label,
.franch__label,
.test__label,
.sert__eyebrow {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin: 0 0 24px;          /* лейбл ↔ заголовок = 24 (единый, внутренний) */
}

/* Секции, где лейбл↔заголовок задавался flex-gap обёртки — обнуляем,
   чтобы единственным источником был margin лейбла (без задвоения) */
.games__header-left,
.abonement__header-left {
  gap: 0;
}

/* Заголовок ↔ подзаголовок = 32 (там, где под H2 идёт описание) */
.games__heading,
.sert__heading,
.center__heading,
.franch__heading {
  margin-bottom: 32px;
}

/* Внешний отступ «шапка секции → контент» = 48 на десктопе (Vercel gap-10/12).
   clubs/center/test/sert уже 48; здесь добираем promo, abonement, games, equip. */
@media (min-width: 769px) {
  .promo__header,
  .abonement__header {
    margin-bottom: 48px;
  }
  .games__inner,
  .equip__inner {
    gap: 48px;
  }
}

/* Франшиза — особый случай: лейбл/заголовок/текст/список/статы стоят в одной
   flex-колонке `.franch__info-content` с gap. Ритм здесь задаёт ТОЛЬКО gap, иначе
   общий margin лейбла/заголовка задваивается (было 32+24=56, 32+32=64 — «огромные»). */
.franch__info-content {
  gap: 24px;
}
.franch__label,
.franch__heading {
  margin-bottom: 0;
}

/* Карточка формы франшизы не должна тянуться на высоту левой колонки и центрировать
   форму (давало пустоту сверху/снизу) — высота по контенту, верхнее выравнивание. */
@media (min-width: 769px) {
  .franch__form-wrap {
    align-self: flex-start;
  }
  /* поднять левый блок (лейбл «Франшиза») к верхней кромке карточки формы */
  .franch__info {
    padding-top: 0;
  }
}

/* ============================================================
   ФОРМ-КОНТРОЛЫ (ui-kit) — единый компонент со всеми состояниями.
   База: прозрачный фон, бордер 2px белый/20%, текст белый, без скруглений.
   Состояния: hover / focus(accent #00a6eb) / filled / error(#E2273C) / disabled.
   Reusable: .ui-input .ui-textarea .ui-select .ui-check .ui-radio .ui-toggle
   Существующие поля (.franch__input, .order-modal__input, .franch__textarea,
   .franch__select, consent-чекбоксы) подключены к этим состояниям.
   ============================================================ */

/* ── Текстовые поля / select / textarea ── */
.ui-input,
.ui-textarea,
.ui-select {
  width: 100%;
  height: var(--control-h);
  padding: 0 18px;
  background: rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--text-base);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ui-textarea { height: 110px; min-height: 110px; padding: 18px; resize: vertical; }
.ui-select { cursor: pointer; }

.ui-input::placeholder, .ui-textarea::placeholder,
.franch__input::placeholder, .order-modal__input::placeholder { color: rgba(255, 255, 255, 0.5); }

.ui-input:hover, .ui-textarea:hover, .ui-select:hover,
.franch__input:hover, .order-modal__input:hover, .franch__textarea:hover, .franch__select:hover {
  border-color: rgba(255, 255, 255, 0.35);
}
.ui-input:focus, .ui-textarea:focus, .ui-select:focus,
.franch__input:focus, .order-modal__input:focus, .franch__textarea:focus, .franch__select:focus {
  border-color: var(--color-accent);
}
.ui-input:disabled, .ui-textarea:disabled, .ui-select:disabled,
.franch__input:disabled, .order-modal__input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Ошибка валидации — красный бордер (бренд-красный) */
.ui-input.is-invalid, .ui-textarea.is-invalid, .ui-select.is-invalid,
.ui-input[aria-invalid="true"],
.franch__input.is-invalid, .order-modal__input.is-invalid, .franch__input[aria-invalid="true"] {
  border-color: #E2273C;
}

/* ── Чекбокс ── */
.ui-check,
.franch__consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ui-check:hover,
.franch__consent input[type="checkbox"]:hover { border-color: rgba(255, 255, 255, 0.45); }
.ui-check:checked,
.franch__consent input[type="checkbox"]:checked { background: var(--color-accent); border-color: var(--color-accent); }
.ui-check:checked::after,
.franch__consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ui-check:focus-visible,
.franch__consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.ui-check:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Радиокнопка (квадрат — фирстиль без скруглений; выбор = внутренний акцентный квадрат) ── */
.ui-radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease;
}
.ui-radio:hover { border-color: rgba(255, 255, 255, 0.45); }
.ui-radio:checked { border-color: var(--color-accent); }
.ui-radio:checked::after { content: ''; position: absolute; inset: 4px; background: var(--color-accent); }
.ui-radio:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.ui-radio:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Тоггл / переключатель (трек + квадратный ползунок, без скруглений) ── */
.ui-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}
.ui-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  transition: transform 0.2s ease;
}
.ui-toggle:hover { background: rgba(255, 255, 255, 0.25); }
.ui-toggle:checked { background: var(--color-accent); }
.ui-toggle:checked::after { transform: translateX(20px); }
.ui-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.ui-toggle:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Текстовая ссылка-кнопка (ui-kit): стиль текста кнопки (caps/700/0.04em),
   акцентный цвет, БЕЗ подчёркивания. Inline-ссылка/кнопка переключения. ── */
.ui-link {
  display: inline; background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-family); font-weight: 700; font-size: inherit;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-accent); text-decoration: none; transition: color 0.15s ease;
}
.ui-link:hover { color: var(--color-white); }
.ui-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ============================================================
   Карточка клуба в БРОНИРОВАНИИ (variant=booking): вся карточка кликабельна,
   состояние выбора, табы видны на всех ширинах (на брони нет мобильного дропдауна).
   ============================================================ */
.club-card--select { cursor: pointer; }
.club-card--selected { position: relative; border-color: var(--color-accent); }
.club-card--selected::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: 2;
}
.club-card--selected .club-card__name { color: var(--color-accent); }
/* на странице бронирования табы города показываем на всех ширинах + отступ до карточек */
.step-content .clubs__tabs-wrap { display: block; margin-bottom: 32px; }

/* ============================================================
   AUTH MODAL — центрированный попап входа/регистрации (вход+рег в одном окне)
   ============================================================ */
.auth-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-modal[hidden] { display: none; }
.auth-modal__backdrop { position: absolute; inset: 0; background: rgba(1, 9, 49, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.25s ease; }
.auth-modal.is-open .auth-modal__backdrop { opacity: 1; }
.auth-modal__card {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: rgba(89, 105, 146, 0.22); -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px);
  padding: 56px 32px 32px;
  transform: translateY(12px) scale(0.98); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease;
}
.auth-modal.is-open .auth-modal__card { transform: none; opacity: 1; }
.auth-modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.6); transition: color 0.15s ease; }
.auth-modal__close:hover { color: #fff; }
.auth-modal__tabs { display: flex; border: 1px solid rgba(255, 255, 255, 0.10); margin-bottom: 24px; }
.auth-modal__tab { flex: 1; padding: 12px; font: 700 12px/1 var(--font-family); text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.5); background: transparent; transition: background 0.15s ease, color 0.15s ease; }
.auth-modal__tab:hover:not(.is-active) { color: var(--color-accent); }
.auth-modal__tab.is-active { background: var(--color-accent); color: #fff; }
.auth-modal__title { font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.auth-modal__sub { font-size: 14px; font-weight: 300; color: rgba(255, 255, 255, 0.6); line-height: 1.4; margin-bottom: 24px; }
.auth-modal__field { margin-bottom: 16px; }
.auth-modal__label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.4); margin-bottom: 8px; }
/* Инпуты/чекбоксы попапа = единый ui-kit (.ui-input/.ui-check). В попапе заливка
   поля ТЕМНЕЕ карточки (recessed-вид) — скоупленный оверрайд поверх прозрачного .ui-input. */
.auth-modal__card .ui-input { background: rgba(0, 0, 0, 0.22); }
.auth-modal__check { display: flex; gap: 10px; align-items: center; margin: 10px 0; cursor: pointer; font-size: 12px; color: rgba(255, 255, 255, 0.6); line-height: 1.4; }
.auth-modal__check a { color: var(--color-accent); text-decoration: underline; }
.auth-modal__submit { width: 100%; height: 48px; margin-top: 8px; }
.auth-modal__foot { margin-top: 18px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 520px) { .auth-modal__card { padding: 24px; } }

/* Якорь к форме «Связаться с нами»: фикс-шапка перекрывает заголовок при переходе
   по #contact — смещаем точку приземления скролла ниже шапки. */
#contact { scroll-margin-top: 96px; }

/* ── Единая высота контролов (DS): кнопки-действия = инпуты = var(--control-h, 48px).
   Перекрывает старые height:44px этих кнопок. Исключения со своей высотой:
   шапка (.header__cta 40), hero (.hero__btn / .hero__actions .btn 48/56). */
.club-card__btn,
.club-modal__book-btn,
.abonement-card__btn,
.games__btn,
.sert__buy-btn,
.center__btn,
.test__btn-more,
.test__btn-review,
.franch__submit,
.footer__cta,
.game-modal__cta {
  height: var(--control-h);
}
