/* Студия танца «Вива» — стили лендинга.
   Токены — из UI-кита макета Figma (кадр «Вива · десктоп 1441», 90:1192).
   Система скруглений: внутренний радиус = внешний − отступ, поэтому углы вложенных элементов «дружат». */

@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* цвет */
  --accent: #b01a4b;
  --accent-hover: #951440;
  --text: #3a1424;
  --text-2: #6e5560;
  --on-accent: #ffffff;
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-panel: #fdf4f6;
  --bg-soft: #fbe4ea;
  --line: #eed6dd;
  --line-strong: #cdbfc5;
  --ribbon: #f2a9b8;
  --ribbon-light: #f7cad4;

  /* матовое стекло */
  --glass-bg: rgba(255, 255, 255, .58);
  --glass-tint: rgba(251, 228, 234, .42);
  --glass-line: rgba(176, 26, 75, .16);
  --glass-hi: rgba(255, 255, 255, .85);
  --glass-blur: 18px;

  /* тени: розоватые и мягкие, без тёмного */
  --shadow-rgb: 214, 120, 150;
  --shadow-s: 0 10px 24px -18px rgba(var(--shadow-rgb), .35);
  --shadow-m: 0 18px 36px -26px rgba(var(--shadow-rgb), .4);
  --shadow-l: 0 26px 50px -34px rgba(var(--shadow-rgb), .45);

  /* скругления: панель → фото → карточка → кнопка → поле → иконка */
  --r-panel: 40px;
  --r-photo: 30px;
  --r-card: 24px;
  --r-btn: 20px;
  --r-btn-sm: 14px;
  --r-field: 16px;
  --r-chip: 12px;
  --r-icon: 10px;
  --r-pill: 999px;

  /* сетка: контент 1240 при 1440 */
  --container: 1240px;
  --gutter: clamp(16px, 6.95vw, 100px);
  --section-y: clamp(64px, 7.2vw, 104px);
  --panel-x: clamp(20px, 5.6vw, 80px);
  --panel-y: clamp(48px, 6.7vw, 96px);
  --gap: 24px;

  /* типографика: один стиль для H1 и всех H2 */
  --fs-head: clamp(34px, 4.17vw, 60px);
  --fs-h3: clamp(20px, 1.8vw, 26px);
  --fs-lead: clamp(18px, 1.55vw, 22px);
  --fs-text: clamp(16px, 1.25vw, 18px);
  --fs-small: 15px;
  --fs-btn: 17px;
  --fs-caption: 13px;
  --fs-number: clamp(34px, 3.1vw, 44px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-text);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus:not(:focus-visible) { outline: none !important; }
* { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[id] { scroll-margin-top: 96px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- матовое стекло ---------- */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .42)), var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
          backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-m);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .94); }
}

/* мягкие фоновые пятна — чтобы стеклу было что размывать */
.glow { position: relative; isolation: isolate; }
/* пятна гаснут до прозрачности внутри секции (closest-side), поэтому края не срезаются */
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(242, 169, 184, .42), transparent) 0% 20% / 46% 90% no-repeat,
    radial-gradient(closest-side, rgba(247, 202, 212, .6), transparent) 62% 0% / 40% 70% no-repeat,
    radial-gradient(closest-side, rgba(176, 26, 75, .12), transparent) 100% 100% / 44% 80% no-repeat;
}
/* ---------- типографика ---------- */
.h1, .h2 { font-size: var(--fs-head); font-weight: 600; line-height: 1.03; letter-spacing: -0.02em; }
.h2--center { text-align: center; margin-left: auto; margin-right: auto; }
.h2--on-accent { color: var(--on-accent); }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
.lead { font-size: var(--fs-lead); line-height: 1.4; color: var(--text-2); }
.text-2 { color: var(--text-2); }
.caption { font-size: var(--fs-caption); font-weight: 500; line-height: 1.3; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent); }

.dot-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.dot-list--loose { gap: 14px; }
.dot-list li { position: relative; padding-left: 24px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }

/* ---------- кнопки ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 64px; padding: 10px 10px 10px 32px;
  border: 1.5px solid transparent; border-radius: var(--r-btn);
  font-size: var(--fs-btn); font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; background: none;
  transform: translate(var(--mx), var(--my));
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease), box-shadow .3s var(--ease);
}
/* иконка-стрелка: 44 px внутри 64 px с отступом 10 → радиус 20 − 10 = 10 */
.btn__arrow {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: var(--r-icon); overflow: hidden;
  background: var(--on-accent);
  transition: transform .35s var(--ease-spring);
}
.btn__arrow::before, .btn__arrow::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M15 22h14m-5-5 5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 44px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpath d='M15 22h14m-5-5 5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 44px no-repeat;
  transition: transform .4s var(--ease);
}
.btn__arrow::after { transform: translateX(-100%); }
.btn:hover .btn__arrow::before { transform: translateX(100%); }
.btn:hover .btn__arrow::after { transform: translateX(0); }
.btn:hover .btn__arrow { transform: scale(1.06); }
.btn:active { transform: translate(var(--mx), var(--my)) scale(.98); }

.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 8px rgba(115, 15, 46, .08); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 2px 8px rgba(115, 15, 46, .08); }
.btn--outline { background: var(--bg-card); color: var(--accent); border-color: var(--accent); }
.btn--outline .btn__arrow { background: var(--accent); }
.btn--outline .btn__arrow::before, .btn--outline .btn__arrow::after { background: var(--on-accent); }
.btn--outline:hover { background: var(--bg-soft); }
.btn--outline:not(:has(.btn__arrow)) { padding: 10px 32px; }
.btn--ghost { min-height: 48px; padding: 10px 22px; border-radius: var(--r-btn-sm); color: var(--text-2); border-color: var(--line); background: var(--bg-card); }
.btn--ghost:hover { border-color: var(--line-strong); color: var(--text); }
.btn--block { width: 100%; }

/* маленькая кнопка (шапка, нижняя панель): 46 px, стрелка без плашки */
.btn--sm { min-height: 46px; padding: 6px 12px 6px 28px; gap: 12px; border-radius: var(--r-btn-sm); }
.btn--sm { padding: 6px 6px 6px 24px; }
.btn--sm .btn__arrow { width: 34px; height: 34px; border-radius: 8px; }
.btn--sm .btn__arrow::before, .btn--sm .btn__arrow::after { -webkit-mask-size: 36px; mask-size: 36px; }

