/* Выразительные блоки сайта.
 *
 * Ровная сетка одинаковых карточек читается как каталог, а не как клуб.
 * Здесь — приёмы, которые дают странице ритм: разновесные плитки, бегущая
 * строка, цифры, квиз и полноэкранные призывы.
 */

/* ── Полоса прочитанного ────────────────────────────────────────────────── */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--brand);
  will-change: transform;
}

/* ── Первый экран ───────────────────────────────────────────────────────── */

.hero--full { min-height: 100svh; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__scroll i {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--brand), transparent);
  animation: scroll-hint 2.1s var(--ease-in-out) infinite;
}

@keyframes scroll-hint {
  0%   { transform: scaleY(0); transform-origin: 50% 0; }
  45%  { transform: scaleY(1); transform-origin: 50% 0; }
  55%  { transform: scaleY(1); transform-origin: 50% 100%; }
  100% { transform: scaleY(0); transform-origin: 50% 100%; }
}

/* ── Цифры клуба ────────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stats__item { padding: clamp(24px, 3vw, 40px) clamp(18px, 2vw, 30px); background: var(--canvas); }

.stats__value {
  display: block;
  font-family: var(--display);
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats__value .unit { color: var(--brand); }
.stats__label { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ── Бегущая строка направлений ─────────────────────────────────────────── */

.marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 30px) 0;
  border-block: 1px solid var(--line);
}

/* 🚨 Раньше края ленты растворяла `mask-image`. Маска заставляет браузер
   растрировать слой целиком, и контур букв рвётся — куски штрихов пропадают.
   Тот же эффект даём двумя накладками поверх: слой с текстом остаётся
   векторным, обводка выходит чистой. */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 7vw, 120px);
  pointer-events: none;
  z-index: 1;
}

.marquee::before { left: 0; background: linear-gradient(90deg, var(--canvas), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--canvas), transparent); }

.marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(28px, 4vw, 64px);
  animation: marquee 42s linear infinite;
}

.marquee__track > span {
  font-family: var(--display);
  font-size: clamp(30px, 4.2vw, 62px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  /* Контур — восемью смещёнными копиями по кругу, а не штрихом по контуру:
     так просил владелец.

     ⚠️ Букву обязательно заливаем цветом фона. С прозрачной буквой копии
     видны и внутри неё, и слово выглядит залитым — из-за этого раздел
     переделывали несколько раз. */
  color: var(--canvas);
  text-shadow:
    0 -1.5px 0 var(--ink), 0 1.5px 0 var(--ink),
    -1.5px 0 0 var(--ink), 1.5px 0 0 var(--ink),
    -1px -1px 0 var(--ink), 1px -1px 0 var(--ink),
    -1px 1px 0 var(--ink), 1px 1px 0 var(--ink);
}

/* Три состояния по кругу: обводка (по умолчанию), белое, красное. */
.marquee__track > span:nth-child(3n+2) { color: var(--ink); text-shadow: none; }
.marquee__track > span:nth-child(3n) { color: var(--brand); text-shadow: none; }

@keyframes marquee { to { transform: translateX(-50%); } }

@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

/* ── Крупная цитата ─────────────────────────────────────────────────────── */

.pullquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.pullquote .accent { color: var(--brand); }

/* ── Плитки разного веса ────────────────────────────────────────────────── */

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }

.bento__cell {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color var(--dur-hover) ease, transform var(--dur-hover) var(--ease-out);
}

.bento__cell--wide { grid-column: span 4; }
.bento__cell--half { grid-column: span 3; }
.bento__cell--third { grid-column: span 2; }
.bento__cell--tall { grid-row: span 2; }

.bento__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.bento__cell figcaption,
.bento__cell .bento__text {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  background: linear-gradient(180deg, transparent, rgb(8 8 10 / 62%) 34%, rgb(8 8 10 / 92%));
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.bento__num {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 1;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--brand);
}

/* ── Квиз подбора абонемента ────────────────────────────────────────────── */

.quiz {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: clamp(26px, 4vw, 52px);
}

.quiz__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; justify-content: space-between; }
.quiz__step { color: var(--subtle); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.quiz__bar { height: 2px; margin: 20px 0 28px; background: var(--soft); }

.quiz__bar i {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--brand);
  transition: width var(--dur-panel) var(--ease-out);
}

.quiz__question { display: none; }
.quiz__question.is-active { display: block; animation: quiz-in 320ms var(--ease-out) both; }

@keyframes quiz-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

.quiz__options { display: grid; gap: 10px; margin: 22px 0 0; }

.quiz__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  text-align: left;
  transition: border-color var(--dur-hover) ease, background var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}

.quiz__option::before {
  content: '';
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid var(--subtle);
  border-radius: 50%;
  transition: border-color var(--dur-hover) ease, box-shadow var(--dur-hover) ease;
}

.quiz__option.is-picked { border-color: var(--brand); background: rgb(255 31 31 / 9%); }
.quiz__option.is-picked::before { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--brand); }

@media (hover: hover) and (pointer: fine) {
  .quiz__option:hover { border-color: var(--soft); transform: translateX(3px); }
}

.quiz__age { font-family: var(--display); font-size: clamp(36px, 5vw, 56px); font-weight: 900; line-height: 1; }
.quiz__range { width: 100%; margin: 22px 0 6px; accent-color: var(--brand); }
.quiz__fields { display: grid; gap: 12px; margin-top: 22px; max-width: 520px; }

.quiz__fields input {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--ink);
  font: inherit;
}

.quiz__fields input::placeholder { color: var(--subtle); }
.quiz__consent { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 520px; }
.quiz__consent a { color: var(--brand); }
.quiz__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.quiz__note { margin: 14px 0 0; color: var(--subtle); font-size: 13px; }
.quiz__note--error { color: var(--brand); }

.quiz__done { display: none; }
.quiz.is-done .quiz__done { display: block; animation: quiz-in 320ms var(--ease-out) both; }
.quiz.is-done .quiz__body { display: none; }

/* ── Полноэкранный призыв ───────────────────────────────────────────────── */

.banner {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 440px;
  border-radius: var(--radius-card);
}

.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 🚨 Затемнение — `::before`, а не `::after`: псевдоэлемент `::after`
   рисуется последним, то есть поверх текста, и блок выглядит выключенным.
   Слои заданы явно, чтобы это не зависело от порядка в разметке. */
.banner img { z-index: 0; }

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(8 8 10 / 94%) 0%, rgb(8 8 10 / 82%) 44%, rgb(8 8 10 / 38%) 78%, rgb(8 8 10 / 18%) 100%);
}

.banner__inner { position: relative; z-index: 2; padding: clamp(28px, 5vw, 64px); max-width: 620px; }

/* ── Узкие экраны ───────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento__cell--wide,
  .bento__cell--half,
  .bento__cell--third { grid-column: span 2; }
  .bento__cell--tall { grid-row: span 1; min-height: 300px; }
}

@media (max-width: 680px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__cell,
  .bento__cell--wide,
  .bento__cell--half,
  .bento__cell--third { grid-column: span 1; min-height: 240px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .banner::after { background: linear-gradient(180deg, rgb(8 8 10 / 52%), rgb(8 8 10 / 95%)); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .hero__scroll i { animation: none; }
}


/* ── Поле телефона — того же вида, что поле имени ─────────────────────── */

/* Рамка, скругление, фон и отступы — ровно как у соседнего поля «Имя»: два
   поля одной формы должны читаться как одно семейство. Всё внутри тянется
   на всю высоту рамки, поэтому высота совпадает сама. */
.phone-field {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  overflow: hidden;
}

.phone-field:focus-within { border-color: var(--brand); }

/* ⚠️ Родной список всегда берёт ширину самого длинного варианта
   («+993 Туркменистан»): при коротком «Свой код» стрелка уезжала далеко
   вправо. Ширину по выбранному варианту выставляет скрипт, здесь только
   отступы: слева как у поля имени, справа — место под уголок. */
.phone-field__country {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 55%;
  padding: 15px 30px 15px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239e9ea8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-size: 10px 7px;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-field__country:focus { outline: none; }
.phone-field__country option { background: var(--raised); color: var(--ink); }

/* Свой код: «+» и цифры того же веса и цвета, что и номер, — это одна
   строка «+998 900 00 00», а не отдельная жирная плашка. */
.phone-field__plus {
  display: flex;
  align-items: center;
  padding-left: 16px;
  color: var(--ink);
}

.phone-field__plus[hidden] { display: none; }

.phone-field input {
  min-width: 0;
  padding: 15px 18px 15px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.phone-field input:focus { outline: none; }
.phone-field input::placeholder { color: var(--subtle); }

.phone-field input[type="tel"] { flex: 1 1 0; width: 0; }

.phone-field input.phone-field__dial {
  flex: 0 0 auto;
  width: 4.2ch;
  padding-left: 1px;
  padding-right: 0;
}

.phone-field input.phone-field__dial[hidden] { display: none; }

/* Между кодом и номером — обычный пробел, а не черта: это одно число. */
.phone-field input.phone-field__dial:not([hidden]) + input[type="tel"] { padding-left: 8px; }

/* ── Окно с документом ──────────────────────────────────────────────────── */

.doc-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgb(6 6 8 / 88%);
  opacity: 0;
  animation: fade-in var(--dur-panel) var(--ease-out) forwards;
}

.doc-modal__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(900px, 100%);
  height: min(80vh, 760px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}

.doc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
}

