/* =========================================================
   Balance Gold Live — дизайн-токены
   Меняйте цвета, шрифты и отступы здесь — они применятся ко всему сайту.
   ========================================================= */
:root {
  /* Цвета */
  --black: #0d0d0e;
  --graphite: #17171a;
  --graphite-2: #212125;
  --line-dark: #2e2e33;
  --white: #ffffff;
  --paper: #f6f4ef;          /* тёплый светлый фон для светлых секций */
  --line-light: #e4e0d6;
  --text: #1a1a1c;
  --text-muted: #5f5f66;     /* серый на светлом (контраст ≥ 4.5:1) */
  --text-muted-dark: #a6a6ad;/* серый на тёмном (контраст ≥ 4.5:1) */

  --gold: #c9a23a;           /* основной золотой — на тёмном фоне */
  --gold-light: #e8c766;
  --gold-dark: #9a7418;
  --gold-ink: #7d5e10;       /* золото для текста на белом (контраст ≥ 4.5:1) */
  --gold-grad: linear-gradient(135deg, #b8902b 0%, #e8c766 48%, #9a7418 100%);

  /* Шрифты */
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Размеры текста (адаптивные) */
  --fs-h1: clamp(2.4rem, 6vw + 1rem, 5.2rem);
  --fs-h2: clamp(1.9rem, 3vw + 1rem, 3rem);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: .875rem;

  /* Отступы */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 112px;
  --container: 1200px;
  --gutter: 16px;

  /* Формы */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-dark: 0 14px 40px rgba(0,0,0,.45);
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: .01em; text-transform: uppercase; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--black); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sp-8) 0; }
@media (min-width: 1024px) { .section { padding: var(--sp-9) 0; } }
.section--dark { background: var(--black); color: var(--white); }
.section--graphite { background: var(--graphite); color: var(--white); }
.section--paper { background: var(--paper); }

/* Плейсхолдер — квадратные скобки подсвечиваются, чтобы заглушки были видны */
.ph { color: var(--gold-ink); background: rgba(201,162,58,.12); border-radius: 4px; padding: 0 .25em; font-weight: 500; }
.section--dark .ph, .section--graphite .ph, .hero .ph, .site-footer .ph { color: var(--gold-light); background: rgba(232,199,102,.1); }

