/* =============================================
   Акробатика & Гімнастика — головні стилі
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ---------- Змінні ---------- */
:root {
  --indigo:       #1A1560;
  --indigo-dark:  #0D0A3B;
  --yellow:       #FFD93D;
  --yellow-light: #FFF3B0;
  --lavender:     #E8E4FF;
  --lavender-mid: #C8BFFF;
  --white:        #FFFFFF;
  --gray-50:      #F8F7FF;
  --gray-200:     #E2E0EF;
  --gray-500:     #6B6888;
  --gray-700:     #3A3858;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  28px;
  --shadow-sm:  0 2px 8px rgba(26,21,96,.08);
  --shadow-md:  0 6px 24px rgba(26,21,96,.14);
  --shadow-lg:  0 16px 48px rgba(26,21,96,.20);

  --font-display: 'Nunito', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ---------- Ресет ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--indigo-dark);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Утиліти ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--indigo);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--indigo-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 560px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: var(--radius-lg);
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--yellow);
  color: var(--indigo-dark);
  box-shadow: 0 4px 18px rgba(255,217,61,.45);
}
.btn-primary:hover { background: #ffd01a; box-shadow: 0 8px 28px rgba(255,217,61,.55); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ---------- Хедер ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,10,59,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo svg { width: 38px; height: 38px; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  color: var(--white);
}
.logo-text span { color: var(--yellow); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: rgba(255,255,255,.78);
  transition: color .15s;
}
.nav a:hover { color: var(--yellow); }
.nav-cta { margin-left: 8px; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--indigo);
  padding: 140px 0 90px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
/* зірки */
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.star {
  position: absolute;
  background: var(--white);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) infinite ease-in-out;
}
@keyframes twinkle {
  0%,100% { opacity: 0; transform: scale(.6); }
  50%      { opacity: var(--op, .7); transform: scale(1); }
}
/* arc gymnast SVG animation */
.hero-arc {
  position: absolute;
  right: -40px;
  bottom: 0;
  width: clamp(320px, 44vw, 600px);
  opacity: .18;
  pointer-events: none;
}
.hero-arc circle { animation: arcFloat 4s ease-in-out infinite alternate; }
@keyframes arcFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-22px); }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,217,61,.15);
  border: 1px solid rgba(255,217,61,.35);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-badge::before { content: '★'; font-size: 12px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--yellow); }
.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,.76);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.58);
  margin-top: 4px;
}
.hero-img-wrap {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 48%;
  overflow: hidden;
  z-index: 1;
}
.hero-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--indigo) 0%, transparent 45%);
}

/* ---------- Переваги ---------- */
.benefits {
  padding: 90px 0;
  background: var(--gray-50);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--lavender);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.benefit-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--indigo-dark);
  margin-bottom: 10px;
}
.benefit-text { font-size: 15px; color: var(--gray-500); line-height: 1.6; }

/* ---------- Програми ---------- */
.programs {
  padding: 90px 0;
  background: var(--white);
}
.programs-header { text-align: center; margin-bottom: 52px; }
.programs-header .section-sub { margin: 0 auto; }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.program-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-img {
  height: 210px;
  background: var(--lavender);
  position: relative;
  overflow: hidden;
}
.program-img img { width: 100%; height: 100%; object-fit: cover; }
.program-age-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--yellow);
  color: var(--indigo-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
}
.program-body {
  padding: 24px;
  background: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.program-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--indigo-dark);
  margin-bottom: 10px;
}
.program-desc { font-size: 15px; color: var(--gray-500); margin-bottom: 16px; flex: 1; }
.program-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.program-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
}
.program-meta-item::before { font-size: 16px; }
.pm-time::before  { content: '🕐'; }
.pm-group::before { content: '👥'; }
.pm-days::before  { content: '📅'; }

/* ---------- Як це працює ---------- */
.how {
  padding: 90px 0;
  background: var(--lavender);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}
