/* «Небо под защитой» — фирменная система ОДВС, тёмная тема.
   Цвета — только токены ниже. Сначала мобильная версия. */

:root {
  --surface-base: #1c1c1c;
  --surface-raised: #242424;
  --surface-sunken: #151515;
  --overlay-photo: rgba(0, 0, 0, 0.62);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.55);
  --accent-primary: #ffda47;
  --accent-hover: #eec21b;
  --accent-ink: #1c1c1c;
  --border-hairline: rgba(255, 255, 255, 0.12);
  --border-control: rgba(255, 255, 255, 0.32);
  --success-fg: #6fae7e;
  --success-bg: #1e3527;
  --error: #d9705f;
  --info-fg: #ffda47;
  --info-bg: #33301f;

  --font: Gilroy, "Golos Text", system-ui, sans-serif;
  --gutter: 16px;
  --section-gap: 56px;
  --sticky-h: 48px;
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root { --gutter: 24px; --section-gap: 96px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
  overflow-x: hidden;
  /* место под липкую кнопку на телефоне */
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 720px) {
  body { padding-bottom: 0; }
}

h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 700; }

a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-control); }
a:hover { text-decoration-color: var(--text-primary); }

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- Сетка ---------- */
.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow-text { max-width: 720px; }

/* Заголовок слева, текст справа (колонка текста ≤ 720px) */
.split__body { max-width: 720px; }
@media (min-width: 1024px) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 720px; column-gap: 48px; align-items: start; }
  .split__head { position: sticky; top: 32px; }
  .split__head .h2 { margin-bottom: 16px; }
}