/* ---------- Заголовки секций ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .85rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-grad); }
.section--dark .eyebrow, .section--graphite .eyebrow { color: var(--gold); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); margin-bottom: var(--sp-7); }
.section-head h2 { font-size: var(--fs-h2); max-width: 16ch; }
.section-head p { max-width: 46ch; color: var(--text-muted); }
.section--dark .section-head p, .section--graphite .section-head p { color: var(--text-muted-dark); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold-grad); background-size: 160% 160%; color: var(--black); box-shadow: 0 6px 20px rgba(201,162,58,.28); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,162,58,.42); background-position: 100% 0; }
.btn--outline { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.btn--outline:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--graphite-2); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-light); color: var(--text); background: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,13,14,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,162,58,.18);
  color: var(--white);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 12px; }
.brand-text { font-family: var(--font-head); line-height: 1; text-transform: uppercase; }
.brand-text b { display: block; font-size: 1.15rem; letter-spacing: .06em; font-weight: 600; }
.brand-text small { display: block; font-size: .7rem; letter-spacing: .3em; color: var(--gold); margin-top: 4px; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; font-size: .92rem; text-decoration: none; color: rgba(255,255,255,.82); border-radius: 999px; transition: color .2s, background-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); }
.nav a[aria-current="page"] { background: rgba(201,162,58,.1); }
.header-cta { display: none; }
.burger { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-dark); background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 72px 0 0 0; z-index: 49; background: var(--black); color: var(--white);
  padding: var(--sp-5) var(--gutter) var(--sp-7); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu ul { list-style: none; margin: 0 0 var(--sp-6); padding: 0; }
.mobile-menu li a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--font-head); font-size: 1.4rem; text-transform: uppercase; text-decoration: none; letter-spacing: .04em; }
.mobile-menu li a[aria-current="page"] { color: var(--gold-light); }
.mobile-menu li a::after { content: "→"; color: var(--gold); }

@media (min-width: 1100px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .burger, .mobile-menu { display: none; }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative; color: var(--white); background: var(--black); overflow: hidden;
  min-height: calc(100svh - 72px); display: flex; align-items: center; padding: var(--sp-8) 0;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(201,162,58,.22), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(201,162,58,.10), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #121214, #0b0b0c);
}
.hero__photo-note {
  position: absolute; right: var(--gutter); bottom: var(--sp-5);
  font-size: .75rem; color: rgba(255,255,255,.45); border: 1px dashed rgba(255,255,255,.2); border-radius: 999px; padding: 6px 12px;
}
.hero__waves { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: min(720px, 90vw); opacity: .5; pointer-events: none; }
.hero .container { position: relative; display: grid; gap: var(--sp-7); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--text-muted-dark); border: 1px solid var(--line-dark); padding: 6px 14px 6px 8px; border-radius: 999px; margin-bottom: var(--sp-5); }
.hero__kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,58,.2); }
.hero h1 { font-size: var(--fs-h1); font-weight: 700; }
.hero h1 .line2 { display: block; }
.hero__slogan { margin-top: var(--sp-5); font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-6); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line-dark); }
.hero__facts div { min-width: 120px; }
.hero__facts b { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 500; }
.hero__facts span { font-size: .85rem; color: var(--text-muted-dark); }
.hero__logo-card { justify-self: center; position: relative; width: min(300px, 70vw); aspect-ratio: 1; }
.hero__logo-card img { width: 100%; height: 100%; border-radius: 22%; box-shadow: var(--shadow-dark), 0 0 0 1px rgba(201,162,58,.35), 0 0 80px rgba(201,162,58,.18); }
.hero__logo-card::before { content: ""; position: absolute; inset: -18px; border-radius: 26%; border: 1px solid rgba(201,162,58,.3); }
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.3fr .9fr; }
  .hero__logo-card { justify-self: end; }
}

/* ---------- Карточки услуг ---------- */
.grid { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--5 { grid-template-columns: repeat(6, 1fr); }
  .grid--5 > :nth-child(-n+3) { grid-column: span 2; }
  .grid--5 > :nth-child(n+4) { grid-column: span 3; }
}
.service {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5); background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius);
  text-decoration: none; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--black); color: var(--gold-light); margin-bottom: var(--sp-2); }
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-size: var(--fs-h3); }
.service p { color: var(--text-muted); font-size: .95rem; }
.service__more { margin-top: auto; padding-top: var(--sp-3); font-size: .9rem; font-weight: 600; color: var(--gold-ink); }

