@font-face {
  font-family: InterVar;
  src: local("Inter Variable"), local("Inter");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1b2740;
  --panel: #223352;
  --text: #eef2f8;
  --muted: #c3cee4;
  --primary: #2d6ae3;
  --primary-2: #8fb0ff;
  --accent: #00d3a7;
  --contrast: #ffd66e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --container: min(1120px, 100vw - 32px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: InterVar, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(45,106,227,.12), transparent 60%),
              radial-gradient(1000px 600px at 0% 20%, rgba(0,211,167,.10), transparent 60%),
              var(--bg);
  line-height: 1.7;
}

.section a { color: var(--text); }
a { color: var(--text); }
a:hover { color: var(--primary-2); }

.container { width: var(--container); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--contrast); color: #0b0b0b; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 10px; z-index: 1000; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 13, 20, .6);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); }
.logo__image { 
  height: 65px; 
  width: auto; 
  max-width: 300px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.logo__image:hover {
  transform: scale(1.05);
}

.nav { display: flex; align-items: center; gap: 16px; }
.nav__toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }
.nav__toggle-line { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 1px; }
.nav__list { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav__link { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 8px; transition: 200ms ease; }
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.06); }

.header-cta { display: flex; gap: 12px; align-items: center; }
.header-phone { color: var(--text); text-decoration: none; opacity: .96; }
.header-phone:hover { color: var(--primary-2); }

/* Hero */
.hero { 
  padding: 72px 0 40px; 
  position: relative;
  overflow: hidden;
}

/* Hero logo above title */
.hero__logo {
  width: min(140px, 38vw);
  height: auto;
  margin: 0 0 16px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}

/* Mobile: push hero content lower to avoid overlap with fixed header */
@media (max-width: 768px) {
  .hero { padding-top: 112px; }
}
@media (max-width: 420px) {
  .hero { padding-top: 128px; }
}

/* Pages without a hero at the top (e.g., info/reviews/contacts):
   add safe space under the fixed header on mobile */
@media (max-width: 980px) {
  main > .section:first-of-type { padding-top: 96px; }
}

/* Desktop: add safe space under fixed header on pages without a hero */
@media (min-width: 981px) {
  main > .section:first-of-type:not(.training-hero) { padding-top: 96px; }
}

.hero__background-video,
.hero__background-video-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  display: none;
  filter: brightness(0.7);
}

