/* ============================================================
   ЦК - Центр Киберспорта · MATCHDAY ARENA
   Design system + all section styles. Theme: single dark.
   Accent lock: blue #1E6BFF (base) + red #FF2E43 (live/CTA), ~80/20.
   Radius lock: 4px / 14px (+ 999px pill for CTA buttons only).
   ============================================================ */

:root {
  /* surfaces (off-black base, never #000) */
  --bg: #0B0E14;
  --s1: #141923;
  --s2: #1B2230;
  --border: #273042;

  /* text */
  --text: #F2F5FA;
  --muted: #8A93A6;

  /* locked accents + tints */
  --blue: #1E6BFF;
  --blue-2: #4d8bff;
  --blue-bright: #2E78FF; /* filled active chips/badges: lifts dark-text contrast past WCAG AA */
  --blue-soft: rgba(30, 107, 255, 0.13);
  --blue-line: rgba(30, 107, 255, 0.42);
  --red: #FF2E43;
  --red-soft: rgba(255, 46, 67, 0.13);
  --red-line: rgba(255, 46, 67, 0.5);

  /* per-club tint (overridden only on club.html for msc-city) */
  --club-tint: var(--blue);
  --club-tint-soft: var(--blue-soft);

  /* radius */
  --r-sm: 4px;
  --r: 14px;
  --pill: 999px;

  /* type */
  --display: 'Geologica', 'Manrope', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1200px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: var(--r-sm); }

/* page ambient grid + glow */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -5%, var(--blue-soft), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, var(--red-soft), transparent 70%),
    linear-gradient(transparent 0 39px, rgba(39, 48, 66, 0.16) 39px 40px),
    linear-gradient(90deg, transparent 0 39px, rgba(39, 48, 66, 0.16) 39px 40px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  opacity: 0.6;
}
main, .site-footer, .site-nav { position: relative; z-index: 1; }

/* ---------- shared utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.section { padding-block: clamp(52px, 6vw, 92px); position: relative; }
.section--tight { padding-block: clamp(38px, 4.2vw, 60px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-2);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--blue-line); display: inline-block; }

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.95rem, 4.2vw, 3.4rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.lead { color: var(--muted); font-size: 1.0625rem; max-width: 58ch; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(34px, 4vw, 56px); }
.section__head .lead { margin-top: 4px; }

/* buttons (pill = only place 999px radius is allowed) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  white-space: nowrap; padding: 0.85em 1.5em; border-radius: var(--pill);
  border: 1px solid transparent; transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--red); color: #0B0E14; box-shadow: 0 6px 28px -10px var(--red); }
.btn--primary:hover { background: #ff4557; box-shadow: 0 10px 34px -8px var(--red); }
.btn--ghost { border-color: var(--blue-line); color: var(--text); background: rgba(30, 107, 255, 0.05); }
.btn--ghost:hover { border-color: var(--blue); background: var(--blue-soft); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.icon { width: 20px; height: 20px; display: inline-block; fill: currentColor; flex: none; }
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* glass-with-intent: only on interactive / info panels */
.glass {
  background: rgba(20, 25, 35, 0.55);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--s1); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* HUD broadcast brackets (TL + BR) */
.hud { position: relative; }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none; z-index: 3;
  border-color: var(--blue); border-style: solid; opacity: 0.85;
}
.hud::before { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.hud::after { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-nav.is-solid {
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.site-nav__inner { display: flex; align-items: center; gap: 24px; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 30px; width: auto; display: block; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; padding-left: 12px; border-left: 1px solid var(--border); }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.04em; }
.brand__sub { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: 0.92rem; color: var(--muted); padding: 8px 14px; border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: 18px; }
.nav-phone {
  display: inline-flex; align-items: center; font-family: var(--mono); font-size: 0.9rem;
  color: var(--text); white-space: nowrap; letter-spacing: 0.01em; transition: color 0.2s;
}
.nav-phone:hover { color: var(--blue-2); }

.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-burger span { position: relative; width: 22px; height: 2px; background: var(--text); transition: 0.25s var(--ease); }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--text); transition: 0.25s var(--ease); }
.nav-burger span::before { top: -7px; } .nav-burger span::after { top: 7px; }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(11, 14, 20, 0.97);
  backdrop-filter: blur(8px); display: flex; flex-direction: column; justify-content: center;
  gap: 6px; padding: 96px 28px 40px; transform: translateY(-100%); transition: transform 0.4s var(--ease);
  visibility: hidden;
}
body.menu-open .mobile-menu { transform: none; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; letter-spacing: -0.01em; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 26px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background: var(--bg); }
.hero__bg > img, .hero__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__poster { z-index: 0; transform: scale(1.04); }
.hero.is-ready .hero__poster { animation: kenburns 22s ease-in-out 0.2s infinite alternate; }
/* Loop snaps in instantly behind the intro; only the intro fades (out), so the
   hand-off never blends two semi-transparent layers over the dark background. */
.hero__vid { z-index: 1; opacity: 0; }
.hero__vid--intro { z-index: 2; transition: opacity 0.7s var(--ease); }
.hero__vid.is-on { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-1.5%); } }
/* Phones: bias the crop a touch higher so the samurai's head stays in frame. */
@media (max-width: 740px) { .hero__bg > img, .hero__vid { object-position: center 32%; } }

