/* =========================================================
   Наталья Архипова — практические программы
   Многостраничный статический сайт без сборщиков.
   ========================================================= */

:root {
  --ink: #05070d;
  --ink-soft: #0b0f1d;
  --ink-card: rgba(16, 21, 33, 0.84);
  --paper: #f5efe5;
  --muted: rgba(245, 239, 229, 0.68);
  --muted-2: rgba(245, 239, 229, 0.45);
  --gold: #d9bb7d;
  --gold-light: #f1dbac;
  --aqua: #72ded8;
  --coral: #ee9a77;
  --line: rgba(245, 239, 229, 0.13);
  --line-gold: rgba(217, 187, 125, 0.34);
  --shadow: 0 32px 90px -48px rgba(0, 0, 0, 0.95);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --narrow: 900px;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: rgba(114, 222, 216, 0.3);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  left: 14px;
  top: -100px;
  padding: 10px 16px;
  background: var(--aqua);
  color: #071415;
  font-weight: 700;
}

.skip-link:focus {
  top: 14px;
}

/* ---------- Background ---------- */
.sky {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(70% 65% at 75% 0%, rgba(30, 58, 76, 0.22), transparent 68%),
    radial-gradient(55% 55% at 8% 50%, rgba(120, 70, 55, 0.08), transparent 70%),
    linear-gradient(180deg, #0c111d 0%, var(--ink) 52%, #040508 100%);
}

.sky::before,
.sky::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.sky::before {
  width: 560px;
  height: 560px;
  top: -260px;
  left: -170px;
  background: rgba(217, 187, 125, 0.15);
  animation: cloudDrift 28s var(--ease) infinite alternate;
}

.sky::after {
  width: 650px;
  height: 650px;
  right: -260px;
  bottom: -300px;
  background: rgba(64, 144, 154, 0.17);
  animation: cloudDrift 36s var(--ease) infinite alternate-reverse;
}

.sky__grain {
  display: none;
}

@keyframes cloudDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(35px, -28px, 0) scale(1.1);
  }
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.container--narrow {
  max-width: var(--narrow);
}

.section {
  position: relative;
  padding-block: clamp(78px, 10vw, 144px);
}

.section--soft {
  border-block: 1px solid rgba(245, 239, 229, 0.07);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.025), transparent);
}

.section-heading {
  max-width: 760px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before,
.page-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--aqua);
  box-shadow: 0 0 12px rgba(114, 222, 216, 0.8);
}

.section-title,
.page-title {
  margin: 0;
  max-width: 18ch;
  hyphens: manual;
  font-family: var(--display);
  font-size: clamp(2.35rem, 5vw, 4.65rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.99;
}

.section-title em,
.page-title em,
.hero-title em {
  color: var(--gold-light);
  font-style: italic;
}

.section-lead,
.page-lead {
  max-width: 64ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading--center .section-title,
.section-heading--center .section-lead {
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), padding 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(8, 10, 16, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--aqua);
}

.brand__name {
  display: block;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
}

.brand__caption {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--aqua);
  transition: right 0.35s var(--ease);
}

.site-nav a:hover {
  color: var(--paper);
}

.site-nav a:hover::after {
  right: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 16px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  content: "";
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle.is-open span {
  opacity: 0;
}

.nav-toggle.is-open::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.is-open::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--small {
  min-height: 40px;
  padding: 10px 17px;
  font-size: 0.76rem;
}

.btn--large {
  min-height: 56px;
  padding: 16px 30px;
  font-size: 0.9rem;
}

.btn--gold {
  color: #171207;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 58%, #a97d3f);
  box-shadow: 0 18px 38px -23px rgba(217, 187, 125, 0.95);
}

.btn--gold:hover {
  box-shadow: 0 24px 48px -22px rgba(217, 187, 125, 1);
}

.btn--aqua {
  color: #061516;
  background: linear-gradient(135deg, #b8f5ed, var(--aqua));
  box-shadow: 0 18px 38px -24px rgba(114, 222, 216, 0.85);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(255,255,255,0.025);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--line-gold);
  background: rgba(217,187,125,0.08);
}

.btn__arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-weight: 700;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.text-link:hover {
  gap: 13px;
  color: var(--aqua);
}

/* ---------- Home hero ---------- */
.home-hero {
  position: relative;
  min-height: min(800px, calc(100vh - 78px));
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 130px) clamp(74px, 10vw, 140px);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(30px, 6vw, 98px);
}

.hero-title {
  max-width: 10ch;
  margin: 0;
  hyphens: manual;
  font-family: var(--display);
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.hero-lead {
  max-width: 56ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 25px;
  margin: 42px 0 0;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.78rem;
}

.hero-facts strong {
  margin-right: 5px;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 0;
}

/* Орбитальная композиция — фирменный знак, оставлена и улучшена. */
.orbit-stage {
  position: relative;
  display: grid;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin-inline: auto;
  place-items: center;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}

.orbit-stage::before {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,187,125,0.12), transparent 66%);
  filter: blur(14px);
  content: "";
}

