/* ==========================================================================
   «Возраст.Фактор» — «Код здоровья: что реально продлевает молодость»
   Единый файл стилей сайта. Обычный CSS без сборщиков и внешних библиотек —
   страницы можно выложить на любой хостинг (в том числе Beget) как есть.

   Палитра: насыщенный фиолетовый, глубокий индиго, яркий сиреневый,
   мягкий лавандовый, светлый фон для чтения, акценты голубого и
   розово-лилового. Все цвета записаны в hex/rgb — без oklch и color-mix,
   чтобы старые браузеры читали файл без сюрпризов.
   ========================================================================== */

/* ===== 1. ПАЛИТРА И ТОКЕНЫ ===== */
:root {
  /* Глубокие тона */
  --indigo-950: #180a36;
  --indigo-900: #241049;
  --violet-900: #2d1550;
  --violet-800: #3b1a6b;
  --violet-700: #4b2089;
  --violet-600: #6229b8;
  --violet-500: #7b40d6;
  --violet-400: #9c6ce8;
  /* Светлые сиреневые */
  --lilac-400: #a98bf0;
  --lilac-300: #bfa2f5;
  --lilac-200: #d9c8fb;
  --lilac-100: #ece1fe;
  --lav-50: #f7f3ff;
  /* Фон и текст */
  --paper: #ffffff;
  --page: #fcfaff;
  --ink: #241544;
  --ink-soft: #3f2d63;
  --ink-muted: #5f4d80;
  --ink-faint: #8b7aa8;
  /* Акценты */
  --cyan-400: #3fbcf4;
  --cyan-200: #b7e6fb;
  --pink-400: #e879f9;
  --pink-200: #f6d3fb;
  --green-500: #16a34a;
  --green-100: #dcfce7;
  /* Линии и тени */
  --line: rgba(84, 42, 158, 0.14);
  --line-strong: rgba(84, 42, 158, 0.26);
  --shadow-sm: 0 8px 22px rgba(60, 22, 120, 0.08);
  --shadow-md: 0 18px 44px rgba(60, 22, 120, 0.12);
  --shadow-lg: 0 32px 74px rgba(45, 16, 100, 0.18);
  --shadow-cta: 0 16px 34px rgba(110, 45, 200, 0.34);
  /* Градиенты */
  --grad-hero: linear-gradient(
    135deg,
    #241049 0%,
    #3b1a6b 32%,
    #6229b8 64%,
    #9c6ce8 100%
  );
  --grad-violet: linear-gradient(135deg, #4b2089 0%, #7b40d6 54%, #a855f7 100%);
  --grad-cta: linear-gradient(120deg, #6229b8 0%, #8b4ae0 48%, #c084fc 100%);
  --grad-cta-hover: linear-gradient(120deg, #7b40d6 0%, #a55cf0 48%, #d8a1ff 100%);
  --grad-accent: linear-gradient(120deg, #3fbcf4 0%, #9c6ce8 52%, #e879f9 100%);
  --grad-soft: linear-gradient(180deg, #ffffff 0%, #f8f4ff 56%, #f0e7ff 100%);
  --grad-tint: linear-gradient(180deg, #f7f3ff 0%, #ece1fe 100%);
  --grad-glass: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.92),
    rgba(240, 232, 255, 0.72)
  );
  /* Форма и ритм */
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --section-pad: clamp(64px, 8vw, 116px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ===== 2. БАЗА ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Якоря не заезжают под липкую шапку */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  /* Основной текст комфортного размера: 18px на компьютере */
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet-600);
}

strong {
  color: var(--ink);
  font-weight: 700;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 3. ОБЩИЕ БЛОКИ И ЗАГОЛОВКИ ===== */
section {
  position: relative;
  padding: var(--section-pad) 0;
}

/* Заголовки разделов заметно крупнее прежних: 31–53px */
.section-title {
  font-size: clamp(1.95rem, 4.1vw, 3.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--violet-900);
  text-align: center;
  text-wrap: balance;
}

.section-subtitle {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.62;
  color: var(--ink-muted);
  text-align: center;
  text-wrap: pretty;
}

.section-head {
  margin-bottom: clamp(38px, 5vw, 60px);
}

/* Сиреневая полоса под заголовком — узнаваемый элемент бренда */
.section-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 5px;
  margin: 22px auto 0;
  border-radius: 999px;
  background: var(--grad-accent);
}

/* Мягкие световые пятна: создают глубину и «перелив» между блоками */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.blob--cyan {
  background: radial-gradient(circle, rgba(63, 188, 244, 0.55), transparent 70%);
}

.blob--pink {
  background: radial-gradient(circle, rgba(232, 121, 249, 0.45), transparent 70%);
}

.blob--violet {
  background: radial-gradient(circle, rgba(156, 108, 232, 0.55), transparent 70%);
}

/* Плавный переход между соседними секциями */
.flow-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85));
  pointer-events: none;
  z-index: 1;
}

/* ===== 4. КНОПКИ ===== */
.btn,
.hero-cta,
.form-submit,
.bs-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: var(--grad-cta);
  box-shadow: var(--shadow-cta);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    background-color 0.22s ease, border-color 0.22s ease;
}