/* ---------- Тренажёры (превью) ---------- */
.equip { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .equip { grid-template-columns: 1fr 1.1fr; align-items: stretch; } }
.photo-ph {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px;
  background: linear-gradient(135deg, #2a2a2e, #1b1b1e); display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,.55); font-size: .9rem; padding: var(--sp-5);
}
.photo-ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px); }
.photo-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45)); }
.photo-ph span { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.photo-ph svg { width: 34px; height: 34px; color: var(--gold); opacity: .8; }
.photo-ph--light { background: linear-gradient(135deg, #e9e6df, #dcd8ce); color: var(--text-muted); }
.photo-ph--light::after { display: none; }
.muscle-list { display: grid; gap: var(--sp-2); }
@media (min-width: 560px) { .muscle-list { grid-template-columns: 1fr 1fr; } }
.muscle {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark); background: var(--graphite-2);
  transition: border-color .25s, transform .25s var(--ease);
}
.muscle:hover { border-color: rgba(201,162,58,.6); transform: translateX(3px); }
.muscle b { font-weight: 500; }
.muscle small { color: var(--text-muted-dark); font-size: .8rem; display: block; margin-top: 2px; }
.muscle__count { flex: none; font-family: var(--font-head); color: var(--black); background: var(--gold-grad); border-radius: 999px; min-width: 34px; height: 28px; display: grid; place-items: center; font-size: .9rem; padding: 0 8px; }
.equip__note { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* ---------- Тренеры ---------- */
.trainer { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line-light); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.trainer:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trainer .photo-ph { border-radius: 0; min-height: 0; aspect-ratio: 4 / 3; }
.trainer__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.trainer__tag { align-self: flex-start; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); border: 1px solid rgba(201,162,58,.45); border-radius: 999px; padding: 3px 10px; }
.trainer h3 { font-size: 1.35rem; margin-top: var(--sp-1); }
.trainer dl { margin: var(--sp-2) 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; }
.trainer dt { color: var(--text-muted); }
.trainer dd { margin: 0; text-align: right; }
.trainer__contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; padding-top: var(--sp-4); }
.contact-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--radius-sm); border: 1px solid var(--line-light); font-size: .75rem; text-decoration: none; color: var(--text); transition: border-color .2s, background-color .2s, color .2s; }
.contact-btn svg { width: 18px; height: 18px; color: var(--gold-ink); }
.contact-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.contact-btn:hover svg { color: var(--gold-light); }

/* ---------- Цены ---------- */
.price { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6) var(--sp-5); border-radius: var(--radius); background: var(--graphite-2); border: 1px solid var(--line-dark); }
.price h3 { font-size: 1.2rem; }
.price p { color: var(--text-muted-dark); font-size: .92rem; }
.price__value { font-family: var(--font-head); font-size: 2rem; margin: var(--sp-2) 0; }
.price__value small { font-family: var(--font-body); font-size: .85rem; color: var(--text-muted-dark); margin-left: 4px; }
.price ul { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.price li { display: flex; gap: 10px; }
.price li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: radial-gradient(circle, var(--gold) 0 3px, transparent 4px), rgba(201,162,58,.18); }
.price .btn { margin-top: auto; }
.price--popular { border: 1.5px solid transparent; background: linear-gradient(var(--graphite-2), var(--graphite-2)) padding-box, var(--gold-grad) border-box; box-shadow: 0 20px 50px rgba(201,162,58,.15); }
.price__badge { position: absolute; top: -13px; left: var(--sp-5); background: var(--gold-grad); color: var(--black); font-family: var(--font-head); letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; padding: 5px 12px; border-radius: 999px; }
@media (min-width: 1024px) { .price--popular { transform: translateY(-12px); } }
.price-note { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-4); color: var(--text-muted-dark); font-size: .92rem; }
.extras { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.extras span { border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 14px; color: var(--white); }

/* ---------- Отзывы ---------- */
.review { padding: var(--sp-6) var(--sp-5); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-light); display: flex; flex-direction: column; gap: var(--sp-4); }
.review__stars { color: var(--gold); letter-spacing: 3px; }
.review blockquote { margin: 0; font-size: 1.02rem; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: .9rem; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--paper); border: 1px dashed var(--line-light); }
.review__author small { display: block; color: var(--text-muted); }

/* ---------- Карта + форма ---------- */
.contact { display: grid; gap: var(--sp-6); }
@media (min-width: 960px) { .contact { grid-template-columns: 1.1fr 1fr; } }
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; border: 1px solid var(--line-dark); background: var(--graphite-2); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.contact-info { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
@media (min-width: 560px) { .contact-info { grid-template-columns: 1fr 1fr; } }
.contact-info div { padding: var(--sp-4); border-radius: var(--radius-sm); background: var(--graphite-2); border: 1px solid var(--line-dark); }
.contact-info small { display: block; color: var(--text-muted-dark); font-size: .8rem; margin-bottom: 2px; }

.form { background: var(--white); color: var(--text); border-radius: var(--radius); padding: var(--sp-6) var(--sp-5); display: grid; gap: var(--sp-4); align-content: start; }
@media (min-width: 640px) { .form { padding: var(--sp-7) var(--sp-6); } }
.form h3 { font-size: 1.6rem; }
.form > p { color: var(--text-muted); }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-light);
  font: inherit; color: var(--text); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,58,.2); }