.orbit-stage::after {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  border: 1px solid rgba(217,187,125,0.05);
  pointer-events: none;
  content: "";
}

.orbit-stage__svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit-ring {
  fill: none;
  stroke: url(#ringGlow);
}

.orbit-ring--solid {
  stroke-width: 1.2;
  stroke-opacity: 0.62;
}

.orbit-ring--dotted {
  stroke-width: 1;
  stroke-dasharray: 1 9;
  stroke-opacity: 0.55;
}

.orbit-ring--thin {
  stroke-width: 0.8;
  stroke-opacity: 0.38;
}

.orbit-track {
  transform-origin: 210px 210px;
}

.orbit-track--one {
  animation: orbitSpinOne 32s linear infinite;
}

.orbit-track--two {
  animation: orbitSpinTwo 56s linear infinite reverse;
}

.orbit-track--three {
  animation: orbitSpinThree 80s linear infinite;
}

.orbit-core {
  transform-origin: 210px 210px;
  animation: coreBreathe 5.5s ease-in-out infinite;
}

.orbit-core-halo {
  animation: haloPulse 5.5s ease-in-out infinite;
}

.orbit-labels text {
  fill: rgba(241, 219, 172, 0.94);
  font-family: var(--body);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  paint-order: stroke fill;
  stroke: rgba(5, 7, 13, 0.9);
  stroke-width: 4.5px;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.45));
}

.orbit-core-label {
  fill: var(--gold-light);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.orbit-core-sub {
  fill: rgba(245, 239, 229, 0.58);
  font-family: var(--body);
  font-size: 7px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@keyframes orbitSpinOne {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitSpinTwo {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitSpinThree {
  to {
    transform: rotate(360deg);
  }
}

@keyframes coreBreathe {
  0%,
  100% {
    opacity: 0.92;
    transform: scale(1);
  }

  50% {
    opacity: 0.66;
    transform: scale(1.34);
  }
}

@keyframes haloPulse {
  0%,
  100% {
    opacity: 0.26;
  }

  50% {
    opacity: 0.54;
  }
}

@keyframes labelFade {
  0%,
  100% {
    opacity: 0.23;
  }

  40% {
    opacity: 0.95;
  }
}

.orbit-caption {
  position: absolute;
  right: 1%;
  bottom: 4%;
  z-index: 2;
  max-width: 178px;
  padding: 12px 15px 12px 14px;
  border: 1px solid rgba(114, 222, 216, 0.28);
  border-left: 2px solid var(--aqua);
  border-radius: 10px;
  background: rgba(8, 10, 16, 0.74);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.75);
}

/* ---------- Course cards ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 52px;
}

/* Карточка курса: обложка сверху, текст под ней.
   Так заголовок и кнопка никогда не ложатся на лицо с фотографии. */
.course-card {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-card);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-gold);
  box-shadow: 0 42px 100px -48px rgba(217,187,125,0.35);
}

.course-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 95% at 30% 15%, rgba(114, 222, 216, 0.08), transparent 55%),
    linear-gradient(160deg, #0e1424 0%, #080b14 100%);
}

/* Для тёмных обложек (новый дизайн) нужен лишь лёгкий виньетте-эффект, а не тёмный multiply. */
.course-card__media::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(90% 70% at 50% 30%, transparent 60%, rgba(5,7,13,0.32) 100%);
  opacity: 0.55;
  content: "";
  pointer-events: none;
}

.course-card__media::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,10,16,0) 55%, rgba(8,10,16,0.35) 84%, rgba(8,10,16,0.72) 100%);
  content: "";
  pointer-events: none;
}

.course-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transition: transform 0.8s var(--ease);
}

.course-card:hover .course-card__image {
  transform: scale(1.04);
}

.course-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(24px, 3vw, 36px);
}

.course-card__tag,
.course-page__badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(114,222,216,0.35);
  border-radius: 999px;
  background: rgba(8,10,16,0.48);
  color: var(--aqua);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.course-card__title {
  max-width: 12ch;
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 0.98;
}

.course-card__text {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 27px;
}

.course-card__soon {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Feature strips ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 44px;
}

.feature {
  min-height: 210px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.feature:hover {
  transform: translateY(-5px);
  border-color: var(--line-gold);
  background: rgba(217,187,125,0.06);
}

.feature__number {
  color: var(--aqua);
  font-family: var(--display);
  font-size: 1.5rem;
}

.feature__title {
  margin: 18px 0 8px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
}

.feature__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- About ---------- */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.about-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 25% 20%, rgba(114,222,216,0.12), transparent 36%),
    linear-gradient(145deg, rgba(217,187,125,0.10), rgba(255,255,255,0.022));
  align-self: start;
  position: sticky;
  top: 96px;
}

