/* ===== Основа ===== */
:root {
  --gold: #d5a02a;
  --gold-light: #f0c14b;
  --black: #050505;
  --black-2: #0c0c0c;
  --black-3: #141414;
  --line: rgba(213, 160, 42, .18);
  --text: #e8e6e2;
  --muted: #9a9691;
  --radius: 4px;
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

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

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: .25s ease;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #0a0a0a; }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(213,160,42,.28); }
.btn--ghost { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--ghost:hover { background: rgba(213,160,42,.1); transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: 13px; }
.btn--full { width: 100%; }

/* ===== Шапка ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: .3s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(5,5,5,.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 10px 0;
}
.header__inner { display: flex; align-items: center; gap: 32px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { width: 52px; height: 52px; object-fit: contain; transition: .3s; }
.header.scrolled .logo img { width: 44px; height: 44px; }
.logo__text {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--gold);
  display: flex;
  flex-direction: column;
}
.logo__text small { font-size: 10px; letter-spacing: .28em; color: var(--muted); font-weight: 400; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width .25s ease;
}
.nav a:hover { color: var(--gold); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--gold);
  white-space: nowrap;
}
.header__phone:hover { color: var(--gold-light); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--gold); transition: .3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
/* Слой с фото — слегка размыт и увеличен, чтобы низкое разрешение
   читалось как кинематографичный расфокус, а не как «мыло». */
.hero__bg {
  position: absolute; inset: -24px;
  z-index: 0;
  background: url('../img/hero.webp') center 28% / cover no-repeat;
  filter: grayscale(.15) blur(3px) brightness(.92);
  transform: scale(1.08);
}
/* Резкий слой поверх фото: затемнение для читаемости текста + зерно */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 42%, rgba(213,160,42,.12), transparent 58%),
    linear-gradient(90deg, rgba(5,5,5,.94) 0%, rgba(5,5,5,.66) 42%, rgba(5,5,5,.3) 100%),
    linear-gradient(180deg, rgba(5,5,5,.4) 0%, rgba(5,5,5,.45) 55%, var(--black) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
}
.hero__inner { position: relative; z-index: 2; max-width: 780px; }

.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  background: rgba(213,160,42,.07);
}
.hero__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(38px, 7vw, 82px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__title span { color: var(--gold); }
.hero__text { font-size: 18px; color: var(--muted); max-width: 620px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 620px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero__stats li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.hero__stats b {
  font-family: 'Oswald', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero__stats span { font-size: 13px; color: var(--muted); line-height: 1.4; }

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  z-index: 2;
}
.hero__scroll::before {
  content: '';
  position: absolute; top: 7px; left: 50%;
  width: 3px; height: 7px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll 1.8s infinite;
}
@keyframes scroll { 0%{opacity:1;transform:translate(-50%,0)} 70%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* ===== Секции ===== */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--black-2); }

.section__head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section__kicker {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section__kicker::before { content: '— '; }
.section__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section__sub { color: var(--muted); font-size: 17px; }

.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }
.note a { color: var(--gold); }

/* ===== Карточки направлений ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  transition: .3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; z-index: 3;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-6px); }
.card:hover::before { transform: scaleX(1); }

/* Фото карточки — все одного размера через object-fit */
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--black-3);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.92);
  transition: transform .55s ease, filter .45s ease;
}
.card:hover .card__media img { transform: scale(1.07); filter: grayscale(.35) contrast(1.05) brightness(1); }
.card__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.05) 40%, rgba(12,12,12,.85) 100%);
}
.card__icon {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: rgba(5,5,5,.72);
  border: 1px solid var(--gold);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 30px;
}
.card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
  color: var(--gold);
}
.card p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.card__tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ===== О клубе ===== */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: center; }
.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  filter: grayscale(.2);
}
.about__media::after {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.about__content .section__title { margin-bottom: 20px; }
.about__content > p { color: var(--muted); margin-bottom: 28px; }

.checks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); font-size: 15px; }
.checks li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ===== Тренеры ===== */
.coaches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.coach {
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .3s;
  text-align: center;
  padding-bottom: 28px;
}
.coach:hover { border-color: var(--line); transform: translateY(-6px); }
.coach__photo {
  height: 320px;
  background: linear-gradient(160deg, var(--black-3), #1c1a16);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.coach__photo span { color: var(--muted); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.coach h3 { font-family: 'Oswald', sans-serif; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.coach__role { display: block; color: var(--gold); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 4px 0 12px; }
.coach p { color: var(--muted); font-size: 14px; padding: 0 24px; }

/* ===== Расписание ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.schedule { width: 100%; border-collapse: collapse; min-width: 560px; }
.schedule th {
  background: rgba(213,160,42,.1);
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 18px 24px;
  text-align: left;
  font-weight: 500;
}
.schedule td { padding: 18px 24px; border-top: 1px solid rgba(255,255,255,.06); font-size: 15px; }
.schedule tbody tr { transition: background .2s; }
.schedule tbody tr:hover { background: rgba(213,160,42,.05); }
.schedule td:first-child { color: var(--text); font-weight: 500; }
.schedule td:not(:first-child) { color: var(--muted); }

/* ===== Цены ===== */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price {
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: .3s;
  position: relative;
}
.price:hover { transform: translateY(-6px); border-color: var(--line); }
.price--featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(213,160,42,.08), var(--black-2)); }
.price__label {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #0a0a0a;
  font-family: 'Oswald', sans-serif;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 100px;
}
.price h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 14px;
}
.price__value {
  font-family: 'Oswald', sans-serif;
  font-size: 44px; font-weight: 700; color: var(--gold);
  line-height: 1; margin-bottom: 24px;
}
.price__value span { font-size: 24px; }
.price ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.price li { color: var(--muted); font-size: 15px; padding-left: 24px; position: relative; }
.price li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); }

