/* ============================================================
   Бокс-клуб «Русская земля» — общие стили
   Светлая тема, акцент — красный (#e63946)
   ============================================================ */

/* ---------- Переменные ---------- */
:root {
  --accent: #e63946;
  --accent-dark: #c62d3a;
  --accent-soft: #fdecee;
  --ink: #101114;
  --ink-soft: #24262c;
  --muted: #6b7280;
  --line: #e7e7ec;
  --surface: #f7f7f9;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 17, 20, 0.04), 0 8px 24px rgba(16, 17, 20, 0.05);
  --shadow-md: 0 16px 44px rgba(16, 17, 20, 0.10);
  --container: 1160px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Базовое ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

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

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
h4 { font-size: 0.95rem; letter-spacing: 0.02em; }

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.muted { color: var(--muted); }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.22);
}
.btn--primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 26px rgba(230, 57, 70, 0.28);
  transform: translateY(-1px);
}

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.2); }

.btn--sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--full { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo-mark--light { background: var(--accent); }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.logo-sub { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a.is-active { color: var(--accent-dark); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -340px;
  left: -180px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(230, 57, 70, 0.10), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.18);
}

.hero h1 { margin-bottom: 18px; }

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-points li {
  position: relative;
  padding-left: 22px;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}

/* Карточка ближайших тренировок */
.hero-visual { position: relative; }

.next-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.next-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.next-card__title { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.next-row {
  display: flex;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.next-time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  color: var(--accent);
  min-width: 54px;
}

.next-body { display: flex; flex-direction: column; gap: 2px; }
.next-name { font-weight: 700; font-size: 14.5px; }
.next-meta { font-size: 13px; color: var(--muted); }

.next-link {
  display: block;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.next-link:hover { color: var(--accent); padding-left: 26px; }

.float-badge {
  position: absolute;
  left: -26px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.float-badge__num {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.float-badge__text { font-size: 12.5px; line-height: 1.3; font-weight: 600; }

/* ---------- Статистика ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-label { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- Секции ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 40px 0 72px; }
.section--surface { background: var(--surface); }

.section-head { max-width: 680px; margin-bottom: 38px; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-head h2 { margin-bottom: 12px; }

.lead { font-size: 17px; color: var(--muted); margin: 0; }

.page-hero { padding: 56px 0 8px; }
.page-hero .lead { max-width: 640px; }
.page-hero h1 { margin: 8px 0 16px; }

/* ---------- Сетки ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Карточки ---------- */
.card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }

.card--flat:hover { transform: none; box-shadow: none; border-color: var(--line); }

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Шаги ---------- */
.steps { gap: 32px 20px; }

.step {
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

.step-num {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.step h3 { margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

.timeline .step { border-top-color: var(--accent); }

/* ---------- CTA ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 44px 46px;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(230, 57, 70, 0.35), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 8px;
  color: #fff;
}

.cta-text { color: #b7bac2; margin: 0; max-width: 560px; }

.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

.cta--tight { margin-top: 44px; padding: 36px 40px; }

/* ---------- Разделение "история / факты" ---------- */
.split {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.split p { color: var(--muted); font-size: 16px; }

.fact-card {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.fact-card__title { margin-bottom: 16px; font-size: 1rem; }

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.fact-list li:last-child { border-bottom: none; }
.fact-list span { color: var(--muted); }
.fact-list strong { font-weight: 700; text-align: right; }

/* ---------- Тренеры ---------- */
.trainer { display: flex; flex-direction: column; }

.trainer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.trainer-head h3 { margin: 0 0 2px; font-size: 1.05rem; }

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(140deg, #24262c, #43464f);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.trainer-role { font-size: 13px; color: var(--accent-dark); font-weight: 700; margin: 0; }
.trainer-bio { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

.chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Расписание ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tab {
  position: relative;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover { color: var(--ink); border-color: #cfcfd6; }

.tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tab.is-today::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.tab.is-active.is-today::after { background: #fff; }

.schedule-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.schedule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.schedule-day { font-size: 1.35rem; margin: 0; }
.schedule-count { font-size: 13.5px; color: var(--muted); font-weight: 600; }

.class-list { display: flex; flex-direction: column; gap: 12px; }

.class-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.class-row:hover {
  border-color: #d8d8e0;
  box-shadow: var(--shadow-sm);
}

.class-time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  color: var(--accent);
}

.class-title { font-weight: 700; font-size: 15.5px; margin-bottom: 4px; }

.class-meta { display: flex; flex-wrap: wrap; gap: 6px; }

.class-coach {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.empty-day {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
  font-size: 15px;
}

.info-cards { margin-top: 24px; }

.notice {
  padding: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 14.5px;
}

/* ---------- Контакты ---------- */
.contacts-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contacts-info { display: flex; flex-direction: column; gap: 14px; }

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  flex-shrink: 0;
}
.contact-icon svg { width: 21px; height: 21px; }

.contact-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-card p { font-size: 14.5px; margin: 0; color: var(--ink-soft); }
.contact-card a { font-weight: 700; }
.contact-card a:hover { color: var(--accent); }

/* ---------- Форма ---------- */
.form-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.form-title { font-size: 1.35rem; margin-bottom: 6px; }
.form-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }

.form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 84px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.field input::placeholder,
.field textarea::placeholder { color: #a3a6ae; }

.field input.is-invalid,
.field select.is-invalid { border-color: var(--accent); }

.field-error {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  min-height: 0;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.45;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-success {
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #eefbf1;
  border: 1px solid #c9ecd3;
  color: #1d6b39;
  font-size: 14.5px;
  font-weight: 600;
}

/* ---------- Карта ---------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.15);
}

/* ---------- Футер ---------- */
.footer {
  margin-top: 72px;
  padding: 56px 0 26px;
  background: #0e0f12;
  color: #b4b7bf;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }

.footer-col a { transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }

.logo--footer { margin-bottom: 14px; }
.logo--footer .logo-name { color: #fff; }
.logo--footer .logo-sub { color: #8a8d96; }

.footer-desc { font-size: 14px; color: #8a8d96; max-width: 280px; margin: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #7c808a;
}

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .next-link { transition: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .float-badge { left: auto; right: 12px; bottom: -20px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 20px; }
  .contacts-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header-inner { height: 68px; }
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(16, 17, 20, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    margin-left: 0;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 14px; font-size: 16px; border-radius: 12px; }
  .burger { display: block; }
  .header-actions .btn { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 32px 0 56px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stats { padding: 22px; margin-top: 40px; }
  .cta { padding: 32px 24px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
  .form-card { padding: 24px; }
  .schedule-panel { padding: 20px; }
  .class-row { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .class-coach { text-align: left; }
  .map-wrap iframe { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .float-badge { position: static; margin-top: 16px; width: 100%; justify-content: flex-start; }
  .hero-visual { max-width: none; }
  .split { gap: 28px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 26px; }
  .logo-sub { display: none; }
  .tab { padding: 9px 15px; font-size: 14px; }
}