/* Делаем темное видео светлее на десктопе */
@media (min-width: 981px) {
  .hero__background-video-dark {
    filter: brightness(0.9);
  }
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
  display: none;
}
.hero__inner { 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero__title { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero__subtitle { margin: 0 0 24px; color: var(--muted); font-size: clamp(16px, 2.3vw, 18px); }
.hero__actions { display: flex; gap: 12px; margin-bottom: 18px; }
.hero__stats { display: flex; gap: 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); }
.hero__stats strong { color: var(--text); }



@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { 0% { transform: translateX(-120px); } 50% { transform: translateX(120px); } 100% { transform: translateX(-120px); } }

/* Sections */
.section { padding: 40px 0; background: var(--bg); position: relative; }
.section--alt { background: var(--panel); border-top: 1px solid rgba(255,255,255,.10); border-bottom: 1px solid rgba(0,0,0,.25); }
.section__title { margin: 0 0 22px; font-size: clamp(24px, 3.4vw, 34px); }

.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { 
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card__icon { font-size: 22px; }
.card__title { margin: 10px 0 8px; }
.card__text { margin: 0; color: var(--muted); }
.card__text a { color: var(--text); text-decoration: underline; }
.card__text a:hover { color: var(--primary-2); }

.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.course { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.course__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; min-height: 48px; }
.course__head h3 { margin: 0; line-height: 1.2; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(45,106,227,.18); color: var(--primary-2); font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.badge--alt { background: rgba(0,211,167,.18); color: var(--accent); }
.badge--combo { background: linear-gradient(135deg, rgba(45,106,227,.18), rgba(0,211,167,.18)); color: var(--primary-2); border: 1px solid rgba(45,106,227,.3); white-space: nowrap; }
.badge--light { background: rgba(255,214,110,.18); color: var(--contrast); border: 1px solid rgba(255,214,110,.3); }
.course__list { margin: 0 0 14px; padding-left: 18px; color: var(--muted); }
.course__actions { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.price { font-weight: 800; color: var(--text); margin: 4px 0 8px; }
.price--muted { color: var(--muted); font-weight: 700; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.review__header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.review__meta {
  flex-grow: 1;
}

.review__name {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--text);
}

.review__rating {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
}

.review__star {
  color: var(--contrast);
  font-size: 16px;
}

.review__category {
  margin: 0;
  font-size: 14px;
  color: var(--primary-2);
}

.review__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.review__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}

.review__date {
  color: var(--muted);
}

.review__source {
  color: var(--primary-2);
}

@media (max-width: 1200px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Review Form */
.review-form {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 50px;
  box-shadow: var(--shadow);
}

.review-form__title {
  font-size: 24px;
  margin: 0 0 24px;
  text-align: center;
}

.review-form__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.review-form__rating {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.review-form__label {
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--text);
}

.rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.rating__input {
  display: none;
}

.rating__label {
  color: rgba(255,255,255,.2);
  font-size: 32px;
  cursor: pointer;
  transition: color .2s ease;
}

.rating__label:hover,
.rating__label:hover ~ .rating__label,
.rating__input:checked ~ .rating__label {
  color: var(--contrast);
}

.review-form__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.review-form__field {
  display: flex;
  flex-direction: column;
}

.review-form__input,
.review-form__textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  transition: all .2s ease;
}

.review-form__input:hover,
.review-form__textarea:hover {
  border-color: rgba(255,255,255,.2);
}

.review-form__input:focus,
.review-form__textarea:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,.06);
  outline: none;
}

.review-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.review-form__submit {
  align-self: flex-start;
  min-width: 200px;
}


@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .review {
    padding: 20px;
  }

  .review-form {
    padding: 24px 20px;
  }

  .review-form__row {
    grid-template-columns: 1fr;
  }

  .review-form__submit {
    width: 100%;
  }
}

/* CTA */
.cta { padding: 48px 0; }
.cta__inner { background: linear-gradient(180deg, rgba(45,106,227,.16), rgba(0,211,167,.12)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-align: center; }
.cta__form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; margin-top: 16px; }
.cta__form input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: var(--text); outline: none; }
.cta__form input::placeholder { color: #c7cee0; opacity: .7; }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid rgba(255,255,255,.10); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }
.footer__grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 16px; align-items: start; }
.footer__nav { display: grid; gap: 8px; }
.footer__nav a { color: var(--muted); text-decoration: none; }
.footer__contacts { display: grid; gap: 8px; }
.footer__phone, .footer__mail, .footer__map { color: var(--text); text-decoration: none; opacity: .9; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.06); margin-top: 18px; padding-top: 12px; color: var(--muted); }

/* Footer logo */
.logo--footer .logo__image { 
  height: 50px; 
  max-width: 250px;
}

