/*
 * Лендинг курса «Нераскрытый потенциал».
 * Мобилка — база (макет 390px), десктоп — с 768px (макет 1280–1440px, контейнер 1240px).
 * Значения десктопа заданы через clamp() как в макете; мобильные — нижние значения из
 * отдельного мобильного макета.
 */

:root {
  --bg: #0b0a10;
  --bg-deep: #100d19;
  --bg-deep-2: #110e1c;
  --bg-glow: #1c1733;
  --card: #110f19;
  --card-sensor: #0e0c15;
  --ink: #ece6d8;
  --ink-2: #d9d2c4;
  --muted: #b3ab9d;
  --muted-2: #8f887c;
  --acc: #c9a35e;
  --moon: #e9dfc6;
  --moon-dark: #16131f;
  --error: #e07f6e;

  --line-08: rgba(236, 230, 216, 0.08);
  --line-10: rgba(236, 230, 216, 0.1);
  --line-12: rgba(236, 230, 216, 0.12);
  --line-14: rgba(236, 230, 216, 0.14);
  --line-25: rgba(236, 230, 216, 0.25);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --pad-x: 20px;
  --pad-y: 80px;
  --nav-h: 72px;
  --ease: 0.3s;
}

@media (min-width: 768px) {
  :root {
    --pad-x: clamp(20px, 5vw, 64px);
    --pad-y: clamp(96px, 12vw, 168px);
  }
}

/* ─────────────────────────── База ─────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  /* Астролябии шире экрана: обрезаем, а не даём горизонтальную прокрутку. */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--acc);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

::selection {
  background: var(--acc);
  color: var(--bg);
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

em {
  font-style: italic;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.95;
  }
}

/* Зерно поверх всей страницы. SVG-шум тайлится, клики проходят насквозь. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─────────────────────────── Общие элементы ─────────────────────────── */

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.section {
  padding: var(--pad-y) var(--pad-x);
  scroll-margin-top: var(--nav-h);
}

.section--ruled {
  border-top: 1px solid var(--line-10);
}

/* Метка секции: «I · Состав» с ромбом-контуром. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--acc);
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid var(--acc);
  transform: rotate(45deg);
}

.h2 {
  margin: 20px 0 48px;
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h2 em {
  color: var(--acc);
}

/* До модификаторов: их отступы должны перекрывать этот. */
@media (min-width: 768px) {
  .h2 {
    margin-bottom: clamp(48px, 6vw, 80px);
    font-size: clamp(42px, 6vw, 88px);
  }
}

.h2--tight {
  margin-bottom: 0;
}

.h2--flush {
  margin: 0;
}

/* Кнопки-пилюли. Текст моноширинный капсом, как в макете. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: box-shadow var(--ease), transform var(--ease), background var(--ease), color var(--ease),
    opacity var(--ease);
}

.btn--primary {
  background: var(--acc);
  color: var(--bg);
}

.btn--primary:hover {
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--acc) 20%, transparent),
    0 0 56px color-mix(in srgb, var(--acc) 45%, transparent);
}

.btn--ghost {
  border-color: var(--acc);
  background: transparent;
  color: var(--acc);
}

.btn--ghost:hover {
  background: var(--acc);
  color: var(--bg);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.btn--lg {
  padding: 20px 24px;
}

.btn--block {
  display: flex;
  width: 100%;
  padding: 18px 24px;
}

/* Пока email невалиден, кнопки оплаты гаснут, но клики принимают (см. app.js). */
.btn[aria-disabled='true'],
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--ghost[aria-disabled='true']:hover,
.btn--ghost:disabled:hover {
  background: transparent;
  color: var(--acc);
}

.round-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-25);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}

.round-btn:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.cta-row {
  display: flex;
  justify-content: center;
}

