/* ==========================================================================
   Лендинг акции ко Дню знаний · Школа фигурного катания Алексея Моторина
   Дизайн-система: палитра и типографика по брендбуку школы
   (фиолетово-синий градиент, мятный акцент, заглавные заголовки, воздух)
   ========================================================================== */

/* ---------- Шрифт (self-hosted, без внешних запросов) ---------- */
@font-face {
  font-family: 'Golos Text';
  src: url('../fonts/golos-cyrillic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  src: url('../fonts/golos-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2192, U+2212, U+2215;
}

/* ---------- Токены ---------- */
:root {
  --violet-900: #2b1667;
  --violet-700: #4226a6;
  --blue-600:   #2f57d8;
  --blue-500:   #3f7ae8;
  --cyan-400:   #27b8c4;

  --mint-100: #e6fbef;
  --mint-300: #a9f2c9;
  --mint-500: #6ee7a8;
  --mint-700: #1f8f5f;
  --mint-ink: #06331f;

  --amber-400: #f6a723;
  --amber-100: #fdf0d8;

  --ink:        #10121c;
  --ink-2:      #3d4256;
  --ink-3:      #8a8fa3;
  --muted:      #6b7086;
  --line:       #e6e8f0;
  --paper:      #f4f5f8;
  --white:      #ffffff;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --shadow-card: 0 2px 4px rgba(16, 18, 28, .04), 0 12px 32px rgba(16, 18, 28, .06);
  --shadow-lift: 0 4px 8px rgba(16, 18, 28, .06), 0 24px 48px rgba(16, 18, 28, .12);
  --shadow-mint: 0 8px 24px rgba(31, 143, 95, .28);

  --gradient-dark: linear-gradient(135deg, #2b1667 0%, #3a2296 32%, #2f57d8 66%, #27b8c4 100%);
  --gradient-mint: linear-gradient(135deg, #a9f2c9 0%, #6ee7a8 100%);

  --container: 1180px;
  --gap: clamp(16px, 2.2vw, 28px);
  --section-y: clamp(56px, 7vw, 112px);

  --header-h: 88px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: 'ss01';
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Раскладка ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }

.section__head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--mint-700);
  font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow--onDark { background: rgba(255, 255, 255, .14); color: #eafff4; backdrop-filter: blur(6px); }
.eyebrow--amber { background: var(--amber-100); color: #8a5a00; }

h1, .h1 { font-size: clamp(26px, 4vw, 46px); text-transform: uppercase; }
h2, .h2 { font-size: clamp(26px, 3.8vw, 44px); text-transform: uppercase; }
h3, .h3 { font-size: clamp(19px, 2.1vw, 24px); }

.lead {
  margin-top: 18px;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--ink-2);
  max-width: 60ch;
}
.lead--onDark { color: rgba(255, 255, 255, .84); }
.section__head--center .lead { margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--gradient-mint);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px;
  padding: 14px 30px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--mint-ink);
  font-size: 16px; font-weight: 700; letter-spacing: .01em;
  text-decoration: none; text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-mint);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31, 143, 95, .34); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--ink-3); background: var(--white); box-shadow: var(--shadow-card); }

.btn--ghostLight {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn--ghostLight:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .6); }

.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .5; pointer-events: none; }

.link-text {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-600);
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 87, 216, .3);
  padding-bottom: 1px;
}
.link-text:hover { border-bottom-color: var(--blue-600); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease, backdrop-filter .2s ease;
}
/* Пока первый экран не прокручен — шапка прозрачная, логотип белый:
   знак школы стоит прямо в верхнем левом углу первого экрана. */
