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

:root {
  /* Colors */
  --color-primary: #008fca;
  --color-accent: #00a6eb;
  --color-white: #ffffff;
  --color-bg-dark: #00012c;
  --color-bg-overlay: rgba(0, 1, 44, 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: 72px;

  /* 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: 1440px;
  --container-mobile: 390px;

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

/* ============================================================
   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);
  background-image: url('../images/figma/bg-page.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  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;
}

.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;
  padding: 14px 32px;
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-xs);
  letter-spacing: 0.6px;
  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;
  white-space: nowrap;
}

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

.btn--ghost {
  background: var(--color-glass);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  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.85);
  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: var(--space-md);
}

.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;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.header__burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ─── 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: 390px;
  height: 100%;
  background: var(--color-bg-dark);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu--open .mobile-menu__panel {
  transform: translateX(0);
}

.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 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-mobile);
  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 {
  font-size: var(--text-sm);
  padding: 16px 32px;
  letter-spacing: 0.7px;
}

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

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

  .header__nav {
    display: flex;
    flex: 1;
    justify-content: center;
    overflow: hidden;
  }

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

  .header__nav-link {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 14px 8px;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: color 0.2s;
    white-space: nowrap;
  }
  .header__nav-link:hover {
    color: var(--color-accent);
  }

  .header__cta {
    display: inline-flex;
    flex-shrink: 0;
  }

  .header__burger {
    display: none;
  }

  .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: 64px;
  }

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

  .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-end;
  }

  .hero__actions .btn {
    width: auto;
  }
}

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

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

/* ============================================================
   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;
}

.clubs__city-option--active {
  color: var(--color-accent);
}

/* Desktop: hide mobile selector, show tabs */
.clubs__tabs-wrap {
  display: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  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;
  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;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  margin-bottom: -2px;
}

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

/* ─── CARDS GRID ─────────────────────────────────────────────────────────────── */
.clubs__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.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: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 16px;
  }

  .club-card {
    flex: 0 0 441px;
    width: 441px;
  }
}

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

  .club-card {
    flex: 0 0 426px;
    width: 426px;
  }
}

/* ============================================================
   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: #020d3a;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.club-modal__panel-bg {
  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;
  padding: 32px 32px 0;
}

.club-modal__name {
  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;
  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%;
  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(4, 1fr);
    gap: 16px;
    min-width: unset;
  }

  .abonement-card {
    flex: none;
  }

  .abonement__nav {
    display: none;
  }
}

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

/* ============================================================
   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: flex-start;
  margin-top: var(--space-sm);
}

@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-2xl);
  }
}

/* ============================================================
   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;
}

.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__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-2xl);
  }
}

/* ============================================================
   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 16px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: none;
  cursor: pointer;
  font-family: var(--font-family);
}

.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);
}

/* Dropdown panel */
.sert__dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #020d3a;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top: none;
}
.sert__dropdown[hidden] { display: none; }

.sert__dropdown-header {
  display: flex;
  justify-content: flex-end;
  padding: 8px 8px 0;
}

.sert__dropdown-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  cursor: pointer;
}

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

.sert__price-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  cursor: pointer;
  transition: 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 span,
.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-accent);
  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;
}
.sert__buy-btn:hover { background: var(--color-primary); }

.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;
    grid-template-rows: auto auto;
    column-gap: 0;
    row-gap: 40px;
    padding-inline: var(--space-xl);
    /* DOM order: info, left, feats
       Grid placement: left spans rows 1-2 (col1), info=col2 row1, feats=col2 row2 */
  }

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

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

  .sert__feats {
    grid-column: 2;
    grid-row: 2;
    padding-left: 80px;
    align-self: end;
    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-2xl);
  }
  .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__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-2xl);
  }
}

/* ============================================================
   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: first (natural DOM order) */
.equip__photo-wrap {
  width: 100%;
  margin-bottom: 0;
  flex-shrink: 0;
}

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

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

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

/* ============================================================
   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-2xl);
  }

  .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__input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  background: transparent;
  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: 48px;
  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);
  }
}

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

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

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

/* ─── Technical partner strip ─────────────────────────────── */
.footer__partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid 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-sm);
  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-2xl);
  }
}


/* ============================================================
   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: #020d3a;
  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: 300;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1;
  padding-right: 48px;
  margin: 0;
}

/* Gallery */
.game-modal__gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.game-modal__gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.game-modal__gallery::-webkit-scrollbar { display: none; }

.game-modal__gallery-item {
  flex-shrink: 0;
  height: 210px;
  overflow: hidden;
}
.game-modal__gallery-item--cover {
  width: 160px;
}
.game-modal__gallery-item--screenshot {
  width: 100%;
  min-width: 240px;
  max-width: 315px;
}
.game-modal__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.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;
}

/* 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__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;
}