.how-steps { display: flex; flex-direction: column; gap: 28px; }
.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.how-step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--indigo);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.how-step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--indigo-dark);
  margin-bottom: 6px;
}
.how-step-text { font-size: 15px; color: var(--gray-500); }
.how-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
}
.how-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Відгуки ---------- */
.reviews {
  padding: 90px 0;
  background: var(--white);
}
.reviews-header { text-align: center; margin-bottom: 52px; }
.reviews-header .section-sub { margin: 0 auto; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-stars { color: var(--yellow); font-size: 18px; letter-spacing: 2px; }
.review-text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--lavender-mid);
  overflow: hidden;
  flex-shrink: 0;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--indigo-dark);
}
.review-meta { font-size: 13px; color: var(--gray-500); }

/* ---------- Тренери ---------- */
.coaches {
  padding: 90px 0;
  background: var(--gray-50);
}
.coaches-header { text-align: center; margin-bottom: 52px; }
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.coach-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.coach-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.coach-photo {
  height: 220px;
  background: var(--lavender);
  overflow: hidden;
}
.coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.coach-body { padding: 20px 16px 24px; }
.coach-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--indigo-dark);
  margin-bottom: 6px;
}
.coach-role { font-size: 14px; color: var(--gray-500); margin-bottom: 12px; }
.coach-tag {
  display: inline-block;
  background: var(--lavender);
  color: var(--indigo);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 2px;
}

/* ---------- Контакти + Форма ---------- */
.contact {
  padding: 90px 0;
  background: var(--indigo);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 40px);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.contact-info-sub { font-size: 16px; color: rgba(255,255,255,.65); margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-item-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,217,61,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.contact-item-label { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.contact-item-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
}
.contact-item-value a { color: var(--yellow); }
/* Форма */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--indigo-dark);
  margin-bottom: 6px;
}
.form-sub { font-size: 15px; color: var(--gray-500); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--indigo-dark);
  margin-bottom: 7px;
}
.form-label .req { color: #e55; margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--indigo-dark);
  background: var(--gray-50);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--lavender-mid);
  box-shadow: 0 0 0 3px rgba(200,191,255,.3);
  background: var(--white);
}
.form-input.error, .form-select.error, .form-textarea.error {
  border-color: #e55;
}
.form-error {
  font-size: 13px;
  color: #e55;
  margin-top: 5px;
  display: none;
}
.form-error.visible { display: block; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}
.form-check input[type=checkbox] { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.form-check-label { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.form-check-label a { color: var(--indigo); text-decoration: underline; }
.form-submit { width: 100%; padding: 15px; font-size: 16px; border-radius: var(--radius-md); }
/* Повідомлення про успіх */
.form-success {
  display: none;
  text-align: center;
  padding: 32px 0;
}
.form-success.visible { display: block; }
.success-icon { font-size: 56px; margin-bottom: 14px; }
.success-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--indigo-dark);
  margin-bottom: 8px;
}
.success-text { font-size: 15px; color: var(--gray-500); }

/* ---------- Футер ---------- */
.site-footer {
  background: var(--indigo-dark);
  padding: 52px 0 28px;
  color: rgba(255,255,255,.55);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {}
.footer-brand .logo-text { font-size: 18px; }
.footer-desc { font-size: 14px; line-height: 1.7; margin-top: 14px; max-width: 280px; }
.footer-col-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  transition: color .15s;
}
.footer-legal a:hover { color: rgba(255,255,255,.8); }

/* ---------- Мобільна адаптація ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0;
    background: var(--indigo-dark);
    padding: 32px 24px;
    gap: 24px;
    z-index: 99;
    height: 100vh;
  }
  .nav.open a { font-size: 20px; }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-img-wrap { display: none; }
  .hero-content { max-width: 100%; }
  .how-grid { grid-template-columns: 1fr; }
  .how-img-wrap { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-stats { gap: 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-card { padding: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
