/* ============================================================
   Школа астрологии Дмитрия Старкова — редизайн лендинга
   Премиальный минимализм · serif-заголовки · 3 цветовые схемы
   ============================================================ */

:root {
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --radius: 18px;
}

/* ---------- Цветовые схемы ---------- */
body[data-scheme="ivory"] {
  --bg: #f5f2ea;
  --bg-deep: #ece8dd;
  --surface: #fdfbf5;
  --ink: #221e38;
  --ink-soft: #4a4561;
  --muted: #767089;
  --line: rgba(34, 30, 56, 0.14);
  --line-soft: rgba(34, 30, 56, 0.08);
  --accent: #a07b46;
  --accent-soft: rgba(160, 123, 70, 0.12);
  --violet: #7c6da8;
  --btn-bg: #221e38;
  --btn-ink: #f5f2ea;
  --badge-bg: #221e38;
  --badge-ink: #f0ecdf;
  --shadow: 0 24px 60px -28px rgba(34, 30, 56, 0.25);
}

body[data-scheme="midnight"] {
  --bg: #0b0e1c;
  --bg-deep: #080a15;
  --surface: #131831;
  --ink: #ece6d8;
  --ink-soft: #cfc9bd;
  --muted: #9a94ad;
  --line: rgba(236, 230, 216, 0.16);
  --line-soft: rgba(236, 230, 216, 0.08);
  --accent: #c9a96a;
  --accent-soft: rgba(201, 169, 106, 0.12);
  --violet: #9d8fd0;
  --btn-bg: #c9a96a;
  --btn-ink: #0b0e1c;
  --badge-bg: #c9a96a;
  --badge-ink: #0b0e1c;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.65);
}

body[data-scheme="emerald"] {
  --bg: #0f241e;
  --bg-deep: #0a1b16;
  --surface: #163028;
  --ink: #efe9da;
  --ink-soft: #d4cfbf;
  --muted: #93a398;
  --line: rgba(239, 233, 218, 0.16);
  --line-soft: rgba(239, 233, 218, 0.08);
  --accent: #d2ab53;
  --accent-soft: rgba(210, 171, 83, 0.12);
  --violet: #8eb5a2;
  --btn-bg: #d2ab53;
  --btn-ink: #0f241e;
  --badge-bg: #d2ab53;
  --badge-ink: #0f241e;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
}

/* ---------- Шрифт заголовков (tweak) ---------- */
body[data-face="Prata"] { --font-display: "Prata", "Times New Roman", serif; }
body[data-face="Prata"] .hero-title { font-weight: 400; letter-spacing: 0; }