.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 14, 20, 0.55) 0%, rgba(11, 14, 20, 0.15) 32%, rgba(11, 14, 20, 0.72) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 14, 20, 0.78) 0%, transparent 60%);
}
.hero__scan {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  opacity: 0.18; mix-blend-mode: multiply;
  animation: scanbreathe 5.5s ease-in-out infinite;
}
@keyframes scanbreathe { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.24; } }
.hero__hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero__hud::before, .hero__hud::after {
  content: ""; position: absolute; width: 46px; height: 46px; border-color: var(--blue); border-style: solid; opacity: 0;
  transition: opacity 0.5s ease 0.5s;
}
.hero.is-ready .hero__hud::before, .hero.is-ready .hero__hud::after { opacity: 0.9; }
.hero__hud::before { top: calc(var(--nav-h) + 22px); left: 22px; border-width: 2px 0 0 2px; }
.hero__hud::after { bottom: 30px; right: 22px; border-width: 0 2px 2px 0; }

.hero__content { position: relative; z-index: 4; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); padding-top: var(--nav-h); }
.hero__title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.7rem, 8.4vw, 6.3rem); line-height: 0.92; letter-spacing: -0.025em;
  margin: 18px 0 22px;
}
.hero__title .accent { position: relative; display: inline-block; }
.hero__title .accent::after {
  content: ""; position: absolute; left: 0; bottom: 0.08em; height: 0.09em; width: 100%;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease) 0.7s;
}
.hero.is-ready .hero__title .accent::after { transform: scaleX(1); }
.hero__sub { color: #cdd4e0; font-size: clamp(1rem, 1.6vw, 1.22rem); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__anim { opacity: 0; transform: translateY(22px); }
.hero.is-ready .hero__anim { animation: heroup 0.8s var(--ease) forwards; }
.hero.is-ready .hero__anim[data-d="1"] { animation-delay: 0.12s; }
.hero.is-ready .hero__anim[data-d="2"] { animation-delay: 0.24s; }
.hero.is-ready .hero__anim[data-d="3"] { animation-delay: 0.36s; }
@keyframes heroup { to { opacity: 1; transform: none; } }

/* ============================================================
   STATS (trust HUD ribbon)
   ============================================================ */
.stats__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 16px;
}
.stat { padding: 26px 24px; border-radius: var(--r); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px; background: var(--blue); opacity: 0.6; }
.stat__num { font-family: var(--mono); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.stat__num .unit { color: var(--muted); font-size: 0.5em; margin-left: 0.1em; }
.stat__label { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.stat--hero .stat__num { color: var(--text); }
.stat--hero::after { background: var(--red); }
.stars { display: inline-flex; gap: 3px; margin-top: 12px; }
.stars .icon { width: 19px; height: 19px; color: var(--blue-2); }

/* ============================================================
   ZONES - ladder
   ============================================================ */
.ladder { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: stretch; }
.ladder__steps { display: flex; flex-direction: column; gap: 10px; }
.ladder__step {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--border); background: var(--s1);
  text-align: left; transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease);
}
.ladder__step:hover { border-color: var(--blue-line); transform: translateX(3px); }
.ladder__step.is-active { border-color: var(--blue); background: var(--s2); }
.ladder__step.is-active.is-top { border-color: var(--red); box-shadow: 0 0 0 1px var(--red-line), 0 10px 40px -16px var(--red); }
.ladder__idx { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.ladder__step.is-active .ladder__idx { color: var(--blue-2); }
.ladder__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ladder__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1; }
.ladder__price { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); line-height: 1; white-space: nowrap; }
.ladder__step.is-active .ladder__price { color: var(--blue-2); }
.ladder__step.is-active.is-top .ladder__price { color: #ff6675; }
.ladder__bars { display: flex; flex-direction: column; gap: 4px; width: 46px; }
.ladder__bars i { height: 3px; border-radius: 2px; background: var(--border); }
.ladder__step.is-active .ladder__bars i { background: var(--blue); }
.ladder__step.is-active.is-top .ladder__bars i { background: var(--red); }

.ladder__panel { border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); display: grid; grid-template-columns: 1.1fr 0.9fr; background: var(--s1); min-height: 396px; }
.zpanel__body { padding: 30px 30px 28px; display: flex; flex-direction: column; }
.zpanel__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
.zpanel__blurb { color: var(--muted); margin: 10px 0 22px; max-width: 40ch; }
.zpanel__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 22px; }
.zspec__k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.zspec__v { font-family: var(--mono); font-size: 0.95rem; margin-top: 3px; }
.zmeter { margin-top: auto; display: flex; flex-direction: column; gap: 18px; }
.zmeter__row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 14px; }
.zmeter__k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.zmeter__track { position: relative; height: 10px; border-radius: var(--pill); background: var(--s2); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45); }
.zmeter__fill {
  display: block; position: relative; height: 100%; width: 0; border-radius: var(--pill);
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  box-shadow: 0 0 14px -3px var(--blue); transition: width 1.05s var(--ease);
}
/* moving sheen sweeping across the fill */
.zmeter__fill::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  background-size: 250% 100%; background-repeat: no-repeat;
  animation: metersheen 2.8s var(--ease) infinite;
}
/* glowing slider thumb pinned at the fill edge, gently pulsing */
.zmeter__fill::after {
  content: ""; position: absolute; right: -1px; top: 50%; width: 15px; height: 15px;
  transform: translateY(-50%); border-radius: 50%; background: #fff;
  animation: thumbpulse 2.2s var(--ease) infinite;
}
.is-top .zmeter__fill, .zpanel.is-top .zmeter__fill {
  background: linear-gradient(90deg, var(--red), #ff6675); box-shadow: 0 0 14px -3px var(--red);
}
.is-top .zmeter__fill::after, .zpanel.is-top .zmeter__fill::after { animation-name: thumbpulsetop; }
@keyframes metersheen { 0% { background-position: 140% 0; } 60%, 100% { background-position: -40% 0; } }
@keyframes thumbpulse { 0%, 100% { box-shadow: 0 0 0 3px var(--blue-soft), 0 0 8px 0 var(--blue); } 50% { box-shadow: 0 0 0 6px var(--blue-soft), 0 0 16px 2px var(--blue); } }
@keyframes thumbpulsetop { 0%, 100% { box-shadow: 0 0 0 3px var(--red-soft), 0 0 8px 0 var(--red); } 50% { box-shadow: 0 0 0 6px var(--red-soft), 0 0 16px 2px var(--red); } }
.zpanel__photo { position: relative; min-height: 280px; }
.zpanel__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zpanel__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--s1), transparent 38%); }
.zpanel { display: contents; }
.zfade { animation: zfade 0.45s var(--ease); }
@keyframes zfade { from { opacity: 0.2; } to { opacity: 1; } }

