/* ============================================================
   Лендинг «Набор в группы» — ЦХГ Юлии Барсуковой
   Редизайн v2: светлая кремово-розовая палитра, крупные мягкие
   радиусы, спокойная типографика (Golos Text).
   ============================================================ */

@font-face {
  font-family: 'Golos Text';
  src: url('assets/fonts/golos-text-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  src: url('assets/fonts/golos-text-cyrillic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #FBF7F2;
  --bg-2: #F4EBE3;
  --surface: #FFFFFF;
  --accent: #E0447C;
  --accent-strong: #C62E69;
  --accent-2: #F7A8C4;
  --accent-2-soft: #FCE4F0;
  --ink: #2A1F22;
  --ink-muted: #6E5B62;
  --line: rgba(42, 31, 34, 0.10);
  --line-strong: rgba(42, 31, 34, 0.16);
  --radius-card: 28px;
  --radius-lg: 36px;
  --radius-md: 20px;
  --radius-field: 14px;
  --shadow-soft: 0 20px 50px -28px rgba(96, 50, 72, 0.28);
  --shadow-lift: 0 30px 70px -30px rgba(96, 50, 72, 0.34);
  --font: 'Golos Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --header-h: 68px;
  --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%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: -52px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 14px 14px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section { padding: 64px 0; }

.section__title {
  font-size: clamp(26px, 5.2vw, 44px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  text-wrap: balance;
  color: var(--ink);
}

.section__lead {
  font-size: clamp(16px, 2.6vw, 18px);
  color: var(--ink-muted);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.section__lead a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section__lead a:hover { color: var(--ink); }

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border: none;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  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.2s var(--ease-out), color 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn--accent {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(198, 46, 105, 0.55);
}
.btn--accent:hover {
  background: #b2245c;
  box-shadow: 0 18px 36px -12px rgba(198, 46, 105, 0.62);
  transform: translateY(-1px);
}

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.btn--ghost:hover { background: rgba(42, 31, 34, 0.05); }

/* ---------- 1. Шапка ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  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, 247, 242, 0.92);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(96, 50, 72, 0.25);
  backdrop-filter: saturate(1.2);
}
.header--menu-open {
  background: rgba(251, 247, 242, 0.98);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(96, 50, 72, 0.25);
}
.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: 600;
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.3s var(--ease-out);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.header__nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s, opacity 0.2s;
}
.header__nav a:hover { color: var(--accent-strong); }

.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: 600;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.3s var(--ease-out);
}
.header__phone:hover { color: var(--accent-strong); }

.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: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s, background-color 0.3s;
}
.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;
  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: 600;
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__phone {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu__cta { margin-top: 16px; }

/* ---------- 2. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 64px;
  background:
    radial-gradient(1100px 620px at 85% -12%, var(--accent-2-soft), transparent 62%),
    radial-gradient(700px 500px at -8% 108%, #FBEBDC, transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__content { position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(32px, 7.4vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 620px;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero__subtitle {
  font-size: clamp(17px, 3.2vw, 20px);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero__cta { font-size: 18px; padding: 17px 38px; margin-bottom: 18px; }
.hero__note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 460px;
}

.hero__media { position: relative; }
.hero__media::before {
  content: '';
  position: absolute;
  inset: -18px -18px auto auto;
  width: 58%;
  height: 58%;
  background: var(--accent-2);
  border-radius: 50%;
  opacity: 0.55;
  z-index: 0;
}
.hero__poster {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: url('assets/photos/venue/hero-venue.webp') center 28% / cover no-repeat;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}

/* ---------- 3. Основатель ---------- */
.founder__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
.founder__media { position: relative; }
.founder__media::before {
  content: '';
  position: absolute;
  inset: -16px -16px auto auto;
  width: 62%;
  height: 62%;
  background: var(--accent-2);
  border-radius: 50%;
  opacity: 0.5;
  z-index: 0;
}
.founder__photo-wrap {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}
.founder__photo-wrap img { width: 100%; }
.founder__name { margin-bottom: 12px; }
.founder__role {
  color: var(--ink-muted);
  margin-bottom: 26px;
  max-width: 560px;
  line-height: 1.6;
}
.founder__quote {
  position: relative;
  border-left: 4px solid var(--accent-strong);
  padding: 4px 0 4px 24px;
  margin-bottom: 20px;
}
.founder__quote p {
  font-size: clamp(18px, 2.8vw, 21px);
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}
.founder__comment {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 520px;
}

/* ---------- 4. Цифры ---------- */
.stats {
  padding: 48px 0;
  background: var(--bg-2);
}
.stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 20px;
}
.stats__item { text-align: left; }
.stats__num {
  display: block;
  font-size: clamp(26px, 5.4vw, 40px);
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.stats__label {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ---------- 5. Принципы (bento) ---------- */
.principles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px;
}
.principle--big { background: var(--accent-2-soft); border-color: transparent; }
.principle--big .principle__title { font-size: 21px; }
.principle__title {
  font-size: 18px;
  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: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.group-card__badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-2-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.group-card__name {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.group-card__age {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 4px;
}
.group-card__goal {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.group-card__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
}
.group-card__list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.5;
}
.group-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  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: 18px;
  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;
}
.trainer-card__photo-wrap {
  background: var(--accent-2-soft);
  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: 20px 20px 18px;
}
.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: 16px;
}
.trainer-card__gallery-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 0 2px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: color 0.2s var(--ease-out);
}
.trainer-card__gallery-btn:hover { color: var(--ink); }
.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: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  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: 22px;
}
.carousel__arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, color 0.2s;
}
.carousel__arrow:hover { background: var(--accent-strong); color: #fff; border-color: transparent; }
.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: var(--radius-lg);
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(96, 50, 72, 0.5);
  overflow: hidden;
}
.trainer-dialog::backdrop { background: rgba(42, 31, 34, 0.45); }
.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, 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: 600;
  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);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.trainer-dialog__strip.is-dragging { cursor: grabbing; }