.doc-modal__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}


/* Отзыв целиком. Та же рамка, что у документов, но по высоте текста: окно
   на 80 % экрана под три строки выглядело бы пустым. */
.review-modal {
  grid-template-rows: auto minmax(0, 1fr);
  width: min(640px, 100%);
  height: auto;
  max-height: min(84vh, 760px);
}

.review-modal__body { overflow-y: auto; padding: clamp(20px, 3vw, 28px); }
.review-modal__text { margin: 18px 0 0; color: var(--ink); font-size: 16px; line-height: 1.75; }

.review-modal__source {
  display: inline-block;
  margin-top: 22px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.review-modal__source:hover { text-decoration: underline; text-underline-offset: 3px; }


/* Заголовок подбора едет рядом с вопросами: квиз длинный, и без этого
   человек листает его, глядя в пустоту. Липнет ниже шапки. */
.quiz__aside { position: sticky; top: calc(var(--header) + 28px); }

@media (max-width: 860px) {
  .quiz__aside { position: static; }
}


/* ── Галерея во весь экран ──────────────────────────────────────────────── */

.lightbox__frame {
  margin: 0;
  display: grid;
  gap: 16px;
  justify-items: center;
  max-width: min(1180px, 92vw);
}

.lightbox__frame img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--radius-card);
  object-fit: contain;
}

.lightbox__caption:empty { display: none; }

.lightbox__caption {
  max-width: 62ch;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--subtle);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(20 20 24 / 82%);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: border-color var(--dur-hover) ease, background var(--dur-hover) ease;
}

.lightbox__nav--prev { left: clamp(10px, 3vw, 36px); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(10px, 3vw, 36px); top: 50%; transform: translateY(-50%); }
.lightbox__nav--close { top: clamp(10px, 3vw, 28px); right: clamp(10px, 3vw, 36px); font-size: 18px; }

@media (hover: hover) and (pointer: fine) {
  .lightbox__nav:hover { border-color: var(--brand); background: var(--brand); }
}

@media (max-width: 680px) {
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__caption { font-size: 14px; }
}

/* ── Слайдер акций на первом экране ───────────────────────────────────────
 *
 * Макет собран под квадратный постер: клуб рисует акции именно так, и
 * растягивать их на весь экран нельзя — обрезается половина смысла. Поэтому
 * постер показывается целиком слева, текст акции — справа. На телефоне то же
 * самое сверху вниз.
 */

.slider {
  position: relative;
  padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 7vw, 96px);
  overflow: hidden;
  background: var(--canvas);
}

/* Фактура первого экрана: расходящиеся лучи. Рисуем разметкой, а не фоновой
   картинкой — так лучами можно управлять из стилей и слегка их оживить.
   `slice` растягивает по большей стороне: лучи уходят за край экрана
   целиком, без ровного среза посередине. */
.rays {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Вторая страховка: сам слой гаснет к низу и к правому краю. Нужна на
     широких экранах, где луч не успевает раствориться до границы. */
  mask-image: linear-gradient(180deg, #000 0 76%, transparent 100%),
    linear-gradient(90deg, #000 0 86%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(180deg, #000 0 76%, transparent 100%),
    linear-gradient(90deg, #000 0 86%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.rays__ray {
  /* ⚠️ Заливка задана атрибутом в самой разметке, а не здесь: ссылка
     `url(#id)` из внешнего файла стилей резолвится относительно этого
     файла, краска не находится и луч пропадает целиком. */
  fill-opacity: 0.14;
  /* Каждый луч дышит со своей задержкой — иначе это мигание всем полотном. */
  animation: ray-breath 9s ease-in-out infinite alternate;
  animation-delay: calc(var(--n) * -1.1s);
}

/* Весь веер очень медленно качается: движение заметно боковым зрением и не
   отвлекает от текста. */
.rays__fan {
  transform-origin: 0% 20%;
  animation: rays-sway 26s ease-in-out infinite alternate;
}

@keyframes ray-breath {
  from { fill-opacity: 0.10; }
  to { fill-opacity: 0.20; }
}

@keyframes rays-sway {
  from { transform: rotate(-0.9deg); }
  to { transform: rotate(0.9deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rays__ray, .rays__fan { animation: none; }
  .rays__ray { fill-opacity: 0.15; }
}

.slider .container { position: relative; z-index: 1; }

.slider__track { position: relative; }

.slide {
  display: none;
  align-items: center;
  gap: clamp(22px, 4vw, 60px);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.slide.is-active { display: grid; }

.slide__poster {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  /* Квадрат — родной формат постеров акций. Ширину ограничиваем: на большом
     мониторе квадрат в тысячу точек занял бы весь первый экран. */
  aspect-ratio: 1 / 1;
  max-width: 720px;
}

.slide.is-active .slide__poster { animation: slide-in 600ms var(--ease-out) 60ms both; }

.slide__media { width: 100%; height: 100%; object-fit: cover; display: block; }

.slide__body { min-width: 0; }

.slide.is-active .slide__eyebrow { animation: slide-in 600ms var(--ease-out) 120ms both; }
.slide.is-active .slide__title { animation: slide-in 600ms var(--ease-out) 180ms both; }
.slide.is-active .slide__subtitle { animation: slide-in 600ms var(--ease-out) 240ms both; }
.slide.is-active .slide__text { animation: slide-in 600ms var(--ease-out) 300ms both; }
.slide.is-active .slide__points { animation: slide-in 600ms var(--ease-out) 340ms both; }
.slide.is-active .slide__actions { animation: slide-in 600ms var(--ease-out) 400ms both; }

/* 🚨 Начальное состояние живёт внутри анимации, а не в обычном правиле:
   иначе не отработавшая анимация оставляет первый экран пустым. Так видно
   всегда, а появление — только сверху. */
@keyframes slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .slide .slide__poster,
  .slide .slide__eyebrow,
  .slide .slide__title,
  .slide .slide__subtitle,
  .slide .slide__text,
  .slide .slide__points,
  .slide .slide__actions { animation: none; }
}

.slide__title {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.slide__subtitle {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.slide__text {
  margin: 16px 0 0;
  max-width: 72ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: var(--muted);
}

.slide__points {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  max-width: 72ch;
}

.slide__points li {
  position: relative;
  padding-left: 24px;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  color: var(--ink);
}

.slide__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
}

.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Управление живёт на самом постере, а не отдельной строкой под слайдом:
   так оно принадлежит акции, а не висит в пустоте. Счётчик в левом нижнем
   углу, стрелки в правом, по нижней кромке — полоса показа. */
.slide__hud {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.slide__hud > * { pointer-events: auto; }

.slide__count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(14 14 17 / 62%);
  backdrop-filter: blur(8px);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.slide__count b { color: var(--ink); font-size: 16px; }

.slide__arrows { display: flex; gap: 8px; }

.slide__arrow {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(236 236 239 / 18%);
  border-radius: 999px;
  background: rgb(14 14 17 / 62%);
  backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out),
    color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out);
}

/* Значок рисованный: у угловых кавычек своя высота в каждом шрифте, и в
   круглой кнопке они сидят выше середины. */
.slide__arrow svg { width: 15px; height: 15px; display: block; }

@media (hover: hover) and (pointer: fine) {
  .slide__arrow:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
}

.slide__arrow:active { transform: scale(0.94); }

/* Полоса показа по нижней кромке постера: видно, сколько осталось до
   следующей акции. Стоит на месте, если человек просил убрать анимации. */
.slide__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: rgb(236 236 239 / 14%);
  overflow: hidden;
}

.slide__progress i {
  display: block;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--brand);
}

.slide.is-active.is-running .slide__progress i { animation: dot-fill 7s linear forwards; }

/* Пока курсор на слайдере, показ стоит — и полоса вместе с ним, иначе она
   доходит до конца, а акция не меняется.
   ⚠️ Селектор длиннее нужного намеренно: правило выше задаёт анимацию
   сокращённой записью `animation`, а она заодно ставит `running`. У более
   короткого селектора вес меньше, и пауза молча не срабатывала. */
.slider.is-paused .slide.is-active.is-running .slide__progress i { animation-play-state: paused; }

@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .slide.is-active.is-running .slide__progress i { animation: none; transform: scaleX(1); }
}

@media (max-width: 560px) {
  .slide__hud { left: 10px; right: 10px; bottom: 10px; }
  .slide__arrow { width: 40px; height: 40px; }
}

@media (max-width: 900px) {
  .slide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .slide__title { font-size: clamp(26px, 7vw, 36px); }
}

/* ── Блок клуба ───────────────────────────────────────────────────────── */

.club__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

/* Плашка с адресом — строкой, а не столбцом в полкартинки: это справка, а не
   раздел. Подписи мелкие, значения рядом. */
/* Строкой с переносом, а не сеткой: колонки сетки сжимались уже содержимого,
   и на ноутбуке 1280 часы работы наезжали на телефон. Теперь то, что не
   влезло, уходит на следующую строку целиком. */
.club__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
  background: none;
}

.club__facts div { display: grid; gap: 2px; }
.club__facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--subtle); }
.club__facts dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.club__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@media (max-width: 720px) {
  .club__facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .club__facts dd { white-space: normal; }
}

