/* ============================================================
   Школа художественной гимнастики «Искра»
   Общие стили сайта
   ============================================================ */

:root {
  /* Палитра */
  --cream:        #fbf4ef;
  --cream-2:      #fdf8f4;
  --white:        #ffffff;
  --pink-bg:      #fbe7e2;   /* мягкий розовый фон секций */
  --pink-bg-2:    #f9ddd8;
  --pink-soft:    #fcefec;   /* фон карточек */
  --pink-line:    #f2d9d4;   /* границы */
  --pink-icon-bg: #f8e2e2;   /* кружки под иконки */
  --rose:         #d67c8b;   /* основной акцент / кнопки */
  --rose-dark:    #c4677a;
  --rose-soft:    #e8a3af;
  --plum:         #834d5e;   /* заголовки */
  --plum-2:       #9a6274;
  --text:         #6f6467;   /* основной текст */
  --text-soft:    #948a8d;
  --gold:         #c9a45c;   /* золотые акценты, звёзды */
  --gold-soft:    #dcc290;

  --radius:       22px;
  --radius-lg:    34px;
  --radius-sm:    14px;
  --shadow:       0 24px 60px -30px rgba(131, 77, 94, 0.35);
  --shadow-soft:  0 16px 40px -24px rgba(131, 77, 94, 0.28);
  --maxw:         1180px;

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans:  "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--plum);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; position: relative; }
.section--tight { padding: 60px 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(214, 124, 139, 0.7);
}
.btn--primary:hover { background: var(--rose-dark); transform: translateY(-2px); }
.btn--ghost {
  background: var(--cream-2);
  color: var(--rose);
  border-color: var(--rose-soft);
}
.btn--ghost:hover { background: #fff; border-color: var(--rose); transform: translateY(-2px); }
.btn--sm { padding: 11px 22px; font-size: 15px; }

/* ---------- Заголовки секций ---------- */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head .flourish { margin: 18px auto 0; }
.section-head p { max-width: 620px; margin: 16px auto 0; color: var(--text-soft); }

/* Разделитель со звездой */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
}
.flourish::before, .flourish::after {
  content: "";
  height: 1px;
  width: 54px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.flourish::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* Звёздочка (декор) */
.sparkle { position: absolute; color: var(--gold); opacity: .8; pointer-events: none; z-index: 0; }
.sparkle svg { display: block; }

/* ============================================================
   Шапка
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 244, 239, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 217, 212, 0.6);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .emblem {
  width: 54px; height: 46px; overflow: hidden;
  border-radius: 12px; flex-shrink: 0;
}
.brand .emblem img {
  width: 54px; height: 54px;
  object-fit: cover; object-position: top center;
}
.footer-brand .emblem { width: 54px; height: 46px; }
.brand .brand-name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--plum);
  letter-spacing: .5px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--rose); }
.nav-links a.active { color: var(--plum); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-phone { font-weight: 600; color: var(--plum); white-space: nowrap; }
.nav-phone:hover { color: var(--rose); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--plum); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ============================================================
   Hero (общий для страниц)
   ============================================================ */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 22px;
}
.hero .lead { font-size: 19px; max-width: 460px; margin-bottom: 34px; color: var(--text); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-media .photo { aspect-ratio: 4/4.3; border-radius: 40px; }

/* Мелкий hero для внутренних страниц */
.page-hero { padding: 56px 0 30px; }
.page-hero .hero-grid { grid-template-columns: 1fr minmax(0, 0.8fr); gap: 48px; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 64px); }
.page-hero .flourish { justify-content: flex-start; margin: 20px 0 24px; }
.page-hero .flourish::before { display: none; }
.page-hero .lead { max-width: 420px; color: var(--text); }
/* Фото не растягиваем на всю колонку — ограничиваем и прижимаем вправо */
.page-hero .hero-media .photo {
  aspect-ratio: 4/5;
  border-radius: 30px;
  max-width: 380px;
  margin-left: auto;
}
/* Бейдж-иллюстрация в hero: та же посадка, что и у фото.
   Фон вокруг медальона в PNG прозрачный, поэтому квадрат не выделяется. */
.page-hero .hero-media .hero-badge {
  width: 100%;
  max-width: 380px;
  margin-left: auto;
}

/* ============================================================
   Фото-плейсхолдеры (замените background-image на реальные фото)
   ============================================================ */
.photo {
  position: relative;
  background:
    radial-gradient(120% 120% at 70% 20%, #fdeef0 0%, #f6d9dd 55%, #efc4cb 100%);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .photo-silhouette { width: 55%; opacity: .9; }
.photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 85% 15%, rgba(255,255,255,.5), transparent 60%);
  pointer-events: none;
}
/* На блоках с реальным фото блик-плейсхолдер не нужен */
.photo--img::after { display: none; }
/* Вертикальные кадры кадрируем чуть выше центра, чтобы лицо не обрезалось */
.photo--top img { object-position: center 22%; }

/* ============================================================
   Карточки-фичи
   ============================================================ */
.feature-band {
  background: var(--pink-soft);
  border: 1px solid var(--pink-line);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.feature {
  text-align: center;
  padding: 8px 28px;
  position: relative;
}
.feature + .feature::before {
  content: "";
  position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px; background: var(--pink-line);
}
.feature .icon-circle { margin: 0 auto 18px; }
.feature h3 { font-size: 23px; margin-bottom: 10px; }
.feature p { color: var(--text-soft); font-size: 15.5px; margin: 0; }

.icon-circle {
  width: 66px; height: 66px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.icon-circle--pink { background: var(--pink-icon-bg); color: var(--rose); }

/* ============================================================
   Секция "О школе" (список с иконками)
   ============================================================ */
.about-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.about-split h2 { font-size: clamp(30px, 4vw, 46px); }
.about-split .flourish { justify-content: flex-start; margin: 20px 0 24px; }
.about-split .flourish::before { display: none; }
.about-list { display: flex; flex-direction: column; gap: 30px; }
.about-item { display: grid; grid-template-columns: 70px 1fr; gap: 22px; align-items: start; }
.about-item .icon-circle { width: 62px; height: 62px; }
.about-item h3 { font-size: 22px; margin-bottom: 6px; }
.about-item p { margin: 0; color: var(--text-soft); font-size: 15.5px; }

/* ============================================================
   Секция-CTA с формой
   ============================================================ */
.cta {
  background: linear-gradient(120deg, var(--pink-bg) 0%, var(--pink-bg-2) 100%);
  border-radius: var(--radius-lg);
  padding: 54px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cta p { color: var(--plum-2); margin: 16px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--pink-line);
  background: #fff;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: #b6a9ac; }
.field:focus { outline: none; border-color: var(--rose-soft); box-shadow: 0 0 0 4px rgba(214,124,139,.12); }
.form-note { font-size: 13px; color: var(--plum-2); margin-top: 4px; }
.form-note a { color: var(--rose); text-decoration: underline; }

/* ============================================================
   Подвал
   ============================================================ */
.site-footer {
  background: var(--cream-2);
  border-top: 1px solid var(--pink-line);
  padding: 60px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 40px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-soft); font-size: 15px; max-width: 260px; }
.footer-col h4 { display: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { color: var(--text); font-size: 15.5px; }
.footer-col a:hover { color: var(--rose); }
.socials { display: flex; gap: 14px; align-items: flex-start; }
.social {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--pink-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--plum-2);
  transition: .2s;
}
.social:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--pink-line);
  text-align: center;
  color: var(--text-soft); font-size: 14px;
}

/* ============================================================
   Утилиты декора: ленты
   ============================================================ */
.ribbon { position: absolute; pointer-events: none; z-index: 0; opacity: .8; }

/* ---------- Декоративная лента в фото-панелях ---------- */
.deco-ribbon {
  width: 74%;
  max-width: 360px;
  opacity: .9;
  filter: drop-shadow(0 10px 20px rgba(214,124,139,.25));
}

/* ============================================================
   Философия / фичи-карточки (страница «О школе»)
   ============================================================ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.info-card {
  background: var(--cream-2);
  border: 1px solid var(--pink-line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.info-card .icon-circle { margin: 0 auto 20px; width: 72px; height: 72px; }
.info-card h3 { font-size: 22px; margin-bottom: 12px; }
.info-card p { color: var(--text-soft); font-size: 15.5px; margin: 0; }

/* ---------- Наши залы ---------- */
.halls { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.hall .photo { aspect-ratio: 16/10; border-radius: var(--radius); margin-bottom: 18px; }
.hall h3 { font-size: 22px; margin-bottom: 8px; }
.hall p { color: var(--text-soft); margin: 0; font-size: 15.5px; }

/* ---------- Тренеры ---------- */
.trainers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.trainer {
  background: var(--cream-2);
  border: 1px solid var(--pink-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}
.trainer .avatar {
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fbe4e6, #efc4cb);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose); margin-bottom: 18px;
  overflow: hidden;
}
.trainer .avatar img { width: 100%; height: 100%; object-fit: cover; }
.trainer h3 { font-size: 20px; margin-bottom: 4px; }
.trainer .role { color: var(--rose); font-weight: 600; font-size: 14.5px; margin-bottom: 12px; }
.trainer p { color: var(--text-soft); font-size: 15px; margin: 0; }

/* Развёрнутая карточка тренера (на всю ширину сетки) */
.trainer--featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 260px 1fr; gap: 34px;
  align-items: start; padding: 34px;
}
.trainer--featured .avatar {
  width: 100%; height: auto; aspect-ratio: 3/4;
  border-radius: var(--radius); margin-bottom: 0;
}
/* Заглушка на месте будущего фото тренера */
.trainer .avatar--empty {
  flex-direction: column; gap: 12px;
  background: var(--pink-soft);
  border: 1px dashed var(--pink-line);
  color: var(--rose-soft);
}
.trainer .avatar--empty .avatar-note {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-soft);
}
.trainer--featured h3 { font-size: 26px; margin-bottom: 6px; }
.trainer--featured .role { margin-bottom: 18px; }
.trainer-creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trainer-creds li {
  position: relative; padding-left: 26px;
  color: var(--text-soft); font-size: 15.5px; line-height: 1.55;
}
.trainer-creds li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fbe4e6, #d67c8b);
}
.trainer-edu { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--pink-line); }
.trainer-edu .edu-title {
  font-weight: 700; font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 10px;
}
.trainer-edu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trainer-edu li { color: var(--text-soft); font-size: 15px; line-height: 1.55; }
.trainer-edu li strong { color: var(--text); font-weight: 600; display: block; }