/* Buttons */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  padding: 12px 16px; 
  border-radius: 10px; 
  text-decoration: none; 
  font-weight: 700; 
  letter-spacing: .2px; 
  border: 1px solid transparent; 
  cursor: pointer;
  white-space: nowrap; /* default: keep short labels in one line */
  max-width: 100%;
}
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; }
.btn--contrast { background: var(--contrast); color: #0b0b0b; }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.16); }
.btn--dark { background: #111522; color: var(--text); border-color: rgba(255,255,255,.12); }
.btn--link { background: transparent; color: var(--primary-2); border-color: rgba(255,255,255,.16); }

/* Allow wrapping for long link-like buttons used on info page */
.btn--link {
  white-space: normal;
  line-height: 1.35;
  text-align: left;
  justify-content: flex-start;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: block;
}

/* Inline link */
.link { color: var(--text); text-decoration: underline; font-weight: 600; }
.link:hover { color: var(--primary-2); }

/* Panels and grids */
.panel { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); height: 100%; }
.panel h3 { margin: 6px 0 10px; }
.duo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: stretch; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1200px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  /* Hero */
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; height: 360px; }
  
  /* Grids */
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .duo-grid { grid-template-columns: 1fr; }
  
  /* Navigation */
  .nav__toggle { display: block; }
  .nav__list { 
    position: absolute; 
    inset: auto 16px auto 16px; 
    top: 64px; 
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    display: none; 
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav__list.open { display: flex; }
  .nav__link { display: block; padding: 12px 16px; }
  
  /* Header adjustments */
  .header-phone { display: none; }
  .header-inner { gap: 12px; }
  
  /* Forms */
  .cta__form { grid-template-columns: 1fr; gap: 12px; }
  
  /* Buttons */
  .btn { padding: 10px 12px; font-size: 14px; }
  .btn--primary { padding: 10px 12px; }
}

@media (max-width: 768px) {
  /* Hero */
  .hero { padding: 48px 0 32px; }
  .hero__media { height: 280px; }
  .hero__title { font-size: 32px; }
  .hero__subtitle { font-size: 16px; }
  .hero__actions { flex-direction: column; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  
  /* Sections */
  .section { padding: 36px 0; }
  .section__title { font-size: 28px; }
  
  /* Grids */
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }
  
  /* Course cards */
  .course__head { min-height: auto; }
  .course__actions { flex-direction: column; gap: 12px; }
  .course__actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero { padding: 32px 0 24px; }
  .hero__media { height: 220px; }
  .hero__title { font-size: 28px; }
  
  /* Navigation */
  .nav__list { top: 60px; }
  .theme-toggle { display: none; }
  
  /* Typography */
  .logo__image { height: 50px; max-width: 220px; }
  .logo--footer .logo__image { height: 50px; max-width: 220px; }
  
  /* Sections */
  .section { padding: 32px 0; }
  .section__title { font-size: 24px; }
  
  /* Forms */
  .cta__form { gap: 10px; }
  .btn { width: 100%; }
}



/* Logo styles */
.logo__image { 
  filter: brightness(1.2) contrast(1.1);
}


/* Dark theme overrides */
:root[data-theme="dark"] {
  /* Show dark theme video */
  .hero__background-video { display: none !important; }
  .hero__background-video-dark { display: block !important; }
  .hero__overlay { display: block !important; }
  
  /* Dark theme colors */
  --bg: #1b2740;
  --panel: #223352;
  --panel-alt: #1f2f4e;
  --header: rgba(10, 13, 20, .6);
  --footer: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  --text: #eef2f8;
  --muted: #c3cee4;
  --primary: #2d6ae3;
  --primary-2: #8fb0ff;
  --accent: #00d3a7;
  --contrast: #ffd66e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] body {
  background: radial-gradient(1200px 800px at 80% -10%, rgba(45,106,227,.12), transparent 60%),
              radial-gradient(1000px 600px at 0% 20%, rgba(0,211,167,.10), transparent 60%),
              var(--bg);
}

:root[data-theme="dark"] .site-header { position: fixed !important; top: 0; left: 0; right: 0; z-index: 1000 !important; }
/* offset content under header on desktop */
@media (min-width: 981px) {
  main { padding-top: 7px; }
}
:root[data-theme="dark"] .nav__link,
:root[data-theme="dark"] .nav__link:hover,
:root[data-theme="dark"] .nav__link:focus,
:root[data-theme="dark"] .nav__link:active {
  background: none !important;
}
:root[data-theme="dark"] .nav__list {
  background: transparent !important;
  border-color: transparent !important;
}
:root[data-theme="dark"] .card, :root[data-theme="dark"] .course, :root[data-theme="dark"] .panel { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border-color: rgba(255,255,255,.10); box-shadow: var(--shadow); }
:root[data-theme="dark"] .section--alt { background: var(--panel-alt); border-top-color: rgba(255,255,255,.10); border-bottom-color: rgba(0,0,0,.25); }
:root[data-theme="dark"] .site-footer { border-top: 1px solid rgba(255,255,255,.10); background: var(--footer); }
:root[data-theme="dark"] .nav__list { background: rgba(15,20,32,.96); border-color: rgba(255,255,255,.06); }