.btn:hover,
.hero-cta:hover,
.form-submit:hover,
.bs-buy:hover {
  transform: translateY(-3px);
  background: var(--grad-cta-hover);
  box-shadow: 0 24px 46px rgba(110, 45, 200, 0.42);
}

.btn:active,
.hero-cta:active,
.form-submit:active,
.bs-buy:active {
  transform: translateY(-1px);
}

.btn--ghost,
.hero-cta--ghost {
  color: var(--violet-700);
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover,
.hero-cta--ghost:hover {
  color: var(--violet-800);
  background: #fff;
  border-color: var(--violet-400);
  box-shadow: var(--shadow-md);
}

.btn--wide {
  width: 100%;
}

/* ===== 5. ШАПКА ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 10px 0;
  background: rgba(252, 250, 255, 0.78);
  border-bottom: 1px solid rgba(84, 42, 158, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--violet-900);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  background: var(--grad-violet);
  box-shadow: 0 12px 26px rgba(98, 41, 184, 0.32);
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 1.06rem;
  font-weight: 800;
}

.brand__tag {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(98, 41, 184, 0.72);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav__link {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--violet-900);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav__link:hover {
  background: rgba(123, 64, 214, 0.1);
  color: var(--violet-700);
}

.site-header .btn {
  padding: 14px 26px;
  font-size: 0.98rem;
  white-space: nowrap;
}

/* ===== 6. ПЕРВЫЙ ЭКРАН ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 5.4vw, 76px) 0 clamp(56px, 6.5vw, 92px);
  color: #fff;
  background: var(--grad-hero);
  background-size: 180% 180%;
  animation: heroDrift 34s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from {
    background-position: 0% 40%;
  }
  to {
    background-position: 100% 60%;
  }
}

/* Световые ореолы поверх градиента */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 620px;
  height: 620px;
  top: -240px;
  right: -160px;
  background: radial-gradient(circle, rgba(63, 188, 244, 0.4), transparent 66%);
  filter: blur(30px);
}

.hero::after {
  width: 680px;
  height: 680px;
  bottom: -320px;
  left: -200px;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.32), transparent 68%);
  filter: blur(34px);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero__text {
  min-width: 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f1e7ff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-400), var(--pink-400));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
  flex: none;
}

/* Главный заголовок: 34px на телефоне, до 64px на широком экране */
.hero h1 {
  font-size: clamp(2.15rem, 5.1vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 14px 44px rgba(24, 10, 54, 0.35);
}

/* Ключевые слова — коротким градиентным акцентом, не длинным абзацем */
.hero h1 .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cyan-200);
}

.hero__intro {
  margin-top: clamp(20px, 2.6vw, 30px);
  max-width: 620px;
}