/* Кадры клуба сменяют друг друга: зал, вода, ринг. Снимки выгрузки 16:9,
   поэтому и рамка 16:9 — ничего не подрезается. */
.club__photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.club__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms var(--ease-out);
}

.club__frame.is-active { opacity: 1; }

.club__photo img { width: 100%; height: 100%; object-fit: cover; }

.club__frame figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(14 14 17 / 62%);
  backdrop-filter: blur(8px);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.club__dots {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 7px;
}

.club__dot {
  width: 26px;
  height: 3px;
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: rgb(236 236 239 / 30%);
  cursor: pointer;
  transition: background var(--dur-hover) var(--ease-out);
}

.club__dot.is-active { background: var(--brand); }

@media (max-width: 900px) {
  .club__grid { grid-template-columns: minmax(0, 1fr); }
}

/* На телефоне подпись кадра длинная («Бассейн с морской водой») и черты
   переключателя ложились прямо на неё — уводим их в верхний угол. */
@media (max-width: 560px) {
  .club__dots {
    top: 12px;
    right: 12px;
    bottom: auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgb(14 14 17 / 55%);
    backdrop-filter: blur(8px);
  }
}

/* ── Зоны клуба ───────────────────────────────────────────────────────────
 *
 * Восемь зон: лента вкладок сверху, дальше крупный кадр зоны и текст рядом.
 * Прежний вариант — список слева и три одинаковых плитки справа — читался
 * как таблица: одинаковые прямоугольники в ряд, без главного.
 */

.zones { position: relative; }

/* Лента вкладок: номер и название, активная подсвечена красной чертой. */
.zones__rail {
  display: flex;
  gap: 6px;
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}

.zones__rail::-webkit-scrollbar { display: none; }

.zones__tab {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 18px 16px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-hover) var(--ease-out);
}

.zones__tab::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-panel) var(--ease-out);
}

.zones__tab.is-active { color: var(--ink); }
.zones__tab.is-active::after { transform: scaleX(1); }
.zones__num { font-family: var(--display); font-size: 11px; color: var(--subtle); }
.zones__tab.is-active .zones__num { color: var(--brand); }

@media (hover: hover) and (pointer: fine) {
  .zones__tab:hover { color: var(--ink); }
}

/* Сама зона: слева крупный кадр, справа рассказ. */
.zone { display: none; }

.zone.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 60px);
  margin-top: clamp(28px, 3.5vw, 48px);
  /* Колонки равной высоты: иначе кадр висит сверху, а под ним пусто. */
  align-items: stretch;
  animation: zone-in 500ms var(--ease-out) both;
}

@keyframes zone-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.zone__shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
  /* 🚨 Ни пропорции, ни жёсткой высоты: вместе они заставляли кадр ужиматься
     по ширине под заданную высоту, и слева оставалась узкая картинка с
     пустотой рядом. Кадр занимает всю колонку и тянется на высоту рассказа,
     а снимок внутри кадрируется. */
  /* ⚠️ Без `height: 100%`: на элементе сетки такая высота считается от
     неопределённого размера и гасит растягивание — кадр замирал на своей
     минимальной высоте, а рядом оставалась пустота. Растягивает его
     `align-items: stretch` строки. */
  width: 100%;
  min-height: clamp(360px, 30vw, 520px);
  /* ⚠️ На кадре висит ещё и `gallery__item` — он нужен просмотрщику, но
     приносит свои 4:3 и потолок высоты. Снимаем их здесь, иначе кадр
     остаётся низким, сколько бы места ни было рядом. */
  aspect-ratio: auto;
  max-height: none;
}

.zone__shot img { width: 100%; height: 100%; object-fit: cover; }

.zone__shot figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgb(14 14 17 / 62%);
  backdrop-filter: blur(8px);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.zone__counter {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--subtle);
  letter-spacing: 0.1em;
}

.zone__counter b { color: var(--brand); font-size: 26px; }

.zone__title {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.02;
}

.zone__lead { margin: 12px 0 0; font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; color: var(--brand); }
.zone__text { margin-top: 18px; max-width: 62ch; color: var(--muted); font-size: 15px; line-height: 1.75; }
.zone__text p { margin: 0 0 12px; }

.zone__points { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }

.zone__points li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 15px;
}

.zone__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
}

/* Остальные кадры — мелкими плитками под текстом, открываются в просмотрщике. */
.zone__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
}

.zone__thumb {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.zone__thumb img { width: 100%; height: 100%; object-fit: cover; }

.zone__side { display: flex; flex-direction: column; }
/* Кнопка идёт сразу за рассказом — она к нему и относится. Пустоту внизу
   колонки добирают кадры: иначе кнопка висела бы одна посреди воздуха. */
.zone__more { margin: 26px 0 0; }

@media (max-width: 900px) {
  .zone.is-active { grid-template-columns: minmax(0, 1fr); }
  .zones__tab { padding: 10px 14px 14px; font-size: 13px; }
  .zones__tab::after { left: 14px; right: 14px; }
}

/* Лента кадров зоны — только на телефоне: там крупный кадр сверху и плитки
   под текстом разводили снимки одной зоны по разным концам экрана. Все кадры
   одной квадратной пропорции, листаются пальцем, черты — в верхнем углу,
   чтобы не лечь на подпись. */
.zone__slider { display: none; }

@media (max-width: 760px) {
  .zone__slider { display: block; position: relative; }
  .zone__shot,
  .zone__thumbs { display: none; }
}

.zone__track {
  position: relative;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius-card);
}

.zone__track::-webkit-scrollbar { display: none; }

.zone__slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
  scroll-snap-align: start;
}

.zone__slide img { width: 100%; height: 100%; object-fit: cover; }

.zone__slider-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgb(14 14 17 / 62%);
  backdrop-filter: blur(8px);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* Под чертами — тёмная подложка: верх снимка часто светлый (потолок, окна),
   и белые черты на нём терялись. */
.zone__dots {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 2px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgb(14 14 17 / 55%);
  backdrop-filter: blur(8px);
}

/* Черта тонкая, а нажимать её пальцем — поэтому кнопка выше самой черты. */
.zone__dot {
  position: relative;
  width: 28px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.zone__dot::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: rgb(236 236 239 / 45%);
  transition: background var(--dur-hover) var(--ease-out);
}

.zone__dot.is-active::before { background: var(--brand); }

/* ── Услуги: разворот на каждую, картинка и рассказ меняются местами ──── */

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 64px) 0;
  border-top: 1px solid var(--line);
}

.service:first-of-type { margin-top: clamp(20px, 2.5vw, 34px); }

/* Через одну меняем стороны: страница перестаёт читаться как таблица. */
.service:nth-child(even) .service__body { order: 2; }

.service__rule { display: block; width: 74px; height: 3px; background: var(--brand); }

.service__name {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
}

.service__text { margin: 18px 0 0; max-width: 56ch; color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.7; }
.service__more { margin: 28px 0 0; }

.service__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  max-height: none;
  background: var(--surface);
}

.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__media figcaption { display: none; }

@media (max-width: 900px) {
  .service { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .service:nth-child(even) .service__body { order: 0; }
  /* В одну колонку картинка идёт первой: сначала видно, о чём речь. */
  .service__media { order: -1; }
}

/* ── Клубные карты: узкие колонки, у лучшей — кадр за плашкой ─────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
  margin-top: clamp(24px, 3vw, 36px);
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: clamp(20px, 1.8vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--canvas);
}

.plan--featured { background: var(--raised); }

/* Кадр за плашкой лучшей карты: он должен читаться, но не спорить с текстом. */
.plan__shot {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.3;
}

.plan--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(14 14 17 / 55%) 0%, rgb(14 14 17 / 88%) 55%, var(--canvas) 100%);
}

.plan--featured > *:not(.plan__shot) { position: relative; z-index: 2; }

.plan__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}

.plan__note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.plan__note b { color: var(--ink); }
.plan__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 auto; padding: 0; list-style: none; }

.plan__chips li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.plan--featured .plan__chips li { background: rgb(14 14 17 / 70%); }

.plan__chips li.is-off {
  color: var(--subtle);
  border-style: dashed;
  background: none;
  text-decoration: line-through;
  text-decoration-color: var(--subtle);
}

.plan .btn { margin-top: 18px; justify-content: center; }
.plans__note { margin: clamp(18px, 2vw, 26px) 0 0; color: var(--subtle); font-size: 13px; }
.plans__note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* «Полезно знать» под картами: оплата, заморозка, вопросы — то, о чём
   спрашивают перед покупкой. */