/* ---------- База ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { text-wrap: pretty; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Типографика ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.kicker::before { content: "✦"; font-size: 11px; }

.section-title {
  font-size: clamp(34px, 4.4vw, 52px);
  margin-bottom: 18px;
}
.section-lede {
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 56px;
  font-size: 18px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav {
  display: flex;
  gap: 30px;
}
.site-nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--accent); }
.header-cta { padding: 12px 24px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 120px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 72px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-badge::before { content: "✦"; color: var(--accent); }
body[data-scheme="midnight"] .hero-badge::before,
body[data-scheme="emerald"] .hero-badge::before { color: var(--badge-ink); }

.hero-title {
  font-size: clamp(46px, 6.2vw, 84px);
  letter-spacing: -0.01em;
}
.hero-title .nowrap { white-space: nowrap; }
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-lede {
  margin: 30px 0 0;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
}
.hero-lede strong { color: var(--ink); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 38px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta div { min-width: 120px; }
.hero-meta dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

/* Медальон с логотипом */
.hero-figure {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.orbit-1 { width: 420px; height: 420px; }
.orbit-2 { width: 330px; height: 330px; border-style: dashed; opacity: 0.85; }

/* Вращающиеся «носители» планет — против часовой стрелки */
@keyframes orbit-ccw {
  to { transform: rotate(-360deg); }
}
@keyframes planet-cw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.orbit-carrier {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  animation: orbit-ccw linear infinite;
}
.carrier-a { animation-duration: 38s; }
.carrier-b { animation-duration: 38s; animation-delay: -14s; }
.carrier-c { animation-duration: 24s; animation-delay: -6s; }

.orbit-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.orbit-dot.small { width: 6px; height: 6px; opacity: 0.55; box-shadow: none; }
.orbit-dot.violet { background: var(--violet); box-shadow: 0 0 0 5px color-mix(in oklab, var(--violet) 14%, transparent); }
.orbit-dot.dot-top { top: 0; left: 50%; transform: translate(-50%, -50%); }
.orbit-dot.dot-bottom { top: 100%; left: 50%; transform: translate(-50%, -50%); }
.orbit-dot.dot-left { top: 50%; left: 0; transform: translate(-50%, -50%); }

/* Крупная планета с кольцом */
.planet {
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, color-mix(in oklab, var(--accent) 45%, #ffffff), var(--accent) 72%);
  box-shadow: 0 0 0 6px var(--accent-soft);
  transform: translate(-50%, -50%);
  animation: planet-cw 38s linear infinite;
  animation-delay: -14s;
}
.planet::after {
  content: "";
  position: absolute;
  inset: -7px -12px;
  border: 1.5px solid color-mix(in oklab, var(--accent) 55%, transparent);
  border-radius: 50%;
  transform: rotate(-22deg) scaleY(0.4);
}

@media (prefers-reduced-motion: reduce) {
  .orbit-carrier, .planet { animation: none; }
}
.medallion {
  width: 252px;
  height: 252px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
}

/* ---------- Секции ---------- */
section { padding: 110px 0; }
.section-alt { background: var(--bg-deep); }

/* ---------- Предисловие ---------- */
.intro .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 72px;
  align-items: center;
}
.intro-author {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.intro-author-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}
.intro-author-role { font-size: 14px; color: var(--muted); }
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  width: min(380px, 100%);
  margin: 0 auto;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Программа ---------- */
.module {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 40px;
}
.module:last-of-type { border-bottom: 1px solid var(--line); }
.module-num {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.module-title {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 10px;
}
.module-result {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 0 36px;
}
.module-result strong { color: var(--accent); font-weight: 700; }
.module-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 48px;
}
.module-col h4 {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.study-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.study-list li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  color: var(--ink-soft);
}
.study-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 11px;
  color: var(--accent);
}
/* Компактная двухколоночная версия списка в блоках программы */
.study-list.cols {
  grid-template-columns: repeat(2, 1fr);
  gap: 13px 44px;
  max-width: 880px;
}
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 9px;
}
.steps-list li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
  color: var(--ink-soft);
}
.steps-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  flex: none;
}
.module-materials {
  margin-top: 30px;
  padding: 18px 22px;
  background: var(--accent-soft);
  border-radius: 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 880px;
}
.module-materials strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ---------- Научитесь ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.skill {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 32px 40px;
}
.skill-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.skill p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.skill p strong { color: var(--ink); }

/* ---------- Тарифы ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 36px;
  background: var(--accent);
  color: var(--btn-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
body[data-scheme="ivory"] .plan-flag { color: #fdfbf5; }
.plan-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 6px;
}
.plan-price span { font-size: 22px; color: var(--muted); }
.plan-access {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.plan-fit {
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.plan-fit-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.plan-fit p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.plan-fit p + p { margin-top: 8px; }
.plan-fit-no { color: var(--muted) !important; font-style: italic; }
.plan-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
  flex-grow: 1;
}
.plan-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--ink-soft);
}
.plan-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 10px;
  color: var(--accent);
}
.plan-list li.plan-inherit {
  color: var(--muted);
  font-style: italic;
}
.plan-seats {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.plan-seats.ok { color: var(--violet); }
.plan-seats.low { color: #c25b4e; }
.plan .btn { width: 100%; }
.pricing-note {
  margin: 28px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Поддержка / футер ---------- */