.section { padding-top: var(--section-gap); }
.section--tight { padding-top: calc(var(--section-gap) / 2); }
main > .section:last-child { padding-bottom: var(--section-gap); }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid { gap: 24px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Типографика ---------- */
.h1 { font-size: 34px; line-height: 38px; font-weight: 800; letter-spacing: -0.01em; }
.h2 { font-size: 28px; line-height: 32px; font-weight: 800; margin-bottom: 24px; }
.h3 { font-size: 22px; line-height: 26px; font-weight: 700; }
.lead { font-size: 18px; line-height: 27px; color: var(--text-secondary); }
.text-lead { color: var(--text-secondary); }
.text-lead + .text-lead { margin-top: 16px; }
.text-lead strong { color: var(--text-primary); }
.label {
  font-size: 13px; line-height: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.label--accent { color: var(--accent-primary); }
.accent { color: var(--accent-primary); }

@media (min-width: 720px) {
  .h1 { font-size: 56px; line-height: 60px; }
  .h2 { font-size: 40px; line-height: 44px; margin-bottom: 32px; }
  .h3 { font-size: 28px; line-height: 32px; }
  .lead { font-size: 20px; line-height: 30px; }
}

/* Заглушки — чтобы их нельзя было не заметить */
.ph {
  display: inline;
  color: var(--info-fg);
  background: var(--info-bg);
  padding: 1px 6px;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  background: var(--accent-primary); color: var(--accent-ink);
  border: 0; border-radius: 8px;
  font: inherit; font-size: 17px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn[disabled], .btn.is-loading { cursor: default; }
.btn[disabled]:not(.is-loading) { background: var(--border-control); color: var(--accent-ink); }
.btn.is-loading { background: var(--accent-hover); }
.btn--block { width: 100%; }
.btn--ghost {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-control);
}
.btn--ghost:hover { background: transparent; color: var(--text-primary); border-color: var(--text-primary); }

.cta-note { margin-top: 12px; font-size: 15px; line-height: 22px; color: var(--text-muted); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100svh;
  background: var(--surface-sunken);
  overflow: hidden;
}
@supports not (min-height: 100svh) { .hero { min-height: 100vh; } }
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; transform: scaleX(-1); } /* фото отражено: дрон справа от текста */
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--overlay-photo); }
.hero__top, .hero__body { position: relative; }
.hero__top { padding-top: 20px; padding-bottom: 20px; }
.brand { font-size: 15px; line-height: 22px; font-weight: 800; letter-spacing: 0.04em; }
.brand__short { display: none; }
@media (max-width: 389px) { .brand__full { display: none; } .brand__short { display: inline; } } /* узкие телефоны: полное название не влезает в строку */
.hero__body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: 24px; padding-bottom: 40px;
}
.hero .label { margin-bottom: 12px; color: var(--text-primary); }
.hero .h1 { margin-bottom: 16px; }
.hero .lead {
  max-width: 640px; margin-bottom: 24px;
  /* подзаголовок первого экрана — крупнее и белым (шкала H3) */
  font-size: 22px; line-height: 28px; font-weight: 700; color: var(--text-primary);
}
@media (min-width: 720px) { .hero .lead { font-size: 28px; line-height: 34px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips li {
  border: 1px solid var(--border-control); border-radius: 8px;
  padding: 8px 12px; font-size: 15px; line-height: 22px; font-weight: 600;
}
@media (max-width: 719px) {
  .hero .btn { width: 100%; }
  .hero__body { justify-content: flex-end; padding-bottom: 32px; } /* сверху виден дрон */
}
@media (min-width: 720px) {
  .hero { min-height: min(100svh, 860px); }
  .hero__top { padding-top: 28px; }
  .brand { font-size: 17px; line-height: 26px; }
  .hero__body { padding-bottom: 80px; }
  .chips { gap: 12px; margin-bottom: 36px; }
  .chips li { font-size: 17px; line-height: 26px; padding: 10px 16px; }
}

/* ---------- Карточки ---------- */
.card {
  background: var(--surface-raised);
  border-radius: 8px;
  padding: 24px;
}
.card .h3 { margin-bottom: 8px; }
.card p { color: var(--text-secondary); }
.card--media { padding: 0; overflow: hidden; }
.card__body { padding: 20px 24px 24px; }

/* Фото и заглушки фото: фиксированные пропорции, без скачков */
.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-sunken);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--wide { aspect-ratio: 16 / 9; margin-bottom: 16px; }
@media (min-width: 960px) { .photo--wide { aspect-ratio: 21 / 9; margin-bottom: 24px; } }

/* ---------- Что включено ---------- */
.incl .card { font-weight: 700; color: var(--text-primary); border-left: 2px solid var(--accent-primary); border-radius: 8px; }
.after-grid { margin-top: 24px; }

/* ---------- Нумерованный список ---------- */
.numlist { counter-reset: n; margin-bottom: 32px; }
.numlist li {
  counter-increment: n;
  position: relative;
  padding: 14px 0 14px 52px;
  border-bottom: 1px solid var(--border-hairline);
  min-height: 60px;
}
.numlist li:first-child { border-top: 1px solid var(--border-hairline); }
.numlist li::before {
  content: counter(n);
  position: absolute; left: 0; top: 14px;
  width: 32px; height: 32px; border-radius: 4px;
  background: var(--accent-primary); color: var(--accent-ink);
  font-weight: 800; font-size: 17px; line-height: 32px; text-align: center;
}

/* ---------- Раскрывающиеся списки (программа, FAQ) ---------- */
.acc { display: grid; gap: 8px; }
.acc__item { background: var(--surface-raised); border-radius: 8px; }
.acc__sum {
  display: grid; grid-template-columns: 1fr 24px; column-gap: 16px; align-items: center;
  min-height: 56px; padding: 16px 20px;
  cursor: pointer; list-style: none;
  font-weight: 700;
}
.acc__sum::-webkit-details-marker { display: none; }
.acc__label { grid-column: 1; font-size: 13px; line-height: 18px; letter-spacing: 0.04em; color: var(--accent-primary); font-weight: 800; }
.acc__title { grid-column: 1; }
.acc__icon { grid-column: 2; grid-row: 1 / span 2; position: relative; width: 24px; height: 24px; transition: transform .2s ease; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 2px; margin: -1px 0 0 -8px;
  background: var(--text-primary); border-radius: 1px;
}
.acc__icon::after { transform: rotate(90deg); }
.acc__item[open] > .acc__sum .acc__icon { transform: rotate(45deg); }
.acc__body { padding: 0 20px 20px; color: var(--text-secondary); }
/* фото внутри дня программы */
.acc__media { display: grid; gap: 8px; padding: 0 20px 20px; }
.acc__media--2 { grid-template-columns: 1fr 1fr; }
.acc__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-sunken); }
.acc__media--2 img { aspect-ratio: 4 / 3; }
@media (min-width: 720px) {
  .acc__sum { padding: 18px 24px; }
  .acc__body { padding: 0 24px 24px; }
  .acc__media { padding: 0 24px 24px; }
}