.useful {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(20px, 2.4vw, 32px);
}

.useful__item {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: clamp(20px, 2vw, 28px) clamp(20px, 2vw, 28px) clamp(20px, 2vw, 28px);
  padding-right: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: border-color var(--dur-hover) var(--ease-out);
}

.useful__title {
  font-family: var(--display);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 900;
  text-transform: uppercase;
}

.useful__text { color: var(--muted); font-size: 14px; line-height: 1.55; }

.useful__more {
  position: absolute;
  top: clamp(20px, 2vw, 28px);
  right: clamp(20px, 2vw, 26px);
  color: var(--brand);
  font-size: 20px;
  transition: transform var(--dur-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .useful__item:hover { border-color: var(--brand); }
  .useful__item:hover .useful__more { transform: translateX(4px); }
}

@media (max-width: 860px) {
  .useful { grid-template-columns: minmax(0, 1fr); }
}

/* ── Гостевая тренировка ──────────────────────────────────────────────── */

/* 🚨 На телефоне баннер с формой — во всю ширину экрана. В обычной рамке
   форма оказывалась в двух вложенных рамках и уезжала вправо от колонки, в
   которой стоит весь остальной текст страницы. Без боковых полей рассказ и
   форма встают в ту же колонку. Затемнение — сверху вниз: текст и форма
   здесь друг под другом, а не рядом. Клетку сетки (`banner--stack`) не
   трогаем — у неё соседи. */
@media (max-width: 560px) {
  .banner--guest:not(.banner--stack) {
    margin-inline: calc(-1 * var(--gutter));
    border-radius: 0;
  }
  .banner--guest:not(.banner--stack) .banner__inner.guest { padding: 44px var(--gutter); }
  .banner--guest:not(.banner--stack)::before {
    background: linear-gradient(180deg, rgb(8 8 10 / 72%) 0%, rgb(8 8 10 / 90%) 55%, rgb(8 8 10 / 94%) 100%);
  }
}

/* ⚠️ Внутренность баннера рассчитана на короткий призыв и потому узкая.
   Форме рядом нужна вся ширина, иначе текст слева сжимается в столбик. */
.banner__inner.guest { max-width: none; width: 100%; }

/* Без скрипта к форме прыгает сам браузер — пусть хотя бы не прячет её верх
   под приклеенной шапкой. Со скриптом блок встаёт посередине экрана. */
.banner[id] { scroll-margin-top: calc(var(--header) + 24px); }

.guest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
}

.guest__label { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.guest__form > * { min-width: 0; }
.guest__fields { display: grid; gap: 10px; min-width: 0; }

.guest__fields > input {
  min-width: 0;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--ink);
  font: inherit;
}

.guest__fields > input::placeholder { color: var(--subtle); }
.guest__fields > input:focus { outline: none; border-color: var(--brand); }

.guest__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Своя галочка: браузерная рисуется системным синим и рядом с тёмной формой
   выглядит чужой. */
.guest__consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.guest__consent a { color: var(--brand); }
.guest__note { margin: 0; color: var(--subtle); font-size: 13px; }
.guest__note--error,
.guest__note.is-error { color: var(--brand); }

.guest__form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgb(14 14 17 / 82%);
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  .guest { grid-template-columns: minmax(0, 1fr); }
}

/* ── Окно «Посетить клуб» ──────────────────────────────────────────── */

/* Родной `<dialog>`: поверх всего, фокус внутри, Esc закрывает. Вид — как у
   гостевой формы, только без фотографии: окно маленькое. */
.visit {
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 2 * var(--gutter));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgb(0 0 0 / 55%);
}

.visit::backdrop { background: rgb(6 6 8 / 80%); }
.visit[open] { animation: visit-in var(--dur-panel) var(--ease-out); }
.visit[open]::backdrop { animation: fade-in var(--dur-panel) var(--ease-out) forwards; opacity: 0; }

@keyframes visit-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.visit__panel { display: grid; gap: 14px; padding: clamp(20px, 3vw, 28px); }

.visit__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.visit__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.visit__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}

.visit__lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.visit .btn { width: 100%; justify-content: center; }

/* Заявка ушла — поля больше не нужны, остаётся ответ клуба. */
.visit__panel.is-done .guest__fields,
.visit__panel.is-done .guest__consent,
.visit__panel.is-done button[type='submit'] { display: none; }
.visit__panel.is-done .guest__note { color: var(--ink); font-size: 16px; }

/* Документ, открытый из окна, ложится внутрь него — рамка та же. */
.visit .doc-modal { position: fixed; }

/* ── Акции ─────────────────────────────────────────────────────────── */

.promos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.promo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: inherit;
  transition: border-color var(--dur-hover) var(--ease-out);
}

/* Снимок не приближается при наведении: владелец просил не масштабировать
   фотографии на сайте. Отклик — рамка. */
.promo__cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--raised); }
.promo__cover img { width: 100%; height: 100%; object-fit: cover; }

/* Акция без снимка не выглядит сломанной: вместо пустого прямоугольника —
   фирменная плашка. */
.promo__cover--empty {
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 20% 10%, rgb(255 31 31 / 55%) 0%, rgb(255 31 31 / 12%) 45%, var(--raised) 100%);
}

.promo__cover--empty span {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 85%);
}

.promo__body {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 10px;
  padding: clamp(18px, 2vw, 24px);
}

.promo__title {
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.promo__text { color: var(--muted); font-size: 14px; line-height: 1.6; }
.promo__more { padding-top: 6px; color: var(--brand); font-size: 13px; font-weight: 700; }
/* Дата новости — над заголовком, мелко: читается первой, но не спорит с ним. */
.promo__date { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

@media (hover: hover) and (pointer: fine) {
  .promo:hover { border-color: var(--brand); }
}

.promos__notice {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

/* Акций нет — это не поломка, а пауза между кампаниями: говорим прямо и
   даём, куда пойти. */
.promos-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.promos-empty__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.promos-empty__text { margin: 0; max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.promos-empty .club__actions { margin-top: 12px; }

/* ⚠️ Свой `display` перебивает атрибут `hidden` — прячем явно. */
.promos[hidden],
.promos-empty[hidden],
.promos__notice[hidden] { display: none; }

/* Условия акции — окном, как и короткая заявка, только шире. */
.promo-dialog {
  width: min(760px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 2 * var(--gutter));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgb(0 0 0 / 55%);
}

.promo-dialog::backdrop { background: rgb(6 6 8 / 80%); }
.promo-dialog[open] { animation: visit-in var(--dur-panel) var(--ease-out); }
.promo-dialog__panel { position: relative; }

.promo-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgb(14 14 17 / 72%);
}

.promo-dialog__cover { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--raised); }
.promo-dialog__cover img { width: 100%; height: 100%; object-fit: cover; }
/* Видео-обложка: без `display`, чтобы `hidden` его прятал. */
.promo-dialog__cover video { width: 100%; height: 100%; object-fit: cover; vertical-align: top; background: #000; }
.promo-dialog__body { padding: clamp(20px, 3vw, 32px); }

.promo-dialog__title {
  margin: 8px 0 0;
  padding-right: 44px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.promo-dialog__lead { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.promo-dialog__text { margin-top: 8px; font-size: 15px; line-height: 1.7; }
.promo-dialog__text p,
.promo-dialog__text ul,
.promo-dialog__text ol { margin: 14px 0 0; }
.promo-dialog__text ul,
.promo-dialog__text ol { padding-left: 22px; }
.promo-dialog__text li + li { margin-top: 6px; }

.promo-dialog__text h3 {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-dialog__text blockquote {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--brand);
  color: var(--muted);
}

.promo-dialog__text a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.promo-dialog__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.promo-dialog__actions:empty { display: none; }

@media (max-width: 1080px) {
  .promos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .promos { grid-template-columns: minmax(0, 1fr); }
}

/* ── Команда ──────────────────────────────────────────────────────────── */

.person {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur-hover) var(--ease-out);
}

/* Пропорция кадра та же, что в приложении: 3 к 4 и кадрирование по лицу. */
.person__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--raised); }
/* Наводим — приближается сам кадр внутри рамки, как в ленте клуба. Карточка
   при этом стоит на месте: подпрыгивающие плитки владелец убрал. */
.person__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 700ms var(--ease-out);
}
.person__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 20px; }
.person__name { font-family: var(--display); font-size: 17px; font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.person__role { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.person__more { margin-top: auto; padding-top: 14px; color: var(--brand); font-size: 13px; font-weight: 700; }

@media (hover: hover) and (pointer: fine) {
  .person:hover { border-color: var(--brand); }
  .person:hover .person__media img { transform: scale(1.06); }
}

/* ── Что мы можем предложить: колода ──────────────────────────────────── */

.deck { display: grid; gap: clamp(18px, 2.4vw, 34px); margin-top: clamp(26px, 3vw, 44px); }

/* Каждая карточка приклеена к одной и той же высоте. Следующая доезжает до
   неё и встаёт сверху — она позже в разметке, поэтому и рисуется поверх.
   Потемнение и уменьшение нижней добавляет скрипт. */
.deck__card {
  position: sticky;
  top: calc(var(--header) + 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  height: min(64vh, 520px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--raised);
  /* ⚠️ Тени у карточек нет намеренно. Карточки стоят стопкой, и тень каждой
     ложилась поверх предыдущих: под шапкой копилась тёмная полоса, под
     последней карточкой — пятно. Что сверху, и так видно — нижняя карточка
     темнеет и отъезжает вглубь. */
  transform-origin: 50% 0;
  will-change: transform, filter;
}

.deck__shot { position: relative; margin: 0; overflow: hidden; height: 100%; background: var(--surface); }

/* 🚨 На широком экране рамка вытянута в полосу, и снимок, подогнанный по
   центру, резал головы на групповом фото. Снимок выше рамки на треть и
   выровнен по верху: пока карточка доезжает до места, он плывёт вверх, а
   когда встала и читается — видна верхняя часть, то есть лица. Сдвиг
   выставляет скрипт колоды. */
.deck__shot img {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}

.deck__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 48px);
}

.deck__num { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--subtle); }
.deck__num b { color: var(--brand); }