/* ============================================================
   Галерея
   ============================================================ */
.gallery-filter { display: flex; justify-content: center; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.gallery-filter button {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 11px 26px; border-radius: 999px; cursor: pointer;
  background: var(--cream-2); color: var(--rose);
  border: 1.5px solid var(--pink-line); transition: .2s;
}
.gallery-filter button:hover { border-color: var(--rose-soft); }
.gallery-filter button.active { background: var(--rose); color: #fff; border-color: var(--rose); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g-item {
  aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden;
  position: relative;
}
.g-item .photo { position: absolute; inset: 0; border-radius: var(--radius-sm); }
.g-item .deco-ribbon { width: 60%; }

/* Видео */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
.video-card {
  background: var(--cream-2); border: 1px solid var(--pink-line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
}
.video-thumb {
  aspect-ratio: 16/9; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.play-btn {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose); box-shadow: var(--shadow-soft);
  transition: transform .2s;
}
.video-thumb:hover .play-btn { transform: scale(1.08); }
.video-meta { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; }
.video-meta .title { font-family: var(--serif); font-size: 18px; color: var(--plum); }
.video-meta .dur { color: var(--text-soft); font-size: 14px; }

/* ============================================================
   Контакты
   ============================================================ */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: var(--pink-soft); border: 1px solid var(--pink-line);
  border-radius: var(--radius); padding: 34px 26px; text-align: center;
}
.contact-card .icon-circle { margin: 0 auto 16px; width: 60px; height: 60px; }
.contact-card h3 { font-size: 20px; margin-bottom: 8px; }
.contact-card .big { color: var(--rose); font-weight: 600; font-size: 18px; }
.contact-card p { margin: 6px 0 0; color: var(--text-soft); font-size: 15px; }

.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.contact-form-box {
  background: var(--pink-soft); border: 1px solid var(--pink-line);
  border-radius: var(--radius-lg); padding: 44px 40px; text-align: center;
}
.contact-form-box h2 { font-size: 30px; }
.contact-form-box .flourish { margin: 14px auto 10px; }
.contact-form-box p { color: var(--text-soft); margin: 0 0 26px; }
.contact-form-box .field { text-align: left; margin-bottom: 14px; }
.contact-form-box .btn { width: 100%; }
/* ---------- Карта Яндекса с заглушкой-согласием ----------
   Виджет не загружается, пока посетитель не нажмёт «Показать карту»:
   до этого момента к серверам Яндекса не уходит ни одного запроса. */
.map-box {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--pink-line); min-height: 420px;
  background: linear-gradient(140deg, var(--cream-2) 0%, var(--pink-soft) 100%);
  position: relative;
}
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.map-consent {
  position: absolute; inset: 0; padding-bottom: 56px; /* место под нижнюю плашку */
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(58% 52% at 76% 24%, rgba(214,124,139,.30) 0%, rgba(214,124,139,0) 62%),
    radial-gradient(64% 58% at 10% 84%, rgba(201,164,92,.28) 0%, rgba(201,164,92,0) 64%),
    linear-gradient(140deg, var(--cream-2) 0%, var(--pink-soft) 100%);
}
.map-consent__body { padding: 44px 42px; }
.map-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 14px;
}
.map-addr {
  font-family: var(--serif); font-size: 22px; color: var(--plum);
  line-height: 1.25; margin-bottom: 10px;
}
.map-consent p { color: var(--text); margin: 0 0 24px; max-width: 30em; }
.map-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.map-link {
  color: var(--rose); font-weight: 600; font-size: 15px;
  border-bottom: 1px solid var(--rose-soft); transition: color .2s, border-color .2s;
}
.map-link:hover { color: var(--rose-dark); border-color: var(--rose-dark); }
.map-note {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--plum); color: #f6e8e6;
  font-size: 14px; line-height: 1.5; padding: 14px 22px;
}
.map-note a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }

/* Кнопка «скрыть карту» — появляется поверх загруженного виджета */
.map-hide {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: none; align-items: center; gap: 6px;
  background: rgba(255,255,255,.94); color: var(--plum);
  border: 1px solid var(--pink-line); border-radius: 999px;
  padding: 8px 16px; font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-soft);
}
.map-box.is-loaded .map-hide { display: inline-flex; }
.map-box.is-loaded .map-consent { display: none; }
.map-hide:hover { background: #fff; color: var(--rose-dark); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--pink-soft); border: 1px solid var(--pink-line);
  border-radius: var(--radius-sm); overflow: hidden; transition: background .2s;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 26px; cursor: pointer; font-weight: 600; color: var(--plum);
  font-size: 16.5px;
}
.faq-q .chev { transition: transform .3s; color: var(--rose); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; padding: 0 26px; color: var(--text-soft); }
.faq-item.open .faq-a { max-height: 240px; padding: 0 26px 22px; }

/* Финальный CTA-баннер */
.cta-banner {
  background: linear-gradient(120deg, var(--pink-bg) 0%, var(--pink-bg-2) 100%);
  border-radius: var(--radius-lg); padding: 40px 48px;
  display: flex; align-items: center; gap: 30px; position: relative; overflow: hidden;
}
.cta-banner .cta-badge {
  width: 92px; height: 92px; border-radius: 50%; background: var(--cream-2);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  flex-shrink: 0; box-shadow: var(--shadow-soft);
}
.cta-banner .cta-text { flex: 1; }
.cta-banner h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-banner p { margin: 8px 0 0; color: var(--plum-2); }

