:root {
  --bg: #0b0b0d;
  --bg-alt: #131316;
  --bg-card: #18181c;
  --text: #f2f0ec;
  --text-muted: #a8a6a1;
  --accent: #b6142e;       /* насыщенный красный */
  --accent-dark: #7d0e20;
  --gold: #c9a24b;         /* люксовый акцент */
  --border: rgba(255,255,255,0.08);
  --radius: 4px;
  --max-width: 1180px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Bebas Neue", "Montserrat", Arial, sans-serif; letter-spacing: 0.5px; margin: 0 0 16px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 12px; color: var(--text-muted); }

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

.eyebrow {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ===== LAYOUT: единая лента секций ===== */
.section { width: 100%; padding: 96px 24px; }
.section__inner { max-width: var(--max-width); margin: 0 auto; }
.about { background: var(--bg-alt); }
.pricing { background: var(--bg-alt); }
.contacts { background: var(--bg-alt); }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,13,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--text);
  white-space: nowrap;
}
.nav__links { display: flex; gap: 18px; flex: 1; justify-content: center; }
.nav__links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--gold); }
.nav__cta { white-space: nowrap; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span { width: 24px; height: 2px; background: var(--text); display: block; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--block { width: 100%; text-align: center; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 24px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,0.55) 0%, rgba(11,11,13,0.92) 100%);
  z-index: 0;
}
.hero__content { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; width: 100%; }
.hero__lead { font-size: 1.15rem; max-width: 480px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== ABOUT ===== */
.about__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.about__image {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-card), var(--accent-dark));
  border: 1px solid var(--border);
}
.about__stats { display: flex; gap: 40px; margin-top: 28px; }
.stat__num { display: block; font-family: "Bebas Neue", sans-serif; font-size: 2.4rem; color: var(--gold); }
.stat__label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== COACHES ===== */
.coaches__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.coach-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.coach-card__photo {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #2a1013, #18181c);
}
.coach-card__rank { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* ===== SCHEDULE ===== */
.schedule__table-wrap { overflow-x: auto; margin-top: 32px; }
.schedule__table { width: 100%; border-collapse: collapse; min-width: 560px; }
.schedule__table th, .schedule__table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}
.schedule__table th { color: var(--gold); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; }
.schedule__table td:first-child { color: var(--text); font-weight: 600; }

/* ===== PRICING ===== */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: left;
}
.price-card--accent { border-color: var(--gold); }
.price-card__badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--gold); color: #1a1a1a;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 999px; font-weight: 700;
}
.price-card__price { font-family: "Bebas Neue", sans-serif; font-size: 2.2rem; color: var(--gold); margin-bottom: 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; color: var(--text-muted); font-size: 0.9rem; }
.price-card li { padding: 6px 0; border-bottom: 1px solid var(--border); }

/* ===== GALLERY ===== */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.gallery__item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-card), #241417);
  border: 1px solid var(--border);
}

/* ===== REVIEWS ===== */
.reviews__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 32px; }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.review-card p { color: var(--text); font-style: italic; }
.review-card__author { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* ===== CONTACTS ===== */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contacts__list { list-style: none; padding: 0; margin: 24px 0; }
.contacts__list li { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.contacts__list strong { color: var(--text); margin-right: 6px; }
.contacts__map {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-card), #1a1114);
  border: 1px solid var(--border);
}
.contacts__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 90px; }