/* ============================================================
   PRICE - scoreboard
   ============================================================ */
.price__bar { display: flex; flex-wrap: nowrap; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
/* club list stays on ONE line; scrolls horizontally if ever too wide (never wraps to 2 rows) */
.segtabs { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 5px; background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); padding: 6px; scrollbar-width: none; }
.segtabs::-webkit-scrollbar { display: none; }
.segtabs button {
  flex: 0 0 auto; font-family: var(--body); font-size: 0.86rem; font-weight: 500; color: var(--muted);
  padding: 8px 13px; border-radius: var(--r-sm); transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.segtabs button:hover { color: var(--text); }
.segtabs button.is-active { background: var(--blue-bright); color: #06080d; font-weight: 600; }
.price__controls { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; justify-content: flex-end; }
.toggle { display: inline-flex; background: var(--s1); border: 1px solid var(--border); border-radius: var(--pill); padding: 5px; }
.toggle button { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; padding: 8px 14px; border-radius: var(--pill); color: var(--muted); transition: color 0.2s, background 0.2s; white-space: nowrap; }
.toggle button.is-active { background: var(--s2); color: var(--text); box-shadow: inset 0 0 0 1px var(--blue-line); }
/* dual time-period selector (only for clubs that price two periods, e.g. Москва-Сити) */
.period { display: inline-flex; align-items: center; }
.period[hidden] { display: none; }
.toggle--period button { font-size: 0.72rem; padding: 7px 11px; }
.toggle--period button.is-active { color: var(--blue-2); }

.scoreboard { position: relative; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--s1); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* right-edge fade while more zone columns are hidden to the right */
.scoreboard::after {
  content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 44px; z-index: 3;
  background: linear-gradient(270deg, var(--s1) 8%, transparent); pointer-events: none;
  opacity: 0; transition: opacity 0.25s;
}
.scoreboard.has-right::after { opacity: 1; }
/* the sticky "Тариф" column casts a shadow once columns slide under it */
.scoreboard.has-left th.rowhead, .scoreboard.has-left td.rowhead { box-shadow: 14px 0 18px -12px rgba(0, 0, 0, 0.6); }
/* swipe hint: visible only while columns are cut off and the user has not scrolled yet */
.scroll-hint {
  position: absolute; right: 10px; bottom: 10px; z-index: 4; pointer-events: none;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--text);
  background: rgba(12, 14, 20, 0.82); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 13px; opacity: 0; transition: opacity 0.3s; backdrop-filter: blur(6px);
}
.scoreboard.has-right:not(.was-scrolled) .scroll-hint { opacity: 1; animation: hintnudge 1.5s var(--ease) infinite; }
@keyframes hintnudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-7px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none !important; } }
.scoreboard table { width: 100%; border-collapse: collapse; min-width: 540px; }
.scoreboard th, .scoreboard td { padding: 15px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.scoreboard thead th { background: var(--s2); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 0.92rem; letter-spacing: 0.01em; position: relative; }
.scoreboard thead th.is-top { color: #ff6675; }
.scoreboard th.rowhead, .scoreboard td.rowhead {
  text-align: left; position: sticky; left: 0; z-index: 2; background: var(--s1);
  font-family: var(--body); font-weight: 500; color: var(--text); min-width: 150px;
}
.scoreboard td.rowhead small { display: block; font-family: var(--mono); color: var(--muted); font-size: 0.66rem; letter-spacing: 0.06em; margin-top: 2px; }
.scoreboard thead th.rowhead { background: var(--s2); }
.scoreboard tbody tr:last-child td { border-bottom: none; }
.cell { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 1.18rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; transition: color 0.3s; }
.cell .rub { color: var(--muted); font-size: 0.62em; font-weight: 500; margin-left: 0.12em; }
.cell.is-empty { color: var(--muted); font-weight: 500; font-size: 1rem; }
/* soft glow pulse when the value updates (weekday/weekend or period switch) - no hard box */
.cell.flash { color: var(--blue-2); animation: cellflash 0.62s var(--ease); }
@keyframes cellflash {
  0% { transform: scale(1); text-shadow: 0 0 0 rgba(46, 120, 255, 0); }
  35% { transform: scale(1.16); text-shadow: 0 0 18px rgba(46, 120, 255, 0.85); }
  100% { transform: scale(1); text-shadow: 0 0 0 rgba(46, 120, 255, 0); }
}
.col-top .cell.flash { color: #ff6675; animation: cellflashtop 0.62s var(--ease); }
@keyframes cellflashtop {
  0% { transform: scale(1); text-shadow: 0 0 0 rgba(255, 46, 67, 0); }
  35% { transform: scale(1.16); text-shadow: 0 0 18px rgba(255, 46, 67, 0.8); }
  100% { transform: scale(1); text-shadow: 0 0 0 rgba(255, 46, 67, 0); }
}
.scoreboard td.col-top { background: rgba(255, 46, 67, 0.045); }
.price__note {
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between;
  margin-top: 18px; padding: 16px 20px; border-radius: var(--r);
  background: var(--red-soft); border: 1px solid var(--red-line);
}
.price__note p { font-size: 0.95rem; }
.price__note b { font-family: var(--mono); color: #ff6675; }
.price__hint { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-top: 12px; }

/* ============================================================
   CLUBS
   ============================================================ */
.clubs__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 18px; }
.club-card {
  position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border);
  background: var(--s1); display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.club-card:hover { border-color: var(--club-tint); transform: translateY(-4px); box-shadow: 0 24px 60px -34px var(--club-tint); }
.club-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.club-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.club-card:hover .club-card__media img { transform: scale(1.06); }
.club-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11, 14, 20, 0.9)); }
.club-card__metro { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; padding: 6px 11px; border-radius: var(--r-sm); background: rgba(11, 14, 20, 0.7); backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 6px; }
.club-card__metro .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--club-tint); }
.badge { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--r-sm); background: var(--red); color: #0B0E14; font-weight: 700; }
.badge--soft { background: var(--blue-bright); }
.club-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.club-card__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1; }
.club-card__name .ck { color: var(--muted); font-size: 0.62em; margin-right: 0.3em; }
.club-card__tag { color: var(--muted); font-size: 0.95rem; margin: 10px 0 18px; }
.club-card__specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.spec-chip { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.02em; padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--s2); color: #cdd4e0; }
.spec-chip b { color: var(--text); }
.club-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.club-card__price { font-family: var(--mono); font-size: 0.95rem; color: var(--muted); white-space: nowrap; }
.club-card__price b { font-size: 1.1rem; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.club-card__links { display: flex; gap: 8px; }
.iconbtn { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: 0.2s; }
.iconbtn:hover { border-color: var(--club-tint); color: var(--text); background: var(--club-tint-soft); }
.iconbtn .icon { width: 18px; height: 18px; }

.club-card--featured .club-card__media { aspect-ratio: 16 / 9; }

/* ============================================================
   GAMES - animated tilted image marquee
   ============================================================ */
.gmar__head { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.gmar__head .lead { margin: 0; }
.gmar__tag { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-2); border: 1px solid var(--blue-line); background: var(--blue-soft); padding: 7px 16px; border-radius: var(--pill); }
.gmar__viewport {
  margin-top: clamp(36px, 5vw, 64px); overflow: hidden; padding: 34px 0;
  min-height: calc(clamp(150px, 16vw, 208px) * 4 / 3 + 68px); /* reserve card height so the deferred mount doesn't shift layout */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gmar__track { display: flex; width: max-content; animation: gmar-scroll 60s linear infinite; }
.gmar__track.is-static { animation: none; }
.gmar__card {
  flex: none; width: clamp(150px, 16vw, 208px); aspect-ratio: 3 / 4; margin-right: 18px;
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--border);
  background: var(--s1); box-shadow: 0 22px 44px -26px #000; transition: transform 0.4s var(--ease);
}
.gmar__card:nth-child(odd) { transform: rotate(-2deg); }
.gmar__card:nth-child(even) { transform: rotate(4deg); }
.gmar__card:hover { transform: rotate(0deg) scale(1.04); z-index: 2; }
.gmar__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes gmar-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) { .gmar__card { width: clamp(132px, 44vw, 168px); margin-right: 14px; } }