.deck__lead {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.deck__text { margin: 0; color: var(--muted); font-size: clamp(14px, 1.2vw, 16px); line-height: 1.65; }

.deck__tag {
  margin-top: auto;
  align-self: flex-start;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* На узком экране колода бессмысленна — карточки идут обычным списком. */
@media (max-width: 900px) {
  .deck__card {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    transform: none !important;
    filter: none !important;
  }

  .deck__shot { height: auto; aspect-ratio: 16 / 10; }
  .deck__shot img { position: static; height: 100%; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .deck__card { transform: none !important; filter: none !important; }
  .deck__shot img { transform: none !important; }
}

/* ── Отзывы: лента едет сама, длинный текст сворачивается ─────────────── */

.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

/* Оценка — как значок доверия: крупная цифра, звёзды и источник рядом.
   Стили потерялись при переделке ленты 22.09 (f64660c), а разметка осталась
   — до 26.09 значок стоял голой строкой «5,0 ★★★★★ Яндекс Карты». */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur-hover) var(--ease-out);
}

.rating__value { font-family: var(--display); font-size: 40px; font-weight: 900; line-height: 1; }
.rating__side { display: grid; gap: 4px; }
.rating__stars { color: var(--brand); font-size: 15px; letter-spacing: 2px; }
.rating__source { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }

@media (hover: hover) and (pointer: fine) {
  .rating:hover { border-color: var(--brand); }
}

.reviews {
  --зазор: clamp(16px, 1.6vw, 24px);
  overflow: hidden;
  margin-top: clamp(26px, 3vw, 40px);
  /* Края ленты гасим: карточка, обрезанная посередине, читается как
     недогруженная, а растворённая — как продолжение. */
  mask-image: linear-gradient(90deg, transparent 0, #000 clamp(24px, 4vw, 90px), #000 calc(100% - clamp(24px, 4vw, 90px)), transparent 100%);
}

.reviews__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: var(--зазор);
  animation: reviews-roll 110s linear infinite;
}

/* Карточки выложены дважды, поэтому уезжаем ровно на половину дорожки плюс
   половину зазора — иначе на стыке набегала бы лишняя щель. */
@keyframes reviews-roll { to { transform: translateX(calc(-50% - var(--зазор) / 2)); } }

.reviews.is-paused .reviews__track { animation-play-state: paused; }

@media (hover: hover) and (pointer: fine) {
  .reviews:hover .reviews__track { animation-play-state: paused; }
}

.review {
  flex: 0 0 clamp(290px, 25vw, 380px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.review__head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }

.review__face {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--raised);
}

.review__face--empty {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  color: var(--muted);
}

.review__who { display: grid; gap: 3px; min-width: 0; }
.review__who b { font-family: var(--display); font-size: 14px; font-weight: 900; text-transform: uppercase; }
.review__stars { color: var(--brand); font-size: 12px; letter-spacing: 2px; }
.review__date { color: var(--subtle); font-size: 12px; font-style: normal; white-space: nowrap; }

/* Длинные отзывы прячем под кнопку: один рассказ на полторы тысячи точек
   растягивал всю ленту по высоте. */
.review__text {
  position: relative;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.review__more {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

/* На телефоне лента не едет сама: её листают пальцем, а копии карточек там
   только мешали бы. */
@media (max-width: 900px) {
  .reviews { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; mask-image: none; }
  .reviews::-webkit-scrollbar { display: none; }
  .reviews__track { animation: none; }
  .review { scroll-snap-align: start; flex-basis: min(82vw, 340px); }
  .review[aria-hidden="true"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews { overflow-x: auto; }
  .reviews__track { animation: none; }
  .review[aria-hidden="true"] { display: none; }
}

/* ── Страница «Отзывы»: оценка сбоку, отзывы стеной ──────────────────── */

.feedback {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

/* Оценка едет рядом с отзывами: пока человек читает, кнопки «Все отзывы»
   и «Оставить отзыв» под рукой. */
.score {
  position: sticky;
  top: calc(var(--header) + 28px);
  display: grid;
  gap: 22px;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.score__source {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.score__top { display: flex; align-items: center; gap: 18px; }
.score__value { font-family: var(--display); font-size: clamp(64px, 6vw, 88px); font-weight: 900; line-height: 0.9; }
.score__side { display: grid; gap: 8px; }
.score__stars { color: var(--brand); font-size: 20px; letter-spacing: 3px; }
.score__count { color: var(--muted); font-size: 14px; line-height: 1.5; }
.score__actions { display: grid; gap: 10px; }
.score__note { margin: 0; color: var(--subtle); font-size: 13px; line-height: 1.6; }

/* Отзывы стеной в две колонки: тексты разной длины, в ровной сетке короткие
   карточки стояли бы с пустотой до соседней длинной. Здесь отзыв целиком —
   ради него на страницу и пришли, прятать под кнопку незачем. */
.review-wall { columns: 2; column-gap: clamp(16px, 1.6vw, 24px); }

.review-wall .review {
  break-inside: avoid;
  margin-bottom: clamp(16px, 1.6vw, 24px);
}

.review-wall .review__text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  font-size: 15px;
}

@media (max-width: 1080px) {
  .feedback { grid-template-columns: minmax(0, 1fr); }

  /* Над отзывами оценка ложится полосой: цифра слева, кнопки справа. */
  .score {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 32px;
  }

  .score__source, .score__note { grid-column: 1 / -1; }
  .score__actions { grid-auto-flow: column; }
}

@media (max-width: 700px) {
  .review-wall { columns: 1; }
  .score { grid-template-columns: minmax(0, 1fr); }
  .score__actions { grid-auto-flow: row; }
}

/* ── Лента новостей клуба: сетка карточек с обложками ─────────────────── */

.feed__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(18px, 2.5vw, 40px);
}

/* Значок «в эфире»: точка пульсирует, пока лента живая. */
.feed__live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.feed__live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: feed-pulse 2s ease-in-out infinite;
}

@keyframes feed-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgb(255 31 31 / 45%); }
  50% { opacity: 0.55; box-shadow: 0 0 0 7px rgb(255 31 31 / 0%); }
}

/* Четыре последние новости, плашки одного размера (владелец 30.09.2026): на
   компьютере — четыре в ряд, на планшете — два на два, на телефоне — лента
   свайпом с плашкой «Все новости» в конце. Колонки жёсткие: прежнее `auto-fit`
   схлопывало пустые, и одна новость растягивалась на всю ширину, а кадр 4:3 —
   в полтора экрана. */
.feed__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
  margin-top: clamp(26px, 3vw, 40px);
}

.feed__item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}

.feed__shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--raised);
}

.feed__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }

/* Метка лежит на кадре: в карточке каждая строка на счету, отдельная колонка
   под дату съела бы половину ширины. */
.feed__mark,
.feed__date {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgb(14 14 17 / 72%);
  backdrop-filter: blur(8px);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.feed__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.feed__title { margin: 0; font-family: var(--display); font-size: 17px; font-weight: 900; text-transform: uppercase; line-height: 1.15; }
.feed__text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.feed__more {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

@media (hover: hover) and (pointer: fine) {
  .feed__item:hover { border-color: var(--brand); }
  .feed__item:hover .feed__shot img { transform: scale(1.06); }
}

/* Плашка «Все новости» — только в ленте свайпом: на широком экране для этого
   есть кнопка в шапке блока. */
.feed__all { display: none; }

.feed__all-arrow {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .feed__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  /* Лента выходит к краям экрана: свайп не упирается в поля контейнера. */
  .feed__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(var(--gutter), 3.5vw, 110px);
    margin-inline: calc(-1 * clamp(var(--gutter), 3.5vw, 110px));
    padding: 0 clamp(var(--gutter), 3.5vw, 110px) 6px;
    scrollbar-width: none;
  }
  .feed__list::-webkit-scrollbar { display: none; }
  .feed__item { scroll-snap-align: start; }
  .feed__all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
  }
}