.support-band {
  text-align: center;
  padding: 96px 0;
}
.support-band .section-title { margin-bottom: 14px; }
.support-band p {
  color: var(--ink-soft);
  margin: 0 auto 36px;
  max-width: 560px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 48px;
  background: var(--bg-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.footer-grid a {
  text-decoration: none;
  color: var(--ink-soft);
}
.footer-grid a:hover { color: var(--accent); }
.footer-contact {
  display: grid;
  gap: 8px;
  font-size: 16px;
}
.footer-links { display: grid; gap: 8px; font-size: 14.5px; }
.footer-note {
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Орион ---------- */
body[data-scheme="ivory"] { --orion-bg: #201c35; --orion-ink: #efeadb; --orion-muted: #a9a3be; --orion-line: rgba(239, 234, 219, 0.16); }
body[data-scheme="midnight"] { --orion-bg: #11152a; --orion-ink: #ece6d8; --orion-muted: #9a94ad; --orion-line: rgba(236, 230, 216, 0.16); }
body[data-scheme="emerald"] { --orion-bg: #122a22; --orion-ink: #efe9da; --orion-muted: #93a398; --orion-line: rgba(239, 233, 218, 0.16); }

.orion {
  position: relative;
  overflow: hidden;
  background: var(--orion-bg);
  color: var(--orion-ink);
}
.orion-word {
  position: absolute;
  right: -50px;
  top: -44px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(140px, 22vw, 280px);
  line-height: 1;
  color: var(--orion-ink);
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.orion-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
}
.orion-title {
  font-size: clamp(40px, 5vw, 66px);
  margin-bottom: 22px;
}
.orion-title em { font-style: italic; color: var(--accent); }
.orion-lede {
  color: var(--orion-muted);
  font-size: 18.5px;
  max-width: 560px;
  margin: 0;
}
.orion-lede strong { color: var(--orion-ink); }
.orion-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 28px;
  margin-top: 44px;
  border-top: 1px solid var(--orion-line);
}
.orion-feature { padding-top: 24px; }
.orion-feature h3 {
  font-size: 25px;
  margin: 0 0 8px;
}
.orion-feature p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--orion-muted);
}
.orion-note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 40px;
  font-size: 15.5px;
  color: var(--orion-ink);
}
.orion-note::before { content: "✦"; color: var(--accent); font-size: 13px; }

.orion-visual {
  position: relative;
  padding-bottom: 48px;
}
.orion-chart {
  width: min(440px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--orion-line);
  box-shadow: 0 32px 80px -32px rgba(0, 0, 0, 0.55);
  background: #fff;
  margin-left: auto;
}
.orion-chart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.orion-app {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 230px;
  max-height: 320px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--orion-line);
  box-shadow: 0 28px 64px -24px rgba(0, 0, 0, 0.55);
  background: #fff;
}
.orion-app img { width: 100%; display: block; }

/* ---------- Плавные появления и микро-анимации ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

.btn { position: relative; overflow: hidden; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 44%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.btn-primary:hover::before { left: 135%; }
.btn-ghost:hover { background: var(--accent-soft); }

.plan {
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.plan:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.section-title, .module-title, .orion-title, .hero-title {
  transition: color 0.4s ease;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  /* Hero: сразу укладываем медальон ПОД текст и кнопки (как в мобильной версии),
     без промежуточного варианта, где он уезжал наверх */
  .hero .wrap { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { display: contents; }
  .hero-badge { align-self: flex-start; }
  .hero-lede { margin-top: 24px; }
  .hero-actions { margin-top: 34px; }
  .hero-figure {
    order: 5;
    min-height: 320px;
    margin: 30px 0 22px;
  }
  .hero-meta { order: 6; margin-top: 0; }
  .orion-grid { grid-template-columns: 1fr; gap: 56px; }
  .orion-chart { margin: 0 auto; }
  .orion-app { left: 4%; }
  .orbit-1 { width: 300px; height: 300px; }
  .orbit-2 { width: 234px; height: 234px; }
  .medallion { width: 180px; height: 180px; }
  .intro .wrap { grid-template-columns: 1fr; gap: 48px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .module { grid-template-columns: 1fr; gap: 16px; padding: 48px 0; }
  .module-num { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .kicker { margin-bottom: 14px; }
  .section-title { margin-bottom: 12px; }
  .section-lede { margin-bottom: 36px; font-size: 16.5px; }
  /* Hero: компактнее */
  .hero { padding: 40px 0 60px; }
  .hero .wrap { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { display: contents; }
  .hero-badge { align-self: flex-start; margin-bottom: 18px; }
  .hero-title { font-size: clamp(40px, 11vw, 54px); }
  .hero-lede { margin-top: 16px; font-size: 17px; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-figure {
    order: 5;
    min-height: 216px;
    margin: 22px 0 18px;
  }
  .hero-meta { order: 6; margin-top: 0; padding-top: 22px; gap: 12px 26px; }
  .hero-meta dd { font-size: 19px; }
  .orbit-1 { width: 212px; height: 212px; }
  .orbit-2 { width: 166px; height: 166px; }
  .medallion { width: 124px; height: 124px; }
  .planet { width: 16px; height: 16px; box-shadow: 0 0 0 4px var(--accent-soft); }
  .planet::after { inset: -5px -8px; border-width: 1px; }
  .orbit-dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px var(--accent-soft); }
  .orbit-dot.small { width: 4px; height: 4px; }
  /* Остальные секции компактнее */
  .module { padding: 36px 0; }
  .module-result { margin-bottom: 24px; }
  .skill { padding: 24px 22px 28px; }
  .plan { padding: 30px 26px; }
  .pricing-grid { gap: 20px; }
  .orion-features { margin-top: 30px; }
  .orion-note { margin-top: 28px; }
  .support-band { padding: 64px 0; }
  .orion-features { grid-template-columns: 1fr; gap: 0; }
  .orion-feature { padding: 20px 0; border-bottom: 1px solid var(--orion-line); }
  .orion-app { width: 180px; }
  .wrap { padding: 0 22px; }
  section { padding: 72px 0; }
  .hero { padding: 64px 0 80px; }
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .module-body { grid-template-columns: 1fr; gap: 36px; }
  .study-list.cols { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px 28px; }
  .hero-meta dd { font-size: 20px; }
  .hero-actions .btn { width: 100%; }
}