.header:not(.header--scrolled) .logo__text b { color: #fff; }
.header:not(.header--scrolled) .logo__text span { color: rgba(255, 255, 255, .72); }
.header:not(.header--scrolled) .header__nav a { color: rgba(255, 255, 255, .82); }
.header:not(.header--scrolled) .header__nav a:hover { color: #fff; }

.header--scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.header__nav { display: flex; align-items: center; gap: 26px; }
.header__nav a { font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.header__nav a:hover { color: var(--ink); }
.header .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 64px; height: 64px; flex: 0 0 auto; }
.logo__text { display: grid; }
.logo__text b { font-size: 15px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.logo__text span { font-size: 12px; color: var(--muted); line-height: 1.2; }
.logo--onDark .logo__text b { color: #fff; }
.logo--onDark .logo__text span { color: rgba(255, 255, 255, .7); }

@media (max-width: 900px) {
  .header__nav { display: none; }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-dark);
  color: #fff;
  padding-block: calc(var(--header-h) + clamp(28px, 4vw, 72px)) clamp(56px, 7vw, 104px);
}
.hero::after {
  content: '';
  position: absolute; inset: auto -10% -60% -10%;
  height: 60%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(110, 231, 168, .22), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero__title { margin-top: 20px; color: #fff; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 15px; color: rgba(255, 255, 255, .78);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { flex: 0 0 auto; }

.hero__title .hero__line { display: block; }
@media (min-width: 901px) { .hero__title .hero__line { white-space: nowrap; } }

.hero__visual { position: relative; }
.hero__photo {
  position: relative; margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(5, 8, 30, .45);
  isolation: isolate;
}
.hero__photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 35%;
}
.hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(43, 22, 103, .18) 0%, rgba(43, 22, 103, 0) 42%, rgba(11, 16, 48, .55) 100%);
}
.hero__photo figcaption {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(10, 12, 30, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 13.5px; font-weight: 600;
}
.hero__photo figcaption::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-500); box-shadow: 0 0 0 4px rgba(110, 231, 168, .28);
}
.hero__visual .placeholder { border-radius: var(--radius-lg); box-shadow: 0 32px 80px rgba(5, 8, 30, .45); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* на мобильных сначала предложение, потом визуал — первый экран не перегружаем */
  .hero__visual { max-width: 520px; margin-top: 8px; }
  .hero__visual .placeholder, .hero__visual img { aspect-ratio: 16 / 11; object-fit: cover; }
  .hero__cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  :root { --header-h: 72px; }
  .logo__text span { display: none; }
  .logo__mark { width: 48px; height: 48px; }
  .header .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
}

/* ---------- Осенний декор: листья ---------- */
.leaves {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.leaf {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--leaf-rot, 0deg));
  transform-origin: center;
  filter: drop-shadow(0 6px 12px rgba(60, 26, 8, .18));
  animation: leaf-float 9s ease-in-out infinite;
  animation-delay: var(--leaf-delay, 0s);
  will-change: transform;
}
@keyframes leaf-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--leaf-rot, 0deg)); }
  50%      { transform: translate(-50%, calc(-50% - 10px)) rotate(calc(var(--leaf-rot, 0deg) + 6deg)); }
}
/* содержимое секций всегда выше листьев */
.hero__grid, .section > .container, .wheel-block__grid, .final > *, .footer > .container { position: relative; z-index: 1; }

@media (max-width: 640px) {
  /* на мобильных оставляем только крупные листья по краям */
  .leaf { display: none; }
  .leaves .leaf:nth-child(1), .leaves .leaf:nth-child(3) { display: block; }
}