.hero__intro p {
  margin-bottom: 14px;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.hero__intro p:last-child {
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(26px, 3.2vw, 38px);
}

.hero .hero-cta--ghost {
  color: var(--violet-900);
  background: rgba(255, 255, 255, 0.94);
  border-color: transparent;
}

.hero .hero-cta--ghost:hover {
  background: #fff;
}

/* Цифры первого экрана */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(22px, 3vw, 30px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-number {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

/* Карточка книги на первом экране */
.hero__book {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.06)
  );
  box-shadow: 0 34px 80px rgba(20, 8, 48, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Обложка вертикальная (1055×1491), поэтому держим её по центру карточки
   без широкой цветной подложки и ограничиваем по высоте — первый экран
   не должен растягиваться на две прокрутки. */
.hero__book-cover {
  position: relative;
  display: flex;
  justify-content: center;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.hero__book-cover img {
  width: auto;
  max-width: 100%;
  max-height: clamp(340px, 44vh, 500px);
  border-radius: 16px;
  box-shadow: 0 30px 64px rgba(16, 6, 38, 0.55);
}

.hero__book-title {
  margin-top: clamp(18px, 2.4vw, 26px);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.018em;
  color: #fff;
}

.hero__book-lead {
  margin-top: 12px;
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.hero__book-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(18px, 2.4vw, 24px);
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__price {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hero__price-value {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero__price-note {
  margin-top: 4px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero__book .btn {
  padding: 16px 30px;
  font-size: 1rem;
  color: var(--violet-900);
  background: linear-gradient(120deg, #ffffff 0%, #f0e5ff 100%);
  box-shadow: 0 18px 38px rgba(18, 7, 44, 0.4);
}

.hero__book .btn:hover {
  background: #fff;
  box-shadow: 0 24px 48px rgba(18, 7, 44, 0.48);
}

.hero__book-note {
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

/* ===== 7. БЕСПЛАТНЫЙ ЧЕК-ЛИСТ ===== */
.lead-magnet-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(54px, 6vw, 84px);
  background: var(--grad-soft);
  margin-top: -1px;
}

.lead-magnet-section .container {
  position: relative;
  z-index: 2;
}

.lead-magnet {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
  padding: clamp(26px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--grad-glass);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lead-magnet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  color: #fff;
  background: var(--grad-violet);
  box-shadow: 0 18px 38px rgba(98, 41, 184, 0.32);
  flex: none;
}

.lead-magnet-icon svg {
  width: 38px;
  height: 38px;
}

.lead-magnet h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--violet-900);
  text-wrap: balance;
}

.lead-magnet p {
  margin-top: 12px;
  font-size: clamp(0.99rem, 1.3vw, 1.08rem);
  line-height: 1.62;
  color: var(--ink-muted);
}

.lead-magnet-cta {
  flex: none;
}

/* ===== 8. ЧТО ВНУТРИ КНИГИ ===== */
.secrets {
  overflow: hidden;
  background: linear-gradient(180deg, #f7f3ff 0%, #ffffff 46%, #f4ecff 100%);
}

.secrets .container {
  position: relative;
  z-index: 2;
}

.secrets .blob--a {
  width: 460px;
  height: 460px;
  top: -60px;
  left: -160px;
}

.secrets .blob--b {
  width: 420px;
  height: 420px;
  bottom: -140px;
  right: -140px;
}

.secrets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.secret-card {
  position: relative;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease,
    border-color 0.26s ease;
}

.secret-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.secret-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 64, 214, 0.34);
  box-shadow: var(--shadow-md);
}

.secret-card:hover::before {
  opacity: 1;
}

.secret-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 18px;
  color: var(--violet-600);
  background: linear-gradient(150deg, #f3ebff, #e4d5fd);
  box-shadow: inset 0 0 0 1px rgba(123, 64, 214, 0.14);
}

.secret-icon svg {
  width: 28px;
  height: 28px;
}

.secret-card h3 {
  font-size: clamp(1.16rem, 1.6vw, 1.34rem);
  font-weight: 800;
  line-height: 1.24;
  color: var(--violet-900);
}

.secret-card p {
  margin-top: 12px;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--ink-muted);
}

/* ===== 9. О КНИГЕ ===== */
.book-section {
  overflow: hidden;
  background: var(--grad-soft);
}

.book-section .container {
  position: relative;
  z-index: 2;
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
}

.book-cover-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.book-cover-card::after {
  content: "";
  position: absolute;
  inset: auto -18px -22px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 188, 244, 0.4), transparent 70%);
  filter: blur(26px);
  z-index: -1;
}

.book-cover-card img {
  width: 100%;
  border-radius: var(--radius-md);
}

.book-details h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--violet-900);
  text-wrap: balance;
}

.book-details p {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  line-height: 1.68;
  color: var(--ink-muted);
}

.book-features {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.book-features li {
  position: relative;
  padding: 14px 18px 14px 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.book-features li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--grad-violet);
}

.book-cta {
  margin-top: 28px;
}

/* ===== 10. ПРЕИМУЩЕСТВА КНИГИ ===== */
.advantages {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f6efff 100%);
}