.field.is-invalid input, .field.is-invalid select { border-color: #c0392b; }
.field__error { color: #b42318; font-size: .8rem; min-height: 1em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--text-muted); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--gold-dark); flex: none; }
.check a { color: var(--gold-ink); }
.check.is-invalid { color: #b42318; }
.form__success { display: none; padding: var(--sp-4); border-radius: var(--radius-sm); background: rgba(201,162,58,.12); border: 1px solid rgba(201,162,58,.45); color: var(--text); }
.form.is-sent .form__success { display: block; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--black); color: var(--white); padding: var(--sp-8) 0 var(--sp-6); border-top: 1px solid rgba(201,162,58,.2); }
.footer-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.site-footer h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-weight: 500; color: var(--gold); font-size: .9rem; margin: 0 0 var(--sp-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer p { color: var(--text-muted-dark); font-size: .92rem; }
.footer-brand img { width: 88px; height: 88px; border-radius: 20px; margin-bottom: var(--sp-4); }
.socials { display: flex; gap: 8px; margin-top: var(--sp-4); }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; font-size: .72rem; font-weight: 600; transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--gold); }
.footer-map { border-radius: var(--radius-sm); overflow: hidden; height: 170px; border: 1px solid var(--line-dark); position: relative; background: var(--graphite-2); }
.footer-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.5); }
.footer-bottom { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); font-size: .82rem; color: var(--text-muted-dark); }

/* ---------- Плавающая кнопка (мобильные) ---------- */
.fab { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 14px; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(13,13,14,.92); backdrop-filter: blur(10px); box-shadow: var(--shadow-dark); border: 1px solid rgba(201,162,58,.25); transition: transform .3s var(--ease); }
.fab .btn { min-height: 46px; padding: 0 12px; }
.fab.is-hidden { transform: translateY(140%); }
@media (min-width: 900px) { .fab { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 84px; } }

/* ---------- Заглушка страницы ---------- */
.stub { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.stub h1 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.stub p { color: var(--text-muted-dark); max-width: 50ch; margin: 0 auto var(--sp-6); }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* =========================================================
   Внутренние страницы
   ========================================================= */
.page-hero { position: relative; overflow: hidden; background: var(--black); color: var(--white); padding: var(--sp-8) 0 var(--sp-7); border-bottom: 1px solid rgba(201,162,58,.18); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 90% 0%, rgba(201,162,58,.2), transparent 60%), repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: var(--fs-h1); font-weight: 700; }
.page-hero p { margin-top: var(--sp-4); color: var(--text-muted-dark); max-width: 56ch; font-size: 1.08rem; }
.crumbs { font-size: .85rem; color: var(--text-muted-dark); margin-bottom: var(--sp-4); }
.crumbs a { text-decoration: none; color: var(--gold); }
.lead { font-size: 1.08rem; color: var(--text-muted); margin-top: var(--sp-3); }
.section--dark .lead, .section--graphite .lead { color: var(--text-muted-dark); }
.sub { font-family: var(--font-head); font-size: 1rem; letter-spacing: .1em; margin: var(--sp-5) 0 var(--sp-2); }
.checklist { list-style: none; padding: 0; margin: var(--sp-5) 0 var(--sp-6); display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; }
.checklist li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; color: var(--black); background: var(--gold-grad); margin-top: 1px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-3); margin: var(--sp-5) 0 0; }
.kv > div { padding: var(--sp-4); border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line-light); }
.kv small { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: 2px; }
.section--dark .kv > div, .section--graphite .kv > div { background: var(--graphite-2); border-color: var(--line-dark); }
.section--dark .kv small, .section--graphite .kv small { color: var(--text-muted-dark); }