/* Enhancements: stats, gallery, faq */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat__num {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1;
}
.stat__label { color: var(--muted); margin-top: 6px; }

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.gallery__item {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.faq { display: grid; gap: 10px; }
.faq__item { background: var(--panel); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.faq__btn { width: 100%; text-align: left; padding: 14px 16px; background: none; border: 0; color: var(--text); font-weight: 700; cursor: pointer; }
.faq__content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq__content-inner { overflow: hidden; padding: 0 16px; color: var(--muted); }
.faq__item.open .faq__content { grid-template-rows: 1fr; padding-bottom: 12px; }

@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-columns: 88%; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: 92%; }
}

/* Training hero */
.training-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.training-hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.training-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.training-hero .section__title {
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  padding: 0;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  display: inline-block;
}

.training-hero .section__title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.training-hero::before,
.training-hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.training-hero::before {
  inset: -20% -10% auto -10%;
  height: 140%;
  background: radial-gradient(600px 300px at 15% 20%, rgba(45,106,227,.18), transparent 65%),
              radial-gradient(500px 260px at 85% 10%, rgba(0,211,167,.16), transparent 65%);
  filter: blur(10px);
}
.training-hero::after {
  bottom: -40px; left: 50%; transform: translateX(-50%);
  width: min(1024px, 90%);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}
.training-hero .container {
  max-width: 820px;
  text-align: center;
}
.training-hero .section__title { margin-bottom: 12px; }
.training-hero p { color: var(--muted); }

.training-hero { background: transparent !important; }
.training-hero__video { z-index: 0; }
.training-hero .container { z-index: 2; }

/* lighten training hero video */
.training-hero__video { filter: brightness(0.65); }


/* Training video filters: desktop clear, mobile dark */
.training-hero__video { filter: brightness(0.65); }
@media (max-width: 768px) {
  .training-hero {
    min-height: 52svh !important;
  }
  .training-hero__video { filter: brightness(0.6); }
  .training-hero .section__title {
    font-size: 28px;
    letter-spacing: 1px;
  }
  .training-hero .section__title::after {
    bottom: -12px;
    width: 60px;
    height: 3px;
  }
}

@media (min-width: 769px) {
  .training-hero__video { filter: brightness(0.55); }
}

/* Lock scroll when mobile menu open */
body.no-scroll { overflow: hidden; }

@media (max-width: 980px) {
  /* Mobile burger dropdown */
  .nav__list {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    overflow: hidden;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__list.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__link { display: block; padding: 14px 16px; font-size: 16px; border-radius: 10px; }
  .nav__link:hover { background: rgba(0,0,0,.06); }
  :root[data-theme="dark"] .nav__list { background: rgba(15,20,32,1) !important; }
  :root[data-theme="dark"] .nav .nav__link:hover { background: rgba(255,255,255,.08) !important; }
}

@media (max-width: 980px) {
}

/* Enroll Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 2000; }
.modal.open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.modal.open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.98);
  width: min(520px, 92vw);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  padding: 22px;
  opacity: 0; transition: transform .25s ease, opacity .25s ease;
}
.modal.open .modal__dialog { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.modal__title { margin: 0; font-size: 20px; }
.modal__close { background: transparent; border: 0; color: var(--text); font-size: 20px; cursor: pointer; border-radius: 8px; padding: 6px; }
.modal__body { margin-top: 8px; }
.modal__form { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
.modal__form .btn { width: 100%; }

/* Modal form inputs styling */
.modal__form input[type="text"],
.modal__form input[type="tel"],
.modal__form input[type="email"] {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  outline: none;
}
.modal__form input::placeholder { color: #c7cee0; opacity: .85; }
.modal__form input:hover { border-color: rgba(255,255,255,.24); }
.modal__form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,106,227,.25); background: rgba(255,255,255,.08); }


