/* =========================================================
   AMSkills — премиальная академическая эстетика (navy + crimson).
   Меняете фирменные цвета — правите только блок :root ниже.
   ========================================================= */
/* Шрифты хостятся на сайте (SIL OFL 1.1) — запросов к Google нет */
/* Inter · cyrillic */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter · latin-ext */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter · latin */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Montserrat · cyrillic */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Montserrat · latin-ext */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat · latin */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --color-bg: #0a1c3a;
  --color-bg-2: #0e2347;
  --color-card-dark: #102850;
  --color-ink: #ffffff;
  --color-cream: #f8f9fa;
  --color-cream-2: #e9edf3;
  --color-text-on-cream: #0a1c3a;
  --color-muted: #b7c1d1;
  --color-muted-on-cream: #59626f;
  --color-accent: #c8102e;
  --color-accent-2: #e2314c;
  --color-silver: #aab6c8;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-on-cream: rgba(10, 28, 58, 0.12);

  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-script: "Montserrat", sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1160px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --header-h: 84px;     /* высота шапки */
  --section-pad: 128px; /* вертикальные отступы секций */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 800;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
h2 { font-size: clamp(32px, 4vw, 52px); max-width: 640px; }
p { margin: 0 0 16px; color: var(--color-muted); }

.script-accent {
  font-family: var(--font-script);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--color-accent);
}
.section-kicker.script-accent { margin: 0 0 10px; }

.section-head-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 8px;
}
.section-head-center h2 { max-width: none; }
.section-head-center + * { margin-top: 40px; }

.section { padding: var(--section-pad) 0; background: var(--color-bg); border-top: 1px solid var(--color-border); }
/* Переход по меню и кнопкам «Оплата», «Контакты» и т. п.: заголовок секции встаёт сразу под шапкой, без пустого поля сверху */
.section[id] { scroll-margin-top: calc(var(--header-h) + 28px - var(--section-pad)); }
.section-muted {
  background: var(--color-cream);
  color: var(--color-text-on-cream);
  border-top-color: var(--color-border-on-cream);
}
.section-muted p { color: var(--color-muted-on-cream); }
.section-muted h2, .section-muted h3 { color: var(--color-text-on-cream); }

/* Scroll-triggered animations */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.8,.3,1), transform 0.7s cubic-bezier(.16,.8,.3,1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-2); transform: translateY(-2px) scale(1.03); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: inherit; }
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px) scale(1.03); }
.btn-lg { padding: 17px 32px; font-size: 15.5px; }

/* Header — floating, transparent → solid on scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(8, 20, 43, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  color: var(--color-ink);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; flex-shrink: 0; }
.logo-text-group { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.logo-tagline {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-muted);
  white-space: nowrap;
}
.logo-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}
.nav {
  display: flex;
  gap: 32px;
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.nav a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.85;
  white-space: nowrap;
}
.nav a:hover { opacity: 1; color: var(--color-accent); }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.phone { font-weight: 600; font-size: 14px; opacity: 0.9; }
@media (max-width: 1150px) {
  .nav { gap: 20px; }
  .header-actions .phone { display: none; }
}
.burger { display: none; }

/* Hero */
.hero {
  position: relative;
  padding: 160px 0 140px;
  color: var(--color-ink);
  overflow: hidden;
  min-height: 720px;
  display: flex;
  align-items: center;
  margin-top: calc(var(--header-h) * -1);
  clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-arena.webp") center 35% / cover no-repeat;
  transform: scale(1.06);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10,20,42,0.85) 0%, rgba(10,20,42,0.55) 48%, rgba(10,20,42,0.3) 100%),
    linear-gradient(0deg, rgba(10,20,42,0.78) 0%, transparent 45%);
}
.hero-inner { position: relative; max-width: 700px; }
.hero .eyebrow { margin-bottom: 18px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero h1 {
  font-size: clamp(38px, 7.4vw, 82px);
  margin-bottom: 22px;
  overflow-wrap: break-word;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
  color: #fff;
}
.hero-lead { color: #e2e8f0; font-size: 18px; max-width: 520px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.hero-microcopy {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: rgba(226,232,240,0.8);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* Stats band — floating panel over the hero */
.stats-band { position: relative; margin-top: -86px; z-index: 5; }
.stats-grid {
  position: relative;
  background: var(--color-cream);
  color: var(--color-text-on-cream);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  padding: 52px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-grid::before {
  content: "";
  position: absolute;
  left: 33.33%;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--color-border-on-cream);
}
.stats-grid::after {
  content: "";
  position: absolute;
  left: 66.66%;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--color-border-on-cream);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 6vw, 68px);
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted-on-cream);
  margin-top: 8px;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