.arrow-btn {
  width: 56px; height: 56px; border-radius: var(--r-field); border: 1.5px solid var(--line-strong); background: var(--bg-card);
  font-size: var(--fs-btn); font-weight: 600; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.arrow-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.arrow-btn:active { transform: scale(.94); }
.arrow-btn:disabled { opacity: .4; pointer-events: none; }

/* кнопка мессенджера: 59 px, отступ 8 → иконка 40 с радиусом 10, кнопка 18 */
.msg-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 24px 8px 8px;
  border: 1.5px solid var(--line); border-radius: 18px; background: var(--bg-card);
  font-size: var(--fs-btn); font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; color: var(--text);
  transition: border-color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.msg-btn img { width: 40px; height: 40px; flex: none; border-radius: var(--r-icon); transition: transform .35s var(--ease-spring); }
.msg-btn:hover { border-color: var(--accent); box-shadow: var(--shadow-s); }
.msg-btn:hover img { transform: rotate(-8deg) scale(1.08); }
.msg-btn--sm { min-height: 46px; padding: 6px 18px 6px 6px; gap: 10px; font-size: 15px; border-radius: 14px; }
.msg-btn--sm img { width: 32px; height: 32px; border-radius: 8px; }

/* ---------- шапка: плавающая стеклянная панель ---------- */
.header { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; transition: transform .45s var(--ease); pointer-events: none; }
.header.is-hidden { transform: translateY(calc(-100% - 12px)); }
.header__bar { pointer-events: auto; max-width: var(--container); margin: 0 auto; border-radius: 18px; transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.header__bar.glass, .header.is-scrolled .header__bar { box-shadow: none; }
.header__inner { display: flex; align-items: center; gap: 30px; padding: 6px 6px 6px 10px; min-height: 60px; }
.header__logo img { width: 48px; height: auto; transition: transform .4s var(--ease-spring); }
.header__logo:hover img { transform: rotate(-4deg) scale(1.06); }
.header__nav { flex: 1; display: flex; gap: 30px; font-size: var(--fs-small); line-height: 1.45; padding-left: 20px; }
.header__nav a { position: relative; text-decoration: none; padding: 4px 0; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.header__nav a:hover { color: var(--accent); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__phone { font-size: var(--fs-btn); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }
.header__burger { display: none; width: 46px; height: 46px; border: 1px solid var(--glass-line); border-radius: var(--r-btn-sm); background: rgba(255, 255, 255, .6); cursor: pointer; position: relative; }
.header__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.header__burger span:first-child { top: 17px; }
.header__burger span:last-child { top: 26px; }
.header__burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu { padding: 4px 16px 18px; border-top: 1px solid var(--glass-line); }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 14px 4px; border-bottom: 1px solid var(--glass-line); text-decoration: none; font-size: 20px; font-weight: 500; }
.mobile-menu__phone { display: inline-block; margin-top: 16px; font-size: var(--fs-btn); font-weight: 600; text-decoration: none; color: var(--accent); }
.mobile-menu:not([hidden]) { animation: menu-in .35s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- секции и панели ---------- */
.section { padding: var(--section-y) 0; }
.section > .container > .h2 + * { margin-top: 40px; }
.section--panel { padding: 8px 20px; }
.panel {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 1400px; margin: 0 auto; padding: var(--panel-y) var(--panel-x);
  border-radius: var(--r-panel); background: var(--bg-panel);
}
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(247, 202, 212, .7), transparent) 4% 6% / 44% 70% no-repeat,
    radial-gradient(closest-side, rgba(242, 169, 184, .4), transparent) 96% 94% / 42% 66% no-repeat;
}
.panel > * + * { margin-top: 40px; }
.panel--accent { background: var(--accent); }
.panel--accent::before { background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent) 88% 8% / 46% 70% no-repeat, radial-gradient(closest-side, rgba(58, 20, 36, .22), transparent) 6% 94% / 44% 70% no-repeat; }
@media (min-width: 1441px) { .panel > * { max-width: var(--container); margin-left: auto; margin-right: auto; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.benefits { row-gap: 40px; align-items: start; }

.card { position: relative; padding: 32px; border-radius: var(--r-card); display: grid; gap: 12px; align-content: start; height: 100%; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:not(.glass) { background: var(--bg-card); }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-l); }

.media { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--bg-soft); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .9s var(--ease); }
.media--280 { height: 280px; }
.media--240 { height: 240px; }
.benefit:hover .media img, .step:hover .media img, .shows .media:hover img { transform: scale(1.05); }
.benefit { display: grid; gap: 16px; }
.step { display: grid; gap: 12px; justify-items: start; }

.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; border-radius: var(--r-card); background: var(--bg-soft); text-align: center; color: var(--text-2); font-size: var(--fs-small); line-height: 1.45; }
.placeholder--460 { height: 460px; }
.placeholder--240 { height: 240px; }
.placeholder--video img { width: 64px; height: 64px; border-radius: 50%; animation: pulse 2.6s var(--ease) infinite; transition: transform .4s var(--ease-spring); }
.placeholder--video:hover img { transform: scale(1.12); }
.placeholder__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--bg-card); display: grid; place-items: center; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(176, 26, 75, .35); } 60% { box-shadow: 0 0 0 16px rgba(176, 26, 75, 0); } }

/* номер шага: 48 px, скругление 14 — как у малых кнопок */
.num { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: var(--r-btn-sm); background: var(--accent); color: var(--on-accent); font-size: var(--fs-btn); font-weight: 600; line-height: 1; }
.num--soft { background: var(--bg-soft); color: var(--accent); }

/* ---------- видео в блоках ---------- */
.video-tile { position: relative; overflow: hidden; border-radius: var(--r-card); background: #1d0b13; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.video-tile img, .video-tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s var(--ease); }
.video-tile:hover img { transform: scale(1.04); }
.video-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(29, 11, 19, .55)); pointer-events: none; }
.video-tile__play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; display: grid; place-items: center; transition: transform .4s var(--ease-spring); }
.video-tile__play img { width: 72px; height: 72px; border-radius: 50%; animation: pulse 2.6s var(--ease) infinite; }
.video-tile:hover .video-tile__play { transform: scale(1.1); }
.video-tile__label { position: absolute; left: 20px; bottom: 16px; z-index: 2; color: #fff; font-size: var(--fs-small); font-weight: 500; text-align: left; }
.video-tile--loop { cursor: default; }
.video-tile--loop::after { display: none; }
.video-tile__sound { position: absolute; right: 16px; bottom: 16px; z-index: 2; min-height: 44px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--r-btn-sm); background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-size: var(--fs-small); font-weight: 600; cursor: pointer; transition: background-color .25s var(--ease); }
.video-tile__sound:hover { background: rgba(255, 255, 255, .36); }
.coach__stage { cursor: zoom-in; }
.coach__stage picture { display: block; height: 100%; }
.coach__stage picture img { width: 100%; height: 100%; aspect-ratio: auto; }