.note-box {
  margin-top: 24px;
  border: 1px solid var(--accent-primary); border-radius: 8px;
  padding: 20px;
}
.note-box .label { margin-bottom: 8px; }
.note-box p:last-child { color: var(--text-secondary); }

/* ---------- Доверие ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 24px 48px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-size: 56px; line-height: 60px; font-weight: 800; color: var(--accent-primary); }
.stat__cap { color: var(--text-secondary); }
.reviews { margin-top: 32px; }
.review blockquote { margin: 0 0 16px; font-size: 17px; line-height: 26px; }
.review figcaption { font-size: 15px; line-height: 22px; color: var(--text-muted); }
/* Фото с занятий: одно большое + два поменьше */
.gallery { margin-top: 32px; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.gallery__item { position: relative; margin: 0; background: var(--surface-sunken); }
.gallery__item img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__item--main { grid-column: 1 / -1; }
.gallery__item--main img { aspect-ratio: 16 / 9; }
.gallery__item figcaption {
  position: absolute; left: 0; bottom: 0;
  padding: 6px 10px; background: var(--overlay-photo);
  font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-primary);
}
@media (min-width: 960px) {
  .gallery { gap: 16px; grid-template-columns: 8fr 3fr; grid-template-rows: 1fr 1fr; } /* пропорции: большое 16:9, маленькие ≈ 4:3 */
  .gallery__item--main { grid-column: 1; grid-row: 1 / span 2; }
  .gallery__item img, .gallery__item--main img { aspect-ratio: auto; position: absolute; inset: 0; }
  .gallery__item { min-height: 0; }
  .gallery__item--main { aspect-ratio: 16 / 9; }
  .gallery__item figcaption { font-size: 15px; line-height: 22px; padding: 8px 12px; }
}

/* ---------- Безопасность ---------- */
.safety { border-left: 2px solid var(--accent-primary); }