/* ---------- Механика (шаги + таймер) ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: var(--shadow-card);
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 12px;
  background: var(--mint-100); color: var(--mint-700);
  font-weight: 800; font-size: 17px;
}
.step h3 { text-transform: uppercase; font-size: 17px; letter-spacing: .01em; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

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

/* ---------- Таймер ---------- */
.countdown { display: grid; justify-items: center; gap: 14px; text-align: center; }
.countdown__label {
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.countdown--onDark .countdown__label { color: rgba(255, 255, 255, .72); }
.countdown__row { display: flex; gap: clamp(8px, 1.4vw, 16px); }
.countdown__cell {
  min-width: clamp(66px, 8vw, 104px);
  padding: clamp(12px, 1.6vw, 20px) 10px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: grid; gap: 4px;
}
.countdown--onDark .countdown__cell {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.countdown__value {
  font-size: clamp(28px, 4.4vw, 48px); font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown--onDark .countdown__value { color: #fff; }
.countdown__unit {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.countdown--onDark .countdown__unit { color: rgba(255, 255, 255, .66); }
.countdown__over { font-size: 17px; font-weight: 700; }

.mechanics__timer {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid; justify-items: center; gap: 24px;
}

/* ---------- Пакеты ---------- */
.packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr; } }

.pack {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 34px);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pack:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pack--featured { border-color: rgba(110, 231, 168, .9); box-shadow: 0 0 0 3px rgba(110, 231, 168, .22), var(--shadow-card); }

.pack__top { display: flex; gap: clamp(16px, 2vw, 26px); align-items: flex-start; }
.pack__body { flex: 1 1 auto; min-width: 0; }
.pack__art {
  display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
/* Высота фиксирована, ширина по пропорции — карточка не растягивается,
   а тень ложится по контуру коробки, а не по краям картинки. */
.pack__mockup {
  height: clamp(150px, 17vw, 210px);
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(16, 18, 28, .28));
  transition: transform .25s ease;
}
.pack:hover .pack__mockup { transform: translateY(-4px) rotate(-1.5deg); }
.pack__art .placeholder { border-radius: var(--radius-md); }

.pack__tag {
  display: inline-block; margin-bottom: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--paper); color: var(--ink-2);
  font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.pack__name { text-transform: uppercase; font-size: clamp(21px, 2.4vw, 27px); }
.pack__lead { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }

.pack__seats {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--amber-100); color: #8a5a00;
  font-size: 13.5px; font-weight: 700;
}
.pack__seats::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber-400); }

.pack__list { margin-top: 20px; display: grid; gap: 11px; }
.pack__list li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--ink-2); }
.pack__list li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='%231f8f5f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Скидка над картинкой набора. Намеренно НЕ похожа на кнопку:
   без заливки и тени, только пунктирная рамка и крупная цифра. */
.pack__savings {
  align-self: flex-end;
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 16px;
  border: 2px dashed var(--amber-400);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #8a5a00;
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.01em;
  white-space: nowrap;
}

.pack__prices {
  margin-top: auto; padding-top: 22px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px;
}
.pack__priceOld { font-size: 16px; color: var(--ink-3); text-decoration: line-through; }
.pack__price { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.pack__benefit { font-size: 14px; color: var(--muted); }
.pack__benefit b { color: var(--mint-700); font-weight: 700; }

.pack__actions { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.pack__actions .btn { padding-inline: 18px; font-size: 15px; }
.pack__more { margin-top: 16px; }
@media (max-width: 560px) {
  .pack__top { flex-direction: column; }
  .pack__art { flex: none; width: auto; }
}

.note-card {
  margin-top: var(--gap);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, #eef1fb, #e9fbf2);
  border: 1px solid var(--line);
}
.note-card h3 { font-size: 18px; text-transform: uppercase; }
.note-card p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- Блок менеджера ---------- */
.manager__side { display: grid; gap: 16px; justify-items: stretch; }

/* Фото менеджера с репликой — как в примере заказчика: снимок слева,
   короткая фраза справа, кнопка под ними. */
.manager__person { display: flex; align-items: center; gap: 16px; }
.manager__photo {
  width: 104px; height: 104px; flex: 0 0 auto;
  border-radius: 20px; object-fit: cover;
  border: 3px solid var(--mint-300);
  box-shadow: var(--shadow-card);
  background: var(--paper);
}
/* только фото над кнопкой, без подписи */
.manager__person--photoOnly { justify-content: center; }
.manager__person--photoOnly .manager__photo { width: 128px; height: 128px; border-radius: 24px; }
.manager__bubble {
  position: relative;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; gap: 6px;
}
.manager__bubble::before {
  content: ''; position: absolute; left: -7px; top: 28px;
  width: 12px; height: 12px; transform: rotate(45deg);
  background: var(--paper);
  border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.manager__quote { font-size: 15px; color: var(--ink-2); }
.manager__who { font-size: 13.5px; font-weight: 700; color: var(--mint-700); }
.manager__note { font-size: 14px; color: var(--muted); }

@media (max-width: 560px) {
  .manager__person { flex-direction: column; align-items: flex-start; }
  .manager__bubble::before { left: 24px; top: -7px; transform: rotate(135deg); }
}

.manager {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 48px);
  box-shadow: var(--shadow-card);
}
@media (max-width: 860px) { .manager { grid-template-columns: 1fr; } }

/* ---------- Форма ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit; font-size: 16px;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(63, 122, 232, .14);
}
.field--error input { border-color: #d94848; }
.field__error { font-size: 13px; color: #d94848; min-height: 0; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--mint-700); }
.consent a { color: var(--blue-600); }

.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__status { font-size: 14.5px; min-height: 20px; }
.form__status--ok { color: var(--mint-700); font-weight: 600; }
.form__status--err { color: #d94848; font-weight: 600; }

/* ---------- Колесо на лендинге ---------- */
.wheel-block {
  position: relative; overflow: hidden;
  background: var(--gradient-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 56px);
}
.wheel-block__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 4vw, 56px); align-items: center;
}
@media (max-width: 900px) {
  .wheel-block__grid { grid-template-columns: 1fr; }
  .wheel-block__art { order: -1; justify-self: center; max-width: 340px; }
}