/* ---------- 1. первый экран ---------- */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 605fr) minmax(0, 605fr); gap: 30px; align-items: center; }
.hero__text { display: grid; gap: 30px; justify-items: start; }
.hero__kicker { font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--accent); max-width: 34ch; }
.hero__title { margin-top: -10px; text-wrap: wrap; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__text .dot-list { margin-top: 0; }
.hero__actions { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.hero__cta { display: grid; justify-items: center; gap: 15px; }
.hero__free { font-size: var(--fs-btn); font-weight: 600; line-height: 1.2; }
.hero__note { font-size: var(--fs-small); color: var(--text-2); margin-top: 21px; }
.hero__photo { position: relative; height: 628px; border-radius: var(--r-photo); overflow: hidden; background: var(--bg-soft); box-shadow: 0 30px 60px -44px rgba(var(--shadow-rgb), .5); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform: scale(1.04); animation: hero-in 1.6s var(--ease) both; }
@keyframes hero-in { from { transform: scale(1.14); } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 56px; }
.fact { position: relative; overflow: hidden; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 24px 28px; border-radius: var(--r-card); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.fact:hover { transform: translateY(-4px); }
.fact__ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.fact { isolation: isolate; }
.fact__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; color: var(--accent); }
.fact__text { font-size: var(--fs-small); line-height: 1.45; color: var(--text-2); }
.ribbon-line { fill: none; stroke-linecap: round; }
.ribbon-line--a { stroke: var(--ribbon); stroke-width: 10; opacity: .55; }
.ribbon-line--b { stroke: var(--ribbon-light); stroke-width: 6; opacity: .8; }
.ribbon-line--light { stroke: rgba(247, 202, 212, .55); stroke-width: 12; }
.ribbon-line--lighter { stroke: rgba(247, 202, 212, .3); stroke-width: 7; }

/* ---------- 4. тренер ---------- */
.coach { display: grid; grid-template-columns: 500px minmax(0, 1fr); gap: 64px; align-items: stretch; }
.coach__photo { height: 100%; min-height: 620px; border-radius: var(--r-card); overflow: hidden; background: var(--bg-soft); }
.coach__photo picture, .coach__photo img { width: 100%; height: 100%; }
.coach__photo img { object-fit: cover; object-position: 50% 20%; }
.coach__info { display: grid; gap: 24px; grid-template-rows: auto auto auto minmax(200px, 1fr); }
.coach__stage { height: 100%; margin: 0; background: none; }
.coach__stage img { object-position: 70% 22%; }
.coach__stage-label { position: absolute; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; }

/* ---------- 5. квиз ---------- */
.quiz__ribbon { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; pointer-events: none; margin: 0 !important; }
#quiz .panel { isolation: isolate; }
#quiz .quiz__ribbon { z-index: -1; }
.quiz__ribbon .ribbon-line--light { stroke-width: 5; stroke: rgba(242, 169, 184, .35); }
.quiz__ribbon .ribbon-line--lighter { stroke-width: 3; stroke: rgba(249, 221, 229, .24); }
.js .quiz__ribbon.is-drawn .ribbon-line { animation-duration: 2.7s; }
.panel--accent > .h2 { max-width: 1060px; }
.quiz { position: relative; max-width: 900px; margin-left: auto; margin-right: auto; padding: 48px; border-radius: var(--r-panel); display: grid; gap: 24px; }
.panel--accent .quiz.glass { background: linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .9)); border-color: rgba(255, 255, 255, .6); }
.quiz__progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quiz__progress span { height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; position: relative; }
.quiz__progress span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.quiz__progress span.is-done::after { transform: scaleX(1); }
.quiz__step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; gap: 24px; }
.quiz__step.is-active { display: grid; animation: step-in .45s var(--ease); }
.quiz__step.is-back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-28px); } }
.quiz__step legend { padding: 0; margin-bottom: 24px; float: left; width: 100%; }
.quiz__step legend + * { clear: both; }
.quiz__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__summary { font-size: var(--fs-small); }
.quiz__nav:has([hidden]:only-child) { display: none; }
.quiz__back { justify-self: start; }

.options { display: grid; gap: 12px; }
.options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options--compact { gap: 8px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 12px 20px; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--r-field); background: var(--bg-card);
  font-size: var(--fs-btn); font-weight: 600; line-height: 1.2;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.options--compact .option span { padding: 12px 8px; }
.option:hover span { border-color: var(--accent); }
.option input:checked + span { background: var(--bg-soft); border-color: var(--accent); }
.signup-form .option input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.option:active span { transform: scale(.97); }