/* ---------- Запись ---------- */
.signup:focus { outline: none; }
.signup__grid { display: grid; gap: 32px; }
.signup__info .label { margin-bottom: 12px; }
.signup__info .h2 { margin-bottom: 16px; }
.tag-info, .tag-success {
  display: inline-block; margin-top: 20px;
  padding: 6px 10px; border-radius: 4px;
  font-size: 13px; line-height: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tag-info { color: var(--info-fg); background: var(--info-bg); }
.tag-success { color: var(--success-fg); background: var(--success-bg); margin: 0 0 16px; }
@media (min-width: 960px) {
  .signup__grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .signup__info { position: sticky; top: 32px; }
}

/* ---------- Анкета ---------- */
.quiz { background: var(--surface-raised); border-radius: 8px; padding: 24px 20px; }
@media (min-width: 720px) { .quiz { padding: 32px; } }
.quiz__head { margin-bottom: 24px; }
.quiz__head .label { margin-bottom: 10px; }
.progress { height: 4px; background: var(--border-hairline); border-radius: 2px; overflow: hidden; }
.progress__bar { display: block; height: 100%; width: 25%; background: var(--accent-primary); transition: width .25s ease; }

.quiz__step { display: none; }
.quiz__step.is-active { display: block; }
.quiz__intro { color: var(--text-secondary); margin-bottom: 20px; }
.quiz__q { margin-bottom: 20px; }
.options { display: grid; gap: 10px; }
.opt {
  display: block; width: 100%; min-height: 56px;
  padding: 14px 18px;
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-control); border-radius: 8px;
  font: inherit; font-size: 17px; line-height: 24px; font-weight: 600; text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt:hover { border-color: var(--text-primary); }
.opt[aria-pressed="true"] { border-color: var(--accent-primary); background: var(--info-bg); }

.back {
  display: inline-flex; align-items: center;
  min-height: 44px; margin-top: 16px; padding: 0 4px;
  background: none; border: 0; color: var(--text-secondary);
  font: inherit; font-size: 15px; cursor: pointer;
}
.back:hover { color: var(--text-primary); }

.price { margin-bottom: 24px; }
.price__cap { font-size: 15px; line-height: 22px; color: var(--text-muted); margin-bottom: 4px; }
.price__old { font-size: 17px; color: var(--text-muted); }
.price__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 2px 0 12px; }
.price__new { font-size: 40px; line-height: 44px; font-weight: 800; color: var(--accent-primary); }
.price__deal { font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.price__note { color: var(--text-secondary); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text-secondary); }
.field input {
  display: block; width: 100%; height: 56px; padding: 0 16px;
  background: var(--surface-base); color: var(--text-primary);
  border: 1px solid var(--border-control); border-radius: 8px;
  font: inherit; font-size: 17px;
}
.field input::placeholder { color: var(--text-muted); }
.field input:hover { border-color: var(--text-secondary); }
.field input[aria-invalid="true"] { border: 2px solid var(--error); padding: 0 15px; }
.field__err { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--error); }

/* honeypot — скрыт от людей, виден ботам */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form { position: relative; }
.form .btn { margin-top: 8px; }
.form__note { margin-top: 16px; color: var(--text-secondary); }
.form__small { margin-top: 12px; font-size: 15px; line-height: 22px; color: var(--text-muted); }
.form__small a { color: var(--text-muted); }
.form__fail {
  margin-top: 16px; padding: 16px;
  border: 1px solid var(--error); border-radius: 8px;
}
.form__fail a { color: var(--text-primary); font-weight: 700; }

.quiz__done .h3 { margin-bottom: 12px; }
.quiz__done p:last-child { color: var(--text-secondary); }

/* ---------- Остались вопросы ---------- */
.ask {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  border: 1px solid var(--border-hairline); border-radius: 8px;
  padding: 24px;
}
.ask .h3 { margin-bottom: 6px; }
.ask p { color: var(--text-secondary); }
@media (max-width: 719px) { .ask .btn { width: 100%; } }
@media (min-width: 720px) {
  .ask { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px; }
}

/* ---------- Подвал ---------- */
.footer { background: var(--surface-sunken); border-top: 1px solid var(--border-hairline); padding: 40px 0; }
.footer__inner { display: grid; gap: 8px; font-size: 15px; line-height: 22px; color: var(--text-muted); }
.footer strong { color: var(--text-secondary); font-weight: 700; }
.footer a { color: var(--text-muted); }

/* ---------- Липкая кнопка (телефон) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  height: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--accent-primary); color: var(--accent-ink);
  font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  transition: transform .2s ease;
}
.sticky-cta:hover { color: var(--accent-ink); background: var(--accent-hover); }
.sticky-cta:focus-visible { outline-offset: -4px; outline-color: var(--accent-ink); }
.sticky-cta.is-hidden { transform: translateY(110%); }
@media (min-width: 720px) { .sticky-cta { display: none; } }

/* ---------- Политика (служебная страница) ---------- */
.doc { padding: 40px 0 var(--section-gap); }
.doc .h1 { margin: 24px 0; }
.doc p { color: var(--text-secondary); max-width: 720px; }
.doc p + p { margin-top: 16px; }
.no-sticky{padding-bottom:0}
