/* ============================================================
   ЯСНОВИДЕНИЕ 5.0 — стили

   Цветовая гамма, шрифты, хедер и футер перенесены
   с karytana.pro один в один.

   1.  Токены
   2.  База
   3.  Кнопки и утилиты
   4.  Хедер
   5.  Секции
   6.  Программа курса
   7.  Тарифы
   8.  Футер
   9.  Модальное окно (выбор страны)
   10. Адаптив
   11. Окно сбора контактов
   12. Страница политики конфиденциальности
   ============================================================ */

/* ------------------------------------------------------------
   1. Токены — значения сняты с оригинала
   ------------------------------------------------------------ */
:root {
  /* Фон */
  --bg:              #000000;
  --bg-deep:         #000009;

  /* Текст */
  --ink:             #ffffff;
  --ink-pink:        #fae0ff;                /* названия тарифов, цены, «Остались вопросы?» */
  --ink-muted:       rgba(255, 255, 255, .72);
  --ink-faint:       rgba(255, 255, 255, .45);

  /* Розовый градиент заголовков */
  --gradient-title:  linear-gradient(271.8deg, #ffffff 0%, #ffc6ff 100%);

  /* Фиолетовый градиент кнопок */
  --violet-a:        #9457ff;
  --violet-b:        #5200e2;
  --gradient-btn:    linear-gradient(127deg, var(--violet-a) 0%, var(--violet-b) 100%);
  --gradient-btn-ring: linear-gradient(252deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);

  /* Карточки */
  --card:            linear-gradient(0deg, rgba(9, 9, 20, .4) 0%, rgba(23, 23, 37, .4) 100%);
  --card-solid:      #34293b;
  --card-line:       rgba(255, 255, 255, .85);
  --card-line-soft:  rgba(255, 255, 255, .28);

  /* Плашки «Старт» / «Длительность» */
  --chip:            linear-gradient(180deg, #050c17 0%, #1e143c 100%);

  /* Шрифты */
  --font-display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --font-body:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Ритм */
  --container:  1440px;
  --gutter:     clamp(20px, 4.2vw, 64px);
  --section-y:  clamp(72px, 10vw, 130px);

  --radius:     32px;
  --radius-sm:  16px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------
   2. База
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 87, 255, .5) transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}

p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}

button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--violet-a);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--violet-a);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

/* ------------------------------------------------------------
   3. Кнопки и утилиты
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Розово-белый градиент на тексте — как в оригинале */
.gradient-text {
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/*  Фиолетовая кнопка: заливка + светлая обводка,
    затухающая к левому нижнему углу (как в btn1.svg) */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 42px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient-btn);
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(.75rem, .95vw, .875rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-btn-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 20px 44px -18px rgba(148, 87, 255, .85);
}
.btn:active { transform: translateY(0); }

.btn__icon { flex: none; }

/*  Кнопка «обводкой»: та же пилюля и то же светлое кольцо, но без заливки —
    второстепенное действие рядом с основной фиолетовой кнопкой. */
.btn--outline {
  background: transparent;
  color: var(--ink-pink);
}
.btn--outline:hover {
  background: rgba(148, 87, 255, .16);
  filter: none;
  box-shadow: 0 20px 44px -22px rgba(148, 87, 255, .6);
}

/* Кнопка-«призрак» в той же гамме */
.btn--ghost {
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost::after { background: linear-gradient(252deg, rgba(255,255,255,.7), rgba(255,255,255,.08)); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }

/* ------------------------------------------------------------
   4. Хедер
   ------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /*  Небольшой отступ снизу: под слоганом не должно оставаться
      пустого экрана перед следующим разделом. */
  padding-bottom: clamp(40px, 5vw, 80px);
  background: var(--bg) url("assets/hero-bg.webp") center top / cover no-repeat;
}

/* Свечения поверх фоновой туманности — как в оригинале */
.hero__glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: .9;
}
.hero__glow--violet {
  top: 8%;
  right: -22%;
  width: min(1173px, 88vw);
  aspect-ratio: 1;
}
.hero__glow--blue {
  top: 6%;
  left: -46%;
  width: min(1675px, 130vw);
  aspect-ratio: 1;
}

