/* ЛУНА — лендинг. Мобильный сначала, тёмная фирменная тема. */

@font-face {
  font-family: "Luna Display";
  src: url("../fonts/montserrat-cyr-lat.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
/* Запасной шрифт с метриками Montserrat — чтобы при подгрузке заголовки не прыгали */
@font-face {
  font-family: "Luna Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 112%;
  ascent-override: 86%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --graphite: #3A3F44;
  --graphite-deep: #2B2F33;
  --graphite-raise: #42474D;
  --gold: #C9B88A;
  --gold-hi: #D9CBA3;
  --gold-12: rgba(201, 184, 138, .12);
  --gold-45: rgba(201, 184, 138, .45);
  --moon: #8B8E91;
  --text: #F3F2EE;
  --text-2: #CDD0D3;
  --text-3: #AAB0B5;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);

  --display: "Luna Display", "Luna Fallback", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --r: 18px;
  --r-sm: 12px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--graphite-deep);
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}
body {
  margin: 0;
  background: var(--graphite);
  color: var(--text);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--gold); color: var(--graphite-deep);
  font: 600 .9rem/1 var(--display); text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 14px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ── Кнопки ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 14px;
  font: 600 .95rem/1.1 var(--display); letter-spacing: .01em;
  text-decoration: none; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold); color: var(--graphite-deep); }
.btn--line { border-color: var(--gold-45); color: var(--text); background: rgba(43, 47, 51, .35); }
.btn--line .ico { color: var(--gold); }
@media (hover: hover) {
  .btn--gold:hover { background: var(--gold-hi); }
  .btn--line:hover { border-color: var(--gold); background: var(--gold-12); }
}

.linkbtn {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 44px; padding: 0; margin-top: 14px;
  border: 0; background: none; color: var(--text-2);
  font: 500 .95rem/1.2 var(--body);
  text-decoration: underline; text-decoration-color: var(--gold-45); text-underline-offset: 4px;
  cursor: pointer;
}
@media (hover: hover) { .linkbtn:hover { color: var(--text); text-decoration-color: var(--gold); } }

