/* ══════════ ОБЩИЙ КАРКАС (шрифты, сетка, механика движения) ══════════ */

@font-face { font-family: 'Cormorant'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('assets/fonts/cormorant-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('assets/fonts/cormorant-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Cormorant'; font-weight: 600; font-style: italic; font-display: swap;
  src: url('assets/fonts/cormorant-cyrillic-600-italic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant'; font-weight: 600; font-style: italic; font-display: swap;
  src: url('assets/fonts/cormorant-latin-600-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('assets/fonts/golos-text-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('assets/fonts/golos-text-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('assets/fonts/golos-text-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('assets/fonts/golos-text-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Golos Text'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('assets/fonts/golos-text-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('assets/fonts/golos-text-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-style: normal; font-display: swap;
  src: url('assets/fonts/nunito-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-weight: 800; font-style: normal; font-display: swap;
  src: url('assets/fonts/nunito-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Nunito'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('assets/fonts/nunito-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('assets/fonts/nunito-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  /* сильные кривые: встроенные CSS-изинги слишком вялые */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.wrap.narrow { max-width: 720px; }

h1, h2 { font-family: var(--font-display); line-height: 1.08; }
p { color: var(--ink-soft); }
p + p { margin-top: 1em; }

section { padding: clamp(64px, 10vh, 110px) 0; position: relative; }

/* ─── Кнопки: мгновенный отклик на нажатие ─── */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px;
  font-weight: 500; font-size: 1.02rem;
  text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), background 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-big { padding: 18px 44px; font-size: 1.1rem; }
.btn-small { padding: 13px 26px; font-size: .95rem; } /* ≥44px по высоте — тач-минимум */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); }
  .btn-ghost:hover { transform: translateY(-2px); }
  .btn:hover:active { transform: scale(0.97); }
}

/* ─── Появление при скролле (только при живом JS) ─── */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms var(--ease-out), filter 600ms ease;
  transition-delay: var(--d, 0ms);
  filter: blur(3px);
}
.js .reveal.shown { opacity: 1; transform: none; filter: none; }

/* ─── Бегущая строка ─── */
.marquee {
  overflow: hidden; white-space: nowrap;
  padding: 18px 0;
  position: relative; z-index: 2;
}
.marquee-track { display: inline-block; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .02em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Лента-SVG ─── */
.ribbon {
  position: absolute; top: 0; right: 0;
  width: min(22vw, 260px); height: 100%;
  z-index: 1; pointer-events: none;
}
.ribbon path { fill: none; stroke-linecap: round; }

/* ─── Декоративные пятна ─── */
.deco { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform; }

/* ─── Hero: две колонки с фото ─── */
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 76px); align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-visual { position: relative; z-index: 1; perspective: 1000px; }
.hero-photo {
  border-radius: 300px 300px 30px 30px; /* арка — как окна зала на фото */
  overflow: hidden; margin: 0;
  will-change: transform;
  transform-style: preserve-3d;
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
/* «живое фото»: медленный зум-дрейф, как гиперлапс */
.js .hero-photo img { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.07) translateY(-1.8%); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; margin: 8px auto 0; width: 100%; }
}

/* ─── Снаряды: обруч и мяч ─── */
.apparatus { position: absolute; pointer-events: none; z-index: 1; }
/* привязка к фото: обруч перекрывает арку слева-сверху, мяч — справа-снизу */
.hero-visual .hoop { width: 44%; aspect-ratio: 1; height: auto; left: -15%; top: -5%; }
.hero-visual .ball { width: 20%; aspect-ratio: 1; height: auto; right: -7%; bottom: -4%; }
.hoop svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* обруч рисуется при загрузке, затем медленно «дышит» под наклоном */
.js .hoop circle {
  stroke-dasharray: 553; /* 2πr при r=88 */
  stroke-dashoffset: 553;
  animation: hoop-draw 1600ms var(--ease-in-out) 300ms forwards;
}
.hoop { animation: hoop-sway 11s ease-in-out infinite alternate; transform-origin: center; }
@keyframes hoop-draw { to { stroke-dashoffset: 0; } }
@keyframes hoop-sway {
  from { transform: rotate(-8deg) translateY(0); }
  to   { transform: rotate(10deg) translateY(18px); }
}
/* мяч: градиентная сфера с бликом, мягко подпрыгивает */
.ball {
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 26%),
    radial-gradient(circle at 60% 65%, var(--ball-c1, #F9A8D4) 0%, var(--ball-c2, #DB2777) 85%);
  box-shadow: 0 18px 34px rgba(190, 60, 110, .25), inset -8px -10px 24px rgba(120, 20, 70, .18);
  animation: ball-float 5.5s var(--ease-in-out) infinite;
}
@keyframes ball-float {
  0%, 100% { transform: translateY(0) scale(1); }
  45%      { transform: translateY(-26px) scale(1.015); }
  55%      { transform: translateY(-24px) scale(1.01); }
}
/* тень-приземление: остаётся на «полу», сжимается когда мяч в воздухе */
.ball::after {
  content: ""; position: absolute;
  left: 8%; right: 8%; bottom: -16%; height: 15%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(100, 15, 60, .3) 0%, rgba(100, 15, 60, 0) 70%);
  animation: ball-ground 5.5s var(--ease-in-out) infinite;
}
@keyframes ball-ground {
  0%, 100% { transform: translateY(0) scale(1); opacity: .9; }
  45%      { transform: translateY(26px) scale(.78); opacity: .45; }
  55%      { transform: translateY(24px) scale(.8); opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  .hoop, .ball, .ball::after { animation: none; }
  .js .hoop circle { animation: none; stroke-dashoffset: 0; }
  .js .hero-photo img { animation: none; }
  .gallery-grid img { translate: none; scale: none; }
}

/* ─── Фичи: каркас ─── */
.feature-list { list-style: none; counter-reset: feat; }
.feature-list li { counter-increment: feat; }
.feat-icon { display: none; }
.feat-icon svg { width: 26px; height: 26px; display: block; }

/* ─── Sticky CTA (мобильный) ─── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 320ms var(--ease-out);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { flex: 1; padding: 13px 10px; }

/* ─── Галерея ─── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.gallery-grid figure { overflow: hidden; }
.gallery-grid img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
  translate: 0 var(--py, 0px); /* параллакс-глубина на скролле, задаёт JS */
  scale: 1.09; /* запас, чтобы сдвиг не оголял края внутри рамки */
}

/* ─── Тренер ─── */
.trainer-card { display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: center; }
.trainer-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* ─── Доступность ─── */
:focus-visible { outline: 3px solid var(--focus, currentColor); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .marquee-track { animation: none; }
  .deco { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ─── Мобильный ─── */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .trainer-card { grid-template-columns: 1fr; }
  .trainer-photo { max-width: 220px; }
  .sticky-cta { display: flex; }
  footer { padding-bottom: 130px !important; }
}


/* ══════════ ВАРИАНТ А — «розовый зефир» (Soft UI Evolution) ══════════
   Палитра ui-ux-pro-max: роза #EC4899 · лаванда #8B5CF6 · фон #FDF2F8 · текст #831843 */

:root {
  --paper: #FDF2F8;
  --card: #FFFFFF;
  --ink: #59102F;
  --ink-soft: #8A4A66;
  --primary: #EC4899;
  --primary-deep: #DB2777;
  --lavender: #8B5CF6;
  --border: #FBCFE8;
  --mutedbg: #FCE7F3;
  --focus: #DB2777;
  --font-display: 'Nunito', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, sans-serif;
  --radius: 26px;
  --shadow-sm: 0 2px 10px rgba(219, 39, 119, .07);
  --shadow: 0 14px 44px rgba(219, 39, 119, .13);
}

h1, h2 { font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 7vw, 4.3rem); }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.7rem); margin-bottom: .7em; }

/* Hero: мягкий градиент + плавающие пятна */
.hero {
  background: linear-gradient(168deg, #FDF2F8 0%, #FCE7F3 55%, #F5F0FF 100%);
  padding: clamp(96px, 16vh, 180px) 0 clamp(76px, 12vh, 140px);
  overflow: hidden; position: relative;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary-deep);
  background: #fff; border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.hero h1 { max-width: 15ch; margin-bottom: 24px; }
.hero-sub { max-width: 46ch; font-size: 1.12rem; margin-bottom: 36px; }
.hero-phone {
  display: inline-block; margin-top: 24px;
  font-weight: 800; font-size: 1.3rem; font-family: var(--font-display);
  color: var(--primary-deep); text-decoration: none;
  transition: color 150ms ease;
}
.hero-phone:hover { color: var(--ink); }

.deco { filter: blur(2px); }
.deco-1 { width: 340px; height: 340px; right: -90px; top: -60px;
  background: radial-gradient(circle at 35% 35%, #F9A8D4 0%, rgba(249,168,212,0) 70%); }
.deco-2 { width: 240px; height: 240px; left: -70px; bottom: -40px;
  background: radial-gradient(circle at 40% 40%, #DDD6FE 0%, rgba(221,214,254,0) 70%); }
.deco-3 { width: 120px; height: 120px; right: 22%; bottom: 10%;
  background: radial-gradient(circle at 40% 40%, #FBCFE8 0%, rgba(251,207,232,0) 72%); }
.deco-4 { width: 300px; height: 300px; right: -80px; top: -80px;
  background: radial-gradient(circle at 40% 40%, #FCE7F3 0%, rgba(252,231,243,0) 70%); }
.deco-1, .deco-3 { animation: float 9s ease-in-out infinite alternate; }
.deco-2, .deco-4 { animation: float 12s ease-in-out infinite alternate-reverse; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(26px); } }

/* Снаряды: цвета темы; позиции задаёт base (привязка к фото) */
.hoop { --hoop-c1: #EC4899; --hoop-c2: #8B5CF6; opacity: .85; }
.ball { --ball-c1: #F9A8D4; --ball-c2: #DB2777; }
/* фолбэк без фото: свободное размещение по hero */
.hero > .hoop {
  width: clamp(220px, 26vw, 380px); height: clamp(220px, 26vw, 380px);
  right: max(4vw, 40px); top: 12%; opacity: .5;
}
.hero > .ball {
  width: clamp(64px, 8vw, 110px); height: clamp(64px, 8vw, 110px);
  right: 30%; bottom: 6%; opacity: .82;
}
.hero-photo {
  /* трёхслойная тень: контакт → объём → рассеянный ореол */
  box-shadow:
    0 2px 6px rgba(89, 16, 47, .10),
    0 14px 28px rgba(219, 39, 119, .16),
    0 48px 100px rgba(219, 39, 119, .26);
}
.hero-photo img { background: var(--mutedbg); }

/* Кнопки */
.btn { border-radius: 999px; }
.btn-primary {
  /* тёмный конец градиента: белый текст держит контраст ≥4.5:1 */
  background: linear-gradient(120deg, #DB2777 20%, #7C3AED 130%);
  color: #fff; font-weight: 700;
  box-shadow: 0 10px 26px rgba(219, 39, 119, .35);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(236, 72, 153, .42); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-deep); }

/* Лента — лавандовая, тонкая */
.ribbon path { stroke: var(--lavender); stroke-width: 9; opacity: .18; }

/* Возраст */
.age { background: #fff; border-radius: 44px 44px 0 0; margin-top: -32px; z-index: 2; }
.age p { font-size: 1.1rem; max-width: 56ch; }

/* Фичи — карточки в сетке с иконками */
.features { background: #fff; }
.feature-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px;
}
.feature-list li {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  position: relative; overflow: hidden;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
/* подложка: большая полупрозрачная иконка в углу */
.feat-watermark {
  display: block; position: absolute;
  right: -26px; bottom: -30px;
  width: 150px; height: 150px;
  color: var(--primary-deep); opacity: .07;
  pointer-events: none;
  transform: rotate(-8deg);
  transition: opacity 250ms ease, transform 350ms var(--ease-out);
}
.feat-watermark svg { width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) {
  .feature-list li:hover .feat-watermark { opacity: .13; transform: rotate(-3deg) scale(1.06); }
}
@media (hover: hover) and (pointer: fine) {
  .feature-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
}
.feature-list li::before { content: none; }
.feat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, #FCE7F3, #EDE9FE);
  color: var(--primary-deep);
  margin-bottom: 16px;
}
.feature-list strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.45rem; color: var(--ink);
  margin-bottom: 8px; line-height: 1.12; letter-spacing: -0.01em;
  position: relative;
}
.feature-list p { margin: 0; font-size: .98rem; position: relative; }

/* Первая карточка — акцентная: главный аргумент доверия */
.feature-list li:first-child { background: var(--ink); border-color: var(--ink); }
.feature-list li:first-child strong { color: #fff; }
.feature-list li:first-child p { color: #E9C8D8; }
.feature-list li:first-child .feat-icon { background: rgba(255,255,255,.14); color: #F9A8D4; }
.feature-list li:first-child .feat-watermark { color: #F9A8D4; opacity: .12; }

/* Бегущая строка */
.marquee { background: linear-gradient(90deg, #DB2777, #7C3AED); }
.marquee-track span { color: #fff; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; }

/* Тренер */
.trainer { background: var(--paper); }
.trainer-card { background: var(--card); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.trainer-photo { border-radius: 18px; background: var(--mutedbg); }
.trainer-name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.trainer-role { color: var(--primary-deep); font-weight: 700; margin-bottom: 12px; }

/* Галерея */
.gallery { background: var(--paper); }
.gallery-grid figure { border-radius: 20px; box-shadow: var(--shadow-sm); }
.gallery-grid img { transition: transform 500ms var(--ease-out); }
@media (hover: hover) { .gallery-grid figure:hover img { transform: scale(1.05); } }

/* Где мы */
.location { background: var(--paper); }
.loc-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 38px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.loc-line1 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.loc-line2 { margin-bottom: 18px; }

/* Финал */
.final { background: linear-gradient(168deg, #FCE7F3 0%, #F5F0FF 100%); text-align: center; overflow: hidden; }
.final p { max-width: 40ch; margin: 0 auto 34px; font-size: 1.1rem; }
.final .cta-row { justify-content: center; }
.final-phone {
  display: inline-block; margin-top: 30px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--ink); text-decoration: none;
  border-bottom: 3px solid var(--border);
}
.final-phone:hover { color: var(--primary-deep); border-color: var(--primary); }

footer { background: #FBE3F0; padding: 30px 0; }
footer p { font-size: .9rem; color: var(--ink-soft); }

.sticky-cta { background: rgba(253, 242, 248, .93); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }

@media (max-width: 900px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } .ribbon { display: none; } }