.trainer-dialog__strip.is-free-scroll { scroll-behavior: auto; scroll-snap-type: none; }
.trainer-dialog__strip::-webkit-scrollbar { display: none; }
.trainer-dialog__strip-wrap { position: relative; }
.trainer-dialog__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 24px -8px rgba(96, 50, 72, 0.4);
  transition: background-color 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
}
.trainer-dialog__nav:hover { background: var(--accent-strong); color: #fff; }
.trainer-dialog__nav:active { transform: translateY(-50%) scale(0.92); }
.trainer-dialog__nav:disabled { opacity: 0.38; cursor: default; pointer-events: none; }
.trainer-dialog__nav-prev { left: 12px; }
.trainer-dialog__nav-next { right: 12px; }
.trainer-dialog__nav svg { width: 20px; height: 20px; }
.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: 6px;
  overflow-x: auto;
}
.trainer-dialog__thumbs::-webkit-scrollbar { height: 6px; }
.trainer-dialog__thumbs::-webkit-scrollbar-track { background: transparent; }
.trainer-dialog__thumbs::-webkit-scrollbar-thumb {
  background: rgba(42, 31, 34, 0.18);
  border-radius: 999px;
}
.trainer-dialog__thumbs::-webkit-scrollbar-thumb:hover { background: rgba(42, 31, 34, 0.32); }
.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-strong); opacity: 1; }

/* Хореографы и психолог */
.team-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}
.team-extra__card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
}
.team-extra__card img {
  width: 76px;
  height: 76px;
  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 20px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-carousel__viewport::-webkit-scrollbar { display: none; }
.gallery-carousel__viewport.is-dragging { cursor: grabbing; }
.gallery-carousel__viewport.is-free-scroll { scroll-behavior: auto; scroll-snap-type: none; }
.gallery-carousel__viewport:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: -3px; }
.gallery-carousel__slide {
  flex: 0 0 78%;
  scroll-snap-align: center;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
}
.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: 22px;
}
.gallery-carousel__counter {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.gallery-carousel__arrows { display: flex; gap: 12px; }
.gallery-carousel__arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, color 0.2s;
}
.gallery-carousel__arrow:hover { background: var(--accent-strong); color: #fff; border-color: transparent; }
.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: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 24px;
}
.step__num {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--accent-2-soft);
  color: var(--accent-strong);
  font-size: 28px;
  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: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  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(--accent-strong); }

/* ---------- 11. FAQ ---------- */
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out);
}
.faq__item[open] { border-color: var(--accent-2); }
.faq__question {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  padding: 22px 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;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-2-soft);
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
}
.faq__item[open] .faq__question::after { transform: rotate(45deg); background: var(--accent-strong); color: #fff; }
.faq__answer {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ---------- 12. Финальный CTA ---------- */
.cta { background: var(--accent-2-soft); }
.cta__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  box-shadow: var(--shadow-soft);
}
.cta__title {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  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: 600;
}
.lead-form__input {
  font-family: inherit;
  font-size: 16px;
  padding: 15px 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-strong);
  outline: none;
}
.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: #c02238;
  font-weight: 600;
}
.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-strong);
  flex-shrink: 0;
}
.lead-form__consent a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.lead-form__submit { width: 100%; font-size: 18px; padding: 17px 32px; }
.lead-form__note {
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}