/* ============================================================
   GALLERY - masonry + lightbox
   ============================================================ */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 14px; grid-auto-flow: dense; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--border); cursor: pointer; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 55%, rgba(30, 107, 255, 0.18)); opacity: 0; transition: opacity 0.3s; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }
.g-wide { grid-column: span 2; } .g-tall { grid-row: span 2; } .g-big { grid-column: span 2; grid-row: span 2; }

/* ---- sticky-scroll club gallery: side columns scroll, middle column pinned ---- */
.sgal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.sgal__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sgal__col--sticky {
  position: sticky; top: calc(var(--nav-h) + 16px);
  height: calc(100svh - var(--nav-h) - 40px);
  display: grid; grid-auto-rows: 1fr; gap: 14px; /* adapts to 2 or 3 images, no empty row */
}
.sgal__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); border: 1px solid var(--border); cursor: pointer; background: var(--s1); }
.sgal__item img { display: block; width: 100%; height: clamp(220px, 30vw, 360px); object-fit: cover; transition: transform 0.6s var(--ease); }
.sgal__col--sticky .sgal__item, .sgal__col--sticky .sgal__item img { height: 100%; }
.sgal__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 55%, rgba(30, 107, 255, 0.18)); opacity: 0; transition: opacity 0.3s; }
.sgal__item:hover img { transform: scale(1.06); }
.sgal__item:hover::after { opacity: 1; }
.sgal__item:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
/* tablet: two columns, drop the pin so nothing overlaps */
@media (max-width: 900px) {
  .sgal { grid-template-columns: 1fr 1fr; }
  .sgal__col--sticky { position: static; height: auto; display: flex; flex-direction: column; }
  .sgal__col--sticky .sgal__item, .sgal__col--sticky .sgal__item img { height: clamp(220px, 30vw, 360px); }
}
/* phones: single column stack */
@media (max-width: 600px) {
  .sgal { grid-template-columns: 1fr; }
  .sgal__item img, .sgal__col--sticky .sgal__item img { height: clamp(220px, 64vw, 320px); }
}
@media (prefers-reduced-motion: reduce) { .sgal__item img { transition: none; } }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(6, 8, 13, 0.94); display: none; align-items: center; justify-content: center; padding: 5vh 5vw; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 90vh; border-radius: var(--r); border: 1px solid var(--blue-line); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 30px 90px -20px #000; }
.lightbox__btn { position: absolute; width: 54px; height: 54px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: rgba(20, 25, 35, 0.6); border: 1px solid var(--border); transition: 0.2s; }
.lightbox__btn:hover { border-color: var(--blue); background: var(--blue-soft); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lb-close { top: 4vh; right: 5vw; } .lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); } .lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.82rem; color: var(--muted); letter-spacing: 0.1em; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: stretch; }
.rating-panel { border-radius: var(--r); padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.rating-panel__num { font-family: var(--mono); font-weight: 700; font-size: clamp(4.5rem, 10vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; }
.rating-panel .stars .icon { width: 26px; height: 26px; }
.rating-panel__meta { font-family: var(--mono); color: var(--muted); margin-top: 18px; font-size: 0.9rem; }
.rating-panel__src { margin-top: 6px; font-size: 0.82rem; color: var(--blue-2); font-family: var(--mono); letter-spacing: 0.04em; }

.slider { position: relative; border-radius: var(--r); border: 1px solid var(--border); background: var(--s1); overflow: hidden; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform 0.5s var(--ease); }
.quote { flex: 0 0 100%; padding: 38px 36px; display: flex; flex-direction: column; gap: 20px; }
.quote__mark { font-family: var(--display); font-size: 3rem; line-height: 0.5; color: var(--blue); height: 26px; }
.quote__body { font-size: 1.15rem; line-height: 1.55; }
.quote__author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--blue-line); }
.quote__avatar--emoji { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 22px; line-height: 1; background: var(--s2); }
.quote__name { font-weight: 600; }
.quote__date { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); letter-spacing: 0.04em; }
.slider__nav { display: flex; gap: 8px; padding: 0 36px 30px; align-items: center; }
.slider__dots { display: flex; gap: 7px; margin-right: auto; }
.slider__dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: 0.2s; }
.slider__dots button.is-active { background: var(--blue); width: 22px; border-radius: 4px; }