/* ===== Форма записи ===== */
.trial { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.trial__content .section__title { margin-bottom: 20px; }
.trial__content > p { color: var(--muted); margin-bottom: 28px; }

.form {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.form__title {
  font-family: 'Oswald', sans-serif;
  font-size: 24px; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 26px; color: var(--gold);
}
.field { display: block; margin-bottom: 18px; }
.field span {
  display: block;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.field input, .field select {
  width: 100%;
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: .2s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(213,160,42,.12);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d5a02a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.field select option { background: var(--black-3); }
.form .btn { margin-top: 8px; }
.form__note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }
.form__status { font-size: 14px; text-align: center; margin-top: 12px; color: var(--gold); min-height: 20px; }

/* ===== Контакты ===== */
.contacts { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contacts__info { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.contact__label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 6px;
}
.contact p { font-size: 16px; }
.contact small { color: var(--muted); font-size: 14px; }
.contact a { transition: color .2s; }
.contact a:hover { color: var(--gold); }

.contacts__map {
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-3);
}
.contacts__map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ===== Рейтинг (звёзды) ===== */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  transition: opacity .2s;
}
.rating:hover { opacity: .85; }
.rating__value {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.rating__stars {
  --rating: 4.7;
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  position: relative;
}
.rating__stars::before {
  content: '★★★★★';
  background: linear-gradient(
    90deg,
    var(--gold) calc(var(--rating) / 5 * 100%),
    rgba(255, 255, 255, .22) calc(var(--rating) / 5 * 100%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.rating__label { font-size: 14px; color: var(--muted); }

.rating--hero {
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(213, 160, 42, .07);
}
.rating--hero .rating__label { color: var(--text); }

/* ===== Подвал ===== */
.footer { background: var(--black-2); border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 60px; height: 60px; object-fit: contain; }
.footer__brand p { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 16px; line-height: 1.3; }
.footer__brand small { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: none; font-family: 'Inter', sans-serif; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer__nav a:hover { color: var(--gold); }
.footer__contacts { text-align: right; }
.footer__phone { font-family: 'Oswald', sans-serif; font-size: 22px; color: var(--gold); letter-spacing: .04em; }
.footer__contacts small { color: var(--muted); font-size: 13px; }
.footer__bottom { padding-top: 22px; text-align: center; color: var(--muted); font-size: 13px; }

/* ===== Плавающая кнопка ===== */
.fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 56px; height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,.35);
  transition: .25s;
}
.fab:hover { transform: scale(1.08); }

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

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .coaches { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about, .trial, .contacts { grid-template-columns: 1fr; gap: 44px; }
  .about__media { max-width: 620px; margin: 0 auto; width: 100%; }
  .about__media::after { display: none; }
  .prices { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__contacts { text-align: center; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--black-2);
    border-left: 1px solid var(--line);
    flex-direction: column;
    gap: 8px;
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform .35s ease;
    margin-left: 0;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 18px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .burger { display: flex; z-index: 101; }
  .header__phone { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 120px 0 64px; min-height: auto; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__scroll { display: none; }
  .cards { grid-template-columns: 1fr; }
  .btn { padding: 14px 24px; }
  .header__actions .btn { display: none; }
  .form { padding: 28px 20px; }
  .logo__text { font-size: 15px; }
  .footer__nav { gap: 14px 18px; }
}