/* ── Раздел «Услуги»: главная раздела и страницы услуг ─────────────────────
 *
 * Те же кирпичи, что на главной: плашки с рамкой, красная черта, крупный
 * Montserrat. Карточки при наведении не подпрыгивают и снимки в них не
 * увеличиваются — владелец снял это со всего сайта. Отзывается только рамка.
 */

h2.title .accent { color: var(--brand); }

.svc-intro { padding-bottom: clamp(32px, 4vw, 56px); }
.svc-intro .display { max-width: 15ch; }
/* Длинное название документа мельче и шире: в 15 знаках «Политика в
   отношении обработки персональных данных» ломалась на пять строк. */
.svc-intro .display--md { max-width: 26ch; }

/* Семь направлений в две колонки, восьмая клетка — форма консультации:
   на прежнем сайте седьмая карточка висела одна, а рядом было пусто. */
.directions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 28px);
}

.direction {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.direction__media { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--raised); }
.direction__media img { width: 100%; height: 100%; object-fit: cover; }
.direction__body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.4vw, 34px); }

.direction__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

/* Стрелка приклеена к последнему слову неразрывным пробелом: при переносе
   длинного названия она не уезжает к краю и не остаётся одна на строке. */
.direction__name a::after {
  content: "\00a0\2192";
  color: var(--brand);
  font-size: 0.75em;
}

.direction__text { margin: 14px 0 0; max-width: 62ch; color: var(--muted); font-size: 15px; line-height: 1.7; }

.direction__foot { margin-top: auto; padding-top: 22px; }

.direction__pick {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.direction__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }

.direction__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  transition: border-color var(--dur-hover) var(--ease-out);
}

.direction__links a::after { content: "→"; color: var(--brand); }

/* Форма клеткой сетки: рассказ над формой, снимок фоном под сплошным
   затемнением — боковое затемнение баннера рассчитано на текст слева и
   форму справа, а здесь они друг под другом. Рамка — как у соседних
   карточек, высота — по соседу в ряду. */
.banner--stack { min-height: 0; border: 1px solid var(--line); }
.banner--stack::before { background: linear-gradient(180deg, rgb(8 8 10 / 78%) 0%, rgb(8 8 10 / 90%) 100%); }

.banner--stack .banner__inner.guest {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: clamp(22px, 2.4vw, 34px);
}

@media (hover: hover) and (pointer: fine) {
  .direction__name a:hover { color: var(--brand); }
  .direction__links a:hover { border-color: var(--brand); }
}

@media (max-width: 900px) {
  .directions { grid-template-columns: minmax(0, 1fr); }
}

/* Страница услуги: крошки, снимок с названием, вступление с кнопками. */
.svc-hero { padding: clamp(20px, 3vw, 36px) 0 clamp(40px, 5vw, 72px); }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 18px; color: var(--subtle); font-size: 13px; }
.crumbs a { color: var(--muted); transition: color var(--dur-hover) ease; }
.crumbs > * + *::before { content: "/"; margin-right: 10px; color: var(--soft); }
.crumbs [aria-current] { color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .crumbs a:hover { color: var(--ink); }
}

.svc-hero__frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 34vw, 500px);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.svc-hero__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }

/* Название читается на любом снимке: затемнены низ и левый край, где
   стоит текст. Одного затемнения снизу мало — на светлых кадрах (детский
   класс, соляная комната) красная строка над названием терялась. */
.svc-hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(8 8 10 / 72%) 0%, rgb(8 8 10 / 38%) 50%, rgb(8 8 10 / 0%) 85%),
    linear-gradient(180deg, rgb(8 8 10 / 0%) 30%, rgb(8 8 10 / 45%) 65%, rgb(8 8 10 / 88%) 100%);
}

.svc-hero__inner { position: relative; z-index: 2; padding: clamp(24px, 4vw, 56px); }
.svc-hero__inner .display { max-width: 20ch; }
.svc-hero__inner .club__facts { margin-top: 18px; }

.svc-hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  margin-top: clamp(24px, 3vw, 40px);
}

.svc-hero__lead p { margin: 0 0 12px; max-width: 72ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; }
.svc-hero__lead p:last-child { margin-bottom: 0; }
.svc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

@media (max-width: 900px) {
  .svc-hero__intro { grid-template-columns: minmax(0, 1fr); }
  .svc-hero__actions { justify-content: flex-start; }
}

/* «Что даёт»: плашки с номером. На прежнем сайте — сплошные красные; на тёмном
   полотне столько красного кричит, поэтому красный остался в номере. */
/* Колонок на широком экране — столько, сколько плашек (их 4 или 5): при
   подборе «сколько влезет» пятая уезжала одна во второй ряд. */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1200px) {
  .benefits { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .benefits { grid-template-columns: minmax(0, 1fr); }
}

.benefit {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.benefit__num { font-family: var(--display); font-size: 13px; font-weight: 900; color: var(--brand); }
.benefit__title { font-family: var(--display); font-size: clamp(16px, 1.3vw, 18px); font-weight: 700; line-height: 1.3; }
.benefit__text { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* «Кому подходит» и «Как проходит» — рядом: это два коротких списка. */
.svc-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); }
.svc-split h2.title { font-size: clamp(24px, 2.6vw, 36px); }

.checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--brand);
}

@media (max-width: 900px) {
  .svc-split { grid-template-columns: minmax(0, 1fr); }
}

/* «Почему мы»: снимок и подпись под ним. Без снимков — плашки с номером. */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.reasons[data-items="2"],
.reasons[data-items="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.reason {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.reason__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--raised); }
/* Кадр ближе к верху: на снимках тренеров иначе срезало головы. */
.reason__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.reason__text {
  padding: 18px 20px 22px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.reason__text::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 12px; background: var(--brand); }

.reasons--plain .reason { padding: clamp(20px, 2vw, 26px); }
.reasons--plain .reason__text { padding: 12px 0 0; }
.reasons--plain .reason__text::before { display: none; }
.reason__num { font-family: var(--display); font-size: 13px; font-weight: 900; color: var(--brand); }

@media (max-width: 1080px) {
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .reasons,
  .reasons[data-items="2"],
  .reasons[data-items="4"] { grid-template-columns: minmax(0, 1fr); }
}

/* Программы, тренеры и переходы по разделу — одна карточка: кадр сверху,
   название и рассказ под ним. */
.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.programs--people { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Две и четыре карточки — по две в ряд, иначе последняя висит одна. Кадр
   при этом ниже: в широкой колонке 4:3 вырастает в полэкрана. */
.programs[data-items="2"]:not(.programs--people),
.programs[data-items="4"]:not(.programs--people) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.programs[data-items="2"]:not(.programs--people) .program__media,
.programs[data-items="4"]:not(.programs--people) .program__media { aspect-ratio: 16 / 9; }

/* Одна карточка — во всю ширину, кадр слева: треть ширины и пустота рядом
   выглядели как недогруженный блок. */
.programs[data-items="1"] { grid-template-columns: minmax(0, 1fr); }
.programs[data-items="1"] .program { flex-direction: row; }
.programs[data-items="1"] .program__media { flex: 0 0 44%; aspect-ratio: auto; min-height: 300px; }
/* ⚠️ Снимок кладём поверх рамки: иначе вертикальный кадр растягивал
   карточку на свою высоту — фото выходило в полэкрана. */
.programs[data-items="1"] .program__media img { position: absolute; inset: 0; }

/* Секции для детей — квадратные афиши с расписанием на самом снимке:
   рамка 4:3 срезала им низ. */
.programs--posters .program__media { aspect-ratio: 1 / 1; }

.program {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--canvas);
  color: inherit;
  transition: border-color var(--dur-hover) var(--ease-out);
}

.program__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--raised); }
.program__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.program--portrait .program__media { aspect-ratio: 3 / 4; }
.program--portrait .program__media img { object-position: center 22%; }

/* Снимка нет (у «Шахмат» его не было и на прежнем сайте) — вместо дыры название. */
.program__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--soft);
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.program__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: clamp(18px, 1.8vw, 24px); }

.program__tag {
  align-self: flex-start;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program__name { margin: 0; font-family: var(--display); font-size: clamp(17px, 1.5vw, 21px); font-weight: 900; line-height: 1.15; text-transform: uppercase; }
.program__text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.program__more { margin-top: auto; padding-top: 10px; color: var(--brand); font-size: 13px; font-weight: 700; }

@media (hover: hover) and (pointer: fine) {
  a.program:hover { border-color: var(--brand); }
}

@media (max-width: 1080px) {
  .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programs--people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .programs[data-items="1"] .program { flex-direction: column; }
  .programs[data-items="1"] .program__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .programs[data-items="1"] .program__media img { position: static; }
}

@media (max-width: 600px) {
  .programs,
  .programs[data-items="2"]:not(.programs--people),
  .programs[data-items="4"]:not(.programs--people) { grid-template-columns: minmax(0, 1fr); }
}

/* «Другие услуги»: плитки со снимком и названием поверх. */
.others { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }

.other {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  transition: border-color var(--dur-hover) var(--ease-out);
}

.other img { width: 100%; height: 100%; object-fit: cover; }

.other::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(8 8 10 / 0%) 35%, rgb(8 8 10 / 88%) 100%);
}