/* ---------- 13. Контакты ---------- */
.contacts__grid {
  display: grid;
  gap: 36px;
}
.contacts__row {
  font-size: 16px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.contacts__row strong { font-weight: 700; }
.contacts__row a { color: var(--accent-strong); text-decoration: none; }
.contacts__row a:hover { text-decoration: underline; }
.contacts__row--social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social-links__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out),
              color .2s var(--ease-out), transform .2s var(--ease-out);
}
.social-links__link svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.social-links__link:hover,
.social-links__link:focus-visible {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
  transform: translateY(-2px);
}
.social-links__link:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
@media (max-width: 767px) {
  .social-links__link { width: 40px; height: 40px; }
  .social-links__link svg { width: 19px; height: 19px; }
}
.contacts__map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ---------- 14. Подвал ---------- */
.footer {
  background: var(--bg-2);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 44px 0 calc(112px + env(safe-area-inset-bottom));
}
.footer__docs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}
.footer__docs a {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.footer__docs a:hover { color: var(--accent-strong); text-decoration: underline; }
.footer__requisites {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}
.footer__copy { font-size: 13px; color: var(--ink-muted); }

/* ---------- 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-strong);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 -10px 30px -14px rgba(198, 46, 105, 0.55);
  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); }

/* ---------- Кнопка «Наверх» ---------- */
.to-top {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(198, 46, 105, 0.55);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover { transform: translateY(-2px); }
.to-top:active { transform: translateY(0) scale(0.95); }
.to-top:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.to-top__icon { width: 22px; height: 22px; }

/* ---------- Модалка ---------- */
.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(42, 31, 34, 0.45);
  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-lg);
  padding: 32px 24px;
  box-shadow: 0 40px 90px -30px rgba(96, 50, 72, 0.5);
  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__close:hover { background: var(--ink); color: #fff; }
.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: calc(4px + env(safe-area-inset-bottom));
  z-index: 85;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 30px 70px -30px rgba(96, 50, 72, 0.45);
  padding: 18px;
  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(--accent-strong); }
.cookie__actions { display: flex; gap: 10px; }
.cookie__btn { flex: 1; padding: 12px 20px; font-size: 15px; }

/* ---------- Reveal-анимации ----------
   Safe-by-default: базовое состояние контента — ВИДИМОЕ. Скрывается (opacity:0)
   только при одновременном выполнении условий: есть класс .js на <html>,
   анимация разрешена (prefers-reduced-motion: no-preference) и элемент ещё
   не получил .in-view. Без JS или при reduced-motion всё видимо сразу.
   Watchdog в script.js принудительно добавляет .in-view через 2с, чтобы
   контент никогда не оставался скрытым (headless/скриншот без скролла). */
.reveal {
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal:not(.in-view) {
    opacity: 0;
    transform: translateY(20px);
  }
}
html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Узкие мобильные < 440px
   ============================================================ */
@media (max-width: 439px) {
  .header__logo-text { display: none; }
  .header__inner { gap: 8px; position: relative; }
  .header__phone { font-size: 13px; }
  .header__phone {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ============================================================
   Модальная галерея тренера: full-screen на мобильных
   ============================================================ */
@media (max-width: 767px) {
  .header__nav + .header__right { margin-left: auto; }

  .carousel__track { scroll-padding-left: 20px; scroll-padding-right: 20px; }
  .trainer-card { flex-basis: 82%; scroll-snap-align: start; }
  .trainer-card:last-child { scroll-snap-align: end; }
  .carousel__track::after { content: ''; flex: 0 0 20px; }
  .carousel__nav { display: none; }
  .gallery-carousel__arrows { display: none; }

  /* Cookie-баннер: компактный, прижат к низу, не перекрывает hero-фото */
  .cookie {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    gap: 10px;
    flex-direction: row;
    align-items: center;
    border-radius: 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  .cookie__text {
    font-size: 12px;
    line-height: 1.35;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .cookie__actions { flex-shrink: 0; flex-direction: row; gap: 8px; }
  .cookie__btn { padding: 8px 14px; font-size: 13px; }

  .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; }
  .trainer-dialog__nav { width: 36px; height: 36px; }
  .trainer-dialog__nav-prev { left: 8px; }
  .trainer-dialog__nav-next { right: 8px; }
  .trainer-dialog__nav svg { width: 18px; height: 18px; }
}

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

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

  .hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 80px; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .hero__poster { aspect-ratio: 4 / 4.6; }

  .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%; }

  .gallery-carousel__stage { position: relative; }
  .gallery-carousel__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    pointer-events: none;
    z-index: 2;
  }
  .gallery-carousel__arrow { pointer-events: auto; }

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

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

  .cta__card { padding: 52px 44px; }

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

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

  .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: 100px 0; }

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

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

  .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: min(44%, 48vh); }

  .steps__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }
  .step {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
    padding: 26px 22px;
  }
  .step__num { width: 66px; height: 66px; font-size: 30px; }

  .sticky-cta {
    left: 50%;
    right: auto;
    bottom: 24px;
    width: auto;
    min-width: 320px;
    padding: 16px 42px;
    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 { padding-bottom: 96px; }
  .trainer-card { flex-basis: 23.5%; }
  .gallery-carousel__slide { flex-basis: min(38%, 48vh); }
}

/* ============================================================
   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; }
}