/* ─────────────────────────── Навигация и меню ─────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad-x);
  background: rgba(11, 10, 16, 0.74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  flex: none;
  width: 10px;
  height: 10px;
  border: 1px solid var(--acc);
  transform: rotate(45deg);
}

.brand__mark--sm {
  width: 8px;
  height: 8px;
}

.brand__name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav__links {
  display: none;
  gap: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav__links a {
  color: var(--muted);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  display: none;
}

.nav__burger {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 1px solid var(--acc);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav__burger span {
  width: 16px;
  height: 1px;
  background: var(--acc);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 32px;
  overflow-y: auto;
  background: radial-gradient(ellipse 90% 60% at 50% 30%, var(--bg-glow) 0%, var(--bg) 70%);
}

.menu[hidden] {
  display: none;
}

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu__close {
  font-size: 16px;
}

.menu__links {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}

.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-12);
  color: var(--ink);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}

.menu__links a span {
  flex: none;
  width: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--acc);
}

.menu__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
}

.menu__meta {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 768px) {
  .brand__name {
    font-size: 22px;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__burger,
  .menu {
    display: none;
  }
}

@media (min-width: 1000px) {
  .nav__links {
    display: flex;
  }
}

/* ─────────────────────────── Звёзды и астролябия ─────────────────────────── */

.stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Позиция, размер и ритм каждой звезды задаются из app.js. */
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--ink);
  animation: twinkle 5s ease-in-out infinite;
}

.star--acc {
  background: var(--acc);
}

.star--glow {
  box-shadow: 0 0 6px rgba(236, 230, 216, 0.8);
}

.astro {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: var(--astro-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.astro > * {
  position: absolute;
}

.astro--hero {
  --astro-size: 640px;
}

.astro--price {
  --astro-size: 600px;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .astro--hero {
    --astro-size: min(135vw, 1040px);
  }

  .astro--price {
    --astro-size: min(140vw, 900px);
  }
}

.astro__glow {
  inset: 25%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 16%, transparent), transparent);
}

.astro__axis--h {
  top: 50%;
  left: -15%;
  right: -15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 230, 216, 0.13), transparent);
}

.astro__axis--v {
  left: 50%;
  top: -15%;
  bottom: -15%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(236, 230, 216, 0.13), transparent);
}

.astro__ring {
  border-radius: 50%;
}

.astro__ring--outer {
  inset: 0;
  border: 1px solid var(--line-10);
}

.astro__ring--scale {
  inset: 3%;
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
}

.astro__ring--dashed {
  inset: 17%;
  border: 1px dashed rgba(236, 230, 216, 0.16);
  animation: spin 260s linear infinite reverse;
}

.astro__ring--core {
  inset: 30%;
  border: 1px solid color-mix(in srgb, var(--acc) 26%, transparent);
}

/* Риски шкалы: конический градиент, обрезанный маской до тонкого кольца. */
.astro__ticks {
  inset: 3%;
  border-radius: 50%;
  animation: spin 420s linear infinite;
}

.astro__ticks--fine {
  background: repeating-conic-gradient(
    color-mix(in srgb, var(--acc) 55%, transparent) 0deg 0.3deg,
    transparent 0.3deg 2deg
  );
  -webkit-mask-image: radial-gradient(
    closest-side,
    transparent calc(100% - 10px),
    #000 calc(100% - 10px) calc(100% - 1px),
    transparent 100%
  );
  mask-image: radial-gradient(
    closest-side,
    transparent calc(100% - 10px),
    #000 calc(100% - 10px) calc(100% - 1px),
    transparent 100%
  );
}

.astro__ticks--major {
  background: repeating-conic-gradient(var(--acc) 0deg 0.5deg, transparent 0.5deg 30deg);
  -webkit-mask-image: radial-gradient(
    closest-side,
    transparent calc(100% - 26px),
    #000 calc(100% - 26px) calc(100% - 1px),
    transparent 100%
  );
  mask-image: radial-gradient(
    closest-side,
    transparent calc(100% - 26px),
    #000 calc(100% - 26px) calc(100% - 1px),
    transparent 100%
  );
}

.astro__orbit {
  border-radius: 50%;
}

.astro__orbit--outer {
  inset: 0;
  animation: spin 180s linear infinite reverse;
}

.astro__orbit--inner {
  inset: 17%;
  animation: spin 70s linear infinite;
}

.astro__moon,
.astro__planet {
  position: absolute;
  left: 50%;
  border-radius: 50%;
}

.astro__moon {
  top: -2.5px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: var(--ink);
  box-shadow: 0 0 10px 2px rgba(236, 230, 216, 0.6);
}

.astro__planet {
  top: -4.5px;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  background: var(--acc);
  box-shadow: 0 0 18px 5px color-mix(in srgb, var(--acc) 60%, transparent);
}