.about-card::after {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(114,222,216,0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(114,222,216,0.028), 0 0 0 52px rgba(114,222,216,0.018);
  content: "";
}

.about-card__initial {
  position: relative;
  z-index: 1;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: clamp(5rem, 13vw, 10rem);
  line-height: 0.75;
}

.about-card__note {
  position: relative;
  z-index: 1;
  max-width: 22ch;
  margin: 30px 0 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.about-card__meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.about-card__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.about-card__meta li::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 10px rgba(114,222,216,0.6);
  content: "";
}

.about-copy p {
  max-width: 62ch;
  color: var(--muted);
}

.about-copy .section-title {
  max-width: 18ch;
}

.about-features,
.about-background {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
}

.about-features h3,
.about-background h3 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-features ul,
.about-background ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.about-features li::marker,
.about-background li::marker {
  color: var(--aqua);
}

.about-features li strong,
.about-background li strong {
  color: var(--paper);
  font-weight: 600;
}

.about-background p {
  margin: 0 0 12px;
}

.about-mission {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 2px solid var(--aqua);
  background: rgba(114,222,216,0.06);
  color: var(--paper) !important;
  font-size: 0.92rem;
}

/* ---------- Contact / CTA ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: clamp(27px, 5vw, 50px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(115deg, rgba(217,187,125,0.12), rgba(114,222,216,0.05) 70%, transparent);
}

.contact-panel__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 300;
}

.contact-panel__text {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
}

/* ---------- Course page ---------- */
.course-hero {
  position: relative;
  padding-block: clamp(58px, 8vw, 112px) clamp(70px, 10vw, 130px);
}

.course-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: clamp(35px, 7vw, 110px);
}

.course-page__badge {
  margin-bottom: 24px;
  border-color: var(--line-gold);
  color: var(--gold-light);
}

.course-hero .page-title {
  max-width: 11ch;
  font-size: clamp(3rem, 6.8vw, 6rem);
}

.course-hero .page-lead {
  max-width: 58ch;
}

.course-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cover-frame {
  position: relative;
  max-width: 430px;
  margin-inline: auto;
  transform: rotate(2.2deg);
  filter: drop-shadow(0 30px 35px rgba(0,0,0,0.55));
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.cover-frame:hover {
  transform: rotate(0) translateY(-8px);
  filter: drop-shadow(0 42px 46px rgba(0,0,0,0.65));
}

.cover-frame::before {
  position: absolute;
  z-index: -1;
  inset: 13px -13px -13px 13px;
  border: 1px solid var(--aqua);
  content: "";
  opacity: 0.45;
}

.cover-frame img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #0c1220;
}

/* Тёмная подложка для белых обложек на страницах курсов — белый превращается в глубокий navy. */
.cover-frame::after {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: #0c1220;
  mix-blend-mode: multiply;
  opacity: 0;
  content: "";
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.cover-frame:hover::after {
  opacity: 0.12;
}

.course-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 45px;
}

.course-stat {
  padding: 17px 18px;
  border-top: 1px solid var(--line-gold);
  color: var(--muted);
  font-size: 0.78rem;
}

.course-stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}

.modules {
  margin-top: 55px;
}

.module-list {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.module {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
}

.module::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(var(--aqua), var(--gold));
  content: "";
}

.module__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.module__number {
  color: var(--aqua);
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1;
}