/* ── Соты: второй мотив зала (светильники на потолке) ───────────────── */
/* Шестиугольник «на вершине» — маркеры, рейтинг; решётка .comb — цитата потолка */
.hexdot {
  display: inline-block; flex: none;
  width: 9px; height: 10.4px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.comb {
  display: block; overflow: visible;
  fill: none; stroke: #F6F3EA; stroke-width: 1.6; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.comb path { vector-effect: non-scaling-stroke; }

/* Шов между разделами: три соты, средняя горит */
.seam { position: relative; }
.seam::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: 0;
  width: 160px; height: 18px; transform: translate(-50%, -50%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 18'%3E%3Cg fill='none' stroke='%23C9B88A' stroke-width='1.1' stroke-linejoin='round' opacity='.6'%3E%3Cpath d='M7 1.5l6.5 3.75v7.5L7 16.5l-6.5-3.75v-7.5z'/%3E%3Cpath d='M33 1.5l6.5 3.75v7.5L33 16.5l-6.5-3.75v-7.5z'/%3E%3C/g%3E%3Cpath d='M20 1.5l6.5 3.75v7.5L20 16.5l-6.5-3.75v-7.5z' fill='%23C9B88A'/%3E%3C/svg%3E") center / 40px 18px no-repeat,
    linear-gradient(90deg, transparent, var(--gold-45) 40%, transparent 40%, transparent 60%, var(--gold-45) 60%, transparent) center / 100% 1px no-repeat;
  pointer-events: none;
}

/* ── Первый экран ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(80% 45% at 50% 38%, rgba(201, 184, 138, .07), transparent 70%),
    linear-gradient(180deg, #24282B 0%, var(--graphite-deep) 60%);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.topnav {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: max(6px, env(safe-area-inset-top)) 8px 0;
}
.topnav__list { display: flex; flex-wrap: wrap; justify-content: center; }
.topnav__list a {
  display: block; padding: 14px 11px;
  font: 500 .875rem/1 var(--display); letter-spacing: .02em;
  color: var(--text-2); text-decoration: none;
}
@media (hover: hover) { .topnav__list a:hover { color: var(--gold); } }
@media (max-width: 380px) { .topnav__list a { padding: 14px 7px; font-size: .8rem; } }
.topnav__phone { display: none; }

.hero__grid {
  position: relative; z-index: 2;
  display: grid; justify-items: center; text-align: center;
  padding: 10px var(--gutter) 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 38px; height: auto; aspect-ratio: 478 / 564; color: var(--moon); }
.brand__word { width: 160px; height: auto; aspect-ratio: 992 / 211; color: var(--gold); }
.hero__slogan {
  margin-top: 16px;
  font: 600 1.7rem/1.12 var(--display); letter-spacing: -.012em;
  color: var(--text); text-wrap: balance;
}
.hero__slogan em { font-style: normal; color: var(--gold); }

.hero__photo { position: relative; z-index: 0; isolation: isolate; width: 100%; max-width: 420px; margin: 30px 0 0; }
.hero__photo .comb {
  position: absolute; z-index: -1; left: 50%; top: -38px;
  width: 132%; height: auto; transform: translateX(-50%);
  opacity: .4;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%);
          mask-image: linear-gradient(180deg, transparent, #000 30%);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .55)) drop-shadow(0 0 12px rgba(201, 184, 138, .5));
}
.hero__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1; border-radius: var(--r);
  background: #1E2124;
  box-shadow: 0 36px 60px -32px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.hero__frame::after {
  content: ""; position: absolute; inset: 72% 0 0;
  background: linear-gradient(180deg, transparent, rgba(22, 24, 27, .55));
  pointer-events: none;
}
.hero__kicker {
  margin-top: 14px;
  font: 600 .66rem/1.6 var(--display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3);
}
.nw { white-space: nowrap; }
@media (max-width: 420px) { .hero__dot { display: none; } .hero__kicker .nw { display: block; } }

/* Рейтинг 2ГИС */
.rating {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 8px 14px 8px 8px;
  border-radius: 16px; text-align: left; text-decoration: none; color: var(--text);
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) { .rating:hover { background: var(--gold-12); box-shadow: inset 0 0 0 1px var(--gold-45); } }
.rating__hex {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 53px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--gold); color: var(--graphite-deep);
  font: 700 1rem/1 var(--display); font-variant-numeric: tabular-nums;
}
.rating__body { display: grid; gap: 3px; }
.rating__top { display: flex; align-items: center; gap: 8px; }
.rating__stars {
  --pct: 100%;
  width: 84px; height: 14px;
  background: linear-gradient(90deg, var(--gold) var(--pct), rgba(255, 255, 255, .2) var(--pct));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M12 1.5l3.1 6.9 7.4.7-5.6 5 1.7 7.4L12 17.6l-6.6 3.9 1.7-7.4-5.6-5 7.4-.7z'/%3E%3C/svg%3E") 0 0 / 16.8px 14px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M12 1.5l3.1 6.9 7.4.7-5.6 5 1.7 7.4L12 17.6l-6.6 3.9 1.7-7.4-5.6-5 7.4-.7z'/%3E%3C/svg%3E") 0 0 / 16.8px 14px repeat-x;
}
.rating__of { color: var(--text-2); font-size: .86rem; }
.rating__count { font: 600 .86rem/1.3 var(--display); color: var(--text); }
.rating__go { width: 18px; height: 18px; color: var(--gold); fill: none; }

.hero__cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  width: 100%; max-width: 420px; margin-top: 16px;
}
.hero__cta .btn { padding: 0 12px; }
/* без телефона «Как добраться» остаётся одна — во всю ширину (класс ставит main.js) */
.hero__cta.is-solo, .dock.is-solo { grid-template-columns: 1fr; }
/* Факты под кнопками: адрес, часы, проба, утро — маркеры-соты */
.hero__facts {
  display: grid; gap: 2px; margin-top: 16px;
  justify-items: start; text-align: left;
}
.hero__facts li { display: flex; align-items: center; gap: 12px; padding: 5px 2px; color: var(--text-2); font-size: .94rem; }
.hero__facts li::before {
  content: ""; width: 8px; height: 9.2px; flex: none;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hero__facts a { color: inherit; text-decoration: none; }
.hero__facts strong { color: var(--text); font-weight: 600; }
.hero__facts [data-club="street"] { color: var(--text); }
.hero__facts [data-club="hours"] { font-variant-numeric: tabular-nums; }
@media (hover: hover) { .hero__facts a:hover { color: var(--text); } }

.hero__moon { position: relative; z-index: 1; display: block; margin-top: auto; pointer-events: none; }
.hero__moon {
  height: 46vw; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
          mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero__moon img { width: 100%; height: auto; aspect-ratio: 4 / 3; margin-top: -14%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__moon img { animation: moonrise 1.8s var(--ease-out) both; }
  .hero__photo .comb { animation: comb-on 1.6s .25s ease-out both; }
}
@keyframes moonrise {
  from { opacity: 0; transform: translateY(6%); }
  to   { opacity: 1; transform: none; }
}
@keyframes moonrise-d {
  from { opacity: 0; transform: translateY(4%); }
  to   { opacity: .5; transform: none; }
}
@keyframes comb-on {
  0%   { opacity: 0; }
  30%  { opacity: .12; }
  38%  { opacity: .04; }
  100% { opacity: var(--comb-o, .34); }
}

/* ── Секции ─────────────────────────────────────────────────────────── */
.section { padding: 72px 0; background: var(--graphite); }
.section--deep { background: var(--graphite-deep); }
.section--last { padding-bottom: 88px; }

.h2 {
  display: flex; align-items: center; gap: 14px;
  font: 600 clamp(1.75rem, 1.35rem + 1.9vw, 2.6rem)/1.1 var(--display);
  letter-spacing: -.005em;
}
/* Фаза луны у заголовка: от серпа к полнолунию по ходу страницы */
.phase {
  --lit: .35;
  position: relative; flex: none;
  width: .5em; height: .5em; border-radius: 50%;
  border: 1.5px solid var(--gold-45);
  overflow: hidden;
}
.phase::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  box-shadow: inset calc(var(--lit) * -1em) 0 0 0 var(--gold);
}
#gym .phase      { --lit: .1; }
#prices .phase   { --lit: .18; }
#trainers .phase { --lit: .26; }
#where .phase    { --lit: .34; }
#contacts .phase { --lit: .6; }

.lead { margin-top: 14px; max-width: 60ch; color: var(--text-2); font-size: 1.05rem; }

/* Списки с сотой вместо точки */
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 1px; top: .32em;
  width: 12px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M6 1l4.6 2.65v5.3L6 12.6 1.4 9.95v-5.3z' transform='translate(0 .2)' fill='none' stroke='%23C9B88A' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Зал ────────────────────────────────────────────────────────────── */
.gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px;
  grid-template-areas:
    "zal zal"
    "tren pom"
    "sil sil"
    "kar kar"
    "card card";
}
.shot {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--r-sm); background: var(--graphite);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::after {
  content: ""; position: absolute; inset: 62% 0 0;
  background: linear-gradient(180deg, transparent, rgba(20, 22, 25, .7));
  pointer-events: none;
}
.shot figcaption {
  position: absolute; z-index: 1; left: 12px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .68rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(243, 242, 238, .9);
}
.shot figcaption::before {
  content: ""; width: 7px; height: 8px; background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.shot--zal  { grid-area: zal;  aspect-ratio: 3 / 2; border-radius: var(--r); }
.shot--zal img { object-position: 50% 30%; }
.shot--tren { grid-area: tren; aspect-ratio: 2 / 3; }
.shot--tren img { object-position: 50% 40%; }
.shot--pomost { grid-area: pom; aspect-ratio: 2 / 3; }
.shot--silovaya { grid-area: sil; aspect-ratio: 16 / 10; }
.shot--kardio { grid-area: kar; aspect-ratio: 16 / 10; }
.shot--kardio img { object-position: 50% 60%; }

.gymcard {
  grid-area: card; position: relative; overflow: hidden;
  margin-top: 8px; padding: 24px 22px 26px;
  border-radius: var(--r);
  background: var(--graphite); box-shadow: inset 0 0 0 1px var(--line);
}
/* Соты в карточке — только на широком экране и только в свободном месте над текстом:
   .gymcard__art забирает остаток высоты карточки; нет места — нет сот (текст они не пересекают) */
.gymcard__art { display: none; }
.gymcard__lead { position: relative; font: 600 1.15rem/1.35 var(--display); color: var(--text); max-width: 30ch; }
.gymcard .ticks { position: relative; margin-top: 18px; }
.gymcard .ticks li { color: var(--text); }

/* ── Абонементы ─────────────────────────────────────────────────────── */
.offers { display: grid; gap: 14px; margin-top: 30px; }
.trial, .dayplan { border-radius: var(--r); padding: 24px 22px; }
.trial {
  position: relative; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(43, 47, 51, .96) 30%, rgba(43, 47, 51, .55)),
    url("../img/crater-tile.webp") center / 256px repeat,
    var(--graphite-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}
.eyebrow {
  font: 600 .7rem/1.2 var(--display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.trial__title { margin-top: 12px; font: 600 1.45rem/1.2 var(--display); }
.trial__text { margin-top: 10px; color: var(--text-2); max-width: 40ch; }
.trial .btn { margin-top: 20px; }

.dayplan {
  background: linear-gradient(160deg, rgba(201, 184, 138, .16), rgba(201, 184, 138, .04) 60%), var(--graphite);
  box-shadow: inset 0 0 0 1px var(--gold-45);
}
.dayplan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px;
  border-radius: 999px; background: var(--gold); color: var(--graphite-deep);
  font: 600 .72rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
}
.dayplan__name { margin-top: 14px; font: 600 1.45rem/1.2 var(--display); }
.dayplan__time { margin-top: 4px; color: var(--text); font: 600 1.05rem/1.3 var(--display); font-variant-numeric: tabular-nums; }
.dayplan__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.dayplan__price b { font: 700 2.4rem/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dayplan__price span { color: var(--text-2); }
.dayplan__note { margin-top: 12px; color: var(--text-2); max-width: 40ch; }

.prices-more { display: grid; gap: 36px; margin-top: 34px; }
.pricelist { border-top: 1px solid var(--line); }
.pricelist li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.pl__name { display: block; font: 600 1.02rem/1.3 var(--display); }
.pl__term { display: block; margin-top: 3px; color: var(--text-3); font-size: .9rem; }
.pl__right { text-align: right; flex: none; }
.pl__price { display: block; font: 600 1.15rem/1.3 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl__per { display: block; margin-top: 3px; color: var(--text-3); font-size: .85rem; white-space: nowrap; }

.clubcard { margin: 0; display: grid; gap: 16px; justify-items: start; }
.clubcard img {
  width: min(100%, 300px); height: auto; border-radius: 4.6% / 7.4%;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: rotate(-3deg);
}
.clubcard figcaption { color: var(--text-2); max-width: 34ch; }

/* ── Тренеры ────────────────────────────────────────────────────────── */
.trainers { display: grid; gap: 14px; margin-top: 28px; }
.tcard {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  column-gap: 16px; align-items: start;
  padding: 14px; border-radius: var(--r);
  background: var(--graphite); box-shadow: inset 0 0 0 1px var(--line);
}
.tcard__ph {
  grid-column: 1; grid-row: 1 / 3;
  position: relative; overflow: hidden; border-radius: var(--r-sm);
  aspect-ratio: 4 / 5; background: var(--graphite-deep);
}
.tcard__ph img { width: 100%; height: 100%; object-fit: cover; }
.tcard__ph.is-empty {
  display: grid; place-items: center;
  background:
    radial-gradient(130% 100% at 50% 40%, transparent 35%, rgba(20, 23, 26, .6) 100%),
    url("../img/crater-tile.webp") center / 200px repeat,
    var(--graphite-deep);
}
.tcard__ph.is-empty svg { width: 42%; height: auto; aspect-ratio: 478 / 564; color: var(--moon); opacity: .55; }
/* на телефоне тело карточки «растворяется» в сетке: имя и специализация — справа от фото,
   текст о тренере — во всю ширину под ними */
.tcard__body { display: contents; }
.tcard__name { grid-column: 2; grid-row: 1; padding-top: 4px; font: 600 1.1rem/1.25 var(--display); overflow-wrap: anywhere; }
.tcard__spec { grid-column: 2; grid-row: 2; margin-top: 6px; color: var(--gold); font-size: .92rem; overflow-wrap: anywhere; }
.tcard__bio { grid-column: 1 / -1; grid-row: 3; margin-top: 14px; color: var(--text-2); font-size: .95rem; overflow-wrap: anywhere; }

/* ── Где мы ─────────────────────────────────────────────────────────── */
.where { display: grid; gap: 40px; }
.where__addr { margin-top: 22px; font: 600 1.6rem/1.2 var(--display); }
.where__city { display: block; margin-top: 6px; font: 400 1rem/1.4 var(--body); color: var(--text-2); }
.maps { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; max-width: 420px; }
.maps:has(> a:not([hidden]) + a:not([hidden])) { grid-template-columns: 1fr 1fr; }
.btn--map { min-height: 58px; padding: 0 14px; gap: .5em; border-color: var(--line-2); background: var(--graphite-raise); color: var(--text); white-space: nowrap; }
.btn--map .ico { color: var(--gold); }
@media (hover: hover) { .btn--map:hover { border-color: var(--gold-45); background: #474C52; } }
.where__proof {
  display: flex; width: max-content; max-width: 100%; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 0;
  color: var(--text-2); font-size: .92rem; text-decoration: none;
}
@media (hover: hover) { .where__proof:hover { color: var(--text); } }
.where__main .linkbtn { display: flex; margin-top: 6px; }
.map {
  margin-top: 16px; overflow: hidden; border-radius: var(--r);
  aspect-ratio: 1 / 1; max-height: 460px; background: var(--graphite-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.where__info { display: grid; gap: 28px; align-content: start; }
.info__h {
  font: 600 .72rem/1.2 var(--display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.info__p { color: var(--text-2); }
.info__p a { text-decoration-color: var(--gold-45); text-underline-offset: 3px; }
.hours { display: grid; gap: 4px; }
.hours__time { font: 600 2rem/1.1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hours__note { color: var(--text-2); }

/* ── Контакты ───────────────────────────────────────────────────────── */
.bigphone {
  display: inline-block; margin-top: 22px;
  font: 600 clamp(1.7rem, 1.2rem + 2.6vw, 2.8rem)/1.15 var(--display);
  color: var(--gold); text-decoration: none; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (hover: hover) { .bigphone:hover { color: var(--gold-hi); } }
.contacts__note { margin-top: 12px; color: var(--text-2); max-width: 44ch; }
.contacts__hours {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.contacts .chips { margin-top: 26px; }
.contacts { position: relative; z-index: 1; }
.contacts__moon { display: none; }
.linkgroup { margin-top: 28px; }
.linkgroup__h {
  font: 600 .72rem/1.2 var(--display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text);
  font: 600 .92rem/1 var(--display); text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .2s ease, background-color .2s ease;
}
.chip .ico { color: var(--gold); width: 20px; height: 20px; }
.chip__sub { margin-left: 4px; color: var(--text-2); font-weight: 500; }
.chip--ext::after { content: "↗"; color: var(--gold); font-family: var(--body); }
@media (hover: hover) { .chip:hover { border-color: var(--gold-45); background: var(--gold-12); } }

/* ── Подвал ─────────────────────────────────────────────────────────── */
.foot {
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  background: #25292C; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: .9rem;
}
.foot__inner { display: grid; gap: 14px; justify-items: start; }
.foot__brand { display: inline-flex; align-items: center; gap: 12px; padding: 4px 0; text-decoration: none; }
.foot__mark { width: 28px; height: auto; aspect-ratio: 478 / 564; color: var(--moon); }
.foot__word { width: 104px; height: auto; aspect-ratio: 992 / 211; color: var(--gold); }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 4px; }
.foot__links a {
  display: inline-block; padding: 8px 0; color: var(--text-2);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px;
}
@media (hover: hover) { .foot__links a:hover { color: var(--text); text-decoration-color: var(--gold); } }
.foot__req { font-size: .82rem; line-height: 1.6; max-width: 70ch; }
.foot__copy { font-size: .82rem; }

/* ── Нижняя панель на телефоне ──────────────────────────────────────── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(37, 41, 44, .94);
  border-top: 1px solid var(--line);
  transform: translateY(105%); visibility: hidden;
  transition: transform .32s var(--ease-out), visibility 0s linear .32s;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .dock { background: rgba(37, 41, 44, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.dock.is-on { transform: none; visibility: visible; transition: transform .32s var(--ease-out), visibility 0s; }
.dock .btn { min-height: 48px; }
body:has(.dock.is-on) .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* ── Появление при прокрутке (только если движение не отключено) ──── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); }
  .js [data-reveal].is-in {
    opacity: 1; transform: none;
    transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ── Планшет и шире ─────────────────────────────────────────────────── */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .gallery {
    gap: 14px;
    grid-template-areas:
      "zal zal"
      "tren pom"
      "sil kar"
      "card card";
  }
  .shot--silovaya, .shot--kardio { aspect-ratio: 4 / 3; }
  .gymcard { margin-top: 0; }
  .offers { grid-template-columns: 1fr 1fr; }
  .trial, .dayplan { padding: 30px 28px; }
  .trainers { gap: 18px; }
  .tcard { grid-template-columns: 180px minmax(0, 1fr); grid-template-rows: auto; padding: 0; overflow: hidden; column-gap: 0; align-items: stretch; }
  .tcard__ph { grid-row: 1; border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 225px; }
  .tcard__body { display: block; grid-column: 2; padding: 22px 24px 24px; }
  .tcard__name, .tcard__spec, .tcard__bio { grid-column: auto; grid-row: auto; }
  .tcard__name { padding-top: 0; }
  .tcard__bio { margin-top: 12px; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .section { padding: 112px 0; }
  .section--last { padding-bottom: 128px; }

  .hero { min-height: max(680px, min(100svh, 960px)); }
  .topnav { justify-content: space-between; max-width: 1160px; width: 100%; margin: 0 auto; padding: 18px 28px 0; }
  .topnav__list { justify-content: flex-start; }
  .topnav__phone {
    display: inline-block; padding: 12px 12px;
    font: 600 .95rem/1 var(--display); color: var(--gold); text-decoration: none;
    font-variant-numeric: tabular-nums;
  }
  .hero__grid {
    flex: 1; width: 100%; max-width: 1160px; margin: 0 auto;
    padding: 8px var(--gutter) 56px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    grid-template-rows: 1fr repeat(6, auto) 1fr;
    grid-template-areas:
      ".      photo"
      "brand  photo"
      "kicker photo"
      "slogan photo"
      "rating photo"
      "cta    photo"
      "facts  photo"
      ".      photo";
    column-gap: clamp(48px, 7vw, 110px);
    justify-items: start; text-align: left;
  }
  .brand { grid-area: brand; gap: 22px; }
  .hero__kicker { grid-area: kicker; margin-top: 28px; font-size: .74rem; }
  .brand__mark { width: 64px; }
  .brand__word { width: 268px; }
  .hero__slogan { grid-area: slogan; margin-top: 12px; font-size: clamp(2.6rem, 1.2rem + 2.6vw, 3.6rem); line-height: 1.04; }
  .hero__slogan em { display: block; }
  .hero__photo { grid-area: photo; align-self: center; max-width: none; margin: 24px 0 0; }
  .hero__photo .comb {
    /* на низких экранах ноутбуков (720–800 px) фото выше — соты опускаем, чтобы не заходили
       под меню и телефон; от 900 px высоты — как задумано, −128 px */
    --comb-o: .62; top: clamp(-128px, calc(268px - 44vh), -48px); top: clamp(-128px, calc(268px - 44svh), -48px);
    width: 150%; left: 44%; opacity: .62;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, .7)) drop-shadow(0 0 10px rgba(255, 255, 255, .35)) drop-shadow(0 0 22px rgba(201, 184, 138, .35));
    -webkit-mask-image: radial-gradient(60% 75% at 50% 45%, #000 45%, transparent);
            mask-image: radial-gradient(60% 75% at 50% 45%, #000 45%, transparent);
  }
  .hero__frame { aspect-ratio: 548 / 702; border-radius: 22px; }
  .hero__frame img { object-position: 50% 50%; }
  .rating { grid-area: rating; margin-top: 26px; }
  .hero__cta { grid-area: cta; display: flex; width: auto; max-width: none; margin-top: 26px; }
  .hero__cta .btn { padding: 0 26px; }
  .hero__facts { grid-area: facts; margin-top: 20px; }

  .hero__moon {
    height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none;
    position: absolute; z-index: 1; margin: 0;
    top: 52%; left: calc(50% + 150px);
    width: min(60vw, 900px);
    transform: translateY(-50%);
  }
  .hero__moon img { aspect-ratio: 1 / 1; margin-top: 0; opacity: .5; }
  @media (prefers-reduced-motion: no-preference) {
    .hero__moon img { animation-name: moonrise-d; }
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* ряд растёт, если тексту в карточке зала не хватает высоты (узкий десктоп ~900–1100 px) */
    grid-auto-rows: minmax(clamp(300px, 30vw, 400px), auto);
    grid-template-areas:
      "zal zal tren"
      "pom sil sil"
      "kar kar card";
  }
  .shot, .shot--zal { aspect-ratio: auto; border-radius: var(--r); }
  /* фото не задают высоту ряда (её задаёт grid-auto-rows), только заполняют плитку */
  .shot img { position: absolute; inset: 0; }
  .shot figcaption { left: 18px; bottom: 16px; }
  .gymcard { display: flex; flex-direction: column; justify-content: flex-end; padding: 30px 30px 32px; }
  .gymcard__art {
    display: block; position: relative; flex: 1 1 0; min-height: 30px;
    margin: -30px -30px 0; overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent);
            mask-image: linear-gradient(180deg, #000 50%, transparent);
  }
  .gymcard__art .comb {
    position: absolute; right: -70px; top: -50px; width: 360px; height: auto;
    stroke: var(--gold); opacity: .16;
    -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
            mask-image: radial-gradient(closest-side, #000 40%, transparent);
  }

  .trainers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .tcard { grid-template-columns: 200px minmax(0, 1fr); }
  .tcard__ph { min-height: 250px; }
  /* один тренер или последний из нечётного числа — во всю ширину, без пустой половины ряда */
  .tcard:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tcard__body { max-width: 64ch; }

  .prices-more { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .clubcard { padding-top: 18px; }
  .clubcard img { width: min(100%, 340px); }

  .where { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; }
  .contacts__moon {
    display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
  }
  .contacts__moon img {
    position: absolute; top: 50%; left: calc(50% + 170px);
    width: min(48vw, 700px); height: auto; transform: translateY(-50%); opacity: .34;
  }
  .contacts__moon .comb {
    position: absolute; z-index: 1; left: calc(50% + 40px); top: 10%; width: 330px; height: auto;
    stroke: var(--gold); opacity: .2;
    -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent);
            mask-image: radial-gradient(closest-side, #000 45%, transparent);
  }
  .where__addr { font-size: 2.1rem; }
  .where__info { padding-top: 70px; }
  .map { aspect-ratio: 4 / 3; }

  .dock { display: none; }
}

@media (min-width: 1200px) {
  .hero__moon { left: calc(50% + 190px); }
}

/* ── Страница политики ──────────────────────────────────────────────── */
.page-doc { background: var(--graphite); }
.doc-head { background: var(--graphite-deep); border-bottom: 1px solid var(--line); }
.doc-head__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.doc-head__brand { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; }
.doc-head__back { padding: 12px 0; color: var(--text-2); text-decoration: none; font: 500 .9rem/1 var(--display); }
@media (hover: hover) { .doc-head__back:hover { color: var(--gold); } }
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.doc__h1 { font: 600 clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem)/1.15 var(--display); }
.doc__meta { margin-top: 10px; color: var(--text-3); font-size: .9rem; }
.doc h2 { margin: 40px 0 14px; font: 600 1.15rem/1.3 var(--display); color: var(--text); }
.doc p, .doc li { color: var(--text-2); overflow-wrap: anywhere; }
.doc p + p { margin-top: 12px; }
.doc b { color: var(--text); font-weight: 600; }
.doc__list { margin: 10px 0 12px; display: grid; gap: 6px; padding-left: 20px; list-style: disc; }
.doc__list li::marker { color: var(--gold); }
.doc a { color: var(--gold); text-underline-offset: 3px; }
.todo { color: var(--gold); background: var(--gold-12); border-radius: 4px; padding: 0 4px; }
.draft {
  margin-bottom: 32px; padding: 18px 20px; border-radius: var(--r-sm);
  background: var(--gold-12); box-shadow: inset 0 0 0 1px var(--gold-45);
}
.draft p { color: var(--text-2); }
.draft__h { font: 600 .78rem/1.3 var(--display) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--gold) !important; margin-bottom: 8px; }
.note {
  margin: 14px 0; padding: 12px 16px; border-left: 2px solid var(--gold);
  background: rgba(0, 0, 0, .14); color: var(--text-2); font-size: .92rem; border-radius: 0 8px 8px 0;
}
.note b { color: var(--gold); }