/* ---------- формы ---------- */
.field { display: block; }
.field input {
  width: 100%; min-height: 58px; padding: 14px 22px; border: 1.5px solid var(--line); border-radius: var(--r-field); background: var(--bg-card);
  font: inherit; font-size: 18px; color: var(--text); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder { color: var(--text-2); }
.field input:hover { border-color: var(--line-strong); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(176, 26, 75, .12); }
.field input.is-invalid, .consent.is-invalid span::before { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(176, 26, 75, .15); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); line-height: 1.45; color: var(--text-2); cursor: pointer; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent span { position: relative; padding-left: 30px; }
.consent span::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--bg-card); transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.consent span::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease-spring); }
.consent input:checked + span::before { background: var(--accent); border-color: var(--accent); }
.consent input:checked + span::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible + span::before { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { font-size: var(--fs-small); color: var(--accent); }
.form-error:not([hidden]) { animation: shake .4s var(--ease); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.btn.is-loading { pointer-events: none; opacity: .75; }

.signup-form { display: grid; gap: 14px; }
.signup-form__lead { font-size: var(--fs-small); margin-top: -6px; }
.messengers { display: grid; gap: 8px; }
.messengers--2 { grid-template-columns: 1fr 1fr; }
.messengers .msg-btn { padding-right: 16px; }

/* ---------- 7. выступления ---------- */
.shows { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 500px; gap: var(--gap); }
.shows__main { height: 100%; }
.shows__side { display: grid; gap: var(--gap); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
.shows__side .media { height: 100%; min-height: 0; }

/* ---------- галерея «Наши выступления» ---------- */
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.gallery__tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 20px; }
.tab { min-height: 44px; padding: 8px 20px; border: 0; border-radius: var(--r-btn-sm); background: transparent; font-size: var(--fs-small); font-weight: 600; cursor: pointer; color: var(--text-2); transition: background-color .25s var(--ease), color .25s var(--ease); }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--accent); color: var(--on-accent); }
.tab__count { opacity: .6; margin-left: 4px; font-weight: 500; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 40px; }
.gallery__grid > .g-item { margin: 0; aspect-ratio: 4 / 3; }
.gallery__grid > .g-item picture { display: block; height: 100%; }
.gallery__grid > .g-item picture img { display: block; height: 100%; aspect-ratio: auto; }
.gallery__grid > .g-item--portrait picture img { object-fit: contain; }
@media (min-width: 768px) and (max-width: 1023px) { .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-item { position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; border-radius: var(--r-card); overflow: hidden; background: var(--bg-soft); cursor: zoom-in; break-inside: avoid; }
.g-item picture img { width: 100%; height: auto; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; transition: transform .8s var(--ease), filter .4s var(--ease); }
.g-item:hover picture img { transform: scale(1.05); }
.g-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); pointer-events: none; }
.g-item--video { cursor: pointer; }
.g-item--video::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 50%, rgba(29, 11, 19, .6)); pointer-events: none; }
.g-item__play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 56px; height: 56px; margin: -28px 0 0 -28px; transition: transform .4s var(--ease-spring); }
.g-item:hover .g-item__play { transform: scale(1.12); }
.g-item__meta { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 14px; font-weight: 500; }
.g-item__dur { padding: 3px 9px; border-radius: 8px; background: rgba(29, 11, 19, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.g-item.is-hidden { display: none; }
.g-item.is-new { animation: g-in .5s var(--ease) both; }
@keyframes g-in { from { opacity: 0; transform: translateY(16px); } }
.gallery__more { display: flex; justify-content: center; margin-top: 24px; }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; background: rgba(20, 8, 14, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade-in .3s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox__stage { grid-column: 2; display: grid; place-items: center; height: 100dvh; padding: 64px 0 56px; min-width: 0; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: var(--r-card); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); animation: modal-in .4s var(--ease); background: #000; }
.lightbox__nav { width: 52px; height: 52px; justify-self: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r-btn-sm); background: rgba(255, 255, 255, .1); color: #fff; font-size: 20px; cursor: pointer; transition: background-color .25s var(--ease); }
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { position: absolute; right: 18px; top: 16px; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r-btn-sm); background: rgba(255, 255, 255, .1); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox__count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: 14px; }

/* ---------- 9. отзывы ---------- */
.reviews__head { display: flex; align-items: center; gap: 12px; }
.reviews__head .h2 { flex: 1; }
.reviews__arrows { display: flex; gap: 12px; }
.reviews__track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 min(672px, 100%); align-self: flex-start; scroll-snap-align: start; padding: 40px; border-radius: var(--r-card); display: grid; gap: 16px; align-content: start; }
.review blockquote { font-size: var(--fs-lead); line-height: 1.4; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); color: var(--text-2); }
.review__avatar { width: 44px; height: 44px; border-radius: 14px; background: var(--bg-soft); }
.review-video { flex: 0 0 260px; height: 460px; scroll-snap-align: start; }
.reviews__rating { font-size: var(--fs-btn); font-weight: 600; }
.reviews__rating a { color: var(--accent); text-decoration: none; }
.reviews__rating a:hover { text-decoration: underline; }

/* ---------- 10. группы ---------- */
.group { position: relative; display: grid; gap: 10px; justify-items: start; padding: 32px; border-radius: var(--r-card); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.group.glass { border: 2px solid rgba(176, 26, 75, .55); }
.group--few.glass { border-color: var(--line); }
.group:hover { transform: translateY(-5px); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-l); }
.group__age { font-size: var(--fs-number); font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.group__days { font-size: var(--fs-small); color: var(--text-2); }
.chip { padding: 8px 14px; border-radius: var(--r-chip); background: var(--bg-soft); color: var(--accent); font-size: var(--fs-small); line-height: 1.45; }
.group .btn { margin-top: 18px; }
.groups__note { margin-top: 40px; }

/* ---------- 11. расписание ---------- */
.schedule { border-radius: var(--r-card); overflow-x: auto; }
.schedule table { width: 100%; min-width: 760px; border-collapse: collapse; }
.schedule th, .schedule td { padding: 20px 24px; text-align: left; vertical-align: top; }
.schedule thead th { background: rgba(251, 228, 234, .7); color: var(--accent); font-size: var(--fs-btn); font-weight: 600; line-height: 1.2; padding-top: 24px; padding-bottom: 24px; }
.schedule tbody th { width: 25%; font-size: var(--fs-btn); font-weight: 600; line-height: 1.2; padding-top: 22px; }
.schedule__title { font-size: inherit; line-height: inherit; white-space: nowrap; text-wrap: nowrap; }
.schedule tbody tr { border-top: 1px solid var(--line); transition: background-color .25s var(--ease); }
.schedule tbody tr:hover { background: rgba(253, 244, 246, .8); }
.schedule td { font-size: 18px; white-space: nowrap; }
.schedule td.is-empty { color: var(--text-2); }

/* ---------- 12. бесплатное занятие ---------- */
.free { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: start; }
.free__info { display: grid; gap: 28px; }
.num-list { list-style: none; padding: 0; display: grid; gap: 28px; }
.num-list li { display: flex; align-items: center; gap: 20px; font-size: var(--fs-lead); line-height: 1.4; }
.free__take { padding: 20px 24px; border-radius: var(--r-card); background: var(--bg-panel); }
.free__form { padding: 40px; border-radius: var(--r-card); }

/* ---------- 13. вопросы ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.faq__col { display: grid; gap: 12px; }
.acc { border-radius: var(--r-field); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.acc[open] { border-color: rgba(176, 26, 75, .3); }
.acc summary { display: flex; align-items: center; gap: 16px; padding: 22px 22px 22px 28px; list-style: none; cursor: pointer; font-size: 20px; font-weight: 600; line-height: 1.25; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary span { flex: 1; }
.acc summary i { position: relative; flex: none; width: 36px; height: 36px; border-radius: var(--r-icon); background: rgba(255, 255, 255, .7); transition: background-color .3s var(--ease), transform .4s var(--ease); }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--accent); transition: transform .4s var(--ease), background-color .3s var(--ease); }
.acc summary i::after { transform: rotate(90deg); }
.acc summary:hover i { background: var(--bg-soft); }
.acc[open] summary i { background: var(--accent); transform: rotate(180deg); }
.acc[open] summary i::before, .acc[open] summary i::after { background: var(--on-accent); }
.acc[open] summary i::after { transform: rotate(0deg); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc__body > p { overflow: hidden; padding: 0 28px; color: var(--text-2); }
.acc[open] .acc__body { grid-template-rows: 1fr; }
.acc[open] .acc__body > p { padding-bottom: 22px; margin-top: -10px; }
.acc.is-opening .acc__body { grid-template-rows: 0fr; }

/* ---------- 14. контакты ---------- */
#contacts .lead { margin-top: 40px; }
.contacts__media { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: var(--gap); margin-top: 40px; }
.contacts__media .placeholder { height: 380px; }
.contacts__map { height: 380px; border-radius: var(--r-card); overflow: hidden; background: var(--bg-soft); }
.contacts__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contacts__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- подвал ---------- */
.footer { background: var(--bg-panel); }
.footer__inner { display: flex; align-items: center; gap: 40px; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter); font-size: var(--fs-small); line-height: 1.45; }
.footer__logo { width: 72px; }
.footer__req { flex: 1; display: grid; gap: 6px; }
.footer__req a { text-decoration: none; }
.footer__muted { color: var(--text-2); }
.footer__docs { display: grid; gap: 6px; }
.footer__docs a { color: var(--accent); text-decoration: none; }
.footer__docs a:hover { text-decoration: underline; }