/* Затемнение нижней кромки (divider из оригинала) */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(80px, 11vw, 160px);
  background: linear-gradient(180deg, rgba(0, 0, 9, 0) 0%, var(--bg-deep) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/*  Шапка: логотип слева, дата старта справа — одинаково на всех экранах. */
.hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(26px, 4.2vw, 62px);
}

.hero__logo {
  display: inline-block;
}
.hero__logo img {
  width: clamp(132px, 13vw, 181px);
  height: auto;
}

/* Две колонки: текст слева, портрет справа */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(20px, 2vw, 32px);
  margin-top: clamp(28px, 4vw, 56px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

/*  Колонка с текстом прижата к низу сетки — приподнимаем её,
    чтобы заголовок не стоял вровень с подбородком на портрете. */
@media (min-width: 1001px) {
  .hero__copy { margin-bottom: clamp(40px, 7vw, 130px); }
}

/*  Приписка стоит над названием курса и приглушена, чтобы не спорить с ним. */
.hero__eyebrow {
  font-size: clamp(.85rem, 1.65vw, 1.5rem);
  font-weight: 600;
  letter-spacing: .085em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-muted);
}

/*  Дата старта — в шапке справа от логотипа. */
.hero__start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 9px 18px 9px 14px;
  border: .8px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(23, 23, 37, .55) 0%, rgba(9, 9, 20, .55) 100%) padding-box,
    linear-gradient(252deg, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, .12) 100%) border-box;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: clamp(.78rem, 1.05vw, .95rem);
  line-height: 1;
  white-space: nowrap;
}
.hero__start-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet-a);
  box-shadow: 0 0 0 4px rgba(148, 87, 255, .25);
  animation: pulse-dot 2.4s var(--ease) infinite;
}
.hero__start-label {
  font-weight: 400;
  color: var(--ink-muted);
}
.hero__start-date {
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(148, 87, 255, .25); }
  50%      { box-shadow: 0 0 0 8px rgba(148, 87, 255, .05); }
}

/*  Размер подобран так, чтобы «Ясновидение 5.0» помещалось в одну строку
    в своей колонке — иначе «5.0» повисает отдельной короткой строкой.
    Запрет переноса только на широких экранах: в одноколоночной раскладке
    строка длиннее экрана и перенос как раз нужен. */
.hero__title {
  margin-top: clamp(8px, 1.2vw, 16px);
  font-size: clamp(2rem, 4.05vw, 3.9rem);
  line-height: 1.1;
}

@media (min-width: 1001px) {
  .hero__title { white-space: nowrap; }
}

.hero__cta { margin-top: clamp(24px, 3.4vw, 46px); }

/* Портрет + карточка автора */
.hero__author {
  position: relative;
  margin: 0;
  align-self: end;
}
/*  В оригинале портрет крупный и выходит за правый край сетки —
    .hero скрывает лишнее (overflow: hidden). */
.hero__photo {
  width: 132%;
  max-width: none;
  height: auto;
  margin-left: -20%;   /* лицо уходит левее — справа освобождается место под карточку */
  pointer-events: none;
  /* мягко растворяем низ фотографии в фоне */
  mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
}

/* «Ясновидение это не дар избранных» */
.hero__claim {
  position: relative;
  z-index: 2;
  margin-top: clamp(36px, 5vw, 88px);
  text-align: center;
}
.hero__claim-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.6vw, 4.5rem);
  line-height: 1.25;
  text-transform: uppercase;
}
.hero__claim-sub {
  margin-top: clamp(10px, 1.6vw, 22px);
  font-size: clamp(1rem, 2.6vw, 2.5rem);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--ink);
}

/* ------------------------------------------------------------
   5. Секции
   ------------------------------------------------------------ */
.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg) url("assets/section-bg.webp") center / cover no-repeat;
}
.section + .section { background-position: center bottom; }

/* верхняя и нижняя кромки затемняются — как разделители в оригинале */
.section::before,
.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(60px, 7vw, 100px);
  pointer-events: none;
}
.section::before { top: 0;    background: linear-gradient(0deg,   rgba(0,0,9,0) 0%, var(--bg-deep) 100%); }
.section::after  { bottom: 0; background: linear-gradient(180deg, rgba(0,0,9,0) 0%, var(--bg-deep) 100%); }