/* О клубе */
.director { display: grid; gap: var(--sp-6); align-items: center; }
.director .photo-ph { aspect-ratio: 4 / 5; min-height: 0; }
.director h2 { font-size: var(--fs-h2); }
.director__role { color: var(--gold-ink); font-weight: 600; margin: var(--sp-2) 0 var(--sp-4); }
.director__text > p:last-child { font-size: 1.08rem; color: var(--text-muted); }
@media (min-width: 900px) { .director { grid-template-columns: .8fr 1.2fr; gap: var(--sp-8); } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); position: relative; }
.timeline__item { position: relative; padding: var(--sp-5); padding-left: 56px; border-radius: var(--radius); background: var(--graphite-2); border: 1px solid var(--line-dark); }
.timeline__item::before { content: ""; position: absolute; left: 22px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 0 5px rgba(201,162,58,.18); }
.timeline__year { display: block; font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 4px; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
}
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (min-width: 900px) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.number { padding: var(--sp-6) var(--sp-5); border-radius: var(--radius); border: 1px solid var(--line-light); background: var(--white); text-align: center; }
.number b { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; }
.number span { color: var(--text-muted); }

/* Тренеры: фильтр + модалка */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-6); }
.chip { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-light); background: var(--white); font: inherit; font-size: .92rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--gold-light); border-color: var(--black); }
.trainer[hidden] { display: none; }
.trainer__open { all: unset; cursor: pointer; }
.trainer__open:hover .ph { text-decoration: underline; }
.trainer__open:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius); background: var(--white); color: var(--text); box-shadow: var(--shadow-dark); }
.dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.dialog__inner { position: relative; display: grid; }
.dialog .photo-ph { border-radius: 0; min-height: 200px; }
.dialog__body { padding: var(--sp-6) var(--sp-5); }
.dialog__body h2 { font-size: 1.8rem; margin-top: var(--sp-3); }
.dialog__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--black); color: var(--white); font-size: 1.5rem; cursor: pointer; }
@media (min-width: 720px) { .dialog__inner { grid-template-columns: 280px 1fr; } .dialog .photo-ph { min-height: 100%; } }

/* Зал: аккордеон */
.acc-list { display: grid; gap: var(--sp-3); }
.acc { border-radius: var(--radius); background: var(--graphite-2); border: 1px solid var(--line-dark); overflow: hidden; transition: border-color .25s; }
.acc[open] { border-color: rgba(201,162,58,.55); }
.acc summary { list-style: none; display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5); cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc__num { font-family: var(--font-head); color: var(--gold); font-size: .95rem; }
.acc__title { flex: 1; font-family: var(--font-head); text-transform: uppercase; font-size: 1.3rem; letter-spacing: .03em; }
.acc__count { font-size: .8rem; color: var(--text-muted-dark); border: 1px solid var(--line-dark); border-radius: 999px; padding: 2px 10px; }
.acc__chev { width: 12px; height: 12px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .3s var(--ease); margin: 0 6px 4px; }
.acc[open] .acc__chev { transform: rotate(-135deg); margin-bottom: -4px; }
.acc__body { display: grid; gap: var(--sp-5); padding: 0 var(--sp-5) var(--sp-5); }
.acc__body .photo-ph { min-height: 200px; }
@media (min-width: 900px) { .acc__body { grid-template-columns: 320px 1fr; } }
.equip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
@media (min-width: 640px) { .equip-list { grid-template-columns: 1fr 1fr; gap: 2px var(--sp-5); } }
.equip-list li { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.equip-list b { display: block; font-weight: 500; }
.equip-list b::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: middle; }
.equip-list span { display: block; color: var(--text-muted-dark); font-size: .88rem; padding-left: 16px; }
.steps { display: grid; gap: var(--sp-4); counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: var(--sp-6) var(--sp-5); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-light); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--font-head); font-size: 2.4rem; line-height: 1; margin-bottom: var(--sp-3); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.step p { color: var(--text-muted); }
.disclaimer { margin-top: var(--sp-5); font-size: .85rem; color: var(--text-muted-dark); }