/* Кегль ужимается на телефоне: «Индивидуальные» в плитку шириной 160
   точек при 14 px не влезало и обрезалось. */
.other span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(11px, 3.1vw, 14px);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .other:hover { border-color: var(--brand); }
}

@media (max-width: 1080px) {
  .others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Расписание ─────────────────────────────────────────────────────────── */

/* Дни и фильтр прилипают под шапкой: список длинный, а переключаться между
   днями хочется, не прокручивая наверх. */
.sched__bar {
  position: sticky;
  top: var(--header);
  z-index: 5;
  display: grid;
  gap: 12px;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

/* ⚠️ Прокручиваемая полоса обрезает всё, что выступает за неё, — и рамку
   фокуса у нажатой кнопки тоже: по бокам оставались красные дуги. Внутри
   полосы запас на рамку с отступом (2 + 3 точки), снаружи он погашен. */
.sched__days,
.sched__filters { display: flex; gap: 8px; margin: -5px; padding: 5px; overflow-x: auto; scrollbar-width: none; }

.sched__days::-webkit-scrollbar,
.sched__filters::-webkit-scrollbar { display: none; }

.sched__filters[hidden] { display: none; }

.sched__day {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 76px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  transition: border-color var(--dur-hover) var(--ease-out), background var(--dur-hover) var(--ease-out);
}

.sched__day span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sched__day b { font-family: var(--display); font-size: 22px; font-weight: 900; line-height: 1; color: var(--ink); }
.sched__day small { font-size: 11px; }
.sched__day.is-weekend span { color: var(--brand); }

.sched__day[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.sched__day[aria-pressed="true"] b,
.sched__day[aria-pressed="true"] span { color: var(--on-brand); }

.sched__filter {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: border-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}

.sched__filter[aria-pressed="true"] { border-color: var(--ink); background: rgb(255 255 255 / 6%); color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .sched__day:hover { border-color: var(--soft); }
  .sched__filter:hover { color: var(--ink); }
}

.sched__list { display: grid; gap: 8px; margin-top: 18px; }

.sched__item { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.sched__item.is-past { opacity: 0.5; }
.sched__item.is-now { border-color: var(--brand); }

.sched__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  list-style: none;
}

summary.sched__row { cursor: pointer; }
summary.sched__row::-webkit-details-marker { display: none; }

.sched__time { display: grid; gap: 3px; }
.sched__time b { font-family: var(--display); font-size: 22px; font-weight: 900; line-height: 1; }
.sched__time span { color: var(--subtle); font-size: 12px; }

.sched__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.sched__who { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sched__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.sched__tag {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sched__tag--paid { border-color: rgb(255 31 31 / 45%); color: var(--brand); }
.sched__tag--now { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }

/* Уголок раскрытия: разворачивается, когда описание открыто. */
.sched__more {
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--subtle);
  border-bottom: 2px solid var(--subtle);
  transform: rotate(45deg);
  transition: transform var(--dur-hover) var(--ease-out);
}

details[open] > .sched__row .sched__more { transform: rotate(-135deg); }

.sched__desc { padding: 0 20px 18px calc(20px + 96px + 16px); color: var(--muted); font-size: 14px; line-height: 1.65; }
.sched__desc p { margin: 0 0 8px; max-width: 80ch; }
.sched__desc p:last-child { margin-bottom: 0; }

.sched__state {
  margin: 18px 0 0;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  color: var(--muted);
  text-align: center;
}

.sched__list > .sched__state { margin-top: 0; }
.sched__state a,
.sched__note a { color: var(--ink); font-weight: 700; }
.sched__note { margin: 18px 0 0; color: var(--subtle); font-size: 13px; }

@media (max-width: 600px) {
  .sched__row { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .sched__time b { font-size: 18px; }
  .sched__desc { padding: 0 14px 14px; }
}

/* ── Команда клуба ──────────────────────────────────────────────────────── */

.team-pick {
  margin: 0 0 12px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Запас под рамку фокуса — как у ленты дней расписания: прокручиваемая
   полоса иначе срезает её. */
.team-tabs { display: flex; gap: 8px; margin: -5px; padding: 5px; overflow-x: auto; scrollbar-width: none; }
.team-tabs::-webkit-scrollbar { display: none; }

.team-tab {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: border-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}

.team-tab[aria-current="page"] { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }

@media (hover: hover) and (pointer: fine) {
  .team-tab:not([aria-current="page"]):hover { border-color: var(--soft); color: var(--ink); }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: 26px;
}

.team-grid > .sched__state { grid-column: 1 / -1; margin: 0; }

.coach {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: inherit;
  scroll-margin-top: calc(var(--header) + 24px);
  transition: border-color var(--dur-hover) var(--ease-out);
}

/* Пропорция и кадрирование — как у тренеров на главной и в приложении. */
.coach__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--raised); }
.coach__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }

.coach__initials {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--soft);
  font-family: var(--display);
  font-size: 44px;
  font-weight: 900;
}

.coach__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 16px 18px 20px; }

.coach__name {
  font-family: var(--display);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.coach__name span { display: block; }
.coach__role { color: var(--muted); font-size: 13px; line-height: 1.45; }
.coach__dirs { color: var(--subtle); font-size: 12px; }
.coach__more { margin-top: auto; padding-top: 12px; color: var(--brand); font-size: 13px; font-weight: 700; }

@media (hover: hover) and (pointer: fine) {
  .coach:hover { border-color: var(--brand); }
}

@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach__body { padding: 14px; }
}

/* Страница тренера: снимок слева, рассказ справа. На телефоне — столбиком. */
.coach-page { padding-top: clamp(28px, 4vw, 56px); }
.coach-page .crumbs { margin-bottom: clamp(20px, 3vw, 36px); }

.coach-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.coach-profile__photo {
  display: block;
  position: sticky;
  top: calc(var(--header) + 24px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--raised);
}

.coach-profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.coach-profile__photo .coach__initials { font-size: 72px; }

.coach-profile__info .eyebrow { margin-bottom: 12px; }

.coach-profile__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
}

.coach-profile__role { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.coach-profile__text p { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.coach-profile__section h2 {
  margin: 30px 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.coach-profile__section .checklist li { font-size: 16px; }
.coach-profile__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.coach-profile__list li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

.coach-profile__list b { color: var(--ink); font-weight: 700; }
.coach-profile__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.coach-others__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(18px, 2vw, 28px);
}

.coach-others__head .title { margin: 0; font-size: clamp(22px, 2.4vw, 32px); }
.coach-others__all { color: var(--muted); font-size: 14px; font-weight: 700; }

@media (hover: hover) and (pointer: fine) {
  .coach-others__all:hover { color: var(--brand); }
}

@media (max-width: 760px) {
  .coach-profile { grid-template-columns: minmax(0, 1fr); }
  .coach-profile__photo { position: static; width: min(320px, 100%); }
  .coach-profile__list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Имя тренера в расписании — ссылка на его карточку. */
.sched__trainer { color: var(--ink); text-decoration: underline; text-decoration-color: var(--soft); text-underline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .sched__trainer:hover { color: var(--brand); text-decoration-color: var(--brand); }
}

/* ── Служебные страницы: оплата, заморозка, вопросы, вакансии, документ ──
   До 27.09 это был голый текст с прежнего сайта (шаблон «text»): у «Способов
   оплаты» — один заголовок, у «Частых вопросов» — обрывки вперемешку.
   Шаблоны — info.html.j2 и legal.html.j2. */

.info { display: grid; gap: clamp(40px, 5vw, 72px); }

.info__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.info__lead { margin: 0 0 24px; max-width: 68ch; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Ссылки внутри текста — видно, что по ним можно нажать. */
.info a:not(.btn),
.legal__doc a,
.svc-intro .lead a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .info a:not(.btn):hover,
  .legal__doc a:hover,
  .svc-intro .lead a:hover { color: var(--brand); }
}

.icon { display: block; }

/* Способы — значком и одним словом: разглядывать тут нечего. */
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(12px, 1.4vw, 20px); }

.method {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.method__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgb(255 31 31 / 12%);
  color: var(--brand);
}

.method__title { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 800; line-height: 1.25; }
.method__text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Факт крупно: «5 дней» читается раньше, чем фраза вокруг него. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(12px, 1.4vw, 20px); }

.fact {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius-card);
  background: var(--raised);
}

.fact__value {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  color: var(--brand);
}

.fact__text { color: var(--muted); font-size: 15px; line-height: 1.55; }

.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(12px, 1.4vw, 20px); }

