:root {
  --blue-1: #2340c2;         /* перший екран */
  --blue-2: #1666f1;         /* решта сторінки */
  --glow: #4f6ff0;
  --dark: #191b21;
  --card: #1b1c23;
  --gold: #d6be8b;
  --gold-text: #e3c98f;
  --text: #fff;
  --text-dim: #aebfff;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blue-2); color: var(--text); font: 400 16px/1.5 var(--font); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
b { font-weight: 600; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.h2 {
  margin: 0 0 40px; font: 300 clamp(30px, 4vw, 46px)/1.15 var(--font-head);
  text-transform: uppercase; letter-spacing: .01em; text-wrap: balance;
}
.dim { color: var(--text-dim); }

/* ---------- Кнопки (як в оригіналі: великий напис + дрібний підпис) ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 250px; min-height: 58px; padding: 12px 26px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px;
  text-align: center; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn span { font-size: 14px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.btn small { font-size: 10px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark span { color: var(--gold-text); }
.btn--gold { background: var(--gold); color: #17181d; border-color: rgba(0,0,0,.08); }
.btn--block { width: 100%; }
button.btn--block, .lead-thanks .btn { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- HERO ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 60fr) minmax(300px, 40fr); align-items: start;
  background: radial-gradient(ellipse 55% 60% at 88% 0%, var(--glow) 0%, rgba(79,111,240,0) 70%), var(--blue-1);
  padding: 36px 0 70px;
}
.hero__panel {
  position: relative; container-type: inline-size; max-width: 1000px; aspect-ratio: 1300 / 1050;
  background: url(/assets/img/hero-panel-2.png) left top / 100% 100% no-repeat;
}
/* Назва клубу поруч зі значком (значок вшитий у фото, текст — HTML) */
.hero__brand { position: absolute; left: 27.5%; top: 13.9%; transform: translateY(-50%); margin: 0; line-height: 1.25; color: #fff; }
.hero__brand b { display: block; font-size: max(13px, 1.62cqw); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.hero__brand span { display: block; margin-top: .2em; font-size: max(10.5px, 1.02cqw); color: #c9cbd2; }
.hero__title {
  position: absolute; left: 22.2%; top: 23%; margin: 0;
  font: 300 7.6cqw/1.12 var(--font-head); text-transform: uppercase; letter-spacing: .005em;
  background: linear-gradient(90deg, #fff 0%, #fff 55%, #a9abb2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { position: absolute; left: 22.2%; top: 60.5%; width: 50%; margin: 0; font-size: max(12.5px, 1.62cqw); line-height: 1.8; color: #b8bac2; text-wrap: pretty; }
.hero__lead b { color: #fff; }

.hero__side { display: flex; flex-direction: column; align-items: center; padding: 22px 20px 0; text-align: center; }
.hero__offer { max-width: 360px; margin: 0 0 18px; font-size: 19px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.hero__form {
  width: 100%; max-width: 400px; padding: 26px 26px 20px; border-radius: 16px; background: var(--card); text-align: left;
  box-shadow: 0 24px 50px rgba(5,10,60,.35);
}
.hero__form .lead-form__subtitle { margin-bottom: 18px; }
.hero__mobile { display: none; }

/* Блок довіри в панелі */
.hero__trust { position: absolute; left: 22.2%; top: 76%; width: 60%; display: flex; flex-direction: column; gap: 1.4cqw; }
.hero__trust img { width: 64%; }
.hero__trust p { margin: 0; font-size: max(12px, 1.5cqw); line-height: 1.55; color: #b8bac2; }
.hero__trust b { color: #fff; }
.hero__stars { color: #f5c542; font-size: max(14px, 1.9cqw); letter-spacing: .15em; }

/* ---------- Форма ---------- */
.lead-box { color: #fff; }
.lead-form__title { margin: 0 0 12px; font-size: 16px; line-height: 1.45; text-align: center; }
.lead-form__subtitle { margin: 0 0 24px; font-size: 15px; line-height: 1.45; color: #cfd0d6; text-align: center; }
.field { display: block; margin: 0 0 14px; }
.field span { display: block; margin: 0 0 6px; font-size: 13px; color: #b9bbc3; }
.field input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid #3a3c46; border-radius: 8px;
  background: #2a2c35; color: #fff; font: 400 16px var(--font);
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,190,139,.25); }
.field input[aria-invalid="true"] { border-color: #ff6b6b; }
.lead-form__error { margin: 0 0 12px; color: #ff8a8a; font-size: 14px; }
.lead-form__privacy { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: #8f919a; text-align: center; }
.lead-form button[disabled] { opacity: .7; cursor: wait; }
.lead-thanks { text-align: center; }
.lead-thanks .btn { margin-top: 16px; min-width: 160px; }

/* ---------- Заклик ---------- */
.cta { padding: 90px 0 80px; }
.cta__inner { display: grid; grid-template-columns: 1fr; gap: 30px; }
.cta .h2 { margin-bottom: 18px; }
.cta__text { margin: 0; font-size: 16px; color: #e3e8ff; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Програма ---------- */
.program { padding: 40px 0 90px; }
.tabs { display: flex; gap: 8px; justify-content: center; margin: 0 0 30px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn {
  flex: 0 0 auto; padding: 10px 18px; border: 0; border-bottom: 2px solid rgba(255,255,255,.18); border-radius: 22px 22px 0 0;
  background: none; color: rgba(255,255,255,.72); font-size: 15px; transition: color .15s, background .15s;
}
.tabs__btn:hover { color: #fff; }
.tabs__btn[aria-selected="true"] { background: #fff; color: #1b1c23; border-radius: 22px; border-bottom-color: transparent; }
.tabs__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.week { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; align-items: start; }
.week[hidden] { display: none; }
.week__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.week__title { margin: 0 0 16px; font-size: 21px; font-weight: 700; line-height: 1.3; text-transform: uppercase; color: #dfe5ff; }
.week__body p { margin: 0; font-size: 17px; line-height: 1.65; color: #c5d1ff; }

/* ---------- Фінал ---------- */
.final { padding: 20px 0 90px; }
.final__inner { display: grid; grid-template-columns: 1fr; gap: 30px; }
.final__text { margin: 0; max-width: 560px; font-size: 15px; font-weight: 500; line-height: 1.75; }

/* ---------- Футер ---------- */
.footer { padding: 40px 0 30px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: start; }
.footer__brand b { display: block; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.footer__brand span { color: var(--text-dim); font-size: 13px; }
.footer__hours { margin: 0; justify-self: center; color: var(--text-dim); }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer__contacts a { text-decoration: none; }
.footer__contacts a:hover { text-decoration: underline; }
.footer__bottom { margin-top: 30px; }
.footer__disclaimer { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: #dfe6ff; }
.footer__copy { margin: 0; font-size: 12px; color: var(--text-dim); }

/* ---------- Модальне вікно ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5,10,40,.7); }
.modal__box {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 38px 30px 28px; border-radius: 16px; background: var(--card); box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
.modal__close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 30px; line-height: 1; color: #8f919a; }
.modal__close:hover { color: #fff; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 58fr) minmax(280px, 42fr); }
  .cta__inner, .final__inner { grid-template-columns: 1fr; }
  .cta__buttons { flex-direction: row; flex-wrap: wrap; }
  .week { grid-template-columns: 1fr; }
  .week__img { max-width: 620px; }
}

@media (max-width: 760px) {
  /* Мобільний перший екран: картинка + заголовок, під нею пропозиція і відкрита форма */
  .hero { display: block; padding: 0 0 40px; }
  .hero__panel { display: none; }
  .hero__mobile {
    display: block; position: relative; container-type: inline-size; aspect-ratio: 800 / 1031;
    background: url(/assets/img/hero-mobile-2.png) center top / 100% 100% no-repeat;
  }
  .hero__title-m {
    position: absolute; left: 6%; right: 6%; top: 45.2%; margin: 0; text-align: center;
    font: 200 11cqw/1.02 var(--font-head); text-transform: uppercase;
    background: linear-gradient(90deg, #fff 0%, #fff 55%, #b5b7be 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero__brand-m { position: absolute; left: 0; right: 0; top: 7.5%; margin: 0; text-align: center; line-height: 1.25; color: #fff; }
  .hero__brand-m b { display: block; font-size: max(11px, 2.05cqw); font-weight: 700; text-transform: uppercase; }
  .hero__brand-m span { display: block; margin-top: .1em; font-size: max(9.5px, 1.55cqw); color: #c9cbd2; }
  .hero__lead-m { position: absolute; left: 8%; right: 8%; top: 84%; margin: 0; text-align: center; font-size: 3.35cqw; line-height: 1.45; color: #c0c2c9; }
  .hero__lead-m b { color: #fff; font-weight: 500; }
  .hero__side { padding: 26px 16px 0; }
  .hero__offer { margin: 0 0 22px; font-size: 18px; }
  .hero__form { max-width: none; padding: 26px 20px 22px; }

  .container { padding: 0 16px; }
  .h2 { margin-bottom: 26px; }
  .btn { min-width: 0; width: 100%; }
  .cta { padding: 50px 0; text-align: center; }
  .cta__buttons { flex-direction: column; }
  .program { padding: 20px 0 60px; }
  .tabs { justify-content: flex-start; margin: 0 -16px 24px; padding: 0 16px; }
  .tabs__btn { padding: 9px 14px; font-size: 14px; }
  .week__title { font-size: 18px; }
  .week__body p { font-size: 16px; }
  .final { padding: 10px 0 60px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__hours { justify-self: center; }
  .footer__contacts { align-items: center; }
  .footer__bottom { text-align: center; }
}