.gift-list { position: relative; z-index: 1; margin-top: clamp(28px, 3.4vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .gift-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gift-list { grid-template-columns: 1fr; } }

.gift {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
}
/* мокап подарка: скриншот в рамке «экрана» с лёгким наклоном */
.gift__shot {
  flex: 0 0 118px; width: 118px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .35);
  background: #0b1030;
  box-shadow: 0 10px 22px rgba(5, 8, 30, .38);
  transform: rotate(-2.5deg);
  transition: transform .25s ease;
}
.gift:hover .gift__shot { transform: rotate(0deg) scale(1.04); }
.gift__shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0%; }
.gift__text { min-width: 0; }
.gift__text b { display: block; font-size: 15px; }
.gift__text span { display: block; margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .74); }

.wheel-lock {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 14px; color: rgba(255, 255, 255, .88);
}

.wheel-art { position: relative; display: grid; place-items: center; }
.wheel-art--locked .wheel-art__disc { filter: grayscale(.55) brightness(.85); }
.wheel-art__badge {
  position: absolute; inset: auto auto 50% 50%; transform: translate(-50%, 50%);
  display: grid; place-items: center; gap: 6px;
  width: 128px; height: 128px; border-radius: 50%;
  background: rgba(10, 12, 30, .72);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  text-align: center; font-size: 12.5px; line-height: 1.25; color: rgba(255, 255, 255, .9);
  padding: 12px;
}