/* ===== FLASH ===== */
.flash-wrap { position: fixed; top: 90px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 18px; border-radius: var(--radius); font-size: 0.9rem; }
.flash--success { background: #1c3b25; color: #9be3a8; border: 1px solid #2e5c3a; }
.flash--error { background: #3b1c1c; color: #e39b9b; border: 1px solid #5c2e2e; }

/* ===== FOOTER ===== */
.footer { padding: 32px 24px; border-top: 1px solid var(--border); }
.footer__inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .about__grid, .contacts__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__image { order: -1; }
  .coaches__grid, .pricing__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .section { padding: 64px 20px; }
  .hero { min-height: 80vh; }
}


/* ===== COACHES: 2 карточки вместо 3 ===== */
.coaches__grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
.coach-card__meta {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.coach-card__meta li { padding: 5px 0; border-bottom: 1px solid var(--border); }
.coach-card__meta li:last-child { border-bottom: none; }

/* ===== SCHEDULE: несколько локаций подряд ===== */
.schedule__location { margin-bottom: 40px; }
.schedule__location:last-child { margin-bottom: 0; }
.schedule__location h3 { color: var(--gold); font-size: 1rem; margin-bottom: 12px; }

.gallery__item { object-fit: cover; width: 100%; height: 100%; display: block; border-radius: var(--radius); }
.gallery__item--extra { display: none; }
.gallery__grid.is-expanded .gallery__item--extra { display: block; }

.gallery__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px auto 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.gallery__toggle:hover { border-color: var(--gold); color: var(--gold); }
.gallery__toggle-icon { transition: transform 0.25s ease; }
.gallery__toggle.is-open .gallery__toggle-icon { transform: rotate(180deg); }

.about__image, .coach-card__photo {
  object-fit: cover;
  width: 100%;
  display: block;
}

/* ===== ПЛАВАЮЩИЕ КОНТАКТЫ ===== */
.floating-contacts {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-contacts__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform 0.15s ease, background 0.2s ease;
}
.floating-contacts__btn:hover { transform: translateY(-2px); background: var(--accent-dark); }

/* ===== КОНТАКТЫ: адрес + парковка + фото рядом ===== */
.contacts__address-block { margin-bottom: 28px; }
.contacts__address-block p { color: var(--text); margin-bottom: 12px; }
.contacts__map-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

/* ===== ОТЗЫВЫ: раскрывающаяся галерея ===== */
.review-card { cursor: pointer; transition: background 0.2s ease; }
.review-card:hover { background: #1f1f24; }
.review-card__text { color: var(--text); font-style: italic; }
.review-card--collapsed .review-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-form { display: none; max-width: 480px; margin-top: 20px; }


/* ===== ФИКС: about__stats переносится на мобильных, а не раздувает страницу ===== */
.about__stats { flex-wrap: wrap; }

/* ===== Защита от горизонтального переполнения на мобильных ===== */
body { overflow-x: hidden; }
img { max-width: 100%; }

/* ===== SCHEDULE: одинаковая ширина таблиц независимо от контента ===== */
.schedule__table { table-layout: fixed; }
.schedule__table th:first-child, .schedule__table td:first-child { width: 25%; }
.schedule__table th:nth-child(2), .schedule__table td:nth-child(2) { width: 30%; }

/* ===== ВАЛИДАЦИЯ ФОРМЫ: подсветка вместо всплывающих подсказок ===== */
.field--invalid input, .field--invalid textarea {
  border-color: var(--accent);
}
.field--invalid span { color: var(--accent); }

/* ===== АДМИНКА: заголовок с кнопками ===== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.admin-header__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-row-actions { white-space: nowrap; }

@media (max-width: 720px) {
  .admin-header { flex-direction: column; align-items: flex-start; }
  .admin-header__actions { width: 100%; }
  .admin-header__actions .btn,
  .admin-header__actions form { flex: 1; }
  .admin-header__actions .btn { width: 100%; text-align: center; }
  .schedule__table th, .schedule__table td { padding: 10px 8px; font-size: 0.8rem; }
}

/* ===== ФИКС: тренеры реально в 1 колонку на мобильном ===== */
@media (max-width: 720px) {
  .coaches__grid { grid-template-columns: 1fr; }
}

/* ===== Textarea без растягивания ===== */
.field textarea { resize: none; }

/* ===== Кнопка формы в заблокированном состоянии ===== */
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== ЛАЙТБОКС ГАЛЕРЕИ ===== */
.gallery__item { cursor: pointer; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 5, 6, 0.95);
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 88vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 600px) {
  .lightbox__nav { width: 40px; height: 40px; font-size: 1.3rem; }
  .lightbox__close { width: 40px; height: 40px; top: 12px; right: 12px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* ===== Лёгкая подкраска фото галереи ===== */
.gallery__item {
  filter: brightness(1.08) contrast(1.05) saturate(1.05);
}

/* ===== Стрелки и крестик лайтбокса — видимые ===== */
.lightbox__close, .lightbox__nav {
  background: var(--bg-card);
  border: 1px solid var(--text-muted);
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== Кнопки формы отзыва: Отмена / Отправить пополам ===== */
.review-form__actions { display: flex; gap: 12px; }
.review-form__actions .btn { flex: 1; text-align: center; }

/* ===== ЛОГОТИП В ШАПКЕ ===== */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 34px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .nav__logo-img { height: 28px; }
}