/* ===== Этап 0: Глобальные стили ===== */
:root {
  /* Свежая небанальная палитра */
  --bg: #0d1321;            /* глубокий ночной */
  --surface: #11182a;       /* карточная плоскость */
  --text: #e9edf5;          /* основной текст */
  --muted: #a9b4c7;         /* вторичный текст */
  --brand: #7cf0ff;         /* акцент неон-аква */
  --brand-2: #ff7a8a;       /* контрастный коралл */
  --line: rgba(255,255,255,0.08);

  --radius: 16px;
  --shadow: 0 8px 24px rgba(0,0,0,0.25);
}

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Manrope", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(124,240,255,0.08), transparent 60%),
              radial-gradient(1000px 700px at 110% 10%, rgba(255,122,138,0.07), transparent 60%),
              var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

.container {
  width: min(1128px, 100% - 32px);
  margin-inline: auto;
}

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: calc(var(--radius) - 6px);
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1px solid transparent;
  cursor: pointer;
  will-change: transform;
}
.button--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0f1c;
  box-shadow: 0 6px 18px rgba(124,240,255,0.25);
}
.button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124,240,255,0.35);
}

/* ===== Хедер (Этап 1) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}
.header--scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

/* Лого */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}
.logo__mark {
  width: 20px; height: 20px;
  border-radius: 6px;
  background:
    conic-gradient(from 45deg, var(--brand), var(--brand-2), var(--brand), var(--brand-2));
  filter: saturate(140%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 6px 18px rgba(124,240,255,0.25);
  transform: rotate(15deg);
}
.logo__text {
  font-size: 18px;
}

/* Навигация */
.nav { position: relative; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.nav__toggle:hover { background: color-mix(in srgb, var(--surface) 92%, white 8%); }

.nav__list {
  list-style: none;
  margin: 0; padding: 0;
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 10px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  min-width: 240px;
}
.nav__list.is-open { display: grid; gap: 4px; }
.nav__item { display: block; }
.nav__item--cta { margin-top: 6px; }

.nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.nav__link:hover {
  background: color-mix(in srgb, var(--surface) 85%, var(--brand) 15%);
  border-color: var(--line);
  transform: translateX(2px);
}

/* Десктоп навигация */
@media (min-width: 960px) {
  .nav__toggle { display: none; }
  .nav__list {
    display: flex !important;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    min-width: auto;
    box-shadow: none;
    gap: 6px;
    align-items: center;
  }
  .nav__item--cta { margin-top: 0; margin-left: 6px; }
  .nav__link:hover { transform: translateY(-1px); }
}

/* Плейсхолдер-секции до наполнения Этапом 3 */
.section--placeholder { min-height: 1px; }

/* ===== Футер (Этап 2) ===== */
.footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, color-mix(in srgb, var(--surface) 92%, black 8%), var(--surface));
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px 0;
}
.footer__col--brand .footer__tagline { color: var(--muted); margin: 10px 0 6px; }
.footer__note { color: var(--brand); font-weight: 600; font-size: 14px; }

.footer__title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 8px 0 10px;
}

.footer__nav,
.footer__contacts {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.footer__nav a {
  display: inline-block;
  padding: 6px 0;
  border-bottom: 1px dashed transparent;
}
.footer__nav a:hover {
  border-bottom-color: color-mix(in srgb, var(--brand) 70%, white 30%);
}

.footer__contacts li {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
}
.footer__address { color: var(--muted); }
.footer__small { color: var(--muted); font-size: 14px; margin-top: 8px; }

.footer__bottom {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, black 8%);
}
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0 24px;
}
.footer__copy { color: var(--muted); }
.footer__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  border: 1px solid var(--line);
  background: #0e162a;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: color-mix(in srgb, var(--text) 85%, var(--muted) 15%);
}

/* Футер — сетка на широких экранах */
@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 28px;
    padding: 48px 0;
  }
  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ===== Ссылки-CTA в футере ===== */