/* Тренировки: табы + расписание */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-light); margin-bottom: var(--sp-6); scrollbar-width: none; }
.tab { flex: 1 0 auto; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; color: var(--text-muted); transition: background-color .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--black); color: var(--gold-light); }
.tab-panel__grid { display: grid; gap: var(--sp-6); align-items: center; }
.tab-panel__grid h2 { font-size: var(--fs-h2); }
.tab-panel__grid .photo-ph { min-height: 320px; }
@media (min-width: 900px) { .tab-panel__grid { grid-template-columns: 1.1fr .9fr; } }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-dark); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 14px 12px; border-bottom: 1px solid var(--line-dark); text-align: left; vertical-align: top; }
.table thead th { font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); background: var(--black); }
.table tbody th { font-weight: 600; white-space: nowrap; }
.slot { padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(201,162,58,.1); border-left: 2px solid var(--gold); }
.slot b, .slot small { display: block; }
.slot b { font-weight: 500; }
.schedule-table { display: none; }
.schedule-table .table { table-layout: fixed; }
.schedule-table th:first-child { width: 80px; }
.schedule-table td { padding: 10px 6px; }
.schedule-table .slot { font-size: .82rem; padding: 6px 8px; overflow-wrap: anywhere; }
.schedule-list { display: grid; gap: var(--sp-3); }
.day { padding: var(--sp-4); border-radius: var(--radius); background: var(--graphite-2); border: 1px solid var(--line-dark); }
.day h3 { font-size: 1.1rem; color: var(--gold); margin-bottom: var(--sp-3); }
.day__row { display: grid; grid-template-columns: 70px 1fr; gap: var(--sp-3); align-items: center; margin-top: 8px; }
.day__empty { color: var(--text-muted-dark); font-size: .9rem; }
@media (min-width: 900px) { .schedule-table { display: block; } .schedule-list { display: none; } }

/* Массаж и сауна */
.split { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
.split > .photo-ph { min-height: 360px; }
.mcard { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-light); transition: transform .3s var(--ease), box-shadow .3s; }
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mcard h3 { font-size: 1.1rem; }
.mcard__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; color: var(--text-muted); }
.mcard__meta b { font-family: var(--font-head); font-size: 1.3rem; color: var(--text); }
.mcard .btn { align-self: flex-start; }

/* Цены: таблица */
.table--prices { min-width: 640px; }
.section--paper .table-wrap, .section:not(.section--dark):not(.section--graphite) .table-wrap { border-color: var(--line-light); background: var(--white); }
.section:not(.section--dark):not(.section--graphite) .table th, .section:not(.section--dark):not(.section--graphite) .table td { border-color: var(--line-light); }
.table--prices td { text-align: center; }
.table--prices thead th:not(:first-child) { text-align: center; }
.table--prices .is-popular { background: rgba(201,162,58,.1); }
.table--prices thead .is-popular { background: var(--gold-grad); color: var(--black); }
.tick { color: var(--gold-ink); font-weight: 700; }
.dash { color: #b5b2aa; }
.extra-list { display: grid; gap: 0; border-radius: var(--radius); border: 1px solid var(--line-dark); overflow: hidden; }
.extra-row { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); background: var(--graphite-2); border-bottom: 1px solid var(--line-dark); }
.extra-row:last-child { border-bottom: 0; }
.extra-row b { font-family: var(--font-head); font-weight: 500; }

/* Политика */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin: var(--sp-6) 0 var(--sp-3); }
.prose p, .prose li { color: var(--text-muted); margin-bottom: var(--sp-3); }