.section > .container { position: relative; z-index: 1; }

.section__head {
  max-width: 900px;
  margin: 0 auto clamp(32px, 4.5vw, 56px);
  text-align: center;
}
.section__title { font-size: clamp(1.8rem, 4.2vw, 3.75rem); }
.section__lead {
  margin-top: clamp(14px, 1.8vw, 22px);
  font-size: clamp(.9rem, 1.3vw, 1.1rem);
  font-weight: 300;
  color: var(--ink-muted);
}



/* ------------------------------------------------------------
   6. Программа курса
   ------------------------------------------------------------ */
/*  Пояснение о том, как устроена неделя. Стоит между заголовком и
    аккордеоном, поэтому оформлено спокойной карточкой с акцентной
    полосой слева — не спорит с заголовком и не теряется. */
.program__note {
  max-width: 860px;
  margin: 0 auto clamp(28px, 3.4vw, 44px);
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.6vw, 32px);
  border: .8px solid transparent;
  border-radius: var(--radius-sm);
  background:
    var(--card) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .06) 100%) border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: clamp(.92rem, 1.25vw, 1.08rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-muted);
  text-align: center;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: clamp(24px, 3.2vw, 38px);
}

.tabs__expand {
  padding: 12px 24px;
  border: .8px dashed var(--card-line-soft);
  border-radius: 999px;
  background: none;
  color: var(--ink-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.tabs__expand:hover { color: #fff; border-color: var(--violet-a); }

/* Аккордеон недель */
.weeks {
  display: grid;
  gap: 12px;
  max-width: 960px;
  margin-inline: auto;
}
.weeks[hidden] { display: none; }
.weeks:focus   { outline: none; }

.week {
  border: .8px solid var(--card-line-soft);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.week:hover  { border-color: rgba(255, 255, 255, .5); }
.week[open]  { border-color: var(--card-line); }

.week__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 24px);
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 28px);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.week__head::-webkit-details-marker { display: none; }
.week__head::marker { content: ""; }

/*  Номер + подпись «неделя»: одна цифра без слова читалась как порядковый
    номер урока, а не как номер недели. */
.week__num {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  width: 58px;
  height: 58px;
  border: .8px solid var(--card-line-soft);
  border-radius: 16px;
  color: var(--ink-pink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.week__num-value {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1;
}
.week__num-label {
  font-family: var(--font-body);
  font-size: .5rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  opacity: .7;
}
.week[open] .week__num {
  background: var(--gradient-btn);
  border-color: transparent;
  color: #fff;
}

.week__title {
  font-family: var(--font-display);
  font-size: clamp(.82rem, 1.35vw, 1rem);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-pink);
}

.week__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: .8px solid var(--card-line-soft);
  border-radius: 50%;
  transition: transform .35s var(--ease), border-color .3s var(--ease);
}
.week__icon::before,
.week__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  background: #fff;
  translate: -50% -50%;
  transition: opacity .3s var(--ease);
}
.week__icon::after { rotate: 90deg; }
.week[open] .week__icon        { transform: rotate(180deg); border-color: var(--violet-a); }
.week[open] .week__icon::after { opacity: 0; }

.lessons {
  padding: 0 clamp(18px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px);
  counter-reset: lesson;
}
.lessons li {
  position: relative;
  padding: 13px 0 13px 52px;
  border-top: .8px solid rgba(255, 255, 255, .14);
  font-size: clamp(.85rem, 1.15vw, .95rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
  counter-increment: lesson;
}
.lessons li::before {
  content: "Урок " counter(lesson);
  position: absolute;
  left: 0;
  top: 15px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c39dff;
}

.week[open] .lessons { animation: reveal .4s var(--ease); }
@keyframes reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   7. Тарифы
   ------------------------------------------------------------ */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2vw, 26px);
  padding: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 30px);
  border: .8px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px -50px rgba(148, 87, 255, .9);
}

/* Средний тариф выделен сплошной заливкой — как в оригинале */
.plan--featured { background: var(--card-solid); }