/* Keep modal centered on mobile */
@media (max-width: 768px) {
  .modal__dialog {
    left: 50% !important; right: auto !important; top: 50% !important; bottom: auto !important;
    width: min(480px, 94vw) !important; transform: translate(-50%, -50%) !important;
    border-bottom-left-radius: 18px; border-bottom-right-radius: 18px;
  }
  .modal.open .modal__dialog { transform: translate(-50%, -50%) !important; }
}

/* Teachers grid */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.teacher { background: var(--panel); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.teacher__photo { width: 140px; height: 140px; border-radius: 12px; object-fit: cover; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
.teacher__name { margin: 0 0 6px; font-size: 18px; }
.teacher__role { margin: 0; color: var(--muted); }

@media (max-width: 768px) { .team-grid { grid-template-columns: 1fr; } .teacher { grid-template-columns: 96px 1fr; } .teacher__photo { width:96px; height:96px; } }

/* Document list */
.doc { background: var(--panel); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.doc h3 { margin: 0 0 10px; font-size: 18px; }
.doc ul { margin: 0; padding-left: 18px; color: var(--muted); }

.doc__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.doc__item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.doc__item h3 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--primary-2);
  line-height: 1.3;
}

.doc__text {
  margin: 8px 0;
  color: var(--text);
  font-size: 15px;
}

@media (max-width: 768px) {
  .doc__grid {
    grid-template-columns: 1fr;
  }
}

.review-form__input[type="select"],
.review-form__input,
.review-form__textarea { appearance: none; }

/* Custom select */
.review-form__input#review-category {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%232563eb"><path d="M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.24 4.38a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 44px;
}

/* Placeholder option style */
.review-form__input#review-category option[value=""] { color: #8fa1c7; }

/* Dark theme select dropdown tweak */
:root[data-theme="dark"] .review-form__input#review-category {
  background-color: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.22);
}
:root[data-theme="dark"] .review-form__input#review-category:focus {
  box-shadow: 0 0 0 3px rgba(45,106,227,.35);
}

:root[data-theme="dark"] select.review-form__input option { color: #0d1321; background: #ffffff; }

/* Hero size adjustments (tighter) */
.hero { padding: 72px 0 48px; min-height: 72svh !important; display: flex; align-items: center; }
@media (max-width: 980px) { .hero { min-height: 60svh !important; padding: 64px 0 40px; } }
@media (max-width: 600px) { .hero { min-height: 56svh !important; padding: 56px 0 36px; } }

/* Training hero height (tighter) */
.training-hero { min-height: 56svh !important; }
@media (max-width: 980px) { .training-hero { min-height: 52svh !important; } }
@media (max-width: 768px) { .training-hero { min-height: 48svh !important; } }

html { scroll-behavior: smooth; }
.section[id] { scroll-margin-top: 84px; }
@media (max-width: 768px) { .section[id] { scroll-margin-top: 68px; } }

#signup { scroll-margin-top: 84px; }
@media (max-width: 768px) { #signup { scroll-margin-top: 68px; } }

/* Steps */
.steps-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
  margin-top: 24px;
}
.step { 
  background: var(--panel); 
  border: 1px solid rgba(255,255,255,.10); 
  border-radius: var(--radius); 
  padding: 24px 20px; 
  box-shadow: var(--shadow); 
  text-align: center; 
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 15px 35px rgba(0,0,0,.2); 
}
.step__number { 
  position: absolute; 
  top: 12px; 
  left: 12px; 
  width: 24px; 
  height: 24px; 
  background: rgba(255,255,255,.1); 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 12px; 
  font-weight: 700; 
  color: var(--muted);
}
.step__icon { 
  font-size: 32px; 
  margin-bottom: 12px; 
  display: block;
}
.step__title { 
  margin: 0; 
  font-size: 16px; 
  font-weight: 600; 
  color: var(--text);
  line-height: 1.3;
}

/* Выделенный блок - зеленый */
.step--highlight {
  background: linear-gradient(135deg, #8bc34a, #c8e6c9);
  border-color: #4caf50;
  color: #1a1a1a;
}
.step--highlight .step__number {
  background: rgba(0,0,0,.1);
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
}
.step--highlight .step__title {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 17px;
}

/* Адаптивность для этапов */
@media (max-width: 1200px) { 
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } 
}
@media (max-width: 980px) { 
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } 
  .step { padding: 20px 16px; }
  .step__icon { font-size: 28px; }
  .step__title { font-size: 15px; }
}
@media (max-width: 600px) { 
  .steps-grid { grid-template-columns: 1fr; gap: 16px; } 
  .step { padding: 18px 16px; }
  .step__icon { font-size: 24px; }
  .step__title { font-size: 14px; }
}

