/* ===========================================================
   СШ «Олимп» — общий стиль
   Дизайн-язык: энергичный геометрический спорт
   Жирный condensed-заголовок, диагональные срезы, яркие блоки
   =========================================================== */

:root {
  --bg: #0f1830;
  --surface: #16223f;
  --ink: #ffffff;
  --muted: #9fb0d0;
  --accent: #2bd4a0;
  --accent2: #ffd23f;

  --surface-2: #1d2c52;
  --line: rgba(159, 176, 208, 0.18);
  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Декоративный фон: тонкая диагональная сетка */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(43, 212, 160, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 210, 63, 0.10), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 26px);
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Доступность ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #06281e;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===========================================================
   ШАПКА / НАВИГАЦИЯ
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 24, 48, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__logo { width: 42px; height: 42px; flex: 0 0 auto; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand__name span { color: var(--accent); }
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  color: var(--muted);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}
.nav__links a:hover { color: var(--ink); text-decoration: none; background: var(--surface); }
.nav__links a.is-active {
  color: #06281e;
  background: var(--accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   КНОПКИ
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border: 0;
  cursor: pointer;
  color: #06281e;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: transform 0.15s, filter 0.15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.btn--alt { background: var(--accent2); color: #3a2c00; }

/* ===========================================================
   СЕКЦИИ / ОБЩЕЕ
   =========================================================== */
.section { padding: 76px 0; }
.section--tight { padding: 50px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 14px;
  padding-left: 34px;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 3px;
  background: var(--accent);
  transform: translateY(-50%);
}

.section__head { max-width: 760px; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
.section__head p { color: var(--muted); font-size: 1.08rem; }

/* Диагональный разделитель-полоса */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 28px, var(--accent2) 28px 56px);
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 60%;
  height: 150%;
  background: linear-gradient(145deg, rgba(43, 212, 160, 0.18), rgba(255, 210, 63, 0.08));
  transform: skewX(-12deg);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin-bottom: 0.3em;
}
.hero h1 span { color: var(--accent); }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 90% 100%, 0 100%);
}
.hero__card h3 { color: var(--accent2); font-size: 1.2rem; }

/* Статистика */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 54px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
}
.stat__label { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ===========================================================
   КАРТОЧКИ / СЕТКИ
   =========================================================== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); }
.card__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
}
.card h3 { font-size: 1.35rem; }
.card p { color: var(--muted); margin-bottom: 0; }

.icon-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), var(--accent2));
  margin-bottom: 18px;
  color: #06281e;
}
.icon-badge svg { width: 30px; height: 30px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tag-list li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 12px;
  background: var(--surface-2);
}

/* ===========================================================
   ТРЕНЕРЫ
   =========================================================== */
.coach {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s;
}
.coach:hover { transform: translateY(-5px); border-color: var(--accent); }
.coach__photo {
  height: 210px;
  display: grid;
  place-items: center;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.coach__photo svg { width: 92px; height: 92px; opacity: 0.92; }
.coach__body { padding: 22px 24px 26px; }
.coach__body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.coach__role {
  color: var(--accent2);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0 0 12px;
}
.coach__body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* ===========================================================
   РАСПИСАНИЕ (фишка)
   =========================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 28px;
}
.filter { display: flex; flex-direction: column; gap: 8px; min-width: 210px; flex: 1; }
.filter > span {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.filter select {
  appearance: none;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 40px 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
                    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.sched-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.sched-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--surface);
}
.sched-table th, .sched-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.sched-table thead th {
  background: var(--surface-2);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.84rem;
  color: var(--accent2);
}
.sched-table tbody tr { transition: background 0.15s; }
.sched-table tbody tr:hover { background: var(--surface-2); }
.sched-table .pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(43, 212, 160, 0.16);
  color: var(--accent);
}
.sched-empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}
.sched-count { color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; }

/* ===========================================================
   АБОНЕМЕНТЫ / ЦЕНЫ
   =========================================================== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}
.plan__badge {
  position: absolute;
  top: 18px;
  right: -1px;
  background: var(--accent2);
  color: #3a2c00;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 14px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}
.plan h3 { font-size: 1.5rem; margin-bottom: 4px; }
.plan__desc { color: var(--muted); font-size: 0.92rem; min-height: 42px; }
.plan__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  margin: 10px 0 4px;
}
.plan__price small { font-size: 0.95rem; color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.plan__features { list-style: none; margin: 20px 0 26px; padding: 0; }
.plan__features li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; justify-content: center; }

/* ===========================================================
   ФОРМА (контакты)
   =========================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.form-field label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(43, 212, 160, 0.14);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.form-note[hidden] { display: none; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-list .icon-badge { margin: 0; width: 46px; height: 46px; flex: 0 0 auto; }
.info-list .icon-badge svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; }
.info-list span { color: var(--muted); font-size: 0.95rem; }

.map-stub {
  margin-top: 26px;
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(43,212,160,0.12), rgba(255,210,63,0.08)),
    repeating-linear-gradient(0deg, var(--surface-2) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--surface-2) 0 1px, transparent 1px 40px),
    var(--surface);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===========================================================
   CTA-ПОЛОСА
   =========================================================== */
.cta-band {
  position: relative;
  margin: 0;
  background: linear-gradient(135deg, var(--accent), #1fae84);
  color: #05281d;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(5,40,29,0.06) 0 20px, transparent 20px 40px);
}
.cta-band .container { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #05281d; margin: 0; }
.cta-band p { margin: 6px 0 0; color: #0a3a2b; font-weight: 600; }
.cta-band .btn { background: #05281d; color: var(--accent); }

/* ===========================================================
   ФУТЕР
   =========================================================== */
.site-footer {
  background: #0b1226;
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.site-footer h4 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--accent2);
  margin-bottom: 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--ink); }
.site-footer .brand { margin-bottom: 14px; }
.site-footer p.small { color: var(--muted); font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-bottom a { color: var(--accent); }

/* ===========================================================
   АДАПТИВНОСТЬ
   =========================================================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s;
  }
  .nav__links.is-open {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a { padding: 13px 16px; font-size: 1.05rem; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav { padding: 12px 16px; }
  .section { padding: 54px 0; }
  .hero { padding: 60px 0 70px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat__num { font-size: 2.1rem; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .brand__name { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
