/* Павел Мелешко — лендинг. Токены из макета Claude Design. */

/* Шрифты лежат на своём сервере (assets/fonts), а не на Google Fonts:
   браузер посетителя не обращается к зарубежным сервисам.
   Файлы вариативные — один файл на все начертания семейства. */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FAFAF9;
  --bg-gray: #F1F2F5;
  --bg-dark: #111114;
  --text: #111114;
  --text-body: #3A3C44;
  --text-muted: #6B6E76;
  --border: #E6E7EB;
  --blue: #1B4FD8;
  --blue-hover: #1440B0;
  --blue-light: #8FA8FF;
  --red: #E02B2B;
  --on-dark: #C0C2C9;
  --on-dark-muted: #9A9CA5;
  --on-dark-link: #D6D7DC;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --container: 1120px;
  --section-pad: clamp(56px, 8vw, 104px);
  --mobile-bp: 820px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
img { display: block; max-width: 100%; }
video { display: block; }
h1, h2, h3, p { margin: 0; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--light { color: var(--blue-light); }
.text-lg { font-size: 17px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: block; flex: none; }
.dot--red { background: var(--red); }
.dot--blue { background: var(--blue); }
.dot--black { background: var(--bg-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; }
.btn--ghost {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-weight: 600;
}
.btn--ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn--white { background: #fff; color: var(--text); }
.btn--white:hover { background: #E8E9ED; color: var(--text); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #C42222; color: #fff; }
.ico { width: 18px; height: 18px; flex: none; display: block; }
/* Короткие подписи для узких экранов */
.only-narrow { display: none; }
.btn .ico { width: 20px; height: 20px; }
.btn--sm .ico { width: 18px; height: 18px; }
.btn--white .ico { color: #26A5E4; }
.btn--dark { background: var(--bg-dark); color: #fff; font-weight: 600; font-size: 15px; padding: 0 22px; height: 48px; }
.btn--dark:hover { background: #2A2C33; color: #fff; }
.btn--sm { font-weight: 600; font-size: 14px; padding: 10px 16px; min-height: 44px; }
.btn--lg { padding: 0 24px; height: 54px; }
.btn--block { display: flex; width: 100%; height: 56px; }
/* Круглая кнопка только с логотипом — MAX в шапке */
.btn--icon { width: 44px; height: 44px; padding: 0; background: #fff; border: 1px solid var(--border); }
.btn--icon:hover { background: var(--bg-gray); }
.btn--icon .ico { width: 22px; height: 22px; }

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) 20px;
  width: 100%;
}
.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.band--gray { background: var(--bg-gray); }
.band--dark { background: var(--bg-dark); color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250,250,249,.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.brand__role { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.header__nav { display: flex; align-items: center; gap: 8px; }
.header__phone { font-weight: 600; font-size: 15px; color: var(--text); padding: 10px 14px; }
.header__phone:hover { color: var(--blue); }

/* ---------- Hero ---------- */
/* Ровно остаток экрана под шапкой: не обрезается и не оставляет пустоты.
   --header-h выставляет script.js по фактической высоте шапки. */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
  display: flex;
  min-height: calc(100vh - var(--header-h, 69px));
}
@supports (height: 100svh) {
  .hero { min-height: calc(100svh - var(--header-h, 69px)); }
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Видео отзеркалено: игрок уходит вправо, левая часть кадра свободна под текст.
   Побочный эффект — надпись на стене зала читается наоборот.
   Чтобы вернуть как снято, замените scaleX(-1) на none. */
.hero__video { z-index: 1; transform: scaleX(-1); }
.hero--no-video .hero__video { display: none; }
/* Мягкий расфокус верха и низа кадра: внимание уходит на стол и тренера,
   а служебные надписи зала перестают читаться. */
.hero__focus {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  /* Две маски перемножаются: по вертикали размываются верх и низ кадра,
     по горизонтали эффект слабеет вправо — там, где игрок. */
  -webkit-mask-image:
    linear-gradient(180deg, #000 0%, #000 16%, transparent 40%, transparent 70%, #000 90%, #000 100%),
    linear-gradient(90deg, #000 0%, #000 45%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.38) 100%);
  mask-image:
    linear-gradient(180deg, #000 0%, #000 16%, transparent 40%, transparent 70%, #000 90%, #000 100%),
    linear-gradient(90deg, #000 0%, #000 45%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.38) 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  /* Два слоя: горизонтальный затемняет левую часть под текстом,
     вертикальный сажает низ кадра под подпись. */
  background:
    linear-gradient(90deg, rgba(17,17,20,.82) 0%, rgba(17,17,20,.66) 34%, rgba(17,17,20,.18) 62%, rgba(17,17,20,0) 86%),
    linear-gradient(180deg, rgba(17,17,20,.26) 0%, rgba(17,17,20,.2) 45%, rgba(17,17,20,.72) 100%);
}
.hero__inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 20px clamp(48px, 7vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
/* Невысокие экраны ноутбуков: поджимаем отступы, чтобы блок влезал целиком. */
@media (min-width: 820px) and (max-height: 820px) {
  .hero__inner { padding-top: 40px; padding-bottom: 40px; gap: 18px; }
  .hero__title { font-size: clamp(28px, 4.2vw, 48px); }
  .hero__note { margin-top: 0; }
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #C9D6FF;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 900px;
  text-wrap: balance;
}
.hero__lead {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  max-width: 560px;
  color: #E8E9ED;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--on-dark); }
/* Аватар тренера: сразу видно, к кому записываешься */
.hero__avatar {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.hero__note-text { display: flex; flex-direction: column; gap: 2px; }
.hero__note-name { font-size: 15px; font-weight: 700; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Facts ---------- */
.facts { background: var(--blue); color: #fff; }
.facts__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}
.fact__label { font-size: 14px; color: #D6E0FF; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about__photo { position: relative; }
.about__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 20px; }
.about__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.about__text { display: flex; flex-direction: column; gap: 20px; }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg-gray); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }

/* ---------- Directions ---------- */
.directions { display: flex; flex-direction: column; gap: 32px; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service { background: var(--bg-gray); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.service__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.service__icon .ico { width: 26px; height: 26px; }
.service__title { font-size: 20px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.service__text { font-size: 15px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }
.service__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.service__list li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.45; color: var(--text-body); }
.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.services__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 24px 22px 28px;
  border-radius: 20px;
  background: var(--bg-dark);
  color: #fff;
}
.services__cta-text { font-size: 17px; font-weight: 600; line-height: 1.4; }
.services__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.services__cta .btn { height: 48px; padding: 0 20px; font-size: 15px; }
@media (max-width: 1023px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .services { grid-template-columns: 1fr; }
  .service { padding: 24px; }
}

/* ---------- Who ---------- */
.who { display: flex; flex-direction: column; gap: 32px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.card { background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card__num { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--blue); line-height: 1; }
.card__title { font-size: 20px; font-weight: 700; }
.card__text { font-size: 15px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }
/* Семь групп учеников и карточка-приглашение: 4 колонки, на планшете 2, на телефоне 1 */
.cards--who { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--who .card { padding: 24px; }
.cards--who .card__title { font-size: 18px; line-height: 1.25; }
.card--cta { background: var(--blue); color: #fff; justify-content: center; }
.card--cta .card__title { font-size: 20px; }
.card--cta .card__text { color: #D6E0FF; }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.card__actions .btn { flex: 1 1 auto; }
@media (max-width: 1023px) {
  .cards--who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .cards--who { grid-template-columns: 1fr; }
}

/* ---------- Method ---------- */
.method {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 5vw, 64px);
}
.method__intro { display: flex; flex-direction: column; gap: 12px; }
.method__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; border-radius: 20px; margin-top: 12px; }
.steps { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.step {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
}
.step__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; display: block; }
.step__body { display: flex; flex-direction: column; gap: 6px; }
.step__title { font-size: 18px; font-weight: 700; }
.step__text { font-size: 15px; line-height: 1.55; color: var(--text-body); }

/* ---------- Media ---------- */
.media { display: flex; flex-direction: column; gap: 32px; }
.media__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.media__caption { font-size: 14px; color: var(--on-dark-muted); }
/* Сцена галереи: большой экран */
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}
.stage__view { position: absolute; inset: 0; }
.stage__video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.stage__img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; background: #000; }
.stage__btn, .lightbox__btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .15s ease;
  z-index: 2;
}
.stage__btn:hover, .lightbox__btn:hover { background: rgba(255,255,255,.28); }
.stage__btn .ico, .lightbox__btn .ico { width: 22px; height: 22px; }
.stage__btn--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.stage__btn--next { right: 12px; top: 50%; transform: translateY(-50%); }
.stage__btn--full { right: 12px; top: 12px; }
.stage__counter {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(17,17,20,.55);
  border-radius: 999px;
  padding: 5px 10px;
  pointer-events: none;
}
/* Превью внизу */
.thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 20px 8px;
  margin: -8px -20px 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #2A2C33 transparent;
}
.thumb {
  position: relative;
  flex: none;
  width: 132px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s ease, border-color .15s ease;
  scroll-snap-align: start;
}
.thumb:hover { opacity: .85; }
.thumb.is-active { opacity: 1; border-color: #fff; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb__play .ico { width: 20px; height: 20px; margin-left: 2px; }

/* Полноэкранный просмотр */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0,0,0,.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__view { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 64px 72px; }
.lightbox__img, .lightbox__video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lightbox__video { width: min(100%, 1280px); }
.lightbox__btn--close { right: 16px; top: 16px; }
.lightbox__btn--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}

/* ---------- Awards ---------- */
.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  align-items: center;
}
.awards__text { display: flex; flex-direction: column; gap: 16px; justify-content: center; padding-right: clamp(0px, 3vw, 40px); }
.awards__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.awards__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; }
.awards__img--cup { object-position: 50% 30%; }

/* ---------- Reviews ---------- */
.reviews { display: flex; flex-direction: column; gap: 28px; }
.review {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.review--placeholder {
  background-image: repeating-linear-gradient(135deg, #fff 0 14px, #F6F7F9 14px 28px);
  border: 1px dashed #C7CAD3;
}
.review__note { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--text-muted); }
.review__text { font-size: 15px; line-height: 1.55; color: var(--text-body); }
.review__author { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.stars { display: flex; gap: 4px; }
.stars span { width: 14px; height: 14px; background: #F5B301; border-radius: 3px; display: block; }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.reviews__side { display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.trust { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.trust__item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
}
.trust__item .dot { width: 10px; height: 10px; margin-top: 6px; }
.reviews__hint { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.reviews__widget {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  height: clamp(520px, 62vh, 720px);
  width: 100%;
  box-shadow: 0 12px 32px rgba(17,17,20,.06);
}
.reviews__widget iframe { width: 100%; height: 100%; border: 0; display: block; }
.link-more {
  align-self: flex-start;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

/* ---------- Price ---------- */
.price__box {
  background: var(--bg-dark);
  color: #fff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.price__circle {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--red);
  opacity: .9;
}
.price__info { position: relative; display: flex; flex-direction: column; gap: 14px; }
.price__amount { display: flex; align-items: baseline; gap: 10px; }
.price__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -.03em;
}
.price__unit { font-size: 18px; color: var(--on-dark); }
.price__text { font-size: 16px; line-height: 1.55; color: var(--on-dark); max-width: 420px; text-wrap: pretty; }
.price__note { font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); max-width: 420px; text-wrap: pretty; }
.price__actions { position: relative; display: flex; flex-direction: column; gap: 12px; }
.price__actions .btn { white-space: normal; text-align: center; }

/* ---------- Location ---------- */
.location {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  align-items: stretch;
}
.location__info { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.location__info .btn--dark { align-self: flex-start; }
.details {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  font-size: 15px;
  line-height: 1.5;
}
.details dt { color: var(--text-muted); }
.details dd { margin: 0; font-weight: 600; }
.location__map {
  position: relative;
  min-height: 340px;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--border);
}
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Фото зала поверх карты: декоративная плашка, не метка. */
.map__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(17,17,20,.22);
  pointer-events: none;
}
.map__badge-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: block;
}
.map__badge-photo img { width: 100%; height: 100%; object-fit: cover; }
.map__badge-text { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }


/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: var(--on-dark-muted); margin-top: auto; }
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 28px;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__col a { color: var(--on-dark-link); }
.footer__col a:hover { color: #fff; }
.footer__brand { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #fff; }
.footer__text { font-size: 14px; line-height: 1.5; }
.footer__small { font-size: 13px; line-height: 1.5; }
.footer__heading { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.footer__bottom {
  border-top: 1px solid #2A2C33;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.footer__bottom a { color: var(--on-dark-muted); }
.footer__bottom a:hover { color: #fff; }

/* ---------- Mobile CTA + sheet ---------- */
.mobile-cta { display: none; }
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(17,17,20,.55); }
.sheet__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 560px;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: sheetUp .22s ease-out;
}
@keyframes sheetUp { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.sheet__handle { width: 40px; height: 4px; border-radius: 2px; background: #D6D7DC; align-self: center; margin-bottom: 6px; }
.sheet__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.sheet__option {
  height: 56px;
  border-radius: 14px;
  background: var(--bg-gray);
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sheet__option .ico { width: 20px; height: 20px; }
.sheet__phone { font-variant-numeric: tabular-nums; }
.sheet__option:hover { color: var(--text); background: #E6E7EB; }
.sheet__option--primary { background: var(--blue); color: #fff; }
.sheet__option--primary:hover { background: var(--blue-hover); color: #fff; }
.sheet__cancel {
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

@media (max-width: 819px) {
  /* Шапки нет: её место занимает первый экран, связь — в кнопках ниже. */
  .header { display: none; }
  /* Шапки нет — первый экран занимает всю высоту, без видео остаётся фото зала. */
  .hero__video { display: none; }
  .hero { min-height: 100vh; }
  @supports (height: 100svh) {
    .hero { min-height: 100svh; }
  }
  .hero__inner { flex: 1; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  /* Круг не должен наезжать на текст цены */
  .price__box { padding: 28px 20px; gap: 24px; }
  .price__circle { right: -80px; top: -80px; width: 190px; height: 190px; opacity: .85; }
  .price__value { font-size: clamp(40px, 12vw, 56px); }
  .price__actions .btn { white-space: nowrap; }
  .hero__actions .btn { width: 100%; }
  /* Telegram во всю ширину, MAX и звонок — вдвоём в строке */
  .hero__actions,
  .services__cta-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero__actions .btn:first-child,
  .services__cta-actions .btn:first-child { grid-column: 1 / -1; }
  .services__cta { padding: 22px 20px; }
  .hero__avatar { width: 56px; height: 56px; }
  .location__info .btn--dark { align-self: stretch; }
  .page { padding-bottom: 84px; }
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(250,250,249,.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta__btn { height: 54px; }
  /* Текст на первом экране идёт во всю ширину — затемняем кадр равномернее. */
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(17,17,20,.72) 0%, rgba(17,17,20,.6) 55%, rgba(17,17,20,.42) 100%),
      linear-gradient(180deg, rgba(17,17,20,.4) 0%, rgba(17,17,20,.35) 45%, rgba(17,17,20,.85) 100%);
  }
  /* На телефоне кадр обрезан по бокам — расфокус нужен слабее. */
  .hero__focus { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .stage { aspect-ratio: 4 / 3; }
  .stage__btn--prev, .stage__btn--next { display: none; }
  .thumb { width: 104px; }
  .lightbox__view { padding: 72px 12px; }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 16px; transform: none; }
  .lightbox__btn--prev { left: 16px; }
  .lightbox__btn--next { right: 16px; }
}
@media (min-width: 820px) {
  .sheet { display: none !important; }
}

/* ---------- Уведомление о cookie ---------- */
.consent {
  position: fixed;
  z-index: 55;
  left: 16px;
  bottom: 16px;
  max-width: 500px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px 14px 18px;
  box-shadow: 0 12px 32px rgba(17,17,20,.16);
  animation: consentIn .25s ease-out;
}
.consent__text { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-body); }
.consent__text a { text-decoration: underline; text-underline-offset: 2px; }
.consent__btn {
  flex: none;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-dark);
  color: #fff;
  font: 600 14px var(--font-body);
  cursor: pointer;
}
.consent__btn:hover { background: #2A2C33; }
@keyframes consentIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 819px) {
  .consent { left: 12px; right: 12px; max-width: none; bottom: calc(12px + env(safe-area-inset-bottom)); }
  /* не перекрываем кнопку «Записаться», когда она всплыла */
  body:has(.mobile-cta.is-visible) .consent { bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* ---------- Страницы документов ---------- */
.doc-body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.doc-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.doc-header__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.doc-back { font-weight: 600; font-size: 14px; white-space: nowrap; }
.doc { flex: 1; width: 100%; max-width: 800px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 20px clamp(48px, 8vw, 96px); }
.doc h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.doc__meta { color: var(--text-muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 36px 0 12px; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: var(--text-body); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 8px;
}
.doc__card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 15px; line-height: 1.5; }
.doc__card dt { color: var(--text-muted); }
.doc__card dd { margin: 0; font-weight: 600; }
.doc-footer { border-top: 1px solid var(--border); }
.doc-footer__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 22px 20px 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.doc-footer a { color: var(--text-muted); }
.doc-footer a:hover { color: var(--text); }

/* ---------- 404 ---------- */
.notfound { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; max-width: 800px; width: 100%; margin: 0 auto; padding: 64px 20px; }
.notfound__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(72px, 14vw, 140px); line-height: 1; color: var(--blue); letter-spacing: -.04em; }

/* ---------- Выбор в уведомлении о cookie и «Настройки cookie» ---------- */
.consent__text { flex: 1 1 240px; }
.consent__actions { display: flex; gap: 8px; flex: none; }
.consent__btn--ghost { background: transparent; color: var(--text-body); border: 1px solid var(--border); }
.consent__btn--ghost:hover { background: var(--bg-gray); color: var(--text); }
@media (max-width: 819px) {
  .consent__actions { flex: 1 1 100%; }
  .consent__actions .consent__btn { flex: 1; }
}
.footer__link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: var(--on-dark-link);
  cursor: pointer;
}
.footer__link-btn:hover { color: #fff; }
.doc-footer .footer__link-btn { color: var(--text-muted); }
.doc-footer .footer__link-btn:hover { color: var(--text); }