/* ============================================================
   BOOKING / CONTACTS
   ============================================================ */
.booking__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.book-form { border-radius: var(--r); padding: 32px 30px; }
.field { margin-bottom: 18px; }
.field label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.field select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--text); background: var(--s2);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 13px 14px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238A93A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; cursor: pointer;
}
.field select:focus { border-color: var(--blue); outline: none; }
.field select:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.book-form__hint { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); margin-top: 14px; text-align: center; }

.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 14px; }
.contact-card { display: flex; flex-direction: column; border-radius: var(--r); border: 1px solid var(--border); background: var(--s1); padding: 20px; transition: border-color 0.25s; }
.contact-card:hover { border-color: var(--blue-line); }
.contact-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.contact-card__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; letter-spacing: -0.01em; }
.contact-card__metro { font-family: var(--mono); font-size: 0.7rem; color: var(--blue-2); letter-spacing: 0.06em; margin-top: 4px; }
/* reserve exactly two lines so single- and double-line addresses keep cards identical */
.contact-card__addr { color: var(--muted); font-size: 0.88rem; line-height: 1.45; min-height: 2.9em; }
/* phone + action icons share a footer pinned to the bottom -> aligned across all cards */
.contact-card__foot { margin-top: auto; padding-top: 14px; }
.contact-card__phone { font-family: var(--mono); font-size: 1.05rem; display: inline-block; margin-bottom: 14px; }
.contact-card__phone:hover { color: var(--blue-2); }
.contact-card__links { display: flex; gap: 8px; flex-wrap: wrap; }

/* brand marks in the small map/social/booking buttons */
.brandico { display: block; width: auto; fill: currentColor; }
.brandico--langame { height: 22px; }  /* LANGAME cube (brand colours) */
/* grey monochrome brand icons (Yandex.Maps, 2GIS), styled like the tg icon; brighten on hover */
.brandimg { display: block; height: 20px; width: auto; }
.iconbtn:hover .brandimg { filter: brightness(1.5); }
/* the LANGAME booking icon stands out as the primary action */
.iconbtn--book { border-color: var(--red-line); background: var(--red-soft); }
.iconbtn--book:hover { border-color: var(--red); background: rgba(255, 46, 67, 0.18); }

/* booking stage = LANGAME promo header + free (box-less) Spline scene */
.book-stage { display: flex; flex-direction: column; gap: 20px; align-self: start; }
.book-promo { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.book-promo__kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-2); }
.book-promo__kicker::before { content: ""; width: 22px; height: 1px; background: var(--blue-line); }
.book-promo__head { display: flex; align-items: center; gap: 12px 16px; }
.book-promo__title { flex: 0 1 auto; min-width: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; line-height: 1.06; font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); }
.book-promo__logo { flex: 0 0 auto; height: clamp(28px, 3.4vw, 38px); width: auto; }
.book-promo__note { color: var(--muted); font-size: 0.95rem; line-height: 1.55; max-width: 44ch; margin-top: 2px; }
.book-promo__cta { margin-top: 8px; } /* opens the booking widget */
/* Club pages: stack the LANGAME logo BELOW the title so the block bottom lines up with the contacts. */
.book-stage--club .book-promo__head { flex-direction: column; align-items: flex-start; gap: 14px; }
.book-stage--club { gap: 16px; justify-content: flex-start; }