.module__title {
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.module__intro {
  max-width: 74ch;
  margin: 23px 0 0;
  color: var(--muted);
}

.module__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.module h3 {
  margin: 0 0 11px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module ul {
  display: grid;
  gap: 11px;
  padding-left: 20px;
  list-style: disc;
  color: var(--muted);
  font-size: 0.92rem;
}

.module li::marker {
  color: var(--aqua);
}

.module li strong {
  color: var(--paper);
  font-weight: 700;
}

.module__tools {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.module__tools li {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,0.12);
}

.module__tools li::before {
  margin-right: 8px;
  color: var(--aqua);
  content: "✦";
}

.module__result {
  margin: 28px 0 0;
  padding: 17px 19px;
  border-left: 1px solid var(--gold);
  background: rgba(217,187,125,0.07);
  color: var(--paper);
}

.application-panel {
  margin-top: 58px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  text-align: center;
  background: radial-gradient(100% 100% at 50% 0%, rgba(217,187,125,0.13), transparent 70%);
}

.application-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
}

.application-panel p {
  max-width: 62ch;
  margin: 15px auto 25px;
  color: var(--muted);
}

.application-panel small {
  display: block;
  max-width: 60ch;
  margin: 18px auto 0;
  color: var(--muted-2);
  font-size: 0.74rem;
}

/* ---------- Coming soon page ---------- */
.coming-soon {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  margin-top: 38px;
}

.coming-soon__card {
  padding: clamp(27px, 5vw, 50px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(217,187,125,0.12), rgba(255,255,255,0.025));
}

.coming-soon__symbol {
  color: var(--aqua);
  font-family: var(--display);
  font-size: 5rem;
  line-height: 0.7;
}

.coming-soon__title {
  margin: 29px 0 12px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1;
}

.coming-soon__text {
  margin: 0;
  color: var(--muted);
}

.coming-soon__list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.coming-soon__list li {
  display: flex;
  gap: 12px;
  color: var(--muted);
}

.coming-soon__list li::before {
  color: var(--aqua);
  content: "↗";
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.waitlist-form input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: rgba(0,0,0,0.18);
  color: var(--paper);
}

.waitlist-form input::placeholder {
  color: var(--muted-2);
}

.waitlist-form input:focus {
  border-color: var(--aqua);
}

.form-note {
  min-height: 24px;
  margin: 13px 0 0;
  color: var(--aqua);
  font-size: 0.82rem;
}

/* ---------- Reveal ---------- */
/*
  Скрываем блоки только если JS действительно работает (html.js).
  Без JS или при сбое main.js контент остаётся видимым —
  страница не может остаться пустой.
*/
.reveal {
  opacity: 1;
}

.js .reveal {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 48px 38px;
  border-top: 1px solid var(--line);
  background: rgba(4,5,9,0.65);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 30px;
}

.site-footer__title {
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.55rem;
}

.site-footer__text {
  max-width: 35ch;
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.site-footer__heading {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer__links {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer__links a:hover {
  color: var(--aqua);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.72rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header__inner {
    position: relative;
  }

  .site-nav.is-open {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px 18px 18px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: rgba(8,10,16,0.96);
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open a:last-child {
    border-bottom: 0;
  }

  .site-nav.is-open a::after {
    display: none;
  }

  .home-hero__grid,
  .course-hero__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__copy,
  .course-hero__copy {
    max-width: 760px;
  }

  .orbit-stage {
    max-width: 520px;
    margin-top: 15px;
  }

  .about-layout,
  .coming-soon {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .site-header__inner {
    min-height: 70px;
  }

  .brand__name {
    font-size: 1.15rem;
  }

  .site-header__inner > .btn {
    display: none;
  }

  /* Скрытая кнопка «Перейти к содержанию» не должна вылезать поверх шапки */
  .skip-link {
    top: auto;
    right: auto;
    bottom: -100px;
    left: 14px;
  }

  .skip-link:focus {
    top: auto;
    bottom: 14px;
  }

  .home-hero {
    padding-top: 54px;
  }

  .hero-title {
    font-size: clamp(3.05rem, 15vw, 5rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-facts {
    gap: 13px 18px;
  }

  /* На телефоне подпись уходит под круги, чтобы не закрывать их */
  .orbit-stage {
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    aspect-ratio: auto;
  }

  .orbit-stage__svg {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .orbit-caption {
    position: static;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 14px;
    border-left: 1px solid var(--aqua);
    background: transparent;
    font-size: 0.7rem;
    text-align: center;
    backdrop-filter: none;
  }

  /* Заголовок курса на узких экранах: длинное слово должно влезать целиком */
  .course-hero .page-title {
    max-width: 100%;
    font-size: clamp(2.4rem, 10.4vw, 3.6rem);
  }

  /* Рамка-подложка обложки не должна выходить за край экрана */
  .cover-frame::before {
    inset: 9px -9px -9px 9px;
  }

  .course-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .course-card__media {
    aspect-ratio: 4 / 3;
  }

  .course-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel .btn {
    justify-self: start;
  }

  .course-stats {
    grid-template-columns: 1fr;
  }

  .course-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .course-stat strong {
    margin: 0;
  }

  .module__head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .module__columns {
    grid-template-columns: 1fr;
  }

  .module__number {
    font-size: 1.7rem;
  }

  .waitlist-form {
    display: grid;
  }

  .waitlist-form .btn,
  .waitlist-form input {
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer__bottom {
    display: grid;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sky::before,
  .sky::after,
  .reveal {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  /* Круги оставляем: они медленные и являются частью фирменного знака. */
  .orbit-track--one {
    animation-duration: 64s;
  }

  .orbit-track--two {
    animation-duration: 112s;
  }

  .orbit-track--three {
    animation-duration: 160s;
  }

  .orbit-core,
  .orbit-core-halo {
    animation-duration: 11s;
  }

  .orbit-labels text {
    animation-duration: 14s;
  }
}