.astro__squares {
  inset: 35%;
  animation: spin 600s linear infinite;
}

.astro__squares span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(236, 230, 216, 0.09);
}

.astro__squares span + span {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .astro *,
  .star {
    animation-play-state: paused !important;
  }

  .review__body {
    transition: none;
  }
}

/* ─────────────────────────── Hero ─────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 760px;
  background: radial-gradient(
    ellipse 70% 60% at 50% 45%,
    var(--bg-glow) 0%,
    var(--bg-deep-2) 45%,
    var(--bg) 75%
  );
  scroll-margin-top: var(--nav-h);
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 72px var(--pad-x) 56px;
  text-align: center;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--acc);
}

.hero__title {
  font-weight: 300;
  font-size: 62px;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-shadow: 0 0 60px rgba(11, 10, 16, 0.9);
}

.hero__title span,
.hero__title em {
  display: block;
}

.hero__title em {
  color: var(--acc);
}

.facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-12);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 12px;
}

.facts li + li {
  border-left: 1px solid var(--line-12);
}

.facts li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--acc);
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .hero {
    min-height: max(720px, calc(100vh - 70px));
    min-height: max(720px, calc(100svh - 70px));
  }

  .hero__content {
    gap: 36px;
    padding: 96px var(--pad-x) 64px;
  }

  .hero__title {
    font-size: clamp(54px, 11.5vw, 184px);
    line-height: 0.86;
  }

  .facts {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    font-size: 12px;
    line-height: normal;
    letter-spacing: 0.2em;
  }

  .facts li {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 22px var(--pad-x);
  }
}

/* ─────────────────────────── Интро ─────────────────────────── */

.intro {
  padding: var(--pad-y) var(--pad-x);
  text-align: center;
}

.intro__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.intro__mark {
  width: 12px;
  height: 12px;
  border: 1px solid var(--acc);
  transform: rotate(45deg);
}

.intro__quote {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.intro__quote em {
  color: var(--acc);
}

.intro__sub {
  max-width: 640px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .intro__quote {
    font-size: clamp(32px, 4.4vw, 62px);
  }

  .intro__sub {
    font-size: clamp(21px, 2vw, 26px);
  }
}

/* ─────────────────────────── I · Состав ─────────────────────────── */

.about {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 56px;
}

/* Круг: слева «луна» (интуиция), справа сетка (логика), посередине ось. */
.duality {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.duality > * {
  position: absolute;
}

.duality__glow {
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 22%, transparent), transparent);
}

.duality__axis {
  left: 50%;
  top: -28px;
  bottom: -28px;
  width: 1px;
  background: var(--acc);
  opacity: 0.6;
}

.duality__moon {
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 38%, #f6efdd 0%, #dccda8 42%, #8e7c57 100%);
  clip-path: inset(0 50% 0 0);
}

.duality__grid {
  inset: 0;
  border-radius: 50%;
  background-image: linear-gradient(rgba(236, 230, 216, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 230, 216, 0.16) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center;
  clip-path: inset(0 0 0 50%);
}

.duality__rim {
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(236, 230, 216, 0.35);
}

.duality__label {
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.duality__label--left {
  left: 0;
  right: 50%;
  color: #1a1626;
}

.duality__label--right {
  left: 50%;
  right: 0;
  color: var(--ink);
}

.duality__label--right span {
  padding: 4px 6px;
  background: var(--bg);
}

.halves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px 80px;
  align-items: start;
}

.half {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.half__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.half__pct {
  font-size: 64px;
  font-weight: 300;
  line-height: 0.9;
}

.half__pct--accent {
  color: var(--acc);
}

.half__name {
  font-size: 34px;
  font-style: italic;
}

.half__text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .about {
    gap: clamp(64px, 8vw, 104px);
    margin-top: clamp(56px, 8vw, 104px);
  }

  .duality {
    max-width: 380px;
  }

  .half__pct {
    font-size: clamp(64px, 7vw, 104px);
  }

  .half__text {
    font-size: 22px;
  }
}

/* ─────────────────────────── II · Программа ─────────────────────────── */

.section--program {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 50%, var(--bg) 100%);
}

.weeks {
  padding: 0;
  list-style: none;
}

