/* ============ ШРИФТЫ (локальные, работают без интернета) ============ */
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url(../fonts/playfair-display-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url(../fonts/playfair-display-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122; }
@font-face { font-family: "Playfair Display"; font-weight: 900; font-display: swap; src: url(../fonts/playfair-display-cyrillic-900-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Playfair Display"; font-weight: 900; font-display: swap; src: url(../fonts/playfair-display-latin-900-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122; }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/playfair-display-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/playfair-display-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(../fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(../fonts/golos-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(../fonts/golos-text-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(../fonts/golos-text-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(../fonts/golos-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(../fonts/golos-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122; }

/* ============ ЦВЕТА (из бренд-бука ВАБ) ============ */
:root {
  --brown-900: #1E1917;
  --brown-800: #2B2726;
  --brown-700: #3A2F29;
  --gold: #C4A46A;
  --gold-light: #E6CF9A;
  --gold-deep: #8F7036;
  --cream: #F6F2E7;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

:root[data-theme="dark"] {
  --bg: var(--brown-900);
  --bg-2: var(--brown-800);
  --text: var(--cream);
  --muted: #BDB3A2;
  --line: rgba(196, 164, 106, .24);
  --accent: var(--gold);
  --accent-text: var(--gold-light);
  --on-accent: var(--brown-900);
  --img-filter: none;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: var(--cream);
  --bg-2: #ECE5D3;
  --text: var(--brown-800);
  --muted: #6A5D52;
  --line: rgba(143, 112, 54, .28);
  --accent: var(--gold);
  --accent-text: #7A5D28;
  --on-accent: var(--brown-900);
  color-scheme: light;
}

/* ============ БАЗА ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 900; line-height: 1.08; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: 24px; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; }
.flip { transform: scaleX(-1); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--gold { background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #A98748); color: var(--brown-900); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { border-color: rgba(246, 242, 231, .45); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--outline { border-color: var(--line); color: var(--text); background: var(--bg); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-text); }
.btn--outline .ico { color: var(--accent-text); }
.btn[aria-disabled="true"] { opacity: .55; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.link { color: var(--accent-text); text-underline-offset: 4px; font-weight: 500; }

/* ============ ШАПКА ============ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: block; flex: none; }
.logo { height: 56px; width: auto; }
.logo--on-light { display: none; }
[data-theme="light"] .is-solid .logo--on-dark { display: none; }
[data-theme="light"] .is-solid .logo--on-light { display: block; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--cream); opacity: .85; }
.nav a:hover { opacity: 1; color: var(--gold-light); }
.is-solid .nav a { color: var(--text); }
.is-solid .nav a:hover { color: var(--accent-text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.site-header:not(.is-solid) .icon-btn { color: var(--cream); border-color: rgba(246,242,231,.35); }
.theme-toggle .ico-moon { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-moon { display: block; }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 16px; height: 2px; background: currentColor; margin: 2px 0; transition: transform .2s; }

/* ============ ПЕРВЫЙ ЭКРАН ============ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--brown-900); color: var(--cream); overflow: hidden; isolation: isolate;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { z-index: -1; }
.hero-bg img { object-fit: cover; object-position: 70% 35%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(30,25,23,.92) 0%, rgba(30,25,23,.55) 45%, rgba(30,25,23,.1) 75%),
    linear-gradient(0deg, rgba(30,25,23,.95) 0%, rgba(30,25,23,0) 45%);
}
.hero-inner { padding-top: 140px; padding-bottom: clamp(48px, 8vh, 96px); }
/* Градиент задаётся каждой строке отдельно: если повесить его на весь заголовок,
   а строки анимировать, часть мобильных браузеров (Samsung и др.) делает текст невидимым. */
.hero-title {
  font-size: clamp(50px, 9.2vw, 132px); line-height: .92; letter-spacing: -.025em;
  color: var(--gold-light);
}
.hero-line { display: block; padding-bottom: .04em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-line {
    background-image: linear-gradient(180deg, #F6EBCB 0%, var(--gold-light) 30%, var(--gold) 70%, #9C7D42 100%);
    background-size: 100% 300%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
  .hero-line:nth-child(1) { background-position: 0 0; }
  .hero-line:nth-child(2) { background-position: 0 50%; }
  .hero-line:nth-child(3) { background-position: 0 100%; }
}
.hero-lead { max-width: 36em; margin-top: 32px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(246,242,231,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* одно оркестрованное появление при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
  .hero-line { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .hero-line:nth-child(2) { animation-delay: .12s; }
  .hero-line:nth-child(3) { animation-delay: .24s; }
  .hero-lead, .hero-actions, .free-badge { animation: fade 1s .5s both; }
}
@keyframes settle { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ============ СЕКЦИИ ============ */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--muted); max-width: 34em; font-size: 18px; }

/* ---- тренеры ---- */
.coach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.coach-photo { margin: 0 0 24px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.coach h3 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; }
.coach-role { margin-top: 6px; color: var(--accent-text); font-weight: 500; }
.coach-list { margin-top: 18px; display: grid; gap: 8px; }
.coach-list li { display: flex; gap: 12px; align-items: baseline; }
.coach-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-1px); background: radial-gradient(circle at 35% 30%, #FFF4D2, var(--gold) 60%, var(--gold-deep)); }

.story { margin: clamp(64px, 9vw, 120px) 0 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.story img { width: 100%; border-radius: var(--radius); }
.story blockquote { margin: 0; }
.story blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.5vw, 32px); line-height: 1.4; }
.story blockquote footer { margin-top: 20px; color: var(--accent-text); font-weight: 500; }

/* ---- форматы: «меню» строками ---- */
.formats { background: var(--bg-2); }
.menu { border-top: 1px solid var(--line); }
.menu-row {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: clamp(20px, 3vw, 40px);
  align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line);
}
.menu-img { width: 200px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.menu-body h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 900; }
.menu-body p { margin-top: 10px; color: var(--muted); max-width: 40em; }
.menu-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.menu-meta dt { font-size: 14px; color: var(--muted); }
.menu-meta dd { margin: 2px 0 0; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--accent-text); white-space: nowrap; }
.formats-cta { margin-top: 40px; display: flex; gap: 24px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.formats-cta p { max-width: 38em; color: var(--muted); }

/* ---- галерея ---- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 10px; }
.tile { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.04); }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }

/* ---- соцсети ---- */
.follow { background: var(--bg-2); }
.follow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chan {
  position: relative; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; row-gap: 4px;
  padding: 28px; background: var(--bg); text-decoration: none; min-height: 0;
  transition: background-color .2s;
}
.chan:hover { background: color-mix(in srgb, var(--bg) 85%, var(--gold)); }
.chan-ico { grid-row: span 2; width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--accent); color: var(--brown-900); }
.chan-name { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.2; }
.chan-text { grid-column: 2; font-size: 15px; color: var(--muted); }
.chan.is-empty { cursor: default; }
.chan.is-empty:hover { background: var(--bg); }
.chan.is-empty .chan-ico { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.chan.is-empty .chan-text::after { content: "Ссылка скоро появится"; display: block; margin-top: 6px; color: var(--accent-text); font-size: 14px; }

/* ---- контакты ---- */
.contacts-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contacts-lead { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 30em; }
.phones { margin-top: 36px; display: grid; gap: 4px; }
.phones li { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.phone-name { width: 80px; color: var(--muted); }
.phone { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); text-decoration: none; line-height: 1.1; color: var(--text); }
.phone:hover { color: var(--accent-text); }
.write { margin-top: 36px; }
.write-label { color: var(--muted); margin-bottom: 14px; }
.write-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.place { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.place-mark { height: 64px; width: auto; margin-bottom: 20px; }
[data-theme="light"] .place .logo--on-dark { display: none; }
[data-theme="light"] .place .logo--on-light { display: block; }
.place h3 { font-size: 28px; font-weight: 900; }
.place-addr { margin: 14px 0 18px; display: flex; gap: 10px; align-items: flex-start; }
.place-addr .ico { color: var(--accent-text); margin-top: 3px; }

/* ============ ПОДВАЛ ============ */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 15px; color: var(--muted); }
.footer-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-row .logo { height: 46px; }
[data-theme="light"] .site-footer .logo--on-dark { display: none; }
[data-theme="light"] .site-footer .logo--on-light { display: block; }
.footer-copy { margin-left: auto; }

/* ============ ПРОСМОТР ФОТО ============ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(18,14,13,.94); display: grid; place-items: center; padding: 64px 72px; }
.lightbox[hidden] { display: none; }
.lb-img {
  width: auto; height: auto; object-fit: contain; border-radius: var(--radius);
  max-width: calc(100vw - 144px);
  max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px);
}
.lightbox .icon-btn { position: absolute; color: var(--cream); border-color: rgba(246,242,231,.35); width: 48px; height: 48px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ============ АДАПТИВ ============ */
@media (max-width: 1080px) {
  .menu-row { grid-template-columns: 160px minmax(0, 1fr); }
  .menu-img { width: 160px; grid-row: span 2; }
  .menu-meta { grid-column: 2; max-width: 360px; }
  .follow-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a, .site-header:not(.is-solid) .nav a { color: var(--text); padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .section-head, .story, .contacts-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo { height: 48px; }
  .hero-actions .btn { width: 100%; }
  .coach-grid { grid-template-columns: 1fr; }
  .menu-row { grid-template-columns: 1fr; }
  .menu-img { width: 100%; grid-row: auto; }
  .menu-meta { grid-column: auto; }
  .follow-grid { grid-template-columns: 1fr; }
  .chan { min-height: 0; padding: 22px; }
  .mosaic { grid-auto-rows: 140px; gap: 6px; }
  .place { padding: 26px; }
  .footer-copy { margin-left: 0; }
  .lightbox { padding: 64px 12px; }
  .lb-img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 140px); }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 640px) {
  .hero { display: block; min-height: 0; }
  .hero-bg { position: relative; display: block; height: 62svh; min-height: 360px; }
  .hero-bg img { object-position: 74% 50%; }
  .hero::after { background: linear-gradient(180deg, rgba(30,25,23,.55) 0, rgba(30,25,23,0) 22%, rgba(30,25,23,0) 34%, rgba(30,25,23,1) 62svh); }
  .hero-inner { position: relative; padding-top: 0; margin-top: -26svh; padding-bottom: 48px; }
}

/* ============ ПЕРВОЕ ЗАНЯТИЕ БЕСПЛАТНО ============ */
.ball {
  display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF4D2, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 0 3px rgba(196,164,106,.18);
}
.ball--lg { width: 28px; height: 28px; box-shadow: 0 0 0 5px rgba(196,164,106,.16); }
.free-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
  padding: 10px 20px 10px 14px; border: 1px solid rgba(230,207,154,.55); border-radius: 999px;
  background: rgba(30,25,23,.55); backdrop-filter: blur(6px);
  font: 600 clamp(15px, 1.4vw, 18px)/1.2 var(--sans); color: var(--gold-light);
}
.free-line { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); color: var(--accent-text) !important; }
.formats-cta .free-line + p { color: var(--muted); }
.free-card {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 28px;
  border-radius: var(--radius); background: linear-gradient(135deg, rgba(230,207,154,.18), rgba(196,164,106,.06));
  border: 1px solid var(--accent);
}
.free-card-title { font-family: var(--serif); font-weight: 900; font-size: 24px; line-height: 1.15; color: var(--accent-text); margin-bottom: 6px; }
.free-card p:not(.free-card-title) { font-size: 15px; color: var(--muted); }

/* ============ ТЕМА В МЕНЮ (мобильная версия) ============ */
.nav-theme { display: none; }
@media (max-width: 900px) {
  .header-theme { display: none; }
  .nav-theme {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 0 4px;
    background: none; border: 0; color: var(--text); font: 500 18px/1.2 var(--sans); cursor: pointer; text-align: left;
  }
  .nav-theme .ico { color: var(--accent-text); }
  .header-actions { gap: 10px; }
}
@media (max-width: 380px) {
  .header-cta { padding: 0 12px; font-size: 14px; }
  .logo { height: 42px; }
}