/* ============================================================
   Расписание
   ============================================================ */
.schedule-card {
  background: var(--cream-2); border: 1px solid var(--pink-line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft);
}
.schedule-table {
  width: 100%; border-collapse: separate; border-spacing: 8px;
  min-width: 720px;
}
/* Таблица на 7 групп (Троицк) — нужен запас по ширине, иначе время переносится */
.schedule-table--wide { min-width: 940px; }
.schedule-table--wide thead th { font-size: 11.5px; padding: 12px 6px; }
.schedule-table--wide td .slot { font-size: 13px; padding: 13px 6px; }
/* Пояснение под годом рождения в шапке */
.schedule-table .th-sub {
  display: block; font-size: 10.5px; font-weight: 600;
  text-transform: none; letter-spacing: 0; color: var(--plum-2); margin-top: 2px;
}
.schedule-table th, .schedule-table td { text-align: center; vertical-align: middle; }
.schedule-table thead th {
  background: var(--pink-soft); color: var(--plum);
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; line-height: 1.35;
  padding: 13px 8px; border-radius: 12px;
}
.schedule-table thead th:first-child { background: transparent; }
.schedule-table td.day {
  background: var(--pink-soft); color: var(--plum);
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  border-radius: 12px; padding: 16px 6px; width: 62px;
}
.schedule-table td { padding: 0; }
.schedule-table td .slot {
  display: block; background: var(--pink-icon-bg); color: var(--plum);
  font-weight: 600; font-size: 14px; padding: 14px 8px; border-radius: 10px; white-space: nowrap;
}
.schedule-note { text-align: center; color: var(--text-soft); font-size: 14.5px; margin-top: 20px; }
.price-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.price-cards--3 { grid-template-columns: repeat(3, 1fr); }
.price-card {
  background: var(--cream-2); border: 1px solid var(--pink-line);
  border-radius: var(--radius); padding: 34px 24px; text-align: center;
  box-shadow: var(--shadow-soft); position: relative; transition: transform .25s;
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured { border-color: var(--rose-soft); box-shadow: 0 24px 50px -26px rgba(214,124,139,.55); }
.price-card .plan { font-family: var(--serif); font-size: 21px; color: var(--plum); margin-bottom: 2px; }
.price-card .plan-sub { font-size: 13.5px; color: var(--text-soft); margin-bottom: 12px; }
.price-card .amount { font-size: 34px; font-family: var(--serif); color: var(--rose); font-weight: 700; }
.price-card .amount span { font-size: 15px; color: var(--text-soft); font-family: var(--sans); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 11px; text-align: left; flex: 1; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.price-card ul li svg { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.price-card .btn { width: 100%; }
.ribbon-badge {
  position: absolute; top: 18px; right: -2px;
  background: var(--rose); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px 0 0 999px;
}
.price-discount {
  margin-top: 30px; text-align: center;
  background: linear-gradient(120deg, var(--pink-bg) 0%, var(--pink-bg-2) 100%);
  border-radius: var(--radius); padding: 22px 28px;
  font-size: 17px; font-weight: 600; color: var(--plum);
}
.price-discount span { color: var(--rose); }
.price-footnote { text-align: center; color: var(--text-soft); font-size: 13px; margin-top: 12px; }

/* Полоса-бейджи (направления) */
.badge-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.badge-item { text-align: center; }
.badge-item img { width: 150px; height: 150px; margin: 0 auto 10px; border-radius: 50%; }
.badge-item h3 { font-size: 18px; margin-bottom: 6px; }
.badge-item p { color: var(--text-soft); font-size: 14.5px; margin: 0; }

/* ============================================================
   Филиалы (Троицк / Одинцово)
   Блоки с data-branch показываются только для «своего» филиала.
   Атрибут data-branch на <html> ставит js/branch-init.js.
   ============================================================ */
html[data-branch="troitsk"]   [data-branch="odintsovo"],
html[data-branch="odintsovo"] [data-branch="troitsk"] { display: none !important; }

/* Переключатель филиала в шапке */
.branch-switch {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  color: var(--plum); background: var(--pink-soft);
  border: 1.5px solid var(--pink-line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: .2s; white-space: nowrap;
}
.branch-switch:hover { border-color: var(--rose); color: var(--rose); }
.branch-switch svg { flex-shrink: 0; color: var(--rose); }

/* Модальное окно выбора филиала */
.branch-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(111, 100, 103, .45);
  backdrop-filter: blur(6px);
}
.branch-modal.open { display: flex; }
.branch-modal .modal-card {
  background: var(--cream-2);
  border: 1px solid var(--pink-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 720px; width: 100%;
  padding: 46px 40px;
  text-align: center;
  position: relative;
  max-height: 90vh; overflow-y: auto;
}
.branch-modal h2 { font-size: clamp(24px, 3.4vw, 34px); }
.branch-modal .flourish { margin: 16px auto 28px; }
.branch-modal .modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--text-soft); line-height: 0;
}
.branch-modal .modal-close:hover { color: var(--rose); }
.branch-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.branch-option {
  background: var(--pink-soft);
  border: 1.5px solid var(--pink-line);
  border-radius: var(--radius);
  padding: 28px 22px; cursor: pointer; text-align: center;
  font-family: var(--sans); color: var(--text);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  /* у <button> в Chrome текст по умолчанию не переносится */
  white-space: normal; min-width: 0;
}
.branch-option:hover {
  border-color: var(--rose); transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.branch-option .icon-circle { margin: 0 auto 14px; width: 58px; height: 58px; background: var(--pink-icon-bg); color: var(--rose); }
.branch-option .b-name { font-family: var(--serif); font-size: 23px; color: var(--plum); margin-bottom: 6px; }
.branch-option .b-addr { font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }
.branch-option.is-current { border-color: var(--rose-soft); }

/* Карточки филиалов на главной */
.branch-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.branch-card {
  background: var(--pink-soft); border: 1px solid var(--pink-line);
  border-radius: var(--radius); padding: 34px 30px; text-align: center;
  display: flex; flex-direction: column;
}
.branch-card .icon-circle { margin: 0 auto 16px; width: 60px; height: 60px; background: var(--pink-icon-bg); color: var(--rose); }
.branch-card h3 { font-size: 23px; margin-bottom: 8px; }
.branch-card .b-addr { color: var(--text); font-size: 15.5px; margin-bottom: 6px; }
.branch-card .b-days { color: var(--text-soft); font-size: 14.5px; margin-bottom: 22px; flex: 1; }
.branch-card .btn { width: 100%; }
@media (max-width: 960px) { .branch-cards { grid-template-columns: 1fr; } }

/* Плашка «вы смотрите филиал…» на страницах расписания/контактов */
.branch-note {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
  background: var(--pink-soft); border: 1px solid var(--pink-line);
  border-radius: 999px; padding: 12px 24px; margin: 0 auto 34px;
  width: fit-content; max-width: 100%;
  color: var(--plum); font-size: 15px; text-align: center;
}
.branch-note b { color: var(--rose); }
.branch-note button {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  background: none; border: 0; cursor: pointer;
  color: var(--rose); text-decoration: underline; padding: 0;
}

/* ============================================================
   Согласие на обработку персональных данных
   ============================================================ */
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  text-align: left; font-size: 13px; line-height: 1.5;
  color: var(--plum-2); margin-top: 4px;
}
.form-grid .consent { grid-column: 1 / -1; margin: -4px 0 2px; }
.consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; flex-shrink: 0; margin: 1px 0 0;
  border: 1.5px solid var(--rose-soft); border-radius: 6px;
  background: #fff; cursor: pointer; position: relative;
  transition: background .2s, border-color .2s;
}
.consent input[type="checkbox"]:checked { background: var(--rose); border-color: var(--rose); }
.consent input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.consent a { color: var(--rose); text-decoration: underline; }
.consent.invalid input[type="checkbox"] { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.consent-error { color: #c0392b; font-size: 12.5px; margin-top: 6px; display: none; }
.consent.invalid + .consent-error,
.form-grid .consent.invalid + .consent-error { display: block; }
.form-grid .consent-error { grid-column: 1 / -1; margin-top: 0; }

/* ============================================================
   Правовые страницы (политика, согласие)
   ============================================================ */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: clamp(24px, 3vw, 32px); margin: 42px 0 14px; }
.legal h3 { font-size: 20px; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--text); font-size: 16px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .legal-meta { color: var(--text-soft); font-size: 14.5px; }
.legal-card {
  background: var(--pink-soft); border: 1px solid var(--pink-line);
  border-radius: var(--radius); padding: 26px 28px; margin: 22px 0;
}
.legal-card p:last-child { margin-bottom: 0; }

/* ============================================================
   Адаптив
   ============================================================ */
/* Между 960 и 1180 в шапке тесно из-за переключателя филиала */
@media (max-width: 1180px) {
  .nav-right { gap: 14px; }
  .nav-links { gap: 24px; }
  .nav-phone { display: none; }
}

@media (max-width: 960px) {
  .nav-links, .nav-phone { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 84px; left: 0; right: 0;
    background: var(--cream-2);
    padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--pink-line);
    box-shadow: var(--shadow-soft);
  }
  .hero-grid, .about-split, .cta, .page-hero .hero-grid { grid-template-columns: 1fr; }
  .page-hero .hero-media .photo { max-width: 340px; margin: 0 auto; }
  .about-split .about-list { order: 2; }
  .feature-band { grid-template-columns: 1fr; gap: 34px; padding: 36px 28px; }
  .feature + .feature::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cards-3, .trainers, .contact-cards { grid-template-columns: 1fr; }
  .trainer--featured { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .trainer--featured .avatar { max-width: 240px; margin: 0 auto; }
  .price-cards, .price-cards--3 { grid-template-columns: repeat(2, 1fr); }
  .halls, .video-grid, .contact-split { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-strip { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; }
  .branch-switch { padding: 7px 12px; font-size: 13.5px; }
}
.schedule-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 560px) {
  /* Шапка: логотип + филиал + «Записаться» + бургер должны помещаться в экран */
  .container { padding: 0 16px; }
  .nav { gap: 10px; }
  .brand .emblem, .brand .emblem img { width: 42px; }
  .brand .emblem { height: 38px; }
  .brand .emblem img { height: 42px; }
  .brand { gap: 8px; }
  .brand .brand-name { font-size: 24px; }
  .btn--sm { padding: 10px 15px; font-size: 14px; }
  .burger { padding: 4px; }
  .burger span { width: 24px; }

  .section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .cta { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .price-cards, .price-cards--3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .branch-modal .modal-card { padding: 34px 22px; }
  .branch-options { grid-template-columns: 1fr; }
  .branch-switch .b-label { display: none; }
  .branch-switch { padding: 8px 10px; }

  .map-box { min-height: 380px; }
  .map-consent { padding-bottom: 72px; }
  .map-consent__body { padding: 30px 24px; }
  .map-addr { font-size: 19px; }
  .map-consent p { font-size: 15.5px; margin-bottom: 20px; }
  .map-actions { gap: 14px; }
  .map-note { font-size: 13px; padding: 12px 16px; }
}