.link-cta {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* ===== Стили для будущих текстовых страниц (Этап 5, заранее) ===== */
.pages h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 18px 0 12px;
}
.pages h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin: 16px 0 10px;
}
.pages p {
  color: var(--text);
  margin: 10px 0;
}
.pages ul { padding-left: 18px; }
.pages li { margin: 6px 0; }
.pages a { color: var(--brand); border-bottom: 1px dashed color-mix(in srgb, var(--brand) 70%, white 30%); }
.pages a:hover { border-bottom-style: solid; }
.pages strong { color: #fff; }

/* Мелкие утилиты */
.hidden { display: none !important; }

/* ===== Hero (Этап 3) ===== */
.hero {
  position: relative;
  overflow: clip;
  padding: clamp(64px, 8vw, 120px) 0 clamp(42px, 6vw, 72px);
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: .9;
}
.hero__inner {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  margin: 0 0 10px;
}

.hero__title {
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.08;
  margin: 0 0 10px;
  font-weight: 800;
}
.hero__title-accent {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  color: var(--muted);
  margin: 10px 0 20px;
  max-width: 62ch;
}

.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero__btn--ghost {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, black 8%);
  color: var(--text);
}
.hero__btn--ghost:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 50%, white 50%);
}

.hero__bullets {
  display: grid;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 0;
  list-style: none;
}
.hero__bullet {
  display: inline-grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: color-mix(in srgb, var(--text) 86%, var(--muted) 14%);
}

.hero__legal {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.hero__media {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__image {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .3s ease;
  will-change: transform;
}
.hero__media:hover .hero__image {
  transform: perspective(1200px) rotateY(-2deg) rotateX(0deg) translateY(-2px);
}

.hero__badge {
  position: absolute;
  bottom: -12px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0e162a;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, black 8%);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.hero__scroll:hover { transform: translateX(-50%) translateY(-2px); }


/* ===== Courses (Этап 3) ===== */
.courses { padding: clamp(40px, 7vw, 80px) 0; }
.courses__header { margin-bottom: 16px; }
.courses__title {
  font-size: clamp(22px, 4.8vw, 36px);
  margin: 0 0 6px;
  font-weight: 800;
}
.courses__subtitle { color: var(--muted); max-width: 70ch; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 10px; }
.tabs__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, black 8%);
  cursor: pointer; user-select: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.tabs__btn:hover { transform: translateY(-1px); }
.tabs__btn.is-active {
  border-color: color-mix(in srgb, var(--brand) 60%, white 40%);
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 10%, transparent 90%), transparent);
}

.tabs__panels { margin-top: 12px; }
.tabs__panel { display: none; animation: fadeIn .28s ease both; }
.tabs__panel.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.courses__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}
@media (min-width: 820px) { .courses__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 35%, white 65%);
  box-shadow: 0 10px 28px rgba(124,240,255,0.18);
}

.course-card__img { width: 100%; height: 180px; object-fit: cover; background: #0e162a; }
@media (min-width: 920px) { .course-card__img { height: 220px; } }

.course-card__body { padding: 14px; display: grid; gap: 10px; }
.course-card__title { margin: 0; font-size: 18px; font-weight: 800; }
.course-card__meta {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px; color: color-mix(in srgb, var(--text) 86%, var(--muted) 14%);
}
.course-card__meta li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }

.course-card__cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.course-card__btn--ghost {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, black 8%);
}
.course-card__btn--ghost:hover { border-color: color-mix(in srgb, var(--brand) 50%, white 50%); }

.courses__footnote { color: var(--muted); margin-top: 12px; font-size: 14px; }

/* ===== Benefits (Этап 3) ===== */
.benefits {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, black 4%);
}
.benefits__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 36px;
}
.benefits__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0f1c;
  margin-bottom: 12px;
}
.benefits__title {
  font-size: clamp(22px, 5vw, 38px);
  margin: 0 0 10px;
  font-weight: 800;
}
.benefits__subtitle {
  color: var(--muted);
  line-height: 1.7;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0 auto 32px;
  max-width: 1000px;
}
@media (min-width: 820px) {
  .benefits__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

.benefit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.benefit:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 35%, white 65%);
}
.benefit i {
  width: 22px; height: 22px;
  color: var(--brand);
}
.benefit__title {
  margin: 10px 0 6px;
  font-weight: 700;
  font-size: 18px;
}
.benefit__text { color: var(--muted); margin: 0; }

.benefits__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 24px 0 28px;
}
.stat {
  text-align: center;
  min-width: 100px;
}
.stat__num {
  font-weight: 800;
  font-size: 36px;
  color: var(--brand);
  display: inline-block;
  min-width: 40px;
}
.stat__unit {
  font-weight: 700;
  font-size: 18px;
  color: var(--muted);
}
.stat__label {
  color: var(--muted);
  margin-top: 2px;
  font-size: 14px;
}