/* Spline 3D scene - free, no box. The scene is authored vertical (9:16, 1080x1920),
   so the frame is a centred portrait. The width MUST be definite: the <spline-viewer>
   carries an intrinsic 1080px content width, and an auto width would balloon the box to
   1080 (landscape) and push the scene out of view. overflow:hidden clips any sub-px spill.
   No custom placeholder: the scene shows its own built-in loader while it loads. */
.spline-embed { position: relative; align-self: flex-start; width: min(480px, 100%); aspect-ratio: 3 / 4; margin-top: -6px; overflow: hidden; contain: paint; }
.spline-embed spline-viewer { display: block; width: 100%; height: 100%; background: transparent; }

/* ============================================================
   BOOKING WIDGET - LANGAME form in an on-page modal (js: buildBookModal).
   Closed = visibility:hidden (not display:none): the kept iframe never loses its
   layout, so a half-done booking survives close/reopen.
   ============================================================ */
.bookm {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 32px); visibility: hidden; pointer-events: none;
  transition: visibility 0s linear 0.3s;
}
.bookm.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.bookm__backdrop {
  position: absolute; inset: 0; background: rgba(6, 8, 13, 0.86);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.bookm__panel {
  position: relative; display: flex; flex-direction: column; width: min(980px, 100%); height: min(880px, 100%);
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 40px 120px -40px #000; outline: none;
  opacity: 0; transform: translateY(16px) scale(0.985); transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.bookm.is-open .bookm__backdrop, .bookm.is-open .bookm__panel { opacity: 1; }
.bookm.is-open .bookm__panel { transform: none; }
.bookm__guard { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.bookm__head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--border);
}
.bookm__titles { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bookm__kicker, .bookm__back { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; color: var(--blue-2); }
.bookm__back { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; transition: color 0.2s; }
.bookm__back:hover { color: var(--text); }
.bookm__back .icon { width: 14px; height: 14px; margin-left: -3px; }
.bookm__title { max-width: 100%; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.45rem); letter-spacing: -0.01em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bookm__title .ck { color: var(--muted); }
.bookm__actions { flex: none; display: flex; align-items: center; gap: 8px; }
.bookm.is-form .bookm__kicker, .bookm.is-picker .bookm__back, .bookm.is-picker .bookm__ext { display: none; }

.bookm__body { position: relative; flex: 1 1 auto; min-height: 0; }
.bookm.is-form .bookm__picker { display: none; }
.bookm.is-picker .bookm__frame { visibility: hidden; }
.bookm.is-picker .bookm__body { overflow-y: auto; overscroll-behavior: contain; }
/* desktop: the picker panel hugs its content; the form gets the full-height panel */
@media (min-width: 601px) { .bookm.is-picker .bookm__panel { height: auto; max-height: 100%; } }

/* club picker (network-wide "Забронировать" buttons) */
.bookm__picker { padding: 22px; }
.bookm__lead { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.bookm__clubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bookm__club {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0;
  padding: 16px 52px 16px 18px; text-align: left; border-radius: var(--r); border: 1px solid var(--border); background: var(--s2);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.bookm__club:hover { border-color: var(--blue-line); background: var(--blue-soft); transform: translateY(-2px); }
.bookm__club.is-current { border-color: var(--red-line); }
.bookm__club-metro { display: inline-flex; align-items: center; gap: 7px; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--blue-2); }
.bookm__club-metro .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bookm__club-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.05; }
.bookm__club-name .ck { color: var(--muted); font-size: 0.66em; margin-right: 0.35em; }
.bookm__club-addr { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.bookm__club-go { position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; color: var(--muted); transform: translateY(-50%); transition: color 0.2s, transform 0.2s var(--ease); }
.bookm__club:hover .bookm__club-go { color: var(--red); transform: translate(3px, -50%); }

/* the LANGAME form is black: match it so loading never flashes */
.bookm__frame { position: absolute; inset: 0; background: #000; }
.bookm__iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #000; }
.bookm__loader {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center; background: #000; color: var(--muted);
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; transition: opacity 0.3s, visibility 0.3s;
}
.bookm__frame.is-loaded .bookm__loader { opacity: 0; visibility: hidden; }
.bookm__spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--red); animation: bmspin 0.8s linear infinite; }
@keyframes bmspin { to { transform: rotate(360deg); } }
.bookm__slow { display: none; align-items: center; gap: 6px; color: var(--blue-2); }
.bookm__slow .icon { width: 14px; height: 14px; }
.bookm__frame.is-slow .bookm__slow { display: inline-flex; }

/* phones: full-screen sheet (the backdrop is fully covered, so skip its blur) */
@media (max-width: 600px) {
  .bookm { padding: 0; }
  .bookm__backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bookm__panel { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .bookm__head { padding: 10px 10px 10px 16px; }
  .bookm__picker { padding: 16px; }
  .bookm__clubs { grid-template-columns: 1fr; gap: 10px; }
  .bookm__club { padding: 14px 46px 14px 16px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--blue-line); background: var(--s1); padding-block: clamp(56px, 7vw, 88px) 34px; margin-top: 40px; }
.footer__slogan { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 6vw, 4.4rem); line-height: 0.94; letter-spacing: -0.02em; margin-bottom: 50px; }
.footer__slogan span { color: var(--blue-2); }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
.footer__logo { width: min(280px, 100%); height: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 0.9rem; max-width: 28ch; }
.footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__col a { display: block; color: #cdd4e0; font-size: 0.92rem; padding: 5px 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--blue-2); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding-top: 26px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.03em; }
.footer__bottom .rate { color: var(--blue-2); }

/* ============================================================
   CLUB PAGE
   ============================================================ */
.club-hero { position: relative; min-height: 74svh; display: flex; align-items: flex-end; overflow: hidden; }
.club-hero__bg { position: absolute; inset: 0; }
.club-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.club-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,20,0.5), rgba(11,14,20,0.2) 40%, rgba(11,14,20,0.85) 85%, var(--bg)); }
.club-hero__content { position: relative; z-index: 2; padding-bottom: clamp(40px, 6vh, 70px); padding-top: var(--nav-h); width: 100%; }
.club-hero__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 0.92; letter-spacing: -0.025em; margin: 16px 0 14px; }
.club-hero__name .ck { color: var(--muted); }
.club-hero__addr { color: #cdd4e0; font-size: 1.05rem; display: flex; align-items: center; gap: 9px; }
.club-hero__cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.back-link { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.back-link:hover { color: var(--text); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact { border-radius: var(--r); border: 1px solid var(--border); background: var(--s1); padding: 20px; }
.fact__k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fact__v { font-family: var(--mono); font-size: 1.05rem; margin-top: 8px; line-height: 1.4; }
.fact__v.lg { font-size: 1.6rem; font-weight: 700; }

/* ============================================================
   CLUB MAP (Yandex JS API 2.1, dark via CSS filter)
   ============================================================ */
.club-map {
  position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--s1); margin-bottom: 22px; box-shadow: 0 24px 60px -34px #000;
}
.club-map__view { position: relative; height: clamp(360px, 52vh, 520px); }
.club-map--wide .club-map__view { height: clamp(420px, 58vh, 560px); }
.club-map__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* invert the light Yandex map into a dark one that matches the theme */
.club-map.is-ready .club-map__canvas { filter: invert(1) hue-rotate(180deg); }
/* subtle brand vignette over the map for card legibility */
.club-map__tint {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(130% 110% at 78% 0%, transparent 55%, rgba(11, 14, 20, 0.5)),
    linear-gradient(90deg, rgba(11, 14, 20, 0.5), transparent 46%);
}
/* counter-filter the custom pin so it keeps its true brand colour.
   The dot and the pulse are positioned IDENTICALLY (both centred on the geo point via
   translate(-50%,-50%)), so the pulse stays perfectly concentric with the dot. */
.map-pin { position: relative; filter: invert(1) hue-rotate(180deg); }
.map-pin__dot, .map-pin__pulse {
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); transform: translate(-50%, -50%);
}
.map-pin__dot { z-index: 2; border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(255, 46, 67, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5); }
.map-pin__pulse { z-index: 1; opacity: 0.6; animation: pinpulse 2.4s ease-out infinite; }
@keyframes pinpulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
  70%, 100% { transform: translate(-50%, -50%) scale(3.4); opacity: 0; }
}