/* Fleet */
.fleet-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
  align-items: start;
}
.fleet { 
  background: var(--panel); 
  border: 1px solid rgba(255,255,255,.10); 
  border-radius: var(--radius); 
  padding: 20px; 
  box-shadow: var(--shadow); 
  text-align: center; 
  display: flex;
  flex-direction: column;
}
.fleet__img { 
  width: 100%; 
  height: 250px; 
  object-fit: contain; 
  border-radius: 12px; 
  box-shadow: 0 8px 20px rgba(0,0,0,.15); 
  background: rgba(255,255,255,.05);
  flex-shrink: 0;
}
.fleet__title { 
  margin: 16px 0 0; 
  font-size: 18px; 
  font-weight: 600; 
  color: var(--text);
  flex-grow: 1;
}

/* Адаптивная сетка для разных размеров экрана */
@media (max-width: 1200px) { 
  .fleet-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } 
}
@media (max-width: 980px) { 
  .fleet-grid { grid-template-columns: 1fr 1fr; gap: 16px; } 
  .fleet__img { height: 220px; } 
}
@media (max-width: 600px) { 
  .fleet-grid { grid-template-columns: 1fr; gap: 16px; } 
  .fleet { padding: 16px; } 
  .fleet__img { height: 200px; } 
  .fleet__title { font-size: 16px; } 
}


/* Mobile spacing: push text lower only on homepage hero to avoid header overlap */
@media (max-width: 980px) {
  .hero__inner { padding-top: 36px; }
}

/* Info page navigation */
.info-nav {
  margin-top: 20px;
}

.info-nav__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: stretch;
}

.info-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(45,106,227,.08), rgba(0,211,167,.08));
  border: 1px solid rgba(45,106,227,.15);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.info-nav__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  transition: left 0.5s ease;
}

.info-nav__link:hover {
  background: linear-gradient(135deg, rgba(45,106,227,.15), rgba(0,211,167,.15));
  border-color: rgba(45,106,227,.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45,106,227,.15);
}

.info-nav__link:hover::before {
  left: 100%;
}

.info-nav__link:active {
  transform: translateY(0);
}

/* Responsive info navigation */
@media (max-width: 1024px) {
  .info-nav__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .info-nav__list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .info-nav__link {
    min-height: 70px;
    padding: 14px 16px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .hero__inner { padding-top: 64px; }
}

/* Hero left alignment (desktop only) */
@media (min-width: 981px) {
  .hero__inner {
    margin-right: auto;
    margin-left: 0;
    align-items: flex-start;
    text-align: left;
    padding-left: 5%;
    max-width: 600px;
  }
  .hero__title {
    font-size: 48px;
    margin-bottom: 16px;
  }
  .hero__actions {
    justify-content: flex-start;
    margin-top: 24px;
  }
  .hero__stats {
    justify-content: flex-start;
    margin-top: 32px;
  }
}

