/* ============================================================
   Лендинг «Набор в группы» — ЦХГ Юлии Барсуковой
   Чистый CSS, mobile-first. Токены заданы заказчиком.
   ============================================================ */

@font-face {
  font-family: 'Play';
  src: url('assets/fonts/Play-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Play';
  src: url('assets/fonts/Play-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FBF1EC;
  --surface: #FFFFFF;
  --accent: #F7553C;
  --accent-2: #F16AB7;
  --ink: #111111;
  --ink-muted: #5b5b5b;
  --line: rgba(17, 17, 17, 0.08);
  --radius-card: 20px;
  --radius-bubble: 16px;
  --radius-field: 12px;
  --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.06);
  --font: 'Play', 'Segoe UI', sans-serif;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(247, 85, 60, 0.12);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, p, ul, ol, blockquote, figure {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.container--narrow { max-width: 760px; }

/* Skip link: виден только при фокусе с клавиатуры */
.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Якорные секции: компенсируем фиксированную шапку */
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.section { padding: 56px 0; }

.section__title {
  font-size: clamp(24px, 5.4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section__lead {
  font-size: clamp(16px, 2.6vw, 18px);
  color: var(--ink-muted);
  max-width: 640px;
  margin-bottom: 32px;
}

.todo-mark {
  color: var(--ink-muted);
  font-size: 0.85em;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(247, 85, 60, 0.28);
}
.btn--accent:hover { background: #e84a32; box-shadow: 0 10px 28px rgba(247, 85, 60, 0.36); }

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover { background: #2a2a2a; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--ghost:hover { background: rgba(17, 17, 17, 0.06); }

/* ---------- 1. Шапка ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Выше мобильного меню (88): бургер остаётся кликабельным,
     когда меню открыто */
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.header--scrolled {
  background: rgba(251, 241, 236, 0.96);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(17, 17, 17, 0.05);
}

/* Открытое мобильное меню: шапка поверх светлого меню —
   элементы перекрашиваем в тёмный, как в состоянии --scrolled */
.header--menu-open {
  background: rgba(251, 241, 236, 0.96);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(17, 17, 17, 0.05);
}
.header--menu-open .header__logo-text { color: var(--ink); }
.header--menu-open .header__nav a { color: var(--ink); }
.header--menu-open .header__phone { color: var(--ink); }
.header--menu-open .header__burger span { background: var(--ink); }
/* Белая иконка лого на светлом фоне меню — перекрашиваем в чёрный */
.header--menu-open .header__logo img { filter: brightness(0); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.header__logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.header__logo-text {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  transition: color 0.3s var(--ease-out);
  /* Сжимаемый текст: не выталкивает телефон и бургер за край */
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.header--scrolled .header__logo-text { color: var(--ink); }
/* Белая иконка лого на светлой прокрученной шапке — перекрашиваем в чёрный */
.header--scrolled .header__logo img { filter: brightness(0); }

.header__nav {
  display: none;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.header__nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out), opacity 0.2s;
}
.header--scrolled .header__nav a { color: var(--ink); }
.header__nav a:hover { opacity: 0.7; }

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.header__nav + .header__right { margin-left: 0; }

.header__phone {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out);
}
.header--scrolled .header__phone { color: var(--ink); }

.header__cta { display: none; white-space: nowrap; }

.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 12px;
}
.header__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s, background-color 0.3s;
}
.header--scrolled .header__burger span { background: var(--ink); }
.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Выше cookie-баннера (85) и шапки (80): баннер не перекрывает CTA меню */
  z-index: 88;
  background: var(--bg);
  padding: calc(var(--header-h) + 24px) 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease-out), visibility 0.35s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu__nav a {
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__phone {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.mobile-menu__cta { margin-top: 16px; }

/* ---------- 2. Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__video,
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__poster {
  background: url('assets/photos/venue/hero-venue.webp') center 30% / cover no-repeat;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.35) 0%, rgba(17, 17, 17, 0.55) 60%, rgba(17, 17, 17, 0.72) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 56px;
  text-align: center;
  color: #fff;
}
.hero__title {
  font-size: clamp(28px, 7.2vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin: 0 auto 16px;
  text-wrap: balance;
}
.hero__subtitle {
  font-size: clamp(16px, 3.4vw, 20px);
  line-height: 1.45;
  max-width: 560px;
  margin: 0 auto 28px;
  opacity: 0.95;
}
.hero__cta {
  font-size: 18px;
  padding: 16px 36px;
  margin-bottom: 20px;
}
.hero__note {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- 3. Основатель ---------- */
.founder__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.founder__photo-wrap {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.founder__photo-wrap::before {
  content: '';
  position: absolute;
  inset: -14px -14px auto auto;
  width: 65%;
  height: 65%;
  background: var(--accent-2);
  border-radius: 50%;
  opacity: 0.35;
  z-index: -1;
}
.founder__photo-wrap img { width: 100%; }
.founder__name { margin-bottom: 12px; }
.founder__role {
  color: var(--ink-muted);
  margin-bottom: 24px;
  max-width: 560px;
}
.founder__quote {
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 20px;
}
.founder__quote p {
  font-size: clamp(17px, 2.8vw, 20px);
  font-weight: 700;
  line-height: 1.5;
}
.founder__comment {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 520px;
}

/* ---------- 4. Цифры ---------- */
.stats { padding: 40px 0; }
.stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;
}
.stats__num {
  display: block;
  font-size: clamp(22px, 4.6vw, 32px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 6px;
}
.stats__label {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ---------- 5. Принципы (bento) ---------- */
.principles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.principle {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.principle--big {
  background: var(--surface);
}
.principle--big .principle__title { font-size: 20px; }
.principle__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.principle__text {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.55;
}
.principle--big .principle__text { font-size: 16px; }

/* ---------- 6. Группы ---------- */
.groups__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.group-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.group-card__badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.group-card__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.group-card__age {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.group-card__goal {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.group-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.group-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
}
.group-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.group-card__btn {
  margin-top: auto;
  width: 100%;
  margin-bottom: 12px;
}
.group-card__note {
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

/* ---------- 7. Тренеры ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 8px;
  padding-bottom: 8px;
}
.carousel__track::-webkit-scrollbar { display: none; }

.trainer-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.trainer-card__photo-wrap {
  background: var(--bg);
  aspect-ratio: 4 / 5;
}
.trainer-card__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
/* Подпись лежит под фото в обычном потоке, а не поверх портрета */
.trainer-card__bubble {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 16px;
}
.trainer-card__name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
  text-wrap: balance;
}
.trainer-card__regalia {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
/* Кнопка «Открыть галерею» с круглым бейджем «+» */
.trainer-card__gallery-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 0 2px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  transition: color 0.2s var(--ease-out);
}
.trainer-card__gallery-btn:hover { color: var(--ink); }
.trainer-card__gallery-btn:active { transform: scale(0.99); }
.trainer-card__gallery-btn:hover .trainer-card__gallery-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trainer-card__gallery-plus {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s var(--ease-out);
}
.trainer-card__gallery-btn:hover .trainer-card__gallery-plus { transform: rotate(90deg); }

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.carousel__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.carousel__arrow:hover { background: var(--accent); color: #fff; }
.carousel__arrow:active { transform: scale(0.94); }
.carousel__arrow:disabled { opacity: 0.35; pointer-events: none; }

/* Модальная галерея тренера */
.trainer-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-width: 1080px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(17, 17, 17, 0.28);
  overflow: hidden;
}
.trainer-dialog::backdrop { background: rgba(17, 17, 17, 0.62); }
.trainer-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.trainer-dialog__close:hover { background: var(--ink); color: #fff; }
.trainer-dialog__close:active { transform: scale(0.94); }
.trainer-dialog__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 20px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
/* Мобильный: имя/лид/описание сверху, лента фото ниже */
.trainer-dialog__info { order: 1; }
.trainer-dialog__media { order: 2; min-width: 0; }
.trainer-dialog__name {
  font-size: clamp(24px, 5.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 14px;
  text-wrap: balance;
}
.trainer-dialog__lead {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
}
.trainer-dialog__desc {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.trainer-dialog__strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.trainer-dialog__strip::-webkit-scrollbar { display: none; }
.trainer-dialog__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.trainer-dialog__slide img {
  display: block;
  width: 100%;
  height: min(42vh, 400px);
  object-fit: cover;
}
.trainer-dialog__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.trainer-dialog__thumbs::-webkit-scrollbar { display: none; }
.trainer-dialog__thumb {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: none;
  opacity: 0.6;
  transition: opacity 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.trainer-dialog__thumb img { width: 100%; height: 100%; object-fit: cover; }
.trainer-dialog__thumb:hover { opacity: 1; }
.trainer-dialog__thumb[aria-current="true"] { border-color: var(--accent); opacity: 1; }

/* Хореографы и психолог */
.team-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
.team-extra__card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.team-extra__card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.team-extra__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.team-extra__regalia {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ---------- 8. Галерея ---------- */
.gallery-carousel__viewport {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px;
}
.gallery-carousel__viewport::-webkit-scrollbar { display: none; }
.gallery-carousel__slide {
  flex: 0 0 78%;
  scroll-snap-align: center;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.gallery-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}
.gallery-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.gallery-carousel__counter {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.gallery-carousel__arrows { display: flex; gap: 12px; }
.gallery-carousel__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.gallery-carousel__arrow:hover { background: var(--accent); color: #fff; }
.gallery-carousel__arrow:active { transform: scale(0.94); }

/* ---------- 9. Шаги ---------- */
.steps__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step;
}
.step {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
}
.step__num {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-bubble);
  background: var(--accent-2);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.step__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}
.step__text {
  font-size: 15px;
  color: var(--ink-muted);
}

/* ---------- 10. Отзывы ---------- */
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.review-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.review-card__text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.review-card__meta {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.review-card__name { font-weight: 700; font-size: 15px; }
.review-card__date { font-size: 13px; color: var(--ink-muted); }
.reviews__source {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-muted);
}
.reviews__source a { color: var(--ink); }

/* ---------- 11. FAQ ---------- */
.faq__item {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__question {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '+';
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
}
.faq__item[open] .faq__question::after { transform: rotate(45deg); }
.faq__answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ---------- 12. Финальный CTA ---------- */
.cta { background: var(--accent-2); }
.cta__card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 40px 24px;
  box-shadow: var(--shadow-soft);
}
.cta__title {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}
.cta__text {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 28px;
}

/* Формы */
.lead-form { display: flex; flex-direction: column; gap: 18px; }
.lead-form__field { display: flex; flex-direction: column; gap: 8px; }
.lead-form__label {
  font-size: 15px;
  font-weight: 700;
}
.lead-form__input {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s;
  width: 100%;
}
.lead-form__input:focus {
  border-color: var(--accent);
}
.lead-form__input[readonly] {
  background: var(--bg);
  color: var(--ink-muted);
}
.lead-form__input.is-invalid { border-color: #d33; }
.lead-form__error {
  font-size: 13px;
  color: #d33;
  font-weight: 700;
}
.lead-form__hint {
  font-size: 13px;
  color: var(--ink-muted);
}
.lead-form__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.lead-form__consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.lead-form__consent a { color: var(--ink); }
.lead-form__submit { width: 100%; font-size: 18px; padding: 16px 32px; }
.lead-form__note {
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

/* ---------- 13. Контакты ---------- */
.contacts__grid {
  display: grid;
  gap: 32px;
}
.contacts__row {
  font-size: 16px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.contacts__row strong { font-weight: 700; }
.contacts__row a { color: var(--ink); text-decoration: none; }
.contacts__row a:hover { text-decoration: underline; }
.contacts__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  background: var(--surface);
}

/* ---------- 14. Подвал ---------- */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 40px 0 32px;
}
.footer__docs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.footer__docs a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-decoration: none;
}
.footer__docs a:hover { color: #fff; text-decoration: underline; }
.footer__requisites {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.footer__requisites .todo-mark { color: rgba(255, 255, 255, 0.6); }
.footer__copy { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Sticky-кнопка ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: var(--accent);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 -6px 30px rgba(247, 85, 60, 0.35);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-cta:active { transform: translateY(0) scale(0.99); }

/* ---------- Модалка ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  visibility: hidden;
  transition: visibility 0.3s;
}
.modal.is-open { visibility: visible; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  box-shadow: 0 24px 64px rgba(17, 17, 17, 0.25);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}
.modal__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-right: 40px;
}

/* ---------- Cookie-баннер ---------- */
.cookie[hidden] { display: none; }
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 85;
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 48px rgba(17, 17, 17, 0.18);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(0);
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.cookie.is-hidden {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie__text { font-size: 14px; line-height: 1.5; }
.cookie__text a { color: var(--ink); }
.cookie__actions { display: flex; gap: 10px; }
.cookie__btn { flex: 1; padding: 12px 20px; font-size: 15px; }

/* ---------- Reveal-анимации ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
    Узкие мобильные < 440px: шапка не помещается с текстом лого —
    прячем его. На 440–767px текст виден, но сжимаемый
    (min-width: 0 + overflow: hidden) — не выталкивает бургер.
    ============================================================ */
@media (max-width: 439px) {
  .header__logo-text { display: none; }
  .header__inner { gap: 8px; }
  .header__phone { font-size: 13px; }
}

/* ============================================================
   Модальная галерея тренера: full-screen на мобильных
   ============================================================ */
@media (max-width: 767px) {
  .trainer-dialog {
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .trainer-dialog__body {
    max-height: 100dvh;
    padding: 72px 16px 24px;
  }
  .trainer-dialog__close { top: 12px; right: 12px; }
}

/* ============================================================
   Планшет ≥ 768px
   ============================================================ */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }

  .header__logo img { width: 44px; height: 44px; }
  .header__logo-text { font-size: 13px; }

  .hero__content { text-align: left; }
  .hero__title, .hero__subtitle { margin-left: 0; }
  .hero__note { margin-left: 0; }

  .stats__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }

  .principles__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .principle--big { grid-column: span 2; }

  .groups__grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .trainer-card { flex-basis: 46%; }

  .trainer-dialog__body {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    padding: 24px;
    align-items: start;
  }
  .trainer-dialog__media { order: 1; }
  .trainer-dialog__info { order: 2; padding-top: 8px; }
  .trainer-dialog__slide img { height: min(66vh, 560px); }
  .trainer-dialog__thumb { width: 68px; height: 68px; }

  .gallery-carousel__slide { flex-basis: 58%; }

  .team-extra { grid-template-columns: 1fr 1fr 1fr; }
  .team-extra__card { flex-direction: column; text-align: center; padding: 24px 16px; }
  .team-extra__card img { width: 96px; height: 96px; }

  .reviews__grid { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

  .cta__card { padding: 48px 40px; }

  .contacts__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contacts__map iframe { height: 400px; }

  .footer__docs { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }

  .cookie {
    left: auto;
    right: 24px;
    bottom: 24px;
    max-width: 420px;
    flex-direction: row;
    align-items: center;
  }
  .cookie__actions { flex-shrink: 0; flex-direction: column; }
}

/* ============================================================
   Десктоп ≥ 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .section { padding: 96px 0; }

  .header__nav { display: flex; gap: 16px; }
  .header__nav a { font-size: 13px; }
  .header__phone { font-size: 13px; }
  .header__cta {
    display: inline-flex;
    padding: 12px 18px;
    font-size: 15px;
  }
  .header__burger { display: none; }

  .founder__grid { grid-template-columns: 5fr 7fr; gap: 56px; }

  .principles__grid { grid-template-columns: repeat(6, 1fr); }
  .principle { grid-column: span 2; }
  .principle--big { grid-column: span 3; }

  .trainer-card { flex-basis: 31%; }

  .gallery-carousel__slide { flex-basis: 44%; }

  .steps__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
  .step {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
    padding: 24px 20px;
  }
  .step__num { width: 72px; height: 72px; font-size: 34px; }

  .sticky-cta {
    left: 50%;
    right: auto;
    bottom: 24px;
    width: auto;
    min-width: 320px;
    padding: 16px 40px;
    border-radius: 999px;
    transform: translate(-50%, 140%);
  }
  .sticky-cta.is-visible { transform: translate(-50%, 0); }
  .sticky-cta:active { transform: translate(-50%, 0) scale(0.98); }
}

/* ============================================================
   Широкий десктоп ≥ 1280px
   ============================================================ */
@media (min-width: 1280px) {
  .hero__content { padding-bottom: 88px; }
  .trainer-card { flex-basis: 23.5%; }
  .gallery-carousel__slide { flex-basis: 38%; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