.plan__tag {
  padding: 12px 30px;
  border: .8px solid var(--card-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: clamp(.68rem, .95vw, .8rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

.plan__name {
  font-size: clamp(1rem, 1.55vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-pink);
  overflow-wrap: break-word;
}

.plan__list {
  display: grid;
  align-content: start;
  gap: clamp(12px, 1.4vw, 18px);
  flex: 1;
  width: 100%;
}
.plan__list li {
  font-size: clamp(.85rem, 1.2vw, 1.06rem);
  font-weight: 400;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink);
}

.plan__price {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.9vw, 1.5rem);
  color: var(--ink-pink);
}

.plan__btn { width: 100%; max-width: 370px; }

/*  Две кнопки в карточке: бронь и оплата целиком. Стоят столбиком,
    чтобы в узкой карточке длинная надпись не ломала пилюлю. */
.plan__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* ------------------------------------------------------------
   7.4 Отзывы — горизонтальный слайдер
   ------------------------------------------------------------ */
.slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/*  Лента едет за края экрана: так видно, что справа есть продолжение.
    scroll-snap ставит карточку ровно к левому краю контейнера. */
.slider__track {
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  flex: 1;
  min-width: 0;
  padding: 4px var(--gutter) 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 87, 255, .55) transparent;
}
.slider__track::-webkit-scrollbar { height: 6px; }
.slider__track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 87, 255, .55);
}

.review {
  flex: 0 0 auto;
  width: clamp(230px, 26vw, 340px);
  scroll-snap-align: start;
}

/*  Скриншоты разного формата — от узкой полосы до квадрата.
    Карточка одного размера, картинка вписывается целиком (contain),
    ничего не обрезается: отзыв должен читаться уже в ленте. */
.review__btn {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 10px;
  border: .8px solid transparent;
  border-radius: var(--radius-sm);
  background:
    var(--card) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .08) 100%) border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-in;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.review__btn:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 26px 60px -34px rgba(148, 87, 255, .9);
}
.review__btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.slider__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(40px, 3.4vw, 52px);
  height: clamp(40px, 3.4vw, 52px);
  margin-inline: max(0px, calc(var(--gutter) - 56px));
  border: .8px solid var(--card-line-soft);
  border-radius: 50%;
  background: rgba(9, 9, 20, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
}
.slider__arrow:hover { background: var(--gradient-btn); border-color: transparent; }
.slider__arrow[disabled] { opacity: .25; cursor: default; }
.slider__arrow[disabled]:hover { background: rgba(9, 9, 20, .55); border-color: var(--card-line-soft); }

/* ------------------------------------------------------------
   7.5 Предобучение после бронирования
   ------------------------------------------------------------ */
/*  Секция короткая — заголовок, строка пояснения и кнопка. Шапка берётся
    общими .section__head / .section__title / .section__lead, здесь только
    отбивка под кнопку. */
.why__action {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 3.4vw, 46px);
}

/* ------------------------------------------------------------
   8. Футер
   ------------------------------------------------------------ */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(420px, 50vw, 727px);
  display: grid;
  place-items: center;
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--bg) url("assets/footer-bg.webp") center / cover no-repeat;
}
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(60px, 7vw, 100px);
  background: linear-gradient(0deg, rgba(0, 0, 9, 0) 0%, var(--bg-deep) 100%);
  pointer-events: none;
}

.cta__glow {
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -28%;
  width: min(1490px, 105vw);
  aspect-ratio: 1;
  pointer-events: none;
}

.cta__photo {
  position: absolute;
  z-index: -1;
  left: clamp(-140px, -9vw, -40px);
  bottom: 0;
  width: clamp(300px, 42vw, 682px);
  height: auto;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}

.cta__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}
.cta__title {
  font-size: clamp(1.8rem, 4.6vw, 4.5rem);
  line-height: 1;
  color: var(--ink-pink);
}
.cta__sub {
  margin-top: clamp(14px, 2.2vw, 30px);
  font-size: clamp(1rem, 2.6vw, 2.5rem);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--ink);
}
.cta__btn { margin-top: clamp(24px, 3.4vw, 44px); }

/* ------------------------------------------------------------
   9. Модальное окно — выбор страны
   ------------------------------------------------------------ */