.advantages .container {
  position: relative;
  z-index: 2;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}

.advantage-card {
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.advantage-card h3 {
  font-size: clamp(1.14rem, 1.6vw, 1.3rem);
  font-weight: 800;
  color: var(--violet-900);
}

.advantage-card p {
  margin-top: 12px;
  font-size: 1.01rem;
  line-height: 1.62;
  color: var(--ink-muted);
}

/* ===== 11. ПОДАРОК (PDF-ПРОГРАММА) ===== */
.gift {
  overflow: hidden;
  padding: var(--section-pad) 0;
  color: #fff;
  background: var(--grad-violet);
}

.gift::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.4), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

.gift__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.gift__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4ecff;
}

.gift h2 {
  margin-top: 20px;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.022em;
  color: #fff;
  text-wrap: balance;
}

.gift p {
  margin-top: 16px;
  max-width: 620px;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.9);
}

.gift__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 60px rgba(20, 8, 48, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.gift__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.gift__card-icon svg {
  width: 32px;
  height: 32px;
}

.gift__card-label {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gift__card-text {
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

/* ===== 12. ОТЗЫВЫ ===== */
.reviews {
  overflow: hidden;
  background: linear-gradient(180deg, #f7f3ff 0%, #ffffff 100%);
}

.reviews .container {
  position: relative;
  z-index: 2;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}

.proof-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.proof-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.proof-card__mark {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 0.6;
  color: var(--lilac-300);
}

.proof-card p {
  font-size: 1.04rem;
  line-height: 1.66;
  color: var(--ink-soft);
}

.proof-card .author {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--violet-700);
}

.reviews-subtitle {
  margin-top: clamp(34px, 4vw, 48px);
  margin-bottom: 20px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--violet-900);
  text-align: center;
}

.reviews-short {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 22px);
  margin-top: clamp(24px, 3vw, 36px);
}

.review-quote {
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--lilac-400);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink-muted);
  box-shadow: var(--shadow-sm);
}

/* ===== 13. ФОРМА ===== */
.form-section {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #ece1fe 100%);
}

.form-section .container {
  position: relative;
  z-index: 2;
}

.form-wrapper {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.form-wrapper h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--violet-900);
  text-align: center;
}

.form-wrapper > p {
  margin-top: 10px;
  margin-bottom: 28px;
  font-size: 1.02rem;
  color: var(--ink-muted);
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.form-group input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #faf8ff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.04rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.form-group input::placeholder {
  color: var(--ink-faint);
}

.form-group input:focus {
  outline: none;
  border-color: var(--violet-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(123, 64, 214, 0.16);
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  font-size: 1.08rem;
}

.form-note {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-faint);
  text-align: center;
}

/* ===== 14. ВОПРОСЫ И ОТВЕТЫ ===== */
.faq {
  background: var(--grad-soft);
}

.faq .container {
  position: relative;
  z-index: 2;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.faq-item.open {
  border-color: rgba(123, 64, 214, 0.4);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 3vw, 30px);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--violet-900);
  cursor: pointer;
  user-select: none;
}