/* Quote band */
.quote-band {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
}
.quote-bg {
  position: absolute;
  inset: 0;
  background: url("../img/arena-window.webp") center 60% / cover no-repeat;
}
.quote-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 42, 0.68);
}
.quote-band .container { position: relative; }
.quote-mark {
  display: block;
  width: 84px;
  height: auto;
  color: var(--color-accent);
  opacity: 0.6;
  margin: 0 auto 14px;
}
.quote-text {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.3;
  color: #fff;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

/* About — strict two-column grid, diagonal-cut photo, timeline checklist */
.about-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 14px;
  align-items: center;
}
.about-text { position: relative; z-index: 2; max-width: 550px; }
.about-text h2 { font-size: clamp(28px, 3.4vw, 44px); }
.about-lead {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-muted);
  margin-top: -10px;
}
.about-subhead { margin-top: 30px; font-size: 19px; text-transform: none; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; color: #fff; }

.about-media { position: relative; z-index: 1; }
.about-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0 100px 0 100px;
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow);
  display: block;
}

.timeline-list { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255,255,255,0.14);
}
.timeline-list li {
  position: relative;
  padding: 0 0 24px 42px;
  line-height: 1.65;
}
.timeline-list li:last-child { padding-bottom: 0; }
.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(200,16,46,0.2);
}

/* Advantages — dark cards with orange icons on a light section */
.advantages-section {
  position: relative;
  padding-bottom: 180px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 44px;
  position: relative;
}
.advantage-card {
  position: relative;
  background: var(--color-card-dark);
  border-radius: var(--radius);
  padding: 40px 34px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.advantage-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.35); }
.advantage-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--color-accent);
}
.advantage-icon svg { width: 100%; height: 100%; }
.advantage-card h3 { font-size: 17px; margin-bottom: 8px; text-transform: none; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; color: var(--color-ink); }
.advantage-card p { margin: 0; font-size: 14px; color: #d1d5db; line-height: 1.55; }
.advantage-card p strong { display: block; margin-top: 10px; color: var(--color-accent); font-weight: 700; }

.advantage-card:last-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 26px;
  text-align: left;
  background: var(--color-bg-2);
  border: 1px solid var(--color-accent);
}
.advantage-card:last-child .advantage-icon { margin-bottom: 0; flex-shrink: 0; color: var(--color-accent); }
.advantage-card:last-child > div:last-child { display: grid; gap: 4px; }
.advantage-card:last-child h3, .advantage-card:last-child p { margin: 0; color: #fff; }
@media (max-width: 560px) {
  .advantage-card:last-child { flex-direction: column; text-align: center; }
}

/* Gallery — large, generously-spaced training photos, no crop, no collage */
.gallery-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-item-wide { grid-column: 1 / -1; }
.gallery-item-wide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 32px;
  background: linear-gradient(0deg, rgba(8,18,38,0.9) 0%, rgba(8,18,38,0.5) 60%, transparent 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item-wide figcaption { padding: 20px 20px; font-size: 14.5px; }
}

/* Coach — full-bleed, asymmetric: name+facts upper-left, quote lower-right */
.coach-section { position: relative; overflow: hidden; min-height: 860px; display: flex; align-items: center; }
.coach-section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.coach-section-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8,18,38,0.95) 0%, rgba(8,18,38,0.7) 42%, rgba(8,18,38,0.32) 100%),
    linear-gradient(0deg, rgba(8,18,38,0.6) 0%, transparent 40%);
}
.coach-layout {
  position: relative;
  padding: 120px 20px 110px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.coach-main { max-width: 600px; }
.coach-name {
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.98;
  margin-bottom: 22px;
  color: #fff;
}
.coach-role-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.coach-bio { font-size: 16px; line-height: 1.75; color: #e2e8f0; margin: 0 0 28px; max-width: 520px; }
.coach-team-photo {
  margin: 0 0 28px;
  max-width: 280px;
}
.coach-team-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  box-shadow: 0 16px 32px rgba(0,0,0,0.45);
}
.coach-team-photo figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--color-silver);
  line-height: 1.5;
}
.coach-facts { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.coach-facts li { font-size: 15px; color: #e2e8f0; padding-left: 16px; position: relative; }
.coach-facts li::before { content: "–"; position: absolute; left: 0; color: var(--color-accent); }

.coach-quote {
  position: relative;
  align-self: flex-end;
  max-width: 480px;
  background: rgba(10, 20, 42, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 36px 38px;
}
.coach-quote .quote-mark-lg { position: absolute; top: -34px; left: 32px; width: 76px; opacity: 0.95; }
.coach-quote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 10px 0 14px;
}
.coach-quote cite { font-style: normal; font-size: 14px; color: var(--color-accent); font-weight: 600; }

@media (min-width: 860px) {
  .coach-layout { min-height: 660px; justify-content: center; }
  .coach-quote { margin-top: -40px; }
}

/* Academy partnership — minimal team grid: round portraits, no collage */
.partner-head { max-width: 720px; }
.partner-head h2 { font-size: clamp(24px, 3.4vw, 44px); }
.accent-rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: 22px auto 24px;
  background: var(--color-accent);
  border-radius: 2px;
}
.partner-lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-muted);
}
/* Логотип академии: оригинал рассчитан на белый фон, поэтому лежит на белой плашке */
.partner-logo {
  display: block;
  width: 176px;
  height: auto;
  margin: 0 auto 30px;
  padding: 14px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.42);
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 24px;
  max-width: 1000px;
  margin: 64px auto 0;
}
.team-card {
  flex: 0 0 calc((100% - 72px) / 4);
  text-align: center;
}
.team-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 6%;
  border-radius: 50%;
  background: var(--color-bg-2);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 36px rgba(0,0,0,0.42);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.team-card:hover .team-photo { transform: translateY(-4px); border-color: rgba(200,16,46,0.7); }