.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: min(88vh, 760px);
  padding: 0;
  border: .8px solid var(--card-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #171725 0%, #090914 100%);
  color: var(--ink);
  box-shadow: 0 60px 120px -40px #000;
  overflow: hidden;
}
.modal::backdrop {
  background: rgba(0, 0, 9, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.modal__inner {
  position: relative;
  max-height: min(88vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3.4vw, 38px) clamp(24px, 3vw, 32px);
  border-radius: inherit;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 87, 255, .55) transparent;
}
.modal__inner::-webkit-scrollbar { width: 8px; }
.modal__inner::-webkit-scrollbar-track { background: transparent; }
.modal__inner::-webkit-scrollbar-thumb { background: rgba(148, 87, 255, .55); border-radius: 999px; }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: .8px solid var(--card-line-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: var(--ink-muted);
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.modal__close:hover { color: #fff; border-color: var(--violet-a); transform: rotate(90deg); }

.modal__eyebrow {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #c39dff;
}
.modal__title {
  margin-top: 12px;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: var(--ink-pink);
}
.modal__sub {
  margin-top: 14px;
  font-size: .85rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-muted);
}
.modal__sub b { color: var(--ink-pink); font-weight: 700; }

.countries {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.country {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: .8px solid var(--card-line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.country:hover {
  border-color: var(--violet-a);
  background: linear-gradient(127deg, rgba(148, 87, 255, .22), rgba(82, 0, 226, .22));
  transform: translateX(4px);
}
.country__code {
  display: grid;
  place-items: center;
  width: 46px;
  height: 32px;
  border: .8px solid var(--card-line-soft);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: .66rem;
  color: var(--ink-pink);
}
.country__name { display: block; font-size: .93rem; font-weight: 600; }
.country__note { display: block; margin-top: 3px; font-size: .72rem; font-weight: 300; color: var(--ink-faint); }
.country__arrow { color: var(--ink-faint); transition: color .25s var(--ease), transform .25s var(--ease); }
.country:hover .country__arrow { color: #fff; transform: translateX(3px); }

.modal__note {
  margin-top: 22px;
  font-size: .78rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
}
.modal__note a { color: #c39dff; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------
   9.5 Отзыв крупным планом
   ------------------------------------------------------------ */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: clamp(16px, 3vw, 40px);
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(2, 1, 6, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  min-width: 0;
}
.lightbox__img {
  max-width: min(1100px, 100%);
  max-height: calc(100dvh - clamp(110px, 14vw, 170px));
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 100px -40px rgba(148, 87, 255, .8);
}
.lightbox__counter {
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

.lightbox__nav,
.lightbox__close {
  flex: none;
  display: grid;
  place-items: center;
  border: .8px solid var(--card-line-soft);
  border-radius: 50%;
  background: rgba(9, 9, 20, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__nav { width: clamp(44px, 4vw, 58px); height: clamp(44px, 4vw, 58px); }
.lightbox__nav:hover,
.lightbox__close:hover { background: var(--gradient-btn); border-color: transparent; }

.lightbox__close {
  position: absolute;
  top: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 2.4vw, 28px);
  width: 44px;
  height: 44px;
  z-index: 2;
}

@media (max-width: 620px) {
  /*  На телефоне стрелки по бокам съедают картинку — уводим их вниз. */
  .lightbox[open] { flex-direction: column; justify-content: center; }
  .lightbox__nav { order: 2; }
  .lightbox__figure { order: 1; }
  .lightbox__img { max-height: calc(100dvh - 190px); }
}

body.is-locked { overflow: hidden; }

/* ------------------------------------------------------------
   10. Адаптив
   ------------------------------------------------------------ */
@media (max-width: 1000px) {
  /*  Первый экран выстраивается в одну колонку, и порядок нужен свой:
      заголовок → фото → слоган → кнопка → плашка. Кнопка лежит внутри
      .hero__copy, слоган — внутри .hero__claim, то есть в разных обёртках.
      display: contents растворяет обёртки, их содержимое становится
      прямыми детьми .hero__inner — и только тогда order управляет всем
      экраном целиком, а не каждым блоком по отдельности. */
  .hero__inner {
    display: grid;
    justify-items: center;
    text-align: center;
  }
  .hero__grid,
  .hero__copy,
  .hero__claim { display: contents; }

  .hero__topbar { order: 0; width: 100%; }

  .hero__eyebrow {
    order: 1;
    margin-top: clamp(28px, 4vw, 56px);
  }
  .hero__title { order: 2; }

  .hero__author {
    order: 3;
    display: grid;
    justify-items: center;
    width: min(520px, 92%);
    margin-top: clamp(10px, 2vw, 20px);
  }
  .hero__photo { width: 100%; margin-left: 0; }

  .hero__claim-title { order: 4; margin-top: clamp(20px, 4vw, 40px); }
  .hero__claim-sub   { order: 5; }
  .hero__cta         { order: 6; margin-top: clamp(20px, 3.4vw, 32px); }
}

@media (max-width: 760px) {
  .hero { background-position: center top; }

  .hero__topbar {
    padding-top: 22px;
    gap: 10px;
  }
  .hero__start {
    padding: 7px 12px 7px 10px;
    font-size: .72rem;
  }
  .hero__start-label { display: none; }   /* на узком экране хватает даты */

}

@media (max-width: 620px) {
  .br-mobile { display: inline; }

  .week__head {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num icon"
      "title title";
    gap: 14px;
  }
  .week__num   { grid-area: num;   width: 50px; height: 50px; }
  .week__icon  { grid-area: icon;  justify-self: end; }
  .week__title { grid-area: title; }

  .cta__photo { opacity: .35; left: -30%; }
  .btn { padding: 17px 30px; }
}

.br-mobile { display: none; }

/* ------------------------------------------------------------
   Доступность и печать
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .tabs, .modal, .hero__glow, .cta__photo, .cta__glow { display: none !important; }
  body, .hero, .section, .cta { background: #fff !important; color: #000 !important; }
  .week > .lessons { display: block !important; }
}

/* ------------------------------------------------------------
   11. Окно сбора контактов — первый шаг перед выбором оплаты
   ------------------------------------------------------------ */
.lead { margin-top: 22px; }

.lead__field { display: block; margin-bottom: 14px; }
.lead__label {
  display: block;
  margin-bottom: 6px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.lead__optional {
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  opacity: .7;
}
.lead__input {
  width: 100%;
  padding: 14px 16px;
  border: .8px solid var(--card-line);
  border-radius: 14px;
  background: rgba(9, 9, 20, .55);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.lead__input::placeholder { color: rgba(250, 224, 255, .32); }
.lead__input:focus {
  outline: none;
  border-color: rgba(148, 87, 255, .9);
  background: rgba(9, 9, 20, .8);
}

/*  Ошибка появляется под своим полем и не двигает соседние:
    пустой элемент не занимает места. */
.lead__error {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
  line-height: 1.4;
  color: #ff8ba0;
}
.lead__error:empty { display: none; }

/*  Поле-ловушка для роботов: убрано из потока и недоступно с клавиатуры. */
.lead__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lead__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 18px;
  font-size: .78rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-muted);
  cursor: pointer;
}
.lead__consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #9457ff;
  cursor: pointer;
}
.lead__consent a { color: var(--ink-pink); text-decoration: underline; text-underline-offset: 2px; }

.lead__submit {
  width: 100%;
  margin-top: 20px;
}
.lead__submit[disabled] { opacity: .6; cursor: default; }

.lead__note {
  margin-top: 12px;
  min-height: 1.2em;
  font-size: .8rem;
  text-align: center;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------
   12. Страница политики конфиденциальности
   ------------------------------------------------------------ */
/*  Шапка без портрета и заголовка курса — только логотип и дата. */
.hero--slim { padding-bottom: 0; min-height: 0; }
.hero--slim .hero__inner { padding-bottom: clamp(20px, 3vw, 36px); }

.container--narrow { max-width: 860px; }

.legal__head { margin-bottom: clamp(28px, 4vw, 44px); text-align: center; }

.legal__title {
  margin: clamp(26px, 3.4vw, 40px) 0 12px;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  text-transform: none;
  color: var(--ink-pink);
}
.legal__title:first-child { margin-top: 0; }

.legal__text {
  margin-bottom: 12px;
  font-size: clamp(.9rem, 1.15vw, 1rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
}
.legal__text a { color: var(--ink-pink); text-decoration: underline; text-underline-offset: 2px; }

.legal__list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.legal__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: clamp(.9rem, 1.15vw, 1rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-pink);
  opacity: .7;
}

.legal__back { margin-top: clamp(32px, 4vw, 52px); text-align: center; }