.map-card {
  position: absolute; left: 18px; bottom: 18px; z-index: 3; max-width: 330px;
  padding: 20px 22px; border-radius: var(--r);
}
.map-card__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; letter-spacing: -0.01em; }
.map-card__name .ck { color: var(--muted); }
.map-card__metro { font-family: var(--mono); font-size: 0.74rem; color: var(--blue-2); letter-spacing: 0.06em; margin: 6px 0 10px; }
.map-card__addr { color: #cdd4e0; font-size: 0.9rem; margin-bottom: 16px; }
.map-card__row { display: flex; gap: 10px; flex-wrap: wrap; }
.map-card__row .btn { padding: 0.7em 1.1em; font-size: 0.85rem; }

.map-fallback {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
  background:
    radial-gradient(700px 400px at 50% 30%, var(--blue-soft), transparent 70%),
    var(--s1);
}
.club-map.is-ready .map-fallback { display: none; }
.map-fallback p { color: var(--muted); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; }

.map-badge {
  position: absolute; left: 16px; top: 16px; z-index: 3; padding: 9px 14px; border-radius: var(--r-sm);
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text);
}
.map-badge b { color: var(--blue-2); font-weight: 500; }

/* click-a-marker mini card on the overview map */
.map-popup {
  position: absolute; z-index: 5; width: 232px; padding: 16px 18px;
  background: var(--s2); border: 1px solid var(--blue-line); border-radius: var(--r);
  box-shadow: 0 18px 48px -18px #000; display: none; transform: translate(-50%, -100%);
}
.map-popup.is-open { display: block; animation: popin 0.18s var(--ease); }
.map-popup--below { transform: translate(-50%, 0); }
@keyframes popin { from { opacity: 0; transform: translate(-50%, -100%) scale(0.96); } }
.map-popup::after {
  content: ""; position: absolute; left: 50%; width: 12px; height: 12px; background: var(--s2);
  transform: translateX(-50%) rotate(45deg); border: 1px solid var(--blue-line);
}
.map-popup:not(.map-popup--below)::after { bottom: -7px; border-top: 0; border-left: 0; }
.map-popup--below::after { top: -7px; border-bottom: 0; border-right: 0; }
.map-popup__close {
  position: absolute; top: 8px; right: 9px; width: 24px; height: 24px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
}
.map-popup__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.map-popup__close .icon { width: 15px; height: 15px; }
.map-popup__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1; padding-right: 20px; }
.map-popup__name .ck { color: var(--muted); }
.map-popup__metro { font-family: var(--mono); font-size: 0.72rem; color: var(--blue-2); letter-spacing: 0.04em; display: flex; align-items: center; gap: 5px; margin: 9px 0 14px; }
.map-popup__metro .icon { width: 13px; height: 13px; }
.map-popup__btn { width: 100%; padding: 0.6em 1em; font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .map-popup.is-open { animation: none; } }