/* ---------- виджет связи и нижняя панель ---------- */
.contact-widget {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; justify-items: end; gap: 8px;
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.contact-widget.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.contact-widget__note { padding: 6px 12px; border-radius: 10px; font-size: 13px; color: var(--text-2); }
.contact-widget .msg-btn { box-shadow: var(--shadow-s); }
.contact-widget.is-visible .msg-btn { animation: pop-in .5s var(--ease-spring) backwards; }
.contact-widget.is-visible .msg-btn:nth-of-type(2) { animation-delay: .06s; }
.contact-widget.is-visible .msg-btn:nth-of-type(3) { animation-delay: .12s; }
@keyframes pop-in { from { opacity: 0; transform: translateX(16px) scale(.92); } }

.bottom-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: none; gap: 8px; align-items: center;
  padding: 6px; border-radius: 20px;
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.bottom-bar.is-visible { transform: none; }
.bottom-bar__cta { flex: 1; }
.bottom-bar__max { flex: none; display: grid; place-items: center; width: 58px; height: 46px; border: 1px solid var(--glass-line); border-radius: var(--r-btn-sm); background: rgba(255, 255, 255, .7); }
.bottom-bar__max img { width: 30px; height: 30px; border-radius: 8px; }

/* ---------- поп-апы ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(58, 20, 36, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .3s var(--ease); }
.modal__dialog {
  position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto;
  padding: 48px; border-radius: 32px; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 40px 80px -40px rgba(var(--shadow-rgb), .55);
  animation: modal-in .45s var(--ease-spring);
}
.modal__dialog--small { width: min(480px, 100%); }
.modal.is-closing .modal__backdrop { animation: fade-out .25s var(--ease) forwards; }
.modal.is-closing .modal__dialog { animation: modal-out .25s var(--ease) forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal__close { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border: 0; border-radius: var(--r-btn-sm); background: var(--bg-panel); cursor: pointer; transition: background-color .25s var(--ease), transform .35s var(--ease); }
.modal__close::before, .modal__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 2px; background: var(--text); transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
.modal__close:hover { background: var(--bg-soft); transform: rotate(90deg); }
.modal .signup-form .h3 { padding-right: 48px; font-size: clamp(24px, 2.2vw, 30px); }
.success { display: grid; gap: 14px; justify-items: start; }
.success .btn { margin-top: 10px; }
.success__check { width: 64px; height: 64px; }
.success__check circle { fill: var(--bg-soft); }
.success__check path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
body.is-locked { overflow: hidden; }

/* ---------- анимации появления ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .fact__ribbon .ribbon-line, .js .quiz__ribbon .ribbon-line { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.js .is-drawn .ribbon-line { animation: draw-ribbon 2s var(--ease) forwards; }
/* сквозная лента: каждая плашка дорисовывает свой отрезок по очереди (JS задаёт --rd и --rt) */
.js .facts.is-flowing .fact__ribbon .ribbon-line { animation: draw-ribbon var(--rt, .9s) var(--re, linear) var(--rd, 0s) forwards; }
.js .is-drawn .ribbon-line:nth-child(2) { animation-delay: .25s; }
@keyframes draw-ribbon { to { stroke-dashoffset: 0; } }


/* ---------- адаптив ---------- */
@media (max-width: 1279px) {
  .header__inner { gap: 20px; }
  .header__nav { gap: 22px; padding-left: 8px; }
  .hero__photo { height: 560px; }
  .coach { grid-template-columns: 420px minmax(0, 1fr); gap: 48px; }
  .coach__photo { height: 540px; }
  .free { grid-template-columns: minmax(0, 1fr) 460px; gap: 48px; }
  .contacts__media { grid-template-columns: 400px minmax(0, 1fr); }
}

@media (max-width: 1099px) {
  .header__nav, .header__phone { display: none; }
  .header__burger { display: block; }
  .header__cta { margin-left: auto; }
}

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { height: auto; aspect-ratio: 4 / 3; }
  .grid-3, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coach { grid-template-columns: 1fr; }
  .coach__photo { height: auto; min-height: 0; aspect-ratio: 4 / 5; max-width: 520px; }
  .coach__stage { height: auto; aspect-ratio: 3 / 2; }
  .free { grid-template-columns: 1fr; }
  .contacts__media { grid-template-columns: 1fr; }
  .shows { grid-template-columns: 1fr; grid-template-rows: none; }
  .shows__main { height: 420px; }
  .shows__side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .shows__side .media { height: 240px; }
  .faq { grid-template-columns: 1fr; }
  .quiz__ribbon { width: 100%; }
  /* расписание карточками по группам */
  .schedule { overflow: visible; background: none !important; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .schedule table, .schedule tbody, .schedule tr, .schedule th, .schedule td { display: block; min-width: 0; width: auto; }
  .schedule thead { display: none; }
  .schedule tbody { display: grid; gap: 12px; }
  .schedule tbody tr { border: 1px solid var(--glass-line); border-radius: var(--r-card); background: rgba(255, 255, 255, .8); padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; }
  .schedule tbody tr:hover { background: rgba(255, 255, 255, .8); }
  .schedule tbody th { grid-column: 1 / -1; width: 100%; padding: 0 0 6px; font-size: var(--fs-h3); white-space: nowrap; }
  .schedule td { display: contents; }
  .schedule td::before { content: attr(data-day); color: var(--text-2); font-size: 15px; }
  .schedule td.is-empty { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .schedule tbody { grid-template-columns: 1fr 1fr; }
  .grid-3 > :nth-child(3):last-child, .facts > :nth-child(3):last-child { grid-column: 1 / -1; }
  .grid-3 > .step:nth-child(3):last-child .media, .grid-3 > .benefit:nth-child(3):last-child .media { height: 300px; }
}

@media (max-width: 767px) {
  :root { --gap: 16px; --fs-h3: 24px; }
  .header { padding: 8px 10px 0; }
  .header__inner { min-height: 56px; gap: 10px; }
  .header__logo img { width: 42px; }
  .header__cta { display: none; }
  .header__burger { margin-left: auto; }
  .hero { padding: 24px 0 56px; }
  .hero__text { gap: 22px; }
  .hero__kicker { font-size: 15px; }
  .hero__title { margin-top: -6px; }
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 8px; }
  .hero__cta { justify-items: stretch; text-align: center; }
  .hero__actions .btn { width: 100%; font-size: 16px; }
  .hero__note { text-align: center; margin-top: 0; }
  .hero__photo { aspect-ratio: 1 / 1.05; border-radius: var(--r-card); }
  .facts { grid-template-columns: 1fr; margin-top: 32px; gap: 10px; }
  .fact { padding: 18px 20px; }
  .fact__title { font-size: 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  .benefits { row-gap: 32px; }
  .media--280 { height: 240px; }
  .section > .container > .h2 + * { margin-top: 28px; }
  .section--panel { padding: 6px 10px; }
  .panel { border-radius: 28px; }
  .panel > * + * { margin-top: 28px; }
  .card, .group { padding: 24px; }
  .placeholder--460 { height: 240px; }
  .quiz { padding: 24px; border-radius: 22px; }
  .options--3, .options--2, .quiz__fields { grid-template-columns: 1fr; }
  .options--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .options--compact .option span { min-height: 52px; font-size: 15px; padding: 10px 4px; }
  .option span { min-height: 54px; }
  .quiz__back { justify-self: stretch; width: 100%; }
  .shows__main { height: 260px; }
  .shows__side { grid-template-columns: 1fr; }
  .shows__side .media { height: 200px; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .g-item { margin-bottom: 10px; border-radius: 16px; }
  .g-item__play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .g-item__meta { font-size: 12px; left: 10px; right: 10px; bottom: 8px; }
  .gallery__tabs { width: 100%; }
  .tab { flex: 1; padding: 8px 10px; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__stage { grid-column: 1; padding: 64px 10px 72px; }
  .lightbox__nav { position: absolute; bottom: 14px; }
  .lightbox__nav--prev { left: 14px; }
  .lightbox__nav--next { right: 14px; }
  .reviews__head { align-items: flex-end; }
  .arrow-btn { width: 48px; height: 48px; border-radius: 14px; }
  .review { flex-basis: 88%; padding: 24px; }
  .review-video { flex-basis: 64%; height: 380px; }
  .reviews__rating { font-size: 15px; }
  .num-list { gap: 18px; }
  .num-list li { gap: 14px; font-size: 17px; }
  .free__form { padding: 24px; }
  .messengers--2 { grid-template-columns: 1fr; }
  .acc summary { padding: 18px 16px 18px 20px; font-size: 17px; }
  .acc__body > p { padding: 0 20px; }
  .acc[open] .acc__body > p { padding-bottom: 18px; }
  .contacts__media .placeholder { height: 220px; }
  .contacts__map { height: 300px; }
  .contacts__actions { flex-direction: column; align-items: stretch; }
  .contacts__actions .btn, .contacts__actions .msg-btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: calc(40px + 80px); }
  .contact-widget { display: none; }
  .bottom-bar { display: flex; }
  .modal { padding: 0; align-items: end; }
  .modal__dialog { width: 100%; max-height: 92dvh; padding: 32px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; animation-name: sheet-in; animation-timing-function: var(--ease); animation-duration: .45s; }
  .modal.is-closing .modal__dialog { animation-name: sheet-out; }
  .modal__dialog--small { width: 100%; }
  .modal__dialog::before { content: ""; display: block; width: 44px; height: 4px; margin: -16px auto 16px; border-radius: 2px; background: var(--line-strong); }
  .modal__close { top: 12px; right: 12px; }
  .btn { white-space: normal; text-align: left; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

@media (max-width: 389px) {
  .options--compact { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .fact__ribbon .ribbon-line, .js .quiz__ribbon .ribbon-line { stroke-dashoffset: 0; }
}

/* фото тренера на сцене: без полей и подложки снизу */
.g-item.coach__stage { margin: 0; background: none; display: block; }
.g-item.coach__stage picture { display: block; height: 100%; }
.g-item.coach__stage picture img { display: block; height: 100%; width: 100%; object-fit: cover; }

/* Описания сохраняют текст и общие горизонтальные границы внутри ряда. */
.benefits { align-items: stretch; }
.benefit { grid-template-rows: auto auto 1fr; align-content: start; }
.benefit > p { text-wrap: wrap; align-self: start; }
.msg-btn:hover, .contact-widget .msg-btn { box-shadow: 0 2px 8px rgba(115, 15, 46, .08); }

/* Группы: спокойное состояние, акцент при наведении или работе с клавиатуры. */
#groups.glow::before, #groups.glow::after { display: none; }
#groups .group.glass { border-color: var(--line); box-shadow: none; }
#groups .group:hover, #groups .group:focus-within { transform: none; box-shadow: none; }
#groups .btn, #groups .btn:hover { box-shadow: none; }
#groups .group:focus-within { border-color: rgba(176, 26, 75, .55); }
#groups .group:focus-within .btn { background: var(--accent); color: var(--on-accent); }
#groups .group:focus-within .btn__arrow { background: var(--on-accent); }
#groups .group:focus-within .btn__arrow::before, #groups .group:focus-within .btn__arrow::after { background: var(--accent); }
@media (hover: hover) {
  #groups .group:hover { border-color: rgba(176, 26, 75, .55); }
  #groups .group:hover .btn { background: var(--accent); color: var(--on-accent); }
  #groups .group:hover .btn__arrow { background: var(--on-accent); }
  #groups .group:hover .btn__arrow::before, #groups .group:hover .btn__arrow::after { background: var(--accent); }
}

/* Расписание в едином стиле с квизом, без теней и цветных ореолов. */
#schedule > .panel { background: var(--accent); }
#schedule > .panel::before { display: none; }
#schedule > .panel > .h2 { color: var(--on-accent); }
#schedule .schedule.glass { background: #fff; border-color: rgba(255, 255, 255, .6); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
#schedule .schedule thead th { background: var(--bg-soft); }
#schedule .schedule tbody tr { background: #fff; }
#schedule .schedule tbody tr:hover { background: var(--bg-soft); }
@media (max-width: 1023px) {
  #schedule .schedule.glass { background: transparent !important; border: 0; }
  #schedule .schedule tbody tr { background: #fff; box-shadow: none; }
}

/* Первое занятие: ровные поверхности вместо градиентов и ореолов. */
#free.glow::before { display: none; }
#free .free__form.glass { background: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
#free .free__take { background: var(--bg-soft); }

/* Более свободные интервалы под заголовками. */
.section > .container > .h2 + *, .panel > .h2 + * { margin-top: 48px; }
.benefit { gap: 20px; }
.benefit > p { text-wrap: pretty; }
.free__info { gap: 36px; }
/* Нижнее поле расписания совпадает с боковыми. */
#schedule > .panel { padding-bottom: var(--panel-x); }
/* FAQ: лёгкий внутренний рельеф без падающих теней. */
.panel:has(.faq)::before { display: none; }
.faq .acc.glass { background: #fff; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(58, 20, 36, .035); backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 767px) {
  .section > .container > .h2 + *, .panel > .h2 + * { margin-top: 36px; }
}

/* Направления: одинаковые поля по бокам видео и под ним. */
#directions > .panel { padding-bottom: var(--panel-x); }

/* Тонкие ленты с безопасным полем снизу, без подсветки при наведении. */
.fact__ribbon .ribbon-line--a { stroke-width: 3; opacity: .45; }
.fact__ribbon .ribbon-line--b { stroke-width: 2; opacity: .65; }
#directions .video-tile--loop { height: 520px; }
#beginners.glow::before { display: none; }
#beginners .card.glass, #beginners .card:hover { box-shadow: none; }
#beginners .card:hover { border-color: var(--accent); }
#schedule .quiz__ribbon { z-index: -1; }
#schedule > .panel > .h2 { margin-top: 0; }
@media (max-width: 1023px) { #directions .video-tile--loop { height: 460px; } }
@media (max-width: 767px) { #directions .video-tile--loop { height: 280px; } }

/* В кадре сценического фото центрируем Софию, которая стоит справа в исходнике. */
.g-item.coach__stage { height: auto; aspect-ratio: 3 / 2; }
.g-item.coach__stage picture img { width: 133.333%; max-width: none; height: 100%; object-position: 50% 22%; transform: translateX(-25%); }
.g-item.coach__stage:hover picture img { transform: translateX(-25%); }

/* Полный рост тренера: высота карточки рассчитана по исходному кадру. */
.g-item.coach__stage { aspect-ratio: 9 / 8; }
/* Вертикальные кадры занимают два ряда, фотографии сохраняют весь исходный кадр. */
.gallery__grid { grid-auto-flow: row dense; grid-auto-rows: var(--gallery-row-height, 240px); }
.gallery__grid > .g-item { aspect-ratio: auto; height: 100%; }
.gallery__grid > .g-item--portrait { grid-row: span 2; }
.gallery__grid > .g-item picture img { object-fit: contain; }
.gallery__grid > .g-item:hover picture img { transform: none; }

/* Все фотографии целиком; исключение — основной портрет тренера. */
main picture img { object-fit: contain; object-position: 50% 50%; transform: none; }
main .media:hover picture img, main .benefit:hover picture img, main .step:hover picture img, main .shows .media:hover picture img, main .g-item:hover picture img { transform: none; }
.hero__photo img { object-fit: contain; object-position: center; transform: none; animation: none; }
.coach__photo img { object-fit: cover; object-position: 50% 20%; }
.g-item.coach__stage { aspect-ratio: 1600 / 1067; background: var(--bg-soft); }
.g-item.coach__stage picture { width: 80%; height: 100%; }
.g-item.coach__stage picture img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; object-position: center; transform: none; }
.g-item.coach__stage:hover picture img { transform: none; }

main .media picture img, main .g-item picture img { object-fit: contain; object-position: center; }

main .video-tile picture img { object-fit: contain; object-position: center; transform: none; }

/* Девочка справа в исходнике: сохраняем весь кадр и смещаем фигуру к центру. */


/* Главный экран: прежнее заполнение и масштаб фотографии. */
.hero__photo picture img { object-fit: cover; object-position: 50% 100%; transform: scale(1.04); animation: hero-in 1.6s var(--ease) both; }

/* Фото преимуществ вновь заполняют карточки без уменьшенных вставок. */
.benefits .benefit .media picture { display: block; width: 100%; height: 100%; }
main .benefits .media picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: none; }

/* В прыжке обе девочки смещены вправо в исходнике: убираем лишний фон слева. */
main .benefits .benefit:nth-child(3) .media picture img,
main .benefits .benefit:nth-child(3):hover .media picture img { width: 133.333%; max-width: none; height: 133.333%; object-position: 100% 50%; transform: translate(-25%, -8%); }

/* Сила и ловкость: исходное кадрирование без дополнительного увеличения. */
main .benefits .benefit:nth-child(3) .media picture img,
main .benefits .benefit:nth-child(3):hover .media picture img { width: 100%; max-width: 100%; height: 100%; object-position: var(--pos, 50% 50%); transform: none; }

/* Артистизм и творчество: исходное заполнение карточки. */
.benefits .benefit:nth-child(6) .media picture { display: block; width: 100%; height: 100%; }
main .benefits .benefit:nth-child(6) .media picture img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: 50% 45%; transform: none; }

/* Сценическое фото: полный исходный кадр на всю карточку, без полей. */
.g-item.coach__stage { height: auto; aspect-ratio: 1600 / 1067; background: none; align-self: start; }
.g-item.coach__stage picture { display: block; width: 100%; height: 100%; }
main .g-item.coach__stage picture img,
main .g-item.coach__stage:hover picture img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: contain; object-position: center; transform: none; }

/* Фотографии заполняют свои карточки; кадрирование — только внутри контейнера. */
main .media picture, main .g-item picture { display: block; width: 100%; height: 100%; }
main .media picture img, main .g-item picture img,
main .benefits .media picture img,
main .benefits .benefit:nth-child(3) .media picture img,
main .benefits .benefit:nth-child(3):hover .media picture img,
main .benefits .benefit:nth-child(6) .media picture img,
main .g-item.coach__stage picture img,
main .g-item.coach__stage:hover picture img { width: 100%; max-width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: none; }
.benefits .benefit .media picture { width: 100%; height: 100%; }
main .g-item.coach__stage { aspect-ratio: 1600 / 1067; }
.hero__photo picture img { object-fit: cover; object-position: 50% 100%; }

/* Одна ширина контента и промежутки между основными колонками. */
:root { --gap: 30px; }
.grid-3, .coach, .free, .faq, .shows, .contacts__media, .gallery__grid { column-gap: 30px; }
.step { justify-items: stretch; min-width: 0; }
.step > .media { width: 100%; min-width: 0; }
.panel { --panel-x: max(16px, calc(var(--gutter) - 20px)); }
@media (min-width: 1441px) { .panel { --panel-x: 80px; } }
@media (max-width: 767px) { .panel { --panel-x: max(16px, calc(var(--gutter) - 10px)); } }
/* Фотографии и превью видео целиком заполняют границы карточек. */
main .gallery__grid > .g-item picture img,
main .gallery__grid > .g-item--portrait picture img,
main .video-tile picture img, main .video-tile video { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none; }

/* Крупный логотип и авторская подпись с нарисованным от руки сердцем. */
.footer__logo { width: 216px; height: auto; flex: 0 0 auto; }
.footer__inner { gap: 30px; }
.footer__req, .footer__docs { min-width: 0; }
.footer__docs .footer__credit { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 16px; color: var(--text); font-size: 14px; }
.footer__heart { width: 23px; height: 23px; flex: none; transform: rotate(-8deg); }
.footer__heart path { stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer__credit:hover .footer__heart path { stroke: var(--accent); }
@media (min-width: 768px) and (max-width: 1099px) {
  .footer__inner { flex-wrap: wrap; }
  .footer__req { flex-basis: calc(100% - 246px); }
  .footer__docs { margin-left: 246px; }
}

/* Контакты: CTA занимает половину сетки, три способа связи — вторую. */
.contacts__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.contacts__actions > .btn { width: 100%; min-width: 0; }
.contacts__messengers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content; gap: 18px; min-width: 0; }
.contacts__messengers .msg-btn { width: 100%; min-width: 0; padding: 6px 8px; gap: 8px; white-space: nowrap; }
@media (max-width: 1279px) { .contacts__actions { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .contacts__messengers { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Подвал: ясная иерархия контактов, реквизитов и служебных ссылок. */
.footer__inner { padding-top: 48px; padding-bottom: 48px; align-items: center; }
.footer__req { gap: 8px; font-size: 15px; line-height: 1.5; }
.footer__studio { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.footer__phone { width: fit-content; font-size: 17px; font-weight: 500; margin-top: 2px; }
.footer__req .footer__muted { display: grid; gap: 3px; margin-top: 16px; font-size: 13px; line-height: 1.55; }
.footer__docs { gap: 12px; font-size: 14px; line-height: 1.5; }
.footer__docs > a:not(.footer__credit) { width: fit-content; }
.footer__docs .footer__credit { margin-top: 20px; font-size: 13px; line-height: 1.5; }
@media (max-width: 767px) { .footer__inner { align-items: flex-start; gap: 28px; padding-bottom: 120px; } }

/* Единая высота всех кнопок перед подвалом. */
.contacts__actions > .btn, .contacts__messengers > .msg-btn { height: 66px; min-height: 66px; box-sizing: border-box; }

/* Имя автора на отдельной строке подписи. */
.footer__docs .footer__credit { display: grid; grid-template-columns: max-content 23px; justify-content: start; column-gap: 5px; row-gap: 4px; }
.footer__credit > span:last-child { grid-column: 1 / -1; }

/* Мобильные действия занимают всю доступную ширину контента. */
@media (max-width: 767px) {
  .gallery__more > .btn, .success > .btn, .quiz__nav > .btn { width: 100%; }
}

/* Портрет занимает полную высоту правой колонки тренера. */
@media (min-width: 1024px) {
  .coach { align-items: stretch; }
  .coach__photo { position: relative; height: auto; min-height: 0; align-self: stretch; }
  .coach__photo picture { position: absolute; inset: 0; width: 100%; height: 100%; }
  .coach__photo picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
}

/* На телефоне знакомство с тренером начинается с подписи и имени. */
@media (max-width: 767px) {
  .coach { row-gap: 24px; }
  .coach__info { display: contents; }
  .coach__info > .caption { order: 1; }
  .coach__info > .h2 { order: 2; }
  .coach > .coach__photo { order: 3; width: 100%; }
  .coach__info > .dot-list { order: 4; }
  .coach__info > .coach__stage { order: 5; }
  .gallery__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .header__phone { display: none; }
}

/* Контактные кнопки: равные колонки и одинаковое центрирование. */
.contacts__actions { grid-template-columns: minmax(0, 1fr); }
.contacts__messengers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.contacts__messengers .msg-btn { justify-content: center; gap: 15px; text-align: center; }
@media (max-width: 767px) { .contacts__messengers { grid-template-columns: minmax(0, 1fr); } }
/* Текст бесплатного занятия центрируется относительно высоты формы. */
@media (min-width: 1024px) { .free { align-items: center; } }
/* Единый порядок тренера во всех одноколоночных раскладках. */
@media (max-width: 1023px) {
  .coach { row-gap: 24px; }
  .coach__info { display: contents; }
  .coach__info > .caption { order: 1; }
  .coach__info > .h2 { order: 2; }
  .coach > .coach__photo { order: 3; width: 100%; }
  .coach__info > .dot-list { order: 4; }
  .coach__info > .coach__stage { order: 5; }
}

@media (max-width: 767px) { .facts { grid-auto-rows: 1fr; } }

/* Меню остаётся прокручиваемым при низком окне и в альбомной ориентации. */
.mobile-menu { max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain; }

@media (min-width: 768px) and (max-width: 799px) { .contacts__messengers { grid-template-columns: minmax(0, 1fr); } }

/* На самых узких телефонах оставляем название группы 24 px в одну строку. */
@media (max-width: 359px) {
  .schedule tbody tr { padding-left: 10px; padding-right: 10px; }
}


/* Card typography — user correction 23.10.2026 */
@media (max-width: 767px) {
      .fact__title { font-size: var(--fs-h3); }
      }
      .schedule tbody tr:nth-child(-n+3) .schedule__title { font-size: calc(1em - 2px); }