.benefits__cta {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.benefits__footnote {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ===== How it works (Этап 3) ===== */
.how { padding: clamp(44px, 7vw, 88px) 0; }
.how__header { max-width: 820px; margin: 0 auto 24px; text-align: center; }
.how__title { margin: 0 0 8px; font-size: clamp(22px, 5vw, 36px); font-weight: 800; }
.how__subtitle { color: var(--muted); }

.timeline {
  position: relative;
  margin: 20px auto 8px;
  padding-left: 0;
  list-style: none;
  max-width: 880px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--brand) 50%, white 50%), transparent 70%);
  opacity: .35;
}
@media (min-width: 800px) {
  .timeline::before { left: 50%; transform: translateX(-50%); }
}

.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 10px 0 16px;
}
@media (min-width: 800px) {
  .timeline__step {
    grid-template-columns: 1fr 44px 1fr;
    align-items: start;
  }
  .timeline__step:nth-child(odd) .step__body { grid-column: 1 / 2; text-align: right; }
  .timeline__step:nth-child(odd) .step__cta { justify-content: flex-end; }
  .timeline__step:nth-child(odd) .step__icon { grid-column: 2 / 3; }
  .timeline__step:nth-child(even) .step__body { grid-column: 3 / 4; }
  .timeline__step:nth-child(even) .step__icon { grid-column: 2 / 3; }
}

.step__icon {
  z-index: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0f1c;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-left: 0;
}
@media (min-width: 800px) {
  .step__icon { margin: 0 auto; }
}

.step__body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease, border-color .2s ease;
}
.step.is-visible .step__body {
  transform: translateY(0);
  opacity: 1;
}
.step__title { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.step__text { color: var(--muted); margin: 0; }
.step__cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.how__footer {
  margin-top: 18px;
  display: grid;
  place-items: center;
  gap: 6px;
}
.how__footnote { color: var(--muted); font-size: 14px; }

/* ===== Reviews (Этап 3) ===== */
.reviews { padding: clamp(44px, 7vw, 88px) 0; }
.reviews__header { text-align: center; max-width: 820px; margin: 0 auto 20px; }
.reviews__title { margin: 0 0 8px; font-size: clamp(22px, 5vw, 36px); font-weight: 800; }
.reviews__subtitle { color: var(--muted); }

.reviews__slider {
  position: relative;
  margin-top: 14px;
}
.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow: hidden;
}
@media (min-width: 860px) {
  .reviews__track { grid-auto-columns: 50%; }
}
@media (min-width: 1180px) {
  .reviews__track { grid-auto-columns: 33.3333%; }
}

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 6px;
  padding: 16px;
  display: grid;
  gap: 10px;
  outline: none;
  transition: border-color .2s ease, transform .2s ease;
}
.review:focus,
.review:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, white 65%);
  transform: translateY(-2px);
}
.review__head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
  color: #0a0f1c;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.review__name { margin: 0; font-weight: 800; }
.review__role { margin: 0; color: var(--muted); font-size: 14px; }
.review__quote { opacity: .35; }

.review__text { color: var(--muted); margin: 0; }
.review__foot { display: flex; }
.review__badge {
  border: 1px solid var(--line);
  background: #0e162a;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: color-mix(in srgb, var(--text) 85%, var(--muted) 15%);
}

.reviews__controls {
  position: absolute;
  top: 50%; left: 6px; right: 6px;
  display: flex; justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.reviews__btn {
  pointer-events: auto;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, black 8%);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.reviews__btn:hover { transform: translateY(-2px); }

.reviews__dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 12px;
}
.dot {
  width: 8px; height: 8px; border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, black 8%);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.dot:hover { transform: translateY(-1px); }
.dot.is-active {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-color: transparent;
}