@media (prefers-reduced-motion: reduce) { .map-pin__pulse { animation: none; opacity: 0; } }
@media (max-width: 560px) {
  .club-map__view { height: 340px; }
  /* card drops below the map on phones so it never covers the zoom buttons or attribution */
  .map-card {
    position: static; left: auto; right: auto; bottom: auto; max-width: none; padding: 18px 20px;
    border-radius: 0; border: 0; border-top: 1px solid var(--border);
    background: var(--s1); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
  }
  .map-card.hud::before, .map-card.hud::after { display: none; }
  .club-map__tint { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .ladder { grid-template-columns: 1fr; }
  .ladder__steps { flex-direction: row; flex-wrap: wrap; }
  .ladder__step { flex: 1 1 200px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .reviews__grid, .booking__grid { grid-template-columns: 1fr; }
  .clubs__grid { grid-template-columns: 1fr 1fr; }
  .ladder__panel { grid-template-columns: 1fr; }
  .zpanel__photo { min-height: 200px; order: -1; }
  .zpanel__photo::after { background: linear-gradient(0deg, var(--s1), transparent 45%); }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .clubs__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .price__bar { flex-wrap: wrap; }
  .segtabs { flex: 1 1 100%; }
  .price__controls { flex: 1 1 100%; justify-content: flex-start; }
  .contacts__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .contact-card__addr { min-height: 0; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .g-big { grid-column: span 2; grid-row: span 2; } .g-wide { grid-column: span 2; } .g-tall { grid-row: span 1; }
  .zpanel__specs { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  /* compact price table: fit more zone columns on a phone screen */
  .scoreboard table { min-width: 0; }
  .scoreboard th, .scoreboard td { padding: 12px 10px; }
  .scoreboard thead th { font-size: 0.76rem; }
  .scoreboard th.rowhead, .scoreboard td.rowhead { min-width: 104px; padding-left: 14px; }
  .cell { font-size: 1.02rem; }
  .cell.is-empty { font-size: 0.9rem; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .nav-actions { display: none; } /* booking CTA lives in the burger menu on phones */
}
@media (max-width: 460px) {
  .stats__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
}

/* =========================================================================
   "Зоны и железо" ladder - mobile + tablet rework (CSS-only, additive).
   Desktop (>=1081px) untouched. Fixes the giant-button bug: the inherited
   `flex: 1 1 200px` (a width basis for the tablet row) became a 200px HEIGHT
   when the steps stacked into a column on phones. Tiers now lay out as a
   compact grid (display:grid makes flex-basis inert), so they never balloon.
   ========================================================================= */
@media (max-width: 1080px) {
  .ladder__steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; flex-direction: initial; flex-wrap: initial; }
  .ladder__step { flex: 0 1 auto; min-width: 0; min-height: 0; }
}
@media (max-width: 600px) {
  .ladder { gap: 16px; }
  .ladder__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex-direction: initial; flex-wrap: initial; }
  .ladder__step {
    display: grid; grid-template-columns: auto 1fr;
    grid-template-areas: "idx meta" "bars meta";
    align-items: center; column-gap: 10px; row-gap: 6px;
    flex: 0 1 auto; min-width: 0; min-height: 0;
    padding: 12px 13px; border-radius: 12px; position: relative; overflow: hidden;
  }
  .ladder__step:hover { transform: none; }
  .ladder__step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background 0.25s var(--ease); }
  .ladder__step.is-active::before { background: var(--blue); }
  .ladder__step.is-active.is-top::before { background: var(--red); }
  .ladder__step.is-active.is-top { box-shadow: 0 0 0 1px var(--red-line); }
  .ladder__idx { grid-area: idx; font-size: 0.72rem; letter-spacing: 0.04em; }
  .ladder__meta { grid-area: meta; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; width: 100%; }
  .ladder__name { font-size: 0.98rem; }
  .ladder__price { font-size: 0.72rem; }
  .ladder__bars { grid-area: bars; flex-direction: row; align-items: flex-end; width: auto; height: 12px; gap: 3px; }
  .ladder__bars i { width: 3px; height: 100%; }
  .ladder__bars i:nth-child(1) { height: 45%; }
  .ladder__bars i:nth-child(2) { height: 72%; }
  .ladder__bars i:nth-child(3) { height: 100%; }
  .ladder__panel { min-height: 0; }
  .zpanel__body { padding: 20px 18px 22px; }
  .zpanel__photo { min-height: 0; height: 168px; }
  .zpanel__name { font-size: 1.5rem; }
  .zpanel__blurb { margin: 8px 0 18px; max-width: none; }
  .zpanel__specs { grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 18px; }
  .zspec__v { font-size: 0.9rem; }
  .zmeter { gap: 12px; }
  .zmeter__row { grid-template-columns: 78px 1fr; gap: 12px; }
  .zmeter__track { height: 8px; }
  .zmeter__fill::after { width: 12px; height: 12px; }
}
@media (max-width: 400px) {
  .zpanel__specs { grid-template-columns: 1fr; gap: 11px; }
}

/* ============================================================
   REDUCED MOTION - collapse all motion to static
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero__poster { animation: none !important; transform: scale(1.04); }
  .hero__vid { display: none !important; }
  .hero__scan { animation: none !important; }
  .gmar__track { animation: none !important; }
  .gmar__viewport { overflow-x: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__anim { opacity: 1; transform: none; animation: none !important; }
}