.team-name {
  margin: 22px 0 6px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  color: #fff;
}
.team-role { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--color-silver); }
.partner-note {
  max-width: 760px;
  margin: 72px auto 0;
  padding: 28px 32px;
  font-size: 17px;
  line-height: 1.75;
  color: #e2e8f0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
}
@media (max-width: 1000px) {
  .team-grid { max-width: 540px; }
  .team-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 700px) {
  .partner-logo { width: 148px; margin-bottom: 26px; padding: 12px; border-radius: 20px; }
  .team-grid { gap: 32px 16px; margin-top: 44px; }
  .team-card { flex-basis: calc((100% - 16px) / 2); }
  .team-name { margin-top: 16px; font-size: 15.5px; }
  .team-role { font-size: 12.5px; }
  .partner-note { margin-top: 52px; padding: 22px; font-size: 16px; }
}

/* Reviews */
.reviews-rating {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 24px;
  transition: color 0.2s ease;
}
.reviews-rating:hover { color: var(--color-accent-2); text-decoration: underline; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(26,26,26,0.07);
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26,26,26,0.12); }
.review-card p { color: var(--color-text-on-cream); font-size: 14.5px; margin: 0 0 12px; }
.review-card cite { font-style: normal; font-weight: 700; font-size: 13.5px; color: var(--color-muted-on-cream); }
.review-card-featured {
  grid-column: span 2;
  background: var(--color-bg);
}
.review-card-featured p { color: var(--color-ink); font-size: 20px; font-weight: 700; line-height: 1.4; font-family: var(--font-display); text-transform: none; letter-spacing: -0.01em; }
.review-card-featured cite { color: var(--color-accent); }
@media (max-width: 640px) {
  .reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin: 0 -20px;
    padding: 4px 20px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .reviews-grid .review-card,
  .reviews-grid .review-card-featured {
    grid-column: auto;
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
}
.reviews-link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
  color: var(--color-text-on-cream);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}
.reviews-link:hover { color: var(--color-accent); }

