/* =====================================================================
   БГ Гольф — styles.css
   Чистая сборка: основной CSS + overrides, мёртвый Tailwind/shaduk-код удалён.
   Только те классы, что реально используются в HTML.
   ===================================================================== */

/* ---------- Reset (минимальный, вместо Tailwind base) ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* ---------- Переменные темы ---------- */
:root {
  --bg-green: #02100a;
  --bg-green-light: #0a2417;
  --gold: #d4af7a;
  --gold-bright: #f1ddae;
  --text-white: #f4f4f4;
  --text-gray: #8a9c92;
  --text-subtle: #6b7872;
  --glass-bg: #ffffff0a;
  --glass-bg-hover: #ffffff12;
  --glass-border: #ffffff1a;
  --glass-border-strong: #ffffff29;
  --glass-shadow: 0 8px 32px 0 #0000005e;
  --glass-highlight: inset 0 1px 1px 0 #ffffff1a;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 100px;
  --hero-side-gap: clamp(1.5rem, 5vw, 4rem);
  --font-inter: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-unbounded: "Unbounded", "Inter", -apple-system, sans-serif;
  --font-display: var(--font-inter);
  --font-text: var(--font-inter);
}

/* ---------- База ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-green);
}
body {
  color: var(--text-white);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-green);
  background-image: radial-gradient(circle, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  overflow-wrap: break-word;
  font-weight: 700;
  line-height: 1.05;
}
h2, h3 {
  text-shadow: 0 0 12px rgba(212, 175, 122, 0.05);
  transition: text-shadow .4s ease;
}
h2:hover, h3:hover {
  text-shadow: 0 0 20px rgba(212, 175, 122, 0.15);
}
h1 { font-size: clamp(3rem, 8vw, 7.5rem); font-weight: 800; }
h2 { font-size: clamp(2.75rem, 5.5vw, 5.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.4vw, 1.4rem); }
p  { color: var(--text-gray); font-size: clamp(1rem, 1.1vw, 1.15rem); font-weight: 300; line-height: 1.65; }
.lead {
  color: var(--text-gray);
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 300;
  line-height: 1.65;
}
.accent { color: var(--gold); }
.text-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
::selection { color: var(--text-white); background: #d4b8964d; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-green); }
::-webkit-scrollbar-thumb { border: 2px solid var(--bg-green); background: #d4b8964d; border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: #d4b89680; }

/* ---------- Декоративный фон ---------- */
.corner-smudges {
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 5%, #d4af7a26 0%, transparent 25%),
    radial-gradient(circle at 85% 90%, #0a2417cc 0%, transparent 35%),
    radial-gradient(circle at 90% 10%, #d4af7a14 0%, transparent 20%);
  position: fixed;
  inset: 0;
}
.bg-effects { z-index: -2; pointer-events: none; position: fixed; inset: 0; overflow: hidden; }
.smoke-blob { filter: blur(120px); opacity: .5; will-change: transform; border-radius: 50%; position: absolute; }
.blob-1 {
  background: var(--bg-green-light);
  width: 60vw; height: 60vw;
  animation: 20s ease-in-out infinite alternate smokeFloat1;
  top: -20%; left: -10%;
}
.blob-2 {
  background: #d4af7a33;
  width: 50vw; height: 50vw;
  animation: 25s ease-in-out infinite alternate smokeFloat2;
  bottom: -20%; right: -10%;
}
@keyframes smokeFloat1 { 0% { transform: translate(0) scale(1); } to { transform: translate(10vw, 10vh) scale(1.2); } }
@keyframes smokeFloat2 { 0% { transform: translate(0) scale(1.1); } to { transform: translate(-10vw, -5vh) scale(.9); } }
#particles-canvas { z-index: 0; pointer-events: none; position: fixed; inset: 0; }

/* ---------- Reveal-анимации ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ---------- Layout ---------- */
.container { z-index: 2; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 5vw; position: relative; }
section { z-index: 2; padding: 12vh 0; scroll-margin-top: 80px; position: relative; }

/* ---------- Навигация ---------- */
.top-nav {
  z-index: 1000;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  width: 90%;
  max-width: 1440px;
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  background: #02100a99;
  border-radius: 100px;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.75rem;
  display: flex;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%);
}
.nav-logo-link { align-items: center; display: flex; }
.nav-logo-link img { width: auto; height: 38px; }
.nav-links { gap: 1.5rem; list-style: none; display: flex; }
.nav-links a {
  color: var(--text-gray);
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { color: var(--gold-bright); opacity: 1; }
.nav-right { align-items: center; gap: 1.5rem; display: flex; }
.nav-cta {
  background: var(--gold);
  color: var(--bg-green);
  border-radius: 100px;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 15px #d4af7a4d;
}
.nav-cta:hover { background: var(--gold-bright); transform: scale(1.05); }
.burger {
  z-index: 1001;
  flex-direction: column;
  gap: 5px;
  display: none;
}
.burger span {
  background: var(--text-white);
  border-radius: 2px;
  width: 25px;
  height: 2px;
  transition: all .3s;
}
.burger.active span:first-child { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero (общий) ---------- */
header {
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  z-index: 0;
  filter: brightness(.8);
  background-image: url("https://bginterior.ru/golf/img/p21.jpg");
  background-position: 50%;
  background-size: cover;
  position: absolute;
  inset: 0;
}
/* Видео-фон главной (вместо .hero-bg). Картинка-постер = прелоадер */
.hero-video {
  z-index: 0;
  filter: brightness(.8);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* По умолчанию: десктоп виден, мобайл скрыт */
.hero-video--mobile { display: none; }
@media (max-width: 768px) {
  .hero-video--desktop { display: none; }
  .hero-video--mobile { display: block; }
}
.hero-overlay {
  z-index: 1;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(2, 16, 10, 0.15) 0%, rgba(2, 16, 10, 0.45) 100%),
    linear-gradient(180deg, rgba(2, 16, 10, 0.35) 0%, rgba(2, 16, 10, 0.1) 30%, rgba(2, 16, 10, 0.1) 60%, rgba(2, 16, 10, 0.5) 100%);
  position: absolute;
  inset: 0;
}
/* Подсказка «Листайте вниз» — центр снизу на всех hero */
header#hero::before,
.sub-hero::before {
  content: "↓  Листайте вниз";
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--text-white);
  opacity: 0.8;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  animation: scrollHintBounce 2.2s ease-in-out infinite;
}
@keyframes scrollHintBounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ---------- Hero — угловая раскладка (десктоп) ---------- */
.hero-corners {
  z-index: 2;
  pointer-events: none;
  position: absolute;
  top: clamp(7rem, 12vh, 8.5rem);
  bottom: clamp(1.5rem, 5vw, 4rem);
  left: 0;
  right: 0;
  max-width: 1800px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  box-sizing: border-box;
}
.hero-corner { pointer-events: auto; position: absolute; }
.hero-corner--center { display: none !important; }
.hero-corner--tl {
  top: 0;
  left: var(--hero-side-gap);
  max-width: 360px;
  padding: 0.75rem 1rem;
  background: rgba(2, 16, 10, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-corner--tr { top: 0; right: var(--hero-side-gap); }
.hero-corner--bl { bottom: 0; top: auto; left: var(--hero-side-gap); max-width: 640px; }
.hero-corner--br { bottom: 0; top: auto; right: var(--hero-side-gap); }
.hero-micro {
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-size: .78rem;
  font-weight: 500;
  display: inline-flex;
}
.hero-micro::before { content: ""; background: var(--gold); width: 2rem; height: 1px; }
.hero-corner-text {
  color: var(--text-white);
  opacity: 1;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
  max-width: 320px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.hero-socials { gap: 0.4rem; display: flex; }
.hero-socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 122, 0.1);
  border: 1px solid rgba(212, 175, 122, 0.3);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-socials a:hover {
  background: var(--gold);
  color: var(--bg-green);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.hero-socials a svg { width: 18px; height: 18px; transition: color 0.25s ease; }
/* Тултипы соц-иконок */
.hero-socials a[data-tooltip] { position: relative; }
.hero-socials a[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(2, 16, 10, 0.95);
  color: var(--text-white);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}
.hero-socials a[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hero-title {
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.hero-meta {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  align-items: center;
  gap: .6rem;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.95;
  display: inline-flex;
}
.hero-meta::before { content: ""; background: var(--gold); width: 2rem; height: 1px; }
.hero-actions {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
  display: flex;
}
.hero-actions .btn-yclients,
.hero-actions .btn-outline { text-align: center; justify-content: center; margin-top: 0; }
.hero-actions .btn-yclients { padding: 1.35rem 2.6rem; font-size: 1.35rem; min-width: 260px; }
.hero-actions .btn-outline  { padding: 1.05rem 1.8rem; font-size: 1.15rem; min-width: 180px; }
.hero-mobile { display: none; }

/* ---------- Sub-hero (внутренние страницы) ---------- */
.sub-hero { display: flex; align-items: center; }
.sub-hero .container { padding-top: 4vh; padding-bottom: 4vh; }
.sub-hero .hero-bg { filter: brightness(0.8); }
/* Тинт на hero внутренних страниц — как на главной */
.sub-hero .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(2, 16, 10, 0.15) 0%, rgba(2, 16, 10, 0.45) 100%),
    linear-gradient(180deg, rgba(2, 16, 10, 0.35) 0%, rgba(2, 16, 10, 0.1) 30%, rgba(2, 16, 10, 0.1) 60%, rgba(2, 16, 10, 0.5) 100%);
  pointer-events: none;
}
.sub-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(2, 16, 10, 0) 0%, var(--bg-green) 100%);
  z-index: 1;
  pointer-events: none;
}
.sub-hero .hero-micro { font-size: 0.74rem; letter-spacing: 0.16em; opacity: 0.95; }
.sub-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  max-width: 18ch;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}
.sub-hero h1 .text-gold { white-space: normal; display: inline; }
.sub-hero .hero-card {
  max-width: 640px;
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: rgba(2, 16, 10, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.sub-hero .hero-card p { margin: 0; color: var(--text-white); font-size: 1rem; line-height: 1.65; font-weight: 300; }
.sub-hero .hero-stats { max-width: 780px; margin-top: 2rem; padding-top: 1.5rem; gap: clamp(1.5rem, 4vw, 3rem); }
.sub-hero .hero-stat__num { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.sub-hero .hero-stat__label { font-size: 0.74rem; letter-spacing: 0.06em; color: var(--text-white); }
.sub-hero .hero-meta { display: none !important; }

/* ---------- Glass-карточки ---------- */
.glass-pattern {
  isolation: isolate;
  background-color: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}
.glass-pattern::before {
  content: "";
  z-index: -1;
  filter: blur(5px);
  opacity: .6;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23d4af7a' stroke-width='1.5' opacity='0.5'%3E%3Cpath d='M0,200 C100,100 200,300 300,200 C350,150 400,250 400,200'/%3E%3Cpath d='M0,240 C100,140 200,340 300,240 C350,190 400,290 400,240'/%3E%3Cpath d='M0,160 C100,60 200,260 300,160 C350,110 400,210 400,160'/%3E%3Cpath d='M0,280 C100,180 200,380 300,280 C350,230 400,330 400,280'/%3E%3Cpath d='M0,120 C100,20 200,220 300,120 C350,70 400,170 400,120'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  position: absolute;
  inset: 0;
}
.glass-pattern > * { z-index: 1; position: relative; }

/* ---------- About ---------- */
.about-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 5vw; display: grid; }
.about-h2 { font-size: clamp(2.75rem, 5.5vw, 5.5rem); font-weight: 700; }
.about-features { flex-wrap: wrap; gap: 1rem; margin-top: 3rem; display: flex; }
.feature-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1rem;
  display: flex;
}
.feature-item svg { width: 20px; height: 20px; color: var(--gold); }
.feature-item span { color: var(--text-white); font-size: .85rem; font-weight: 500; }

/* Переопределения для секции #about */
#about { padding-top: 10vh; }
#about .about-grid { align-items: center; gap: clamp(2rem, 5vw, 5rem); }
#about .about-h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); line-height: 1.02; margin: 0; }
#about .about-features { margin-top: 1.75rem; gap: 0.6rem; }
#about .feature-item { padding: 0.45rem 0.95rem; font-size: 0.82rem; letter-spacing: 0.02em; }
#about .feature-item svg { width: 17px; height: 17px; }
#about .lead { margin-top: 1.5rem; font-size: 1rem; line-height: 1.7; color: var(--text-white); opacity: 0.85; }
#about .lead strong { color: var(--gold-bright); }
#about .btn-outline { margin-top: 1.75rem; }
#about .media { aspect-ratio: 1 / 1; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--glass-border); }
#about .media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.95); }

/* ---------- Кнопки ---------- */
.btn-outline {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-white);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  align-items: center;
  gap: .5rem;
  margin-top: 2.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all .3s;
  display: inline-flex;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); transform: scale(1.02); }
.btn-outline svg { width: 16px; height: 16px; transition: transform .3s; }
.btn-outline:hover svg { transform: translate(4px); }

/* Компактная кнопка-ссылка (карта, маршрут) — иконка слева в одну строку */
.btn-link {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-white);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  align-items: center;
  gap: .45rem;
  padding: 0.55rem 1.1rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  flex-wrap: nowrap;
  transition: all .3s;
  display: inline-flex;
  max-width: max-content;
}
.btn-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-link:hover { border-color: var(--gold); color: var(--gold-bright); transform: scale(1.02); }
.btn-yclients {
  background: var(--gold);
  color: var(--bg-green);
  font-family: var(--font-text);
  border: 1px solid #fff3;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: 2.5rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  display: inline-flex;
  box-shadow: 0 6px 20px rgba(212, 175, 122, 0.35);
}
.btn-yclients:hover { background: var(--gold-bright); transform: scale(1.03); box-shadow: 0 8px 25px #d4af7a80; }
/* Рубиновая кнопка «Забронировать» в hero */
.btn-ruby {
  background: #9b1b30;
  color: #ffffff;
  border-color: #9b1b30;
  box-shadow: 0 6px 20px rgba(155, 27, 48, 0.4);
}
.btn-ruby:hover { background: #b3213a; border-color: #b3213a; color: #ffffff; box-shadow: 0 8px 25px rgba(155, 27, 48, 0.55); }
.btn-yclients svg { width: 18px; height: 18px; }
.btn-small { padding: 0.65rem 1.3rem; font-size: 0.88rem; }

/* ---------- Медиа-блок ---------- */
.media {
  aspect-ratio: 4/3;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  border-radius: 24px;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
}
.media:hover { transform: scale(1.02); }
.media img { object-fit: cover; filter: brightness(.95); width: 100%; height: 100%; transition: transform .7s cubic-bezier(.16,1,.3,1), filter .4s ease; display: block; }
.media:hover img { transform: scale(1.04); filter: brightness(1); }
.media--wide { aspect-ratio: 16/10; }
.media--tall { aspect-ratio: 3/4; }

/* ---------- Галерея ---------- */
.gallery-grid {
  grid-template-rows: minmax(250px,300px) minmax(250px,300px);
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  display: grid;
}
.gallery-item {
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  border-radius: 24px;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter .4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1); }
.gallery-item::after {
  content: "";
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(transparent 60%, #02100a8c);
  transition: opacity .4s;
  position: absolute;
  inset: 0;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item.large  { grid-area: span 2 / span 2; }
.gallery-item.medium { grid-area: span 1 / span 2; }
.gallery-item.small  { grid-area: span 1 / span 1; }
.gallery-caption { display: none !important; } /* подписи скрыты — фото говорят сами */

/* ---------- Lightbox ---------- */
.lightbox {
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  background: #02100ad9;
  justify-content: center;
  align-items: center;
  transition: opacity .4s;
  display: flex;
  position: fixed;
  inset: 0;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-img {
  border: 1px solid var(--glass-border-strong);
  object-fit: contain;
  border-radius: 24px;
  max-width: 90vw;
  max-height: 85vh;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  transform: scale(.9);
  box-shadow: 0 20px 50px #00000080;
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close {
  border: 1px solid var(--glass-border);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  background: #00000080;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  transition: all .2s;
  display: flex;
  position: absolute;
  top: 30px;
  right: 30px;
}
.lightbox-close:hover { background: #fff3; transform: rotate(90deg); }

/* ---------- Newbies / Events-teaser ---------- */
.newbies-section { padding: 12vh 0; }
.newbies-content {
  justify-content: space-between;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
}
.newbies-content h2 { max-width: 50%; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; margin: 0; }
.newbies-content p { color: var(--text-white); opacity: 0.85; font-size: 1rem; line-height: 1.65; font-weight: 300; margin: 0 0 1.5rem; }

/* ---------- Схема клуба (bgg-map) ---------- */
.bgg-plan-section { padding: 8vh 0; }
.bgg-map-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--font-text, 'Inter', system-ui, sans-serif);
  background: transparent;
  aspect-ratio: 3 / 2;
}
.bgg-map-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; container-type: inline-size; }
.bgg-zone {
  position: absolute;
  border-radius: 1.33cqi;
  background: rgba(15, 23, 16, 0.4);
  border: 1px solid rgba(120, 130, 110, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 1cqi;
  transition: all 0.3s ease;
  cursor: pointer;
}
.bgg-zone:hover, .bgg-zone:active {
  background: rgba(30, 42, 33, 0.6);
  border-color: rgba(230, 199, 133, 0.8);
  box-shadow: 0 0 3cqi rgba(230, 199, 133, 0.15);
  z-index: 2;
}
/* Залы — стекло + волна как в «Турниры и корпоративы», но с родным радиусом ячеек */
.bgg-zone--hall {
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  overflow: hidden;
}
.bgg-zone--hall::before {
  content: "";
  z-index: -1;
  filter: blur(5px);
  opacity: .6;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23d4af7a' stroke-width='1.5' opacity='0.5'%3E%3Cpath d='M0,200 C100,100 200,300 300,200 C350,150 400,250 400,200'/%3E%3Cpath d='M0,240 C100,140 200,340 300,240 C350,190 400,290 400,240'/%3E%3Cpath d='M0,160 C100,60 200,260 300,160 C350,110 400,210 400,160'/%3E%3Cpath d='M0,280 C100,180 200,380 300,280 C350,230 400,330 400,280'/%3E%3Cpath d='M0,120 C100,20 200,220 300,120 C350,70 400,170 400,120'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  position: absolute;
  inset: 0;
}
.bgg-zone--hall:hover, .bgg-zone--hall:active {
  border-color: rgba(230, 199, 133, 0.95);
  box-shadow: 0 12px 40px rgba(212, 175, 122, 0.2), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
}
/* Сервисные зоны — без паттерна, тёмный фон */
.bgg-zone--svc { background: rgba(10, 36, 23, 0.5); border-color: rgba(120, 130, 110, 0.35); }
/* Вход — без рамки, без фона, без попапа (просто текст) */
.bgg-zone--entry {
  background: transparent;
  border: none;
  cursor: default;
  pointer-events: none;
}
.bgg-zone--entry .bgg-zone-title { color: rgba(230, 199, 133, 0.6); font-size: 1.2cqi; }
.bgg-zone-noborder { border: none !important; }
.bgg-content { display: flex; flex-direction: column; align-items: center; gap: 0.5cqi; position: relative; z-index: 1; }
.bgg-icon { color: #e6c785; width: 2.66cqi; height: 2.66cqi; transition: color 0.3s ease; margin-bottom: 0.5cqi; }
.bgg-zone:hover .bgg-icon { color: #ffffff; }
.bgg-zone-title { color: #e6c785; font-size: 2.2cqi; font-weight: 600; transition: color 0.3s ease; line-height: 1.2; }
.bgg-zone:hover .bgg-zone-title { color: #ffffff; }
.bgg-zone-sub { color: #829184; font-size: 1.3cqi; font-weight: 400; line-height: 1.3; }

/* ---------- Попап схемы клуба ---------- */
.zone-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 16, 10, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  transition: opacity 0.25s ease;
  display: flex;
}
.zone-popup-overlay.active { opacity: 1; pointer-events: auto; }
.zone-popup {
  background: rgba(10, 24, 17, 0.96);
  border: 1px solid rgba(212, 175, 122, 0.35);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.zone-popup-overlay.active .zone-popup { transform: scale(1); }
.zone-popup__tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(212, 175, 122, 0.12);
  border: 1px solid rgba(212, 175, 122, 0.3);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.85rem;
}
.zone-popup__title { font-size: 1.5rem; font-weight: 700; color: var(--text-white); margin: 0 0 0.75rem; line-height: 1.15; }
.zone-popup__title .accent { color: #e6c785; }
.zone-popup__text { color: var(--text-gray); font-size: 0.95rem; line-height: 1.65; font-weight: 300; margin: 0; }
.zone-popup__btn { margin-top: 1.5rem; margin-bottom: 0; display: none; }
.zone-popup__btn.show { display: inline-flex; }
.zone-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.zone-popup__close:hover { background: rgba(212,175,122,0.2); border-color: var(--gold); }

/* ---------- Pricing ---------- */
.pricing-wrapper { grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; display: grid; }
.pricing-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  border-radius: 24px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
}
.pricing-card.vip { border-color: #d4af7a4d; }
.pricing-category {
  color: var(--text-white);
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
}
.pricing-category span { font-family: var(--font-text); color: var(--gold); font-size: .85rem; font-weight: 400; }
.price-row {
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  transition: transform .2s;
  display: grid;
}
.price-row:hover { transform: translate(5px); }
.price-row:not(:last-child) { border-bottom: 1px solid #ffffff0d; }
.price-row h3 { color: var(--text-white); font-size: 0.98rem; font-weight: 400; font-family: var(--font-text); letter-spacing: 0; }
.price-val { font-family: var(--font-text); color: var(--gold); text-align: right; font-size: 1.05rem; font-weight: 600; }
.price-header { color: var(--text-gray); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 1rem; font-size: .8rem; }
.price-header div:nth-child(2),
.price-header div:nth-child(3) { text-align: right; }
.pricing-cta-wrapper { text-align: center; margin-top: 3rem; }
.pricing-accord { grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; display: grid; align-items: start; }
details.acc {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
}
details.acc summary {
  cursor: pointer;
  color: var(--text-white);
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
  font-weight: 500;
  list-style: none;
  display: flex;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 300; line-height: 1; transition: transform .3s; }
details.acc[open] summary::after { content: "−"; }
details.acc[open] summary { border-bottom: 1px solid var(--glass-border); margin-bottom: .5rem; padding-bottom: .75rem; }
.acc-row { justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; display: flex; }
.acc-row:not(:last-child) { border-bottom: 1px solid #ffffff0a; }
.acc-row h4 { color: var(--text-gray); font-size: .92rem; font-weight: 400; font-family: var(--font-text); }
.acc-row h4 small { color: var(--text-subtle); margin-top: .15rem; font-size: .78rem; display: block; }
.acc-row .price-val { font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 2.5rem auto 0; }
.faq__item { border-bottom: 1px solid var(--glass-border); }
.faq__item:first-child { border-top: 1px solid var(--glass-border); }
.faq__item summary {
  cursor: pointer;
  font-family: var(--font-text);
  color: var(--text-white);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
  display: flex;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--gold); flex-shrink: 0; font-size: 1.4rem; font-weight: 300; transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--text-gray); padding: 0 2.5rem 1.4rem 0; font-size: .98rem; line-height: 1.7; }

/* ---------- Отзывы ---------- */
.reviews { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; display: grid; }
.review-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  display: flex;
  position: relative;
}
.review-card::before {
  content: "\"";
  font-size: 5rem;
  font-family: var(--font-display);
  color: var(--gold);
  opacity: .18;
  line-height: 1;
  position: absolute;
  top: -10px;
  left: 18px;
}
.review__stars { color: var(--gold); gap: .15rem; display: flex; }
.review__stars svg { width: 16px; height: 16px; }
.review__text { color: var(--text-white); opacity: 0.88; z-index: 1; flex: 1; font-size: 0.98rem; font-weight: 300; line-height: 1.6; position: relative; }
.review__meta { border-top: 1px solid var(--glass-border); justify-content: space-between; align-items: center; padding-top: .8rem; display: flex; flex-direction: column; gap: 0.15rem; }
.review__author { color: var(--text-white); font-size: 0.95rem; font-weight: 600; }
.review__source { color: var(--gold); text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.8rem; }

/* ---------- CTA ---------- */
.cta-section { text-align: center; padding: 12vh 0; }
.cta-card { border-radius: 32px; place-items: center; gap: 1.25rem; padding: clamp(3rem, 6vw, 5rem) 2rem; display: grid; }
.cta-card .about-h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin: 0; }
.cta-card p { max-width: 48ch; margin: 0 auto; color: var(--text-white); opacity: 0.85; font-size: 1rem; }
.cta-actions { flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: .5rem; display: flex; }

/* ---------- Trainers / cards ---------- */
.trainers-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; display: grid; }
.trainer-card {
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  flex-direction: column;
  transition: transform .3s, border-color .3s;
  display: flex;
}
.trainer-card:hover { border-color: #d4af7a66; transform: translateY(-4px); }
.trainer-tag {
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border-radius: var(--r-pill);
  background: rgba(212, 175, 122, 0.12);
  border: 1px solid rgba(212, 175, 122, 0.3);
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-block;
}
.trainer-name { font-family: var(--font-display); color: var(--text-white); font-size: 1.4rem; font-weight: 700; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
.trainer-desc { color: var(--text-white); opacity: 0.78; flex-grow: 1; margin: 0 0 1.75rem; font-size: 0.95rem; font-weight: 300; line-height: 1.65; }
.trainer-card .btn-yclients { align-self: flex-start; }
.philosophy-card { border-radius: var(--r-xl); text-align: center; max-width: 860px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4.5rem); }
.philosophy-card h2 { margin-bottom: 2rem; }
.philosophy-card p { color: var(--text-gray); margin-top: 1.5rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 300; line-height: 1.7; }

/* ---------- Hero stats (sub-hero) ---------- */
.hero-stats {
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 760px;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  display: flex;
}
.hero-stat { flex-direction: column; gap: .25rem; display: flex; }
.hero-stat__num {
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1;
}
.hero-stat__label { color: var(--text-gray); letter-spacing: .05em; text-transform: uppercase; font-size: .8rem; font-weight: 400; }

/* ---------- Видео ---------- */
.how-video { border-radius: var(--r-lg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); overflow: hidden; }
.how-video iframe { width: 100%; height: clamp(320px, 52vw, 640px); display: block; }

/* ---------- Steps (как это работает / услуги) ---------- */
.steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; display: grid; }
.step-card { border-radius: var(--r-lg); padding: 2rem; position: relative; overflow: hidden; }
.step-num {
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 0.75rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}
.step-title { font-family: var(--font-display); color: var(--text-white); margin: 0 0 0.6rem; font-size: 1.25rem; font-weight: 700; }
.step-desc { color: var(--text-white); opacity: 0.78; font-size: 0.92rem; font-weight: 300; line-height: 1.6; margin: 0; }

/* ---------- Formats (мероприятия) ---------- */
.formats-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; display: grid; }
.format-card {
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  flex-direction: column;
  transition: transform .3s, border-color .3s;
  display: flex;
}
.format-card:hover { border-color: #d4af7a66; transform: translateY(-4px); }
.format-title { font-family: var(--font-display); color: var(--text-white); margin: 0 0 0.5rem; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.format-desc { color: var(--text-white); opacity: 0.78; flex-grow: 1; margin: 0; font-size: 0.95rem; font-weight: 300; line-height: 1.6; }
.format-price {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.5rem 0 1.25rem;
  line-height: 1.2;
}
.format-card .btn-yclients { align-self: flex-start; }

/* ---------- Статичные страницы (контакты, оферта) ---------- */
.page-section { padding-top: calc(10vh + 60px); padding-bottom: 10vh; }
.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 3rem;
}
.page-title .text-gold { display: block; }

/* Карточка с рамкой (как glass, но без паттерна) */
.info-card {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.info-card h3 {
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}
.info-card p, .info-card a {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  display: block;
  margin-bottom: 0.4rem;
  transition: color .3s;
}
.info-card a:hover { color: var(--gold-bright); }
/* Кнопка-карта в карточке контактов не наследует block от .info-card a */
.info-card .btn-link {
  display: inline-flex !important;
  margin-bottom: 0;
  font-size: 0.82rem;
  font-weight: 500;
}

/* Сетка контактов */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contacts-grid .full { grid-column: 1 / -1; }

/* Карта */
.contacts-map {
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 2rem;
}
.contacts-map iframe { width: 100%; height: clamp(360px, 60vh, 620px); display: block; filter: grayscale(0.3) brightness(0.9); }

/* Соцсети */
.contacts-socials { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.contacts-socials a {
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-border);
  background: rgba(212, 175, 122, 0.08);
  color: var(--gold-bright);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .3s;
}
.contacts-socials a:hover { background: var(--gold); color: var(--bg-green); border-color: var(--gold); }

/* Юр. реквизиты */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  margin-top: 1.5rem;
}
.legal-row { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.85rem 0; border-bottom: 1px solid var(--glass-border); }
.legal-row dt { color: var(--text-gray); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.legal-row dd { color: var(--text-white); font-size: 1rem; font-weight: 400; margin: 0; }

/* Текст оферты (длинный документ) */
.offer-doc { max-width: 820px; }
.offer-doc h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}
.offer-doc h2:first-child { margin-top: 0; }
.offer-doc h3 {
  font-family: var(--font-text);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin: 1.5rem 0 0.75rem;
}
.offer-doc p { font-size: 0.98rem; line-height: 1.75; margin-bottom: 0.85rem; color: var(--text-white); opacity: 0.85; }
.offer-doc ol, .offer-doc ul { margin: 0 0 1rem 1.25rem; color: var(--text-white); opacity: 0.85; }
.offer-doc li { font-size: 0.98rem; line-height: 1.75; margin-bottom: 0.4rem; font-weight: 300; }
.offer-doc .offer-meta { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 2rem; }

@media (max-width: 768px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .page-section { padding-top: calc(11vh + 40px); }
}

/* ---------- Cookie consent ---------- */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  width: 640px;
  max-width: calc(100% - 40px);
  z-index: 9998;
  background: rgba(2, 16, 10, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-consent.active { transform: translate(-50%, 0); opacity: 1; }
.cookie-content {
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cookie-content h4 { display: none; }
.cookie-content p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  color: var(--text-gray);
  font-weight: 300;
  flex: 1;
}
.cookie-content p a { color: var(--gold-bright); text-decoration: underline; }
.cookie-btn {
  width: auto;
  flex-shrink: 0;
  padding: 0.7rem 1.75rem;
  background: var(--gold);
  color: var(--bg-green);
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(212, 175, 122, 0.3);
}
.cookie-btn:hover { background: var(--gold-bright); transform: scale(1.02); }

@media (max-width: 768px) {
  .cookie-consent { bottom: 10px; width: calc(100% - 20px); max-width: none; }
}

/* ---------- Footer ---------- */
footer { z-index: 2; padding: 10vh 0 0; position: relative; }
footer::before {
  content: "";
  background: linear-gradient(90deg, transparent, #d4b89680, transparent);
  height: 1px;
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
}
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 5vh; display: grid; }
.footer-item h4 {
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--font-text);
  margin-bottom: 1rem;
}
.footer-item p, .footer-item a {
  color: var(--text-white);
  word-break: break-word;
  margin-bottom: .5rem;
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.6;
  transition: color .3s;
  display: block;
}
/* Кнопка-карта в футере не наследует block от .footer-item a */
.footer-item .btn-link {
  display: inline-flex !important;
  word-break: normal;
  margin-bottom: 0;
}
.footer-item a:hover { color: var(--gold-bright); }
.footer__socials { flex-wrap: wrap; gap: 1rem; margin: .85rem 0; display: flex; }
.footer__socials a { color: var(--gold-bright); margin: 0; font-size: .85rem; }
.footer__map { color: var(--gold); align-items: center; gap: .4rem; margin-top: 1rem; font-size: .85rem; display: inline-flex; }
.footer__map svg { width: 16px; height: 16px; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--glass-border);
  color: var(--text-subtle);
  letter-spacing: .02em;
  padding: 2rem 0;
  font-size: .82rem;
}
.footer-meta-note {
  color: var(--text-subtle);
  opacity: 0.7;
  font-size: 0.7rem;
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto 1rem;
  text-align: center;
  font-weight: 300;
}

/* =====================================================================
   Адаптив
   ===================================================================== */

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  #about .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  #about .media { aspect-ratio: 16 / 11; max-width: 100%; }
  .newbies-content { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .newbies-content h2 { max-width: 100%; }
  .gallery-grid { grid-template-rows: 250px 250px; grid-template-columns: repeat(2, 1fr); }
  .gallery-item.large, .gallery-item.medium { grid-area: span 1 / span 2; }
  .gallery-item.small { grid-area: span 1 / span 1; }
  .formats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Подсказку «Листайте вниз» на мобиле не показываем */
  header#hero::before,
  .sub-hero::before { display: none !important; }

  section { padding: 6vh 0; }
  /* Уменьшаем гэп между «Симуляторы» и «Галерея» на мобиле вдвое */
  #about { padding-bottom: 3vh; }
  #gallery { padding-top: 3vh; }
  /* Боковые отступы: минимум 1.5rem (~24px), но не меньше 5% ширины */
  .container,
  .hero-mobile,
  .top-nav { padding-left: max(1.5rem, 5%); padding-right: max(1.5rem, 5%); }
  .top-nav {
    border-radius: 20px;
    gap: 1rem;
    width: calc(100% - 20px);
    padding: .8rem 1.2rem;
    top: 10px;
  }
  .nav-right { gap: 1rem; }
  .nav-cta { padding: .5rem 1rem; font-size: .8rem; }
  .nav-logo-link img { height: 32px; }
  .nav-links {
    -webkit-backdrop-filter: blur(40px);
    z-index: 999;
    background: #02100af2;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    height: 100vh;
    transition: right .4s cubic-bezier(.16,1,.3,1);
    position: fixed;
    top: 0;
    right: -100%;
  }
  .nav-links.active { right: 0; }
  .nav-links a { color: var(--text-white); font-size: 1.6rem; font-weight: 500; }
  .burger { display: flex; }

  /* Hero mobile — контент внизу, выше адресной строки Safari (svh) */
  .hero-corners { display: none; }
  .hero-mobile {
    text-align: left;
    z-index: 2;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1.1rem;
    min-height: 100svh;
    padding: 0 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    position: relative;
  }
  .hero-mobile h1 { margin: 0; font-size: clamp(2rem, 9vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55); }
  .hero-mobile-text { max-width: 100%; color: var(--text-white); font-size: 0.95rem; font-weight: 300; line-height: 1.55; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
  .hero-mobile .hero-actions { flex-direction: column; align-items: stretch; gap: 0.6rem; width: 100%; max-width: 100%; margin-top: 0.6rem; }
  .hero-mobile .hero-actions .btn-yclients,
  .hero-mobile .hero-actions .btn-outline { width: 100%; min-width: 0; justify-content: center; margin-top: 0; padding: 0.85rem 1.5rem; font-size: 0.95rem; }

  header#hero, .sub-hero { min-height: 100vh; }
  .sub-hero { padding-top: 11vh; padding-bottom: 4vh; }
  .sub-hero .container { padding-top: 0; padding-bottom: 0; }
  .sub-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); max-width: 100%; }
  .sub-hero .hero-card { margin-top: 1.25rem; padding: 1rem 1.1rem; }
  .sub-hero .hero-card p { font-size: 0.92rem; }
  .sub-hero .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; margin-top: 1.5rem; }
  .sub-hero .hero-stat__num { font-size: 1.35rem; }
  .sub-hero .hero-stat__label { font-size: 0.68rem; }
  .sub-hero::after { height: 90px; }

  /* Схема клуба на мобиле — cqi не работает (container-type:normal), даём rem */
  .bgg-map-wrapper { max-width: 105%; }
  .bgg-map-container { container-type: normal; }
  .bgg-zone { border-radius: 10px; padding: 0.4rem; }
  .bgg-zone--entry .bgg-zone-title { font-size: 0.7rem; }
  .bgg-zone-title { font-size: 0.78rem; }
  .bgg-zone-sub { font-size: 0.62rem; }
  /* Попап во весь низ экрана на мобиле */
  .zone-popup { max-width: 100%; padding: 1.75rem 1.5rem; }
  .zone-popup__title { font-size: 1.3rem; }

  /* Сетки */
  .about-h2 { font-size: clamp(2rem, 8vw, 2.75rem); }
  /* «Атмосфера клуба» на мобиле скрыт — сразу идут картинки */
  #gallery .about-h2 { display: none; }
  #gallery .gallery-grid { margin-top: 0; }
  .trainers-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-wrapper, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pricing-accord, .reviews { grid-template-columns: 1fr; }
  .pricing-card { padding: 1.25rem; }
  /* На мобиле сохраняем 3 колонки, чтобы «Будни/Выходные» оставались над числами */
  .price-row { grid-template-columns: 1.4fr 1fr 1fr; gap: 0.4rem; padding: 0.85rem 0; align-items: baseline; }
  .price-header { display: grid; padding-bottom: 0.6rem; font-size: 0.65rem; letter-spacing: 0.04em; }
  .price-row h3 { font-size: 0.82rem; line-height: 1.2; }
  .price-val { text-align: right; font-size: 0.82rem; }
  .btn-yclients { text-align: center; width: 100%; padding: 1rem 1.5rem; }

  .gallery-grid { grid-template-rows: none !important; grid-auto-rows: 220px; grid-template-columns: 1fr; }
  .gallery-item.large, .gallery-item.medium, .gallery-item.small { grid-area: span 1 / span 1; }

  /* Newbies / CTA на мобиле */
  .newbies-content { flex-direction: column; text-align: left; align-items: flex-start; gap: 1.5rem; }
  .cta-card { padding: 2.5rem 1.25rem; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn-yclients,
  .cta-actions .btn-outline { width: 100%; justify-content: center; }

  .reviews { gap: 1rem; }

  .lightbox-close { width: 40px; height: 40px; top: 20px; right: 20px; }
  .faq__item p { padding-right: 1.5rem; }
}

@media (max-width: 380px) {
  .container { padding: 0 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .smoke-blob, #particles-canvas, .corner-smudges { animation: none !important; display: none !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}