/* ============ RESET & TOKENS ============ */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --red: #EE2626;
  --red-hover: #FB5353;
  --blue: #3C78D2;
  --black: #000000;
  --dark: #242424;
  --gray-pill: rgba(168,168,168,0.6);
  --gray-muted: #A1A1A1;
  --lang-pill: #3C3C3C;
  --radius-img: 20px;
  --radius-pill: 30px;
  --container: 1200px;
  --header-h: 80px;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--black);
  font-size: 16px;
  line-height: 1.56;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; }
p { margin: 0 0 14px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; position: relative; }
.section__title { font-size: 40px; text-align: center; margin-bottom: 18px; }
.section__intro { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.txt-red { color: var(--red); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-family: inherit;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 15px;
  padding: 0 28px; height: 50px; transition: background .25s, color .25s, transform .2s;
  white-space: nowrap;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--white { background: #fff; color: #000; font-weight: 600; }
.btn--white:hover { transform: translateY(-2px); }
.btn--outline { background: transparent; color: #fff; border: 1px solid #fff; font-weight: 600; }
.btn--outline:hover { background: rgba(255,255,255,.12); }

.link-btn {
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
  color: var(--red); font-weight: 600; font-size: 16px; text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ HEADER ============ */
.header {
  position: fixed; top: 20px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; padding: 0 20px; pointer-events: none;
}
.header__bar {
  pointer-events: auto;
  width: 100%; max-width: var(--container); height: var(--header-h);
  background: var(--gray-pill); border-radius: 50px;
  display: flex; align-items: center; gap: 20px;
  padding: 0 14px 0 24px; backdrop-filter: blur(4px);
}
.header__brand { display: flex; align-items: center; gap: 10px; }
.header__logo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.header__wordmark { color: #fff; font-weight: 700; font-size: 20px; }
.badge-kids {
  background: var(--red); color: #fff; font-weight: 700; font-size: 12px;
  padding: 4px 9px; border-radius: var(--radius-pill); line-height: 1; letter-spacing: .5px;
}
.header__nav { display: flex; gap: 28px; margin-left: auto; }
.header__nav a { color: #fff; font-size: 16px; font-weight: 400; transition: opacity .2s; }
.header__nav a:hover { opacity: .75; }
.header__right { display: flex; align-items: center; gap: 14px; }

.lang { position: relative; }
.lang__toggle {
  background: var(--lang-pill); color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500;
  height: 40px; padding: 0 16px; border-radius: var(--radius-pill);
}
.lang__menu {
  position: absolute; top: 48px; left: 0; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__item {
  background: var(--lang-pill); color: #fff; font-size: 14px; font-weight: 500;
  height: 40px; padding: 0 16px; border-radius: var(--radius-pill);
  display: flex; align-items: center; white-space: nowrap;
}
.header__cta { height: 50px; font-size: 15px; }

.burger { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 24px; padding: 0; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; width: 100%; background: #fff; border-radius: 2px; }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,20,20,.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  opacity: 0; visibility: hidden; transition: .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__close { position: absolute; top: 24px; right: 26px; background: none; border: none; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mobile-menu__nav a { color: #fff; font-size: 22px; font-weight: 600; }
.mobile-menu__cta { margin-top: 10px; }
.mobile-menu__social { display: flex; gap: 18px; margin-top: 10px; }
.mobile-menu__social a { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #242424; display: flex; align-items: center; justify-content: center; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 800px; display: flex; align-items: center;
  background: url('assets/img/hero-bg.webp') center/cover no-repeat;
  overflow: hidden;
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,31,105,.5), rgba(0,0,0,.5)); }
.hero__inner { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 60px; }
.hero__title { color: #fff; font-size: 55px; line-height: 1; margin-bottom: 22px; }
.hero__subtitle { color: #fff; font-size: 18px; line-height: 1.55; max-width: 490px; margin-bottom: 30px; }
.hero__buttons { display: flex; gap: 16px; margin-bottom: 60px; flex-wrap: wrap; }
.hero__buttons .btn { height: 55px; }
.hero__chips { display: flex; gap: 18px; flex-wrap: wrap; }
.hero__chip {
  display: flex; align-items: center; gap: 12px; color: #fff;
  background: rgba(0,0,0,.35); border-radius: 14px; padding: 14px 20px; backdrop-filter: blur(3px);
  font-size: 14px; line-height: 1.4;
}
.hero__chip img { width: 26px; height: 26px; object-fit: contain; }
.hero__chip strong { font-weight: 700; }

/* ============ ABOUT ============ */
.about__inner { display: grid; grid-template-columns: 1fr 500px; gap: 60px; align-items: center; position: relative; }
.about__text h2 { font-size: 40px; margin-bottom: 22px; }
.about__list { list-style: none; padding: 0; }
.about__list li { margin-bottom: 10px; }
.about__media { position: relative; }
.about__media > img:first-child { width: 500px; max-width: 100%; height: 481px; object-fit: cover; border-radius: var(--radius-img); }

.deco-ball { position: absolute; width: 90px; height: 90px; pointer-events: none; z-index: 5; }
.deco-ball--a { top: -30px; left: -20px; width: 70px; height: 70px; filter: blur(1px); opacity: .9; }
.deco-ball--b { bottom: -35px; left: -45px; width: 95px; height: 95px; }
.deco-ball--c { bottom: -30px; right: -30px; width: 80px; height: 80px; filter: blur(1px); }

/* ============ AGE GROUPS ============ */
.groups .container { position: relative; }
.groups__cone { position: absolute; top: -30px; right: 0; width: 175px; height: auto; z-index: 4; }
.groups__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-img); overflow: hidden;
  display: block; transition: transform .3s;
}
.card:hover { transform: translateY(-4px); }
.card > img { width: 100%; height: 100%; object-fit: cover; }
.card__overlay {
  position: absolute; inset: 0; padding: 18px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%);
}
.card__overlay h3 { font-size: 20px; }
.card__overlay p { font-size: 13.5px; font-weight: 400; line-height: 1.35; margin: 0; }
.card__btn {
  align-self: flex-start; background: #fff; color: #000; font-size: 14px; font-weight: 600;
  padding: 6px 16px; border-radius: var(--radius-pill); margin-top: 4px;
}

/* ============ DEVELOPMENT ============ */
.develop__inner { display: grid; grid-template-columns: 1fr 460px; gap: 40px; align-items: center; }
.develop__text h2 { font-size: 40px; margin-bottom: 22px; }
.develop__list { padding-left: 22px; }
.develop__media img { width: 100%; height: auto; object-fit: contain; }

/* ============ TRAININGS ============ */
.trainings__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.trainings__text h2 { font-size: 40px; margin-bottom: 22px; }
.trainings__list { list-style: none; padding: 0; }
.trainings__list li { margin-bottom: 14px; }
.trainings__halls { position: relative; display: flex; flex-direction: column; gap: 17px; }
.hall {
  position: relative; height: 130px; border-radius: var(--radius-img); overflow: hidden; background: #000;
}
.hall img { width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.hall__label {
  position: absolute; inset: 0; display: flex; align-items: center; padding-left: 30px;
  color: #fff; font-size: 20px; font-weight: 700;
}

/* ============ CONTACT ============ */
.contact__inner { display: grid; grid-template-columns: 560px 1fr; gap: 50px; align-items: start; }
.contact__map { border-radius: var(--radius-img); overflow: hidden; }
.contact__map iframe { width: 100%; height: 620px; border: 0; display: block; }
.contact__info h2 { font-size: 40px; margin-bottom: 22px; }
.contact__q { margin-top: 24px; }

.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%; height: 45px; border: 1px solid #000; border-radius: 10px;
  padding: 0 16px; font-family: inherit; font-size: 15px; background: #fff; color: #000;
}
.contact-form textarea { height: auto; min-height: 90px; padding: 12px 16px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #8a8a8a; }
.contact-form__submit { width: 100%; height: 50px; border-radius: 50px; font-size: 14px; font-weight: 600; margin-top: 4px; }
.contact-form__submit:hover { background: var(--blue); }

/* ============ PARTNERS ============ */
.partners__row { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.partners__row img { max-height: 110px; width: auto; object-fit: contain; }
.partners__row a { display: flex; align-items: center; }

/* ============ FOOTER ============ */
.footer { background: var(--dark); color: #fff; padding: 70px 0 80px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.footer__logo { width: 190px; max-width: 100%; margin-bottom: 20px; }
.footer__social { display: flex; gap: 12px; margin-bottom: 18px; }
.footer__social a { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #242424; display: flex; align-items: center; justify-content: center; }
.footer__copy { font-size: 12px; color: var(--gray-muted); margin: 0; }
.footer__col h4 { font-size: 16px; font-weight: 600; color: var(--gray-muted); margin-bottom: 18px; }
.footer__col a, .footer__linkbtn {
  display: block; color: #fff; font-size: 14px; font-weight: 300; margin-bottom: 12px;
  line-height: 1.5; background: none; border: none; padding: 0; text-align: left; cursor: pointer; font-family: inherit;
}
.footer__col a:hover, .footer__linkbtn:hover { color: var(--gray-muted); }

/* ============ MODALS ============ */
.modal {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: .25s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal__card {
  position: relative; z-index: 2; background: #fff; border-radius: 16px;
  transform: scale(.92); transition: transform .3s; max-height: 92vh;
}
.modal.open .modal__card { transform: scale(1); }
.modal__close {
  position: absolute; top: 14px; right: 16px; z-index: 5; background: none; border: none;
  font-size: 32px; line-height: 1; cursor: pointer; color: #fff;
}
.modal__card--rules .modal__close { color: #000; }

/* form popup */
.modal__card--form { width: 860px; max-width: 100%; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.popup-form__left { padding: 50px 46px; }
.popup-form__title { font-size: 28px; line-height: 1.15; margin-bottom: 12px; }
.popup-form__sub { font-size: 15px; font-weight: 400; margin-bottom: 22px; color: #333; }
.popup-form__right { position: relative; background: #ddd; }
.popup-form__right > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.popup-form__ball { position: absolute; bottom: -30px; right: -25px; width: 90px; height: 90px; z-index: 3; }

/* rules popup */
.modal__card--rules { width: 580px; max-width: 100%; overflow-y: auto; }
.rules { padding: 46px 44px; }
.rules__title { text-align: center; font-size: 24px; line-height: 1.25; margin-bottom: 26px; }
.rules h4 { font-size: 17px; margin: 24px 0 10px; }
.rules p { margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
.rules ul { margin: 4px 0 10px; }
.rules li { font-size: 15px; }

/* ============ SCROLL ANIMATIONS ============ */
.reveal { opacity: 0; transition: opacity .8s ease, transform .8s ease; will-change: opacity, transform; }
.reveal[data-anim="fadeinup"]    { transform: translateY(60px); }
.reveal[data-anim="fadeindown"]  { transform: translateY(-40px); }
.reveal[data-anim="fadeinleft"]  { transform: translateX(-60px); }
.reveal[data-anim="fadeinright"] { transform: translateX(60px); }
.reveal[data-anim="zoomin"]      { transform: scale(.85); }
.reveal[data-anim="fadein"]      { transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .about__inner { grid-template-columns: 1fr 400px; gap: 40px; }
  .develop__inner { grid-template-columns: 1fr 380px; }
  .contact__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .groups__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .header { top: 12px; }
  .header__bar { height: 64px; padding: 0 14px 0 16px; gap: 12px; }
  .header__logo { width: 46px; height: 46px; }
  .header__wordmark { font-size: 17px; }
  .header__nav, .header__cta, .lang { display: none; }
  .burger { display: flex; margin-left: auto; }
  .section { padding: 56px 0; }
  .section__title { font-size: 30px; }
  .hero { min-height: 720px; }
  .hero__inner { padding-top: 110px; }
  .hero__title { font-size: 30px; }
  .hero__subtitle { font-size: 16px; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  .hero__chip { width: 100%; }
  .about__inner, .develop__inner, .trainings__inner, .contact__inner { grid-template-columns: 1fr; gap: 30px; }
  .about__text h2, .develop__text h2, .trainings__text h2, .contact__info h2 { font-size: 30px; }
  .about__media { order: 2; }
  .about__media > img:first-child { width: 100%; height: auto; }
  .develop__media { max-width: 320px; margin: 0 auto; }
  .groups__cone { width: 110px; top: -10px; }
  .contact__map iframe { height: 340px; }
  .modal__card--form { grid-template-columns: 1fr; }
  .popup-form__right { display: none; }
  .popup-form__left { padding: 40px 26px; }
  .footer { padding: 50px 0 60px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .partners__row { justify-content: center; gap: 30px; }
  .partners__row img { max-height: 80px; }
}
@media (max-width: 480px) {
  .groups__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