.reviews__cta {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
}
.reviews__footnote { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ===== FAQ (Этап 3) ===== */
.faq { padding: clamp(44px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.faq__header { text-align: center; max-width: 820px; margin: 0 auto 20px; }
.faq__title { margin: 0 0 8px; font-size: clamp(22px,5vw,36px); font-weight: 800; }
.faq__subtitle { color: var(--muted); }

.accordion { max-width: 900px; margin: 0 auto; display: grid; gap: 10px; }
.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.accordion__trigger {
  width: 100%;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.accordion__trigger:hover { background: color-mix(in srgb, var(--surface) 92%, black 8%); }
.accordion__chev { transition: transform .2s ease; }
.accordion__trigger[aria-expanded="true"] .accordion__chev { transform: rotate(180deg); }

.accordion__panel {
  padding: 0 16px 14px;
  color: var(--muted);
  animation: faqFade .25s ease;
}
@keyframes faqFade { from { opacity: 0; transform: translateY(-2px);} to { opacity: 1; transform: translateY(0);} }


/* ===== Contact (Этап 4) ===== */
.contact { padding: clamp(48px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.contact__header { text-align: center; max-width: 820px; margin: 0 auto 24px; }
.contact__title { margin: 0 0 8px; font-size: clamp(22px, 5vw, 36px); font-weight: 800; }
.contact__subtitle { color: var(--muted); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1.2fr .8fr; gap: 24px; }
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.form__row { margin-bottom: 12px; }
.form__row--inline .captcha { display: flex; align-items: center; gap: 8px; }
.form__row--check { margin-top: 6px; }

.form__label { display: block; font-weight: 700; margin-bottom: 6px; }
.form__input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, black 8%);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.form__input:focus {
  border-color: color-mix(in srgb, var(--brand) 60%, white 40%);
  box-shadow: 0 0 0 3px rgba(124,240,255,0.18);
}
.form__input--invalid { border-color: #ff7a8a; box-shadow: 0 0 0 3px rgba(255,122,138,0.15); }

.form__error { color: #ff7a8a; font-size: 13px; min-height: 16px; margin: 6px 0 0; }
.form__hint { color: var(--muted); font-size: 13px; }

.captcha__eq { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; }
.captcha__input { width: 96px; text-align: center; }
.captcha__refresh {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, black 8%);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.captcha__refresh:hover { transform: rotate(12deg); }

.checkbox { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.checkbox input { appearance: none; width: 20px; height: 20px; margin: 2px 0 0; }
.checkbox__box {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, black 8%);
  display: inline-block;
  position: relative;
}
.checkbox input:checked + .checkbox__box::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 4px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.checkbox__label a { color: var(--brand); border-bottom: 1px dashed color-mix(in srgb, var(--brand) 70%, white 30%); }
.checkbox__label a:hover { border-bottom-style: solid; }

.form__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form__submit[disabled] { opacity: .7; cursor: not-allowed; }
.form__note { color: var(--muted); font-size: 14px; }

.form__msg {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0e162a;
  display: none;
}
.form__msg.is-show { display: block; }
.form__msg--ok { border-color: color-mix(in srgb, var(--brand) 60%, white 40%); }
.form__msg--err { border-color: #ff7a8a; }

.contact__aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: color-mix(in srgb, var(--surface) 96%, black 4%);
  box-shadow: var(--shadow);
  height: fit-content;
}
.contact__bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact__bullets li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; color: color-mix(in srgb, var(--text) 86%, var(--muted) 14%); }
.contact__footnote { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ===== Cookie Pop-up (Этап 5) ===== */
.cookie {
  position: fixed;
  inset: auto 12px 12px 12px;
  z-index: 70;
  background: transparent;
}
@media (min-width: 760px) { .cookie { inset: auto 20px 20px auto; max-width: 520px; } }

.cookie__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, black 4%);
  box-shadow: var(--shadow);
}
.cookie__text { margin: 0; color: var(--muted); }
.cookie__text a {
  color: var(--brand);
  border-bottom: 1px dashed color-mix(in srgb, var(--brand) 70%, white 30%);
}
.cookie__text a:hover { border-bottom-style: solid; }
.cookie__btn { white-space: nowrap; }

/* ===== Текстовые страницы (финишные штрихи, Этап 5) ===== */
.pages .container { width: min(860px, 100% - 32px); }
.pages h1 + p { font-size: 18px; color: color-mix(in srgb, var(--text) 90%, var(--muted) 10%); }
.pages p + h2 { margin-top: 18px; }
.pages ul { margin: 12px 0; }
.pages li { padding-left: 2px; }
.pages blockquote {
  margin: 14px 0; padding: 10px 14px;
  border-left: 3px solid color-mix(in srgb, var(--brand) 60%, white 40%);
  background: color-mix(in srgb, var(--surface) 92%, black 8%);
  border-radius: 8px;
}
.pages code, .pages pre {
  background: #0e162a; border: 1px solid var(--line); border-radius: 8px;
  padding: 2px 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.pages pre { padding: 12px; overflow: auto; }