.week {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 0;
  border-top: 1px solid var(--line-14);
}

.week:last-child {
  border-bottom: 1px solid var(--line-14);
}

.week__head {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.week__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acc);
}

.week__title {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.05;
}

.week__text {
  flex: 1 1 100%;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.week--peak .week__title {
  font-style: italic;
  color: var(--acc);
}

.week--peak .week__text {
  color: var(--ink);
}

/* Фазы луны: от новолуния к полнолунию по неделям. */
.moon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  --crescent: 11px;
  --gibbous: 12px;
}

.moon--new {
  border: 1px solid rgba(233, 223, 198, 0.4);
  background: var(--bg);
}

.moon--crescent {
  background: var(--moon-dark);
  box-shadow: inset calc(var(--crescent) * -1) 0 0 0 var(--moon), 0 0 24px rgba(233, 223, 198, 0.12);
}

.moon--half {
  background: linear-gradient(90deg, var(--moon-dark) 50%, var(--moon) 50%);
  box-shadow: 0 0 28px rgba(233, 223, 198, 0.16);
}

.moon--gibbous {
  background: var(--moon);
  box-shadow: inset var(--gibbous) 0 0 0 var(--moon-dark), 0 0 32px rgba(233, 223, 198, 0.2);
}

.moon--full {
  background: radial-gradient(circle at 38% 34%, #fcf7ea 0%, #e6dab9 55%, #bdab82 100%);
  box-shadow: 0 0 48px 6px color-mix(in srgb, var(--acc) 45%, transparent);
}

@media (min-width: 768px) {
  .week {
    gap: 28px 64px;
    padding: 44px 0;
  }

  .week__head {
    flex: 0 0 340px;
    max-width: 100%;
    gap: 28px;
  }

  .week__title {
    font-size: 34px;
  }

  .week__text {
    flex: 1 1 420px;
    max-width: 720px;
    font-size: 22px;
  }

  .moon {
    width: 72px;
    height: 72px;
    --crescent: 14px;
    --gibbous: 16px;
  }
}

/* ─────────────────────────── III · Участники ─────────────────────────── */

.who {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

.who-card {
  padding: 24px;
  border: 1px solid var(--line-14);
  border-radius: 4px;
}

.who-card--intuit {
  background: linear-gradient(160deg, #16122a 0%, var(--card-sensor) 70%);
}

.who-card--sensor {
  background: var(--card-sensor);
}

.who-card__head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.who-card__title {
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.who-card--intuit .who-card__title em {
  color: var(--acc);
}

/* Интуиты — треугольник-контур, сенсорики — круг-контур. */
.who-card--intuit .who-card__icon {
  position: relative;
  flex: none;
  width: 46px;
  height: 40px;
  background: var(--acc);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.who-card--intuit .who-card__icon::after {
  content: '';
  position: absolute;
  left: 1.8px;
  right: 1.8px;
  top: 3.4px;
  bottom: 1px;
  background: #15112a;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.who-card--sensor .who-card__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.who-card__list {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-2);
}

.who-card__list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line-10);
}

.who-card__list li::before {
  content: '';
  flex: none;
  margin-top: 10px;
}

.who-card--intuit .who-card__list li::before {
  width: 9px;
  height: 8px;
  background: var(--acc);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.who-card--sensor .who-card__list li::before {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.cta-row--who {
  margin-top: 56px;
}

@media (min-width: 768px) {
  .who-card {
    padding: clamp(28px, 4vw, 52px);
  }

  .who-card__title {
    font-size: clamp(34px, 3.6vw, 46px);
  }

  .who-card__list {
    margin-top: 36px;
    font-size: 22px;
  }
}

/* ─────────────────────────── Баннер-подарок ─────────────────────────── */

.gift {
  position: relative;
  overflow: hidden;
  padding: 88px var(--pad-x);
  border-top: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  background: var(--bg-deep);
  text-align: center;
}

.gift__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.gift__ring--outer {
  width: 520px;
  border: 1px solid var(--line-08);
}

.gift__ring--inner {
  width: 340px;
  border: 1px dashed color-mix(in srgb, var(--acc) 30%, transparent);
}

.gift__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.gift__kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.gift__big {
  font-size: 56px;
  font-weight: 300;
  font-style: italic;
  line-height: 0.95;
  color: var(--acc);
}

.gift__text {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}

.gift__text em {
  color: var(--acc);
}

@media (min-width: 768px) {
  .gift {
    padding: clamp(88px, 10vw, 140px) var(--pad-x);
  }

  .gift__ring--outer {
    width: min(110vw, 760px);
  }

  .gift__ring--inner {
    width: min(80vw, 540px);
  }

  .gift__big {
    font-size: clamp(56px, 8vw, 112px);
  }

  .gift__text {
    font-size: clamp(24px, 2.6vw, 34px);
  }
}

/* ─────────────────────────── IV · Формат ─────────────────────────── */

.how {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.how__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--acc);
}

.how__num {
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  color: var(--acc);
}

.how__title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}

.how__text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.cta-row--how {
  margin-top: 48px;
}

@media (min-width: 768px) {
  .how {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .how__num {
    font-size: 56px;
  }

  .how__title {
    font-size: 30px;
  }

  .cta-row--how {
    margin-top: 72px;
  }
}

@media (min-width: 1100px) {
  .how {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ─────────────────────────── V · Ведущие ─────────────────────────── */

.section--teachers {
  border-top: 1px solid var(--line-10);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep-2) 100%);
}

.h2--teachers {
  margin-bottom: 56px;
}

.teachers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}

.teacher {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Фото-арка 4:5 и контур арки со смещением. */
.teacher__photo {
  --arch-offset: -10px;
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
}

.teacher__photo::before {
  content: '';
  position: absolute;
  inset: var(--arch-offset);
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.teacher__photo picture,
.teacher__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.teacher__photo img {
  object-fit: cover;
  clip-path: inset(0 round 999px 999px 0 0);
  background: var(--card);
}

.teacher__type {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acc);
}

.teacher__name {
  margin-top: -12px;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.02;
}

.teacher__bio {
  max-width: 540px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .h2--teachers {
    margin-bottom: clamp(56px, 7vw, 96px);
  }

  .teacher__photo {
    --arch-offset: -14px;
  }

  .teacher__name {
    font-size: clamp(38px, 4vw, 52px);
  }
}

@media (min-width: 900px) {
  .teachers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px 64px;
  }

  /* Вторая карточка смещена вниз — так в макете. */
  .teacher + .teacher {
    padding-top: clamp(0px, 9vw, 140px);
  }
}

/* ─────────────────────────── VI · Темы ─────────────────────────── */

.h2--topics {
  max-width: 960px;
  font-size: 40px;
  line-height: 1.02;
}

.topics {
  padding: 0;
  list-style: none;
  counter-reset: topic;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
}

.topics li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-12);
  break-inside: avoid;
  counter-increment: topic;
}

.topics li::before {
  content: counter(topic, decimal-leading-zero);
  flex: none;
  width: 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--acc);
}