.faq-question::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-violet);
  flex: none;
  transition: transform 0.26s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 clamp(20px, 3vw, 30px) 24px;
  font-size: 1.02rem;
  line-height: 1.66;
  color: var(--ink-muted);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ===== 15. УПРАЖНЕНИЯ ===== */
.exercises-showcase {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f6efff 100%);
}

.exercises-showcase .container {
  position: relative;
  z-index: 2;
}

.exercises-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}

.exercise-gallery-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.exercise-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.exercise-gallery-item--wide {
  grid-column: 1 / -1;
}

/* Схема упражнений показывается целиком: без обрезки по aspect-ratio.
   Правый тёмный край скана уводим за границу карточки масштабированием. */
.exercise-gallery-item img {
  --scan-edge: 0.035;
  display: block;
  /* Схема нарисована в 703 px: не растягиваем её на всю ширину карточки,
     иначе штрих расплывается. */
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  background: #fff;
  transform: scaleX(calc(1 + var(--scan-edge)));
  transform-origin: left center;
}

.exercise-gallery-caption {
  padding: clamp(20px, 2.6vw, 28px);
  margin-top: auto;
}

.exercise-gallery-caption h3 {
  font-size: clamp(1.14rem, 1.7vw, 1.36rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--violet-900);
}

.exercise-gallery-caption p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink-muted);
}

.exercises-cta {
  margin-top: clamp(30px, 4vw, 44px);
  text-align: center;
}

/* ===== 16. ПОДВАЛ ===== */
footer {
  padding: clamp(34px, 4vw, 52px) 0;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-950) 100%);
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.6;
}

footer strong {
  color: #fff;
}

footer p + p {
  margin-top: 8px;
}

/* ===== 17. ЗАГЛУШКА ВМЕСТО ОТСУТСТВУЮЩЕЙ КАРТИНКИ =====
   Если файла обложки нет рядом со страницей, вместо «сломанной» картинки
   показывается аккуратная градиентная плашка. Класс ставит script.js. */
.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
  background: linear-gradient(150deg, #4b2089 0%, #7b40d6 55%, #c084fc 100%);
}

/* ===== 18. ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== 19. УВАЖЕНИЕ К НАСТРОЙКАМ ДОСТУПНОСТИ ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal.is-visible {
    transition: none;
  }

  .btn,
  .hero-cta,
  .form-submit,
  .bs-buy,
  .secret-card,
  .advantage-card,
  .proof-card,
  .exercise-gallery-item,
  .faq-question::after {
    transition: none;
  }

  .secret-card:hover,
  .advantage-card:hover,
  .proof-card:hover,
  .exercise-gallery-item:hover,
  .btn:hover,
  .hero-cta:hover,
  .form-submit:hover,
  .bs-buy:hover {
    transform: none;
  }
}

/* ===== 20. АДАПТИВНОСТЬ ===== */
@media (max-width: 1020px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__book {
    max-width: 520px;
    margin: 0 auto;
  }

  .gift__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .gift__card {
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .book-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .book-cover-card {
    max-width: 460px;
    margin: 0 auto;
  }

  .lead-magnet {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .lead-magnet-icon {
    margin: 0 auto;
  }

  .lead-magnet-cta .btn,
  .lead-magnet-cta .hero-cta {
    width: 100%;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  html {
    scroll-padding-top: 84px;
  }

  .container {
    padding: 0 18px;
  }

  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero-stat {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-stat:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .hero__actions .btn,
  .hero__actions .hero-cta {
    width: 100%;
  }

  .exercises-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand__tag {
    display: none;
  }

  .site-header .btn {
    padding: 12px 18px;
    font-size: 0.92rem;
  }

  .form-wrapper {
    padding: 26px 20px;
  }

  .faq-question {
    padding: 18px 20px;
  }

  .book-features li {
    padding-left: 50px;
  }
}

/* На самых узких экранах в шапке оставляем только действие:
   цена переносилась на вторую строку. */
@media (max-width: 560px) {
  .btn__price {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand__name {
    font-size: 0.98rem;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .section-title::after {
    margin-top: 18px;
  }
}