.info-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.info-card__title { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 800; line-height: 1.3; }
.info-card__body { display: grid; gap: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.info-card__body p,
.info-card__body ul { margin: 0; }
.info-card__body ul { padding-left: 20px; }

.info-note {
  margin: 0;
  max-width: 76ch;
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Вопросы раскрываются по одному: тринадцать ответов подряд — стена текста. */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2vw, 24px) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  line-height: 1.35;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__sign {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color var(--dur-hover) ease, transform var(--dur-hover) var(--ease-out);
}

.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 1px;
  background: currentColor;
}

.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign { border-color: var(--brand); color: var(--brand); transform: rotate(45deg); }

@media (hover: hover) and (pointer: fine) {
  .faq__q:hover .faq__sign { border-color: var(--brand); }
}

.faq__a { display: grid; gap: 12px; max-width: 76ch; padding: 0 0 clamp(20px, 2.4vw, 28px); color: var(--muted); font-size: 16px; line-height: 1.65; }
.faq__a p,
.faq__a ul { margin: 0; }
.faq__a ul { display: grid; gap: 6px; padding-left: 20px; }

/* Панель действия в конце страницы — как пустая лента акций. */
.info-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.info-actions__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.info-actions__text { margin: 10px 0 0; max-width: 60ch; color: var(--muted); font-size: 15px; line-height: 1.6; }
.info-actions .club__actions { margin-top: 0; }

/* Вакансия из кабинета маркетолога: снимок слева, суть справа, подробности
   раскрываются. Без снимка карточка — одной колонкой. */
.vacancies { display: grid; gap: clamp(16px, 2vw, 24px); }
.vacancies[hidden] { display: none; }

.vacancy {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.vacancy--text { grid-template-columns: minmax(0, 1fr); }
.vacancy__photo { margin: 0; min-height: 260px; background: var(--raised); }
.vacancy__photo img { width: 100%; height: 100%; object-fit: cover; }
.vacancy__body { display: grid; align-content: start; gap: 16px; padding: clamp(22px, 3vw, 40px); }

.vacancy__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.vacancy__lead { margin: 0; max-width: 68ch; color: var(--muted); font-size: 16px; line-height: 1.6; }

.vacancy__more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.vacancy__more summary::-webkit-details-marker { display: none; }
.vacancy__more summary::after { content: "↓"; transition: transform var(--dur-hover) var(--ease-out); }
.vacancy__more[open] summary::after { transform: rotate(180deg); }

.vacancy__text { display: grid; gap: 10px; max-width: 76ch; margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.vacancy__text p,
.vacancy__text ul,
.vacancy__text ol,
.vacancy__text blockquote { margin: 0; }
.vacancy__text ul,
.vacancy__text ol { display: grid; gap: 6px; padding-left: 20px; }
.vacancy__text h3 { margin: 8px 0 0; color: var(--ink); font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.vacancy__text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.vacancy .club__actions { margin-top: 4px; }

@media (max-width: 860px) {
  .vacancy { grid-template-columns: minmax(0, 1fr); }
  .vacancy__photo { min-height: 0; aspect-ratio: 16 / 9; }
}

/* Документ: разделы сбоку, текст — узкой колонкой, как у книги. */
.legal {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.legal__toc { position: sticky; top: calc(var(--header) + 28px); }

.legal__toc-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal__toc ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }

.legal__toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .legal__toc a:hover { color: var(--brand); }
}

.legal__doc { max-width: 78ch; color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal__section { scroll-margin-top: calc(var(--header) + 24px); }
.legal__section + .legal__section { margin-top: clamp(28px, 3vw, 40px); }

.legal__section h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.3;
}

.legal__section p { margin: 0 0 10px; }
.legal__section ul { display: grid; gap: 6px; margin: 0 0 12px; padding-left: 22px; }

@media (max-width: 960px) {
  .legal { grid-template-columns: minmax(0, 1fr); }

  .legal__toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
  }
}

/* Документ в окне — сам текст, без шапки и подвала страницы. */
.doc-modal__panel--text { grid-template-rows: auto minmax(0, 1fr); height: min(86vh, 900px); }
.doc-modal__body { overflow-y: auto; padding: clamp(20px, 3vw, 36px); color: var(--muted); font-size: 15px; line-height: 1.6; }
.doc-modal__body .legal__doc { max-width: none; font-size: 15px; }

/* Номер телефона не рвём посередине: «+7 (485)» на одной строке, а
   «290-60-90» на другой читается как два номера. */
.info a[href^="tel:"],
.svc-intro .lead a[href^="tel:"] { white-space: nowrap; }

/* На телефоне способ оплаты — строкой: значок и слово рядом, а не столбиком
   на полэкрана каждый. */
@media (max-width: 560px) {
  .method { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .method__text { grid-column: 1 / -1; }
}

/* Снимок клуба на «Контактах» — ссылкой на карту, подпись с адресом поверх. */
.place {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-card);
  background: var(--raised);
  color: var(--ink);
  text-decoration: none;
}

.place__photo { display: block; width: 100%; height: 100%; object-fit: cover; }

.place__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: linear-gradient(180deg, transparent, rgb(14 14 17 / 88%));
  font-size: 14px;
  font-weight: 700;
}

.place__pin { flex: none; width: 16px; height: 16px; }

@media (max-width: 560px) {
  .place { aspect-ratio: 4 / 3; }
}

/* ── Приложение на главной ─────────────────────────────────────────────────
   Владелец, 27.09.2026: ссылка на приложение — на видном месте. Здесь —
   что в нём можно и QR-код для тех, кто смотрит сайт с компьютера. */
.app-promo__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: radial-gradient(120% 140% at 100% 0%, rgb(255 31 31 / 16%) 0%, transparent 55%), var(--surface);
}

.app-promo__list { margin: 22px 0 28px; }

.app-promo__qr { display: grid; justify-items: center; gap: 12px; margin: 0; }
/* Белая подложка: на тёмном фоне камера QR-код не читает. */
.app-promo__qr img { width: 180px; height: 180px; padding: 12px; border-radius: 16px; background: #fff; }
.app-promo__qr figcaption { color: var(--muted); font-size: 13px; }

/* С телефона QR-код не нужен — человек уже с телефоном. */
@media (max-width: 860px) {
  .app-promo__card { grid-template-columns: minmax(0, 1fr); }
  .app-promo__qr { display: none; }
}

/* ── Главная общего сайта сети (yar.loftfitness.ru, 01.10.2026) ─────────── */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hub-clubs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}
@media (max-width: 1000px) { .hub-clubs { grid-template-columns: minmax(0, 1fr); } }

.hub-club {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--canvas);
  overflow: hidden;
}
.hub-club__shot { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.hub-club__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-panel) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hub-club:hover .hub-club__shot img { transform: scale(1.03); } }
.hub-club__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 24px; }
.hub-club__place { margin: 0; color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hub-club__name { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 900; text-transform: uppercase; }
.hub-club__name a { color: inherit; text-decoration: none; }
.hub-club__lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.hub-club__features { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.hub-club__features li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.hub-club__features li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.hub-club__facts { display: grid; gap: 6px; margin: 4px 0 0; font-size: 14px; }
.hub-club__facts div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.hub-club__facts dt { color: var(--subtle); }
.hub-club__facts dd { margin: 0; color: var(--muted); }
.hub-club__facts a { color: var(--ink); }
.hub-club__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }

.hub-compare { margin-top: 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); }
.hub-compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.hub-compare th, .hub-compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hub-compare tr:last-child th, .hub-compare tr:last-child td { border-bottom: 0; }
.hub-compare thead th { font-family: var(--display); font-size: 16px; font-weight: 900; text-transform: uppercase; background: var(--surface); }
.hub-compare thead a { color: inherit; }
.hub-compare tbody th { color: var(--muted); font-weight: 400; }

.hub-directions .card { display: flex; flex-direction: column; gap: 10px; }
.hub-directions__where { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto !important; padding-top: 8px; }
.hub-tag {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none;
  transition: border-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .hub-tag:hover { border-color: var(--brand); color: var(--brand); } }
.hub-tag--club { min-height: 26px; padding: 0 10px; background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-size: 12px; }

.hub-ratings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 28px; }
@media (max-width: 700px) { .hub-ratings { grid-template-columns: minmax(0, 1fr); } }
.hub-rating {
  display: grid; gap: 4px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  color: var(--ink); text-decoration: none;
}
.hub-rating__club { font-family: var(--display); font-weight: 900; text-transform: uppercase; }
.hub-rating__value { font-family: var(--display); font-size: 40px; font-weight: 900; line-height: 1; }
.hub-rating__source { color: var(--muted); font-size: 13px; }

.hub-choice { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hub-choice__item { position: relative; }
.hub-choice__item input { position: absolute; opacity: 0; pointer-events: none; }
.hub-choice__item span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-weight: 700; transition: border-color var(--dur-hover) ease, background var(--dur-hover) ease;
}
.hub-choice__item input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.hub-choice__item input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.hub-live__card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.hub-live__card .subtitle { margin: 0; }