/* Payment */
.payment-section { position: relative; overflow: hidden; }
.payment-section-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-arena.webp") center 60% / cover no-repeat;
}
.payment-section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 38, 0.8);
}
.payment-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.payment-card {
  background: var(--color-cream);
  color: var(--color-text-on-cream);
  border-radius: var(--radius);
  padding: 38px;
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow);
}
.payment-card label { font-size: 13px; font-weight: 700; color: var(--color-text-on-cream); margin-top: 12px; }
.payment-card input {
  border: 1px solid var(--color-border-on-cream);
  background: #fff;
  color: var(--color-text-on-cream);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
}
.payment-card input::placeholder { color: var(--color-muted-on-cream); }
.field-hint { font-size: 12.5px; color: var(--color-muted-on-cream); }
.payment-card .btn { margin-top: 20px; }
.payment-note { font-size: 12.5px; margin-top: 10px; margin-bottom: 0; color: var(--color-muted-on-cream); }
.payment-status { font-size: 14px; margin-top: 12px; color: var(--color-muted-on-cream); }
.payment-status.error { color: #c0392b; }

/* Contacts */
/* Вместо встроенной карты Яндекса (она показывает чужую рекламу): фото площадки, число площадок и ссылка на Яндекс.Карты */
.contacts-banner {
  position: relative;
  isolation: isolate;
  margin-top: 28px;
  min-height: 340px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: 0 10px 30px rgba(26,26,26,0.07);
}
.contacts-banner-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.contacts-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(8,18,38,0.94) 0%, rgba(8,18,38,0.8) 42%, rgba(8,18,38,0.3) 100%);
}
.contacts-banner-body { max-width: 560px; padding: 48px; }
.contacts-banner .contacts-banner-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 9vw, 104px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent-2);
}
.contacts-banner .contacts-banner-title {
  margin: 10px 0 8px;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.contacts-banner .contacts-banner-note { margin: 0 0 26px; font-size: 15px; color: var(--color-muted); }
@media (max-width: 700px) {
  .contacts-banner { min-height: 0; }
  .contacts-banner::after { background: linear-gradient(180deg, rgba(8,18,38,0.88) 0%, rgba(8,18,38,0.8) 100%); }
  .contacts-banner-body { padding: 36px 24px; }
}
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
/* на планшетах — ровно 2 × 2, без одинокой четвёртой карточки */
@media (max-width: 980px) { .locations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .locations-grid { grid-template-columns: 1fr; } }
.location-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(26,26,26,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.location-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26,26,26,0.12); }
.location-pin { width: 30px; height: 30px; color: var(--color-accent); margin-bottom: 14px; }
.location-card h3 { font-size: 17px; margin-bottom: 8px; text-transform: none; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.location-card p { font-size: 14px; margin: 0 0 8px; color: var(--color-muted-on-cream); }
.location-rating {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 !important;
  transition: color 0.2s ease;
}
.location-rating:hover { color: var(--color-accent-2); text-decoration: underline; }
.location-card-accent {
  grid-column: 1 / -1;
  background: var(--color-cream-2);
  border: 1px solid rgba(200,16,46,0.3);
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 32px;
}
.location-card-accent .location-pin { margin-bottom: 0; flex-shrink: 0; }
.location-card-accent h3 { margin-bottom: 6px; }
.location-card-accent p { margin: 0; max-width: 640px; }
@media (max-width: 560px) {
  .location-card-accent { flex-direction: column; text-align: center; padding: 28px 24px; }
  .location-card-accent .location-pin { margin-bottom: 6px; }
}

/* Footer */
.site-footer { background: #071021; color: rgba(226,232,240,0.7); padding: 36px 0; border-top: 1px solid var(--color-border); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { display: block; width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { opacity: 0.8; }
.footer-links a:hover { opacity: 1; color: var(--color-accent); }

/* Responsive */
@media (max-width: 900px) {
  .payment-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  .about-text { max-width: none; }
  .about-media { margin-top: 32px; }
  .about-media img { border-radius: 0 60px 0 60px; }
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid::before, .stats-grid::after { display: none; }
  .coach-content { max-width: 100%; }
}

@media (max-width: 780px) {
  .nav {
    position: fixed;
    z-index: 60;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    background: var(--color-bg);
    flex-direction: column;
    padding: 24px 20px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a { font-size: 16px; }
  .header-actions .phone { display: none; }
  .logo-tagline { display: none; }
  .burger {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 26px;
    background: none;
    border: none;
    padding: 6px 0;
    cursor: pointer;
  }
  .burger span { height: 2px; background: var(--color-ink); border-radius: 2px; }
  .hero { padding: 130px 0 100px; min-height: auto; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(8,18,38,0.6) 0%, rgba(8,18,38,0.82) 55%, rgba(8,18,38,0.94) 100%),
      linear-gradient(100deg, rgba(8,18,38,0.88) 0%, rgba(8,18,38,0.6) 60%, rgba(8,18,38,0.38) 100%);
  }
  :root { --section-pad: 80px; }
  .site-header { background: rgba(8,18,38,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
}

/* Footer — реквизиты продавца и ссылки на документы */
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  line-height: 1.75;
}
.footer-requisites { margin: 0; max-width: 560px; color: rgba(226,232,240,0.6); }
.footer-requisites a { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.28); text-underline-offset: 3px; }
.footer-requisites a:hover { color: #fff; }
.footer-docs { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-docs a { opacity: 0.85; text-decoration: underline; text-decoration-color: rgba(200,16,46,0.75); text-underline-offset: 3px; }
.footer-docs a:hover { opacity: 1; color: #fff; }

/* Форма оплаты — чекбоксы согласий (оферта и персональные данные отдельно) */
.payment-card .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-muted-on-cream);
  cursor: pointer;
}
.payment-card .consent + .consent { margin-top: 8px; }
.payment-card .consent input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.payment-card .consent a,
.payment-note a { color: var(--color-text-on-cream); text-decoration: underline; text-decoration-color: rgba(200,16,46,0.7); text-underline-offset: 2px; }
.payment-card .consent a:hover,
.payment-note a:hover { color: var(--color-accent); }

/* Юридические страницы: оферта, политика, согласие */
.legal-header .header-actions { margin-left: auto; }
.legal-back { font-size: 13.5px; font-weight: 600; letter-spacing: 0.03em; opacity: 0.85; white-space: nowrap; }
.legal-back:hover { opacity: 1; color: var(--color-accent); }
.legal { padding: 48px 0 112px; background: var(--color-bg); }
.legal-container { max-width: 820px; }
.legal-meta { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.04em; color: var(--color-silver); }
.legal h1 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 14px; }
.legal-lead { margin-bottom: 8px; font-size: 17px; line-height: 1.7; color: #e2e8f0; }
.legal h2 {
  max-width: none;
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  scroll-margin-top: 100px;
}
.legal p { margin-bottom: 12px; font-size: 16px; line-height: 1.75; color: #d3dbe8; }
.legal ul { margin: 0 0 14px; padding-left: 22px; color: #d3dbe8; }
.legal li { margin-bottom: 6px; font-size: 16px; line-height: 1.7; }
.legal b { color: #fff; }
.legal a { color: #fff; text-decoration: underline; text-decoration-color: rgba(200,16,46,0.8); text-underline-offset: 3px; }
.legal a:hover { color: var(--color-accent-2); }
.legal-requisites {
  margin-top: 16px;
  padding: 22px 26px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
}
.legal-requisites p { margin: 0 0 4px; }
.legal-requisites p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .legal { padding: 28px 0 80px; }
  .legal h2 { margin-top: 34px; padding-top: 20px; font-size: 18px; }
  .legal p, .legal li { font-size: 15.5px; }
  .legal-requisites { padding: 18px 20px; }
  .footer-legal { flex-direction: column; gap: 16px; }
}

/* Юридические страницы — таблица «цели обработки» в политике */
.legal-dl {
  margin: 0 0 14px;
  padding: 6px 26px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.legal-dl dt { margin-top: 18px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-silver); }
.legal-dl dd { margin: 4px 0 18px; font-size: 16px; line-height: 1.7; color: #d3dbe8; }
.legal-dl dd ul { margin: 0; padding-left: 20px; }
@media (max-width: 700px) {
  .legal-dl { padding: 2px 18px; }
  .legal-dl dd { font-size: 15.5px; }
}

/* Приложения к оферте: строки для подписей и печать документов */
.legal-sign-intro { margin-top: 28px; }
.legal-sign { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 14px; }
.sign-line { display: inline-block; flex: 1 1 140px; min-width: 140px; max-width: 280px; height: 1em; border-bottom: 1px solid rgba(255,255,255,0.45); }
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer { display: none; }
  .legal { padding: 0; background: #fff; }
  .legal h1, .legal h2, .legal b, .legal-meta { color: #000; }
  .legal h2 { border-top-color: #bbb; }
  .legal p, .legal li { color: #000; font-size: 12pt; line-height: 1.5; }
  .legal a { color: #000; text-decoration: none; }
  .legal-requisites, .legal-dl { background: #fff; border-color: #bbb; }
  .sign-line { border-bottom-color: #000; }
}

/* Форма оплаты — выбор назначения платежа (индивидуальная тренировка / прочие платежи) */
.payment-card .pay-type { margin: 0; padding: 0; border: 0; min-width: 0; }
.payment-card .pay-type legend { padding: 0; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--color-text-on-cream); }
.pay-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payment-card .pay-type-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--color-border-on-cream);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-on-cream);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.payment-card .pay-type-option input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.payment-card .pay-type-option:hover { border-color: rgba(200,16,46,0.5); }
.payment-card .pay-type-option:has(input:checked) { border-color: var(--color-accent); background: rgba(200,16,46,0.06); }
@media (max-width: 460px) {
  .pay-type-options { grid-template-columns: 1fr; }
}