/* На мобилке видны первые 12 тем, остальные — по кнопке. Класс ставит app.js. */
.topics.is-collapsed li:nth-child(n + 13) {
  display: none;
}

.topics__more {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line-25);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}

.topics__more:hover {
  border-color: var(--acc);
  color: var(--acc);
}

.topics__more[hidden] {
  display: none;
}

.topics__end {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}

.topics__finale {
  font-size: 32px;
  font-weight: 300;
  font-style: italic;
}

@media (min-width: 768px) {
  .h2--topics {
    margin-bottom: clamp(48px, 6vw, 80px);
    font-size: clamp(40px, 5.4vw, 80px);
  }

  .topics {
    column-width: 280px;
    column-gap: 56px;
    font-size: 23px;
  }

  .topics.is-collapsed li:nth-child(n + 13) {
    display: flex;
  }

  .topics__more {
    display: none;
  }

  .topics__finale {
    font-size: clamp(32px, 3.6vw, 48px);
  }
}

/* ─────────────────────────── VII · Отзывы ─────────────────────────── */

.section--reviews {
  border-top: 1px solid var(--line-10);
  background: linear-gradient(180deg, var(--bg) 0%, #0f0c17 100%);
}

.reviews__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 20px 0 48px;
}

.reviews__nav {
  display: flex;
  gap: 12px;
}

.reviews {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-2);
}

.reviews::-webkit-scrollbar {
  display: none;
}