/* ---------- Отзывы ---------- */
.reviews { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reviews__track { display: flex; gap: var(--gap); width: max-content; animation: reviews-scroll 90s linear infinite; }
.reviews:hover .reviews__track, .reviews:focus-within .reviews__track { animation-play-state: paused; }
@keyframes reviews-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.review {
  width: clamp(268px, 30vw, 360px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow: var(--shadow-card);
  display: grid; gap: 14px; align-content: start;
}
.review__stars { color: var(--amber-400); font-size: 15px; letter-spacing: 2px; }
.review__text { color: var(--ink-2); font-size: 15.5px; }
.review__author { font-size: 14px; font-weight: 700; color: var(--ink); }

/* ---------- Видеоуроки ---------- */
.lessons-head { display: grid; gap: clamp(24px, 3vw, 40px); justify-items: center; text-align: center; }
.lessons { margin-top: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 980px) { .lessons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .lessons { grid-template-columns: 1fr; } }

.lesson {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: left;
  padding: 0;
  cursor: default;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lesson--live { cursor: pointer; }
.lesson--live:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.lesson__cover { position: relative; aspect-ratio: 4 / 3; background: var(--gradient-dark); overflow: hidden; }
.lesson__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lesson__cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(43, 22, 103, .78), rgba(47, 87, 216, .55) 55%, rgba(39, 184, 196, .45));
}
/* лёгкая смена оттенка от карточки к карточке, чтобы сетка не была монотонной */
.lesson:nth-child(2) .lesson__cover { background: linear-gradient(150deg, #3a2296, #2f57d8 60%, #27b8c4); }
.lesson:nth-child(3) .lesson__cover { background: linear-gradient(120deg, #2b1667, #4226a6 55%, #3f7ae8); }
.lesson:nth-child(4) .lesson__cover { background: linear-gradient(165deg, #2f57d8, #27b8c4); }
.lesson:nth-child(5) .lesson__cover { background: linear-gradient(140deg, #4226a6, #2f57d8 70%, #35c8d8); }
.lesson:nth-child(6) .lesson__cover { background: linear-gradient(155deg, #2b1667, #2f57d8); }
/* название прыжка поверх обложки */
.lesson__jump {
  position: absolute; inset: auto 16px 14px 16px; z-index: 2;
  color: #fff; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.05;
  text-shadow: 0 4px 18px rgba(5, 8, 30, .5);
}
.lesson__cover svg { width: 100%; height: 100%; object-fit: cover; }
/* «Скоро» приглушаем, но фирменный цвет оставляем; завершённые — серые */
.lesson--soon .lesson__cover { filter: saturate(.55) brightness(.86); }
.lesson--done .lesson__cover { filter: grayscale(.85) brightness(.6); }

.lesson__play {
  z-index: 2;
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--gradient-mint);
  display: grid; place-items: center;
  box-shadow: var(--shadow-mint);
}
.lesson__state {
  z-index: 2;
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(10, 12, 30, .72);
  color: #fff; font-size: 12.5px; font-weight: 700;
  backdrop-filter: blur(6px);
}
.lesson--live .lesson__state { background: var(--mint-500); color: var(--mint-ink); }
.lesson__date { z-index: 2; position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 12.5px; font-weight: 700; }
.lesson__info { padding: 18px 20px 22px; display: grid; gap: 8px; }
.lesson__title { font-size: 17px; text-transform: uppercase; letter-spacing: .01em; }
.lesson__note { font-size: 14px; color: var(--muted); }

.lessons__after {
  margin-top: clamp(28px, 3.4vw, 44px);
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  text-align: center;
}
.lessons__after p { color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px clamp(18px, 2.4vw, 26px);
  background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 16.5px; font-weight: 700;
}
.faq__icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--mint-100);
  display: grid; place-items: center;
  transition: transform .22s ease, background-color .22s ease;
}
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; width: 14px; height: 2.2px; border-radius: 2px; background: var(--mint-700);
  transition: transform .22s ease;
}
.faq__icon { position: relative; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after, .faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 clamp(18px, 2.4vw, 26px) 22px; color: var(--ink-2); font-size: 16px; max-width: 74ch; }

/* ---------- Финальный блок ---------- */
.final {
  position: relative; overflow: hidden;
  background: var(--gradient-dark); color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4.6vw, 64px);
  display: grid; justify-items: center; gap: clamp(24px, 3vw, 36px); text-align: center;
}
.final__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 520px) { .final__cta { width: 100%; } .final__cta .btn { width: 100%; } }

/* ---------- Подвал ---------- */
.footer { background: #0e1020; color: rgba(255, 255, 255, .72); padding-block: clamp(40px, 5vw, 64px) 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 14px; font-weight: 700; }
.footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__links { display: grid; gap: 10px; font-size: 15px; }
.footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__socials a {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.footer__bottom {
  margin-top: clamp(28px, 3.4vw, 44px); padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 13.5px; color: rgba(255, 255, 255, .5);
}

/* ---------- Модальные окна ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(8, 10, 24, .72);
  backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; }
/* внутри чужой страницы шапку и подвал даёт сам сайт */
body.embed-noHeader .header { display: none; }
body.embed-noHeader .hero { padding-block-start: clamp(28px, 4vw, 72px); }
body.embed-noFooter .footer { display: none; }

/* внутри чужой страницы (блок Tilda) окно центрируем по видимой области */
body.is-embedded .modal { position: absolute; top: var(--vp-top, 0px); height: var(--vp-height, 100vh); }
/* Внутри блока Tilda единицы vh считаются от высоты ВСЕЙ страницы акции
   (это одна длинная рамка без своей прокрутки), поэтому окно нельзя
   ограничивать через vh: форма уезжала вниз за пределы экрана, а крестик —
   вверх под адресную строку. Ограничиваем по реальной видимой области,
   которую присылает страница-родитель. */
body.is-embedded .modal__dialog { max-height: calc(var(--vp-height, 100vh) - 24px); }
.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 92vh; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.2vw, 40px);
  box-shadow: var(--shadow-lift);
  animation: modal-in .22s ease;
}
.modal__dialog--wide { width: min(920px, 100%); padding: clamp(16px, 2vw, 24px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* Крестик прилипает к верху окна: длинная форма заказа прокручивается
   внутри окна, и при обычном absolute кнопка уезжала вверх за край —
   закрыть окно становилось нечем. Отрицательный отступ снизу оставляет
   заголовок на прежнем месте: кнопка не занимает своей строки. */
.modal__close {
  position: sticky; top: 4px; z-index: 3;
  margin-left: auto; margin-bottom: -42px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper); border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 20px; line-height: 1; color: var(--ink-2);
  box-shadow: 0 2px 10px rgba(16, 18, 28, .12);
}
.modal__close:hover { background: var(--line); }
.modal__title { font-size: clamp(20px, 2.4vw, 26px); text-transform: uppercase; padding-right: 44px; }
.modal__lead { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.modal__form { margin-top: 22px; }

/* контейнер под форму заказа GetCourse */
.checkout-frame {
  margin-top: 18px;
  min-height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
/* высоту iframe выставляет сам виджет GetCourse — своей не навязываем */
.checkout-frame iframe { width: 100%; border: 0; display: block; }
.checkout-frame:empty::after,
.checkout-host.is-active.is-loading::after {
  content: 'Загружаем форму заказа…';
  display: grid; place-items: center; height: 320px;
  color: var(--muted); font-size: 15px;
}

/* Формы собираются заранее и остаются в DOM: показываем только нужную.
   Спрятанные формы не убираем в display:none, а кладём поверх друг друга —
   так они держат правильную ширину и не пересчитывают вёрстку при показе. */
.checkout-frame { position: relative; }
.checkout-host {
  position: absolute; left: 0; right: 0; top: 0;
  visibility: hidden; pointer-events: none;
}
.checkout-host.is-active { position: static; visibility: visible; pointer-events: auto; }

/* Прогрев: окно раскладывается по-настоящему, чтобы форма внутри iframe
   получила верную ширину, но остаётся невидимым и не перехватывает клики. */
.modal.is-warming { display: flex; visibility: hidden; pointer-events: none; }
.modal.is-warming .modal__dialog { animation: none; }
/* внутри блока Tilda высота страницы уходит наружу: прогреваемое окно не должно
   попадать в поток и растягивать блок, поэтому фиксируем его по экрану */
body.is-embedded .modal.is-warming { position: fixed; top: 0; height: 100vh; }

.checkout-fallback { display: grid; gap: 14px; justify-items: center; padding: 24px; text-align: center; }
.checkout-fallback p { color: var(--ink-2); font-size: 15px; }

.video-frame {
  aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius-md); overflow: hidden;
  background: #05060f;
  display: grid; place-items: center;
}
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; }

/* своя кнопка «На весь экран» — крупная, попасть пальцем проще, чем в значок плеера */
.video-full {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink-2);
  font: inherit; font-size: 15px; cursor: pointer;
}
.video-full:hover { background: var(--line); }
.video-full::before {
  content: ''; width: 15px; height: 15px; flex: 0 0 auto;
  border: 2px solid currentColor; border-radius: 3px;
  clip-path: polygon(0 0, 42% 0, 42% 12%, 12% 12%, 12% 42%, 0 42%, 0 100%, 100% 100%, 100% 0);
}

/* развёрнутая рамка занимает экран целиком, пропорции больше не держим */
.video-frame:fullscreen,
.video-frame:-webkit-full-screen {
  aspect-ratio: auto; width: 100%; height: 100%;
  border-radius: 0; background: #000;
}
.video-empty { color: rgba(255, 255, 255, .78); text-align: center; padding: 32px; font-size: 15px; }

/* ---------- Плейсхолдеры изображений ---------- */
.placeholder {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #3a2296, #2f57d8 55%, #27b8c4);
  color: rgba(255, 255, 255, .9);
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.placeholder::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(40% 40% at 76% 18%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(50% 50% at 18% 82%, rgba(110, 231, 168, .3), transparent 70%);
}
.placeholder__text { position: relative; z-index: 2; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.placeholder--square { aspect-ratio: 1; border-radius: var(--radius-md); }
.placeholder--wide { aspect-ratio: 16 / 10; }

/* ---------- Служебные ---------- */
.stack-sm { display: grid; gap: 10px; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.nowrap { white-space: nowrap; }

/* Страницы в один экран (акция завершена / спасибо / колесо) */
.page-simple {
  min-height: 100svh;
  background: var(--gradient-dark);
  color: #fff;
  display: grid; align-content: center; justify-items: center;
  padding: clamp(84px, 12vh, 132px) clamp(16px, 4vw, 32px) clamp(32px, 6vh, 56px);
  text-align: center;
  position: relative; overflow: hidden;
}
.page-simple__card {
  position: relative; z-index: 2;
  width: min(880px, 100%);
  display: grid; justify-items: center; gap: clamp(14px, 1.8vh, 22px);
}
.page-simple h1 { font-size: clamp(24px, 3.4vw, 40px); }
.page-simple .lead { margin-top: 0; }

/* логотип в верхнем левом углу экрана */
.page-topbar .container { text-align: left; }
.page-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  height: var(--header-h);
  display: flex; align-items: center;
}

/* крупная строка-итог («Акция завершена») */
.page-statement {
  font-size: clamp(22px, 3vw, 34px); font-weight: 800; line-height: 1.1;
  text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--mint-300);
}

/* соцсети */
.socials { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.socials a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 15.5px; font-weight: 700; text-decoration: none;
  transition: background-color .18s ease, transform .18s ease, border-color .18s ease;
}
.socials a:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .6); transform: translateY(-2px); }
.socials svg { flex: 0 0 auto; }

.bonus-grid {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(14px, 2vw, 22px);
  width: 100%; align-items: stretch;
}
@media (max-width: 780px) { .bonus-grid { grid-template-columns: 1fr; } }
.bonus-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-md);
  padding: clamp(14px, 1.8vh, 20px);
  backdrop-filter: blur(8px);
  display: grid; gap: 12px; justify-items: center; align-content: start;
}
.bonus-card__badge {
  display: inline-flex; padding: 6px 14px; border-radius: 999px;
  background: var(--gradient-mint); color: var(--mint-ink);
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.bonus-card__shot {
  width: 100%; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 14px 30px rgba(5, 8, 30, .35);
  background: #fff;
}
.bonus-card__shot img { width: 100%; display: block; }
.bonus-card p { font-size: 14px; color: rgba(255, 255, 255, .8); }
.bonus-card--wheel { align-content: center; }
.bonus-card--wheel img { max-width: min(300px, 96%); }
@media (max-width: 780px) {
  /* на мобильных страница «Спасибо» тоже должна оставаться компактной */
  .bonus-card__shot img { max-height: 46vh; object-fit: cover; object-position: 50% 0; }
  .bonus-card--wheel img { max-width: min(220px, 70%); }
}

/* Колесо фортуны (canvas) */
.wheel-stage { position: relative; display: grid; justify-items: center; gap: 24px; width: 100%; }
.wheel-canvas-wrap { position: relative; width: min(440px, 86vw); aspect-ratio: 1; }
.wheel-canvas-wrap canvas { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 24px 60px rgba(5, 8, 30, .5); }
.wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 3;
  border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-top: 28px solid var(--mint-500);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
}
.wheel-hub {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 22%; height: 22%; border-radius: 50%;
  background: rgba(10, 12, 30, .9); border: 2px solid rgba(255, 255, 255, .25);
  display: grid; place-items: center; text-align: center;
  font-size: 12px; font-weight: 700; color: #fff; padding: 8px;
}
.wheel-result {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-md); padding: 22px; display: none; gap: 10px; justify-items: center;
}
.wheel-result.is-visible { display: grid; }
.wheel-tries { font-size: 15px; color: rgba(255, 255, 255, .82); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reviews__track { animation: none; }
}