.review {
  flex: 0 0 86%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(236, 230, 216, 0.13);
  border-radius: 4px;
  background: var(--card);
  scroll-snap-align: start;
}

.review__mark {
  height: 28px;
  font-size: 72px;
  line-height: 0.5;
  color: var(--acc);
}

/* Тело обрезано до 300px с затуханием; высоту раскрытого задаёт app.js по содержимому. */
.review__body {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  max-height: 300px;
  transition: max-height 0.5s ease;
}

.review__body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(17, 15, 25, 0) 0%, var(--card) 90%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.review.is-open .review__body::after,
.review.is-short .review__body::after {
  opacity: 0;
}

.review__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review__content p {
  text-wrap: pretty;
}

.review__content ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.review__content li {
  display: flex;
  gap: 14px;
}

.review__content li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 11px;
  background: var(--acc);
  transform: rotate(45deg);
}

.review__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line-10);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.review__name {
  color: var(--ink);
}

.review__toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -12px 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--acc);
}

.review__toggle:hover {
  color: var(--ink);
}

.review.is-short .review__toggle {
  visibility: hidden;
}

@media (min-width: 768px) {
  .reviews__head {
    gap: 32px;
    margin-bottom: clamp(48px, 6vw, 72px);
  }

  .reviews__nav .round-btn {
    width: 56px;
    height: 56px;
  }

  .reviews {
    gap: 24px;
    font-size: 19px;
  }

  .review {
    flex-basis: calc((100% - 24px) / 2);
    padding: 36px 32px 28px;
  }
}

@media (min-width: 1100px) {
  .review {
    flex-basis: calc((100% - 48px) / 3);
  }
}

/* ─────────────────────────── VIII · Участие ─────────────────────────── */

.price {
  position: relative;
  overflow: hidden;
  padding: 96px var(--pad-x);
  border-top: 1px solid var(--line-10);
  background: radial-gradient(
    ellipse 70% 70% at 50% 50%,
    var(--bg-glow) 0%,
    var(--bg-deep-2) 45%,
    var(--bg) 75%
  );
  text-align: center;
  scroll-margin-top: var(--nav-h);
}

.price__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.price__amounts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.price__amount {
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.price__amount--accent {
  color: var(--acc);
}

.price__or {
  font-size: 30px;
  font-style: italic;
  color: var(--muted);
}

/* Форма — отдельная колонка с тем же шагом, что у всего блока. */
.pay {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.pay__field {
  width: 100%;
  max-width: 520px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pay__input {
  width: 100%;
  padding: 18px 28px;
  border: 1px solid rgba(236, 230, 216, 0.28);
  border-radius: 999px;
  background: rgba(11, 10, 16, 0.65);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.pay__input::placeholder {
  color: rgba(236, 230, 216, 0.38);
}

.pay__input:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 18%, transparent);
}

.pay__input[aria-invalid='true'] {
  border-color: var(--error);
}

.pay__hint {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.pay__error {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--error);
}

.pay__actions {
  width: 100%;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay__status {
  margin-top: -8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.pay__status[hidden],
.pay__error[hidden] {
  display: none;
}

.price__copy {
  margin-top: 28px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.price__promise {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}

.price__book {
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--acc);
}

.price__meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.price__sep {
  color: var(--acc);
}

@media (min-width: 768px) {
  .price {
    padding: clamp(120px, 14vw, 200px) var(--pad-x);
  }

  .price__amounts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 8px 28px;
    margin-top: 12px;
  }

  .price__amount {
    font-size: clamp(72px, 10vw, 148px);
  }

  .pay__actions {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .btn--lg {
    padding: 20px 36px;
  }

  .price__promise {
    font-size: clamp(24px, 2.4vw, 30px);
  }

  .price__book {
    font-size: clamp(22px, 2.2vw, 28px);
  }
}

/* ─────────────────────────── Подвал ─────────────────────────── */

.footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px var(--pad-x) 36px;
  border-top: 1px solid var(--line-10);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 500;
}

.footer__tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-08);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__links a {
  color: var(--muted);
}

.footer__links a:hover {
  color: var(--ink);
}

.footer__legal {
  max-width: 980px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted-2);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .footer__legal {
    font-size: 16px;
  }
}
