/* ===================== TOKENS ===================== */
:root {
  /* Четыре цвета на весь сайт: тёмный фон, светлый фон, текст, акцент.
     Всё остальное ниже — их же оттенки, посчитанные браузером через
     color-mix. Значения над каждым color-mix — запасные, для браузеров,
     которые его не понимают. */
  --navy: #0B1F3D;    /* фон тёмных секций */
  --paper: #F7F4EE;   /* фон светлых секций */
  --ink: #10192B;     /* текст */
  --orange: #FF6B2C;  /* кнопки и акцент */

  /* Оттенки тёмного фона */
  --navy-900: var(--navy);
  --navy-950: #050B16;
  --navy-950: color-mix(in srgb, var(--navy) 62%, #000);
  --navy-850: #0E2648;
  --navy-850: color-mix(in srgb, var(--navy) 92%, #fff);
  --navy-800: #142A4E;
  --navy-800: color-mix(in srgb, var(--navy) 88%, #fff);
  --navy-700: #1E3A66;
  --navy-700: color-mix(in srgb, var(--navy) 78%, #fff);

  /* Оттенки акцента */
  --orange-500: var(--orange);
  --orange-400: #FF8A4C;
  --orange-400: color-mix(in srgb, var(--orange) 85%, #fff);
  --orange-300: #FFB27A;
  --orange-300: color-mix(in srgb, var(--orange) 62%, #fff);
  --orange-100: #FFE7D6;
  --orange-100: color-mix(in srgb, var(--orange) 18%, var(--paper));

  /* Светлый фон и текст */
  --white: #FFFFFF;
  --white: color-mix(in srgb, var(--paper) 30%, #fff);
  --slate: #5C6B85;
  --slate: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --slate-light: #8B97AC;
  --slate-light: color-mix(in srgb, var(--ink) 42%, var(--paper));
  --line: rgba(16, 25, 43, 0.1);
  --line-light: rgba(255, 255, 255, 0.16);

  --font-display: "Alegreya", serif;
  --font-body: "Golos Text", sans-serif;
  --font-brand: "Unbounded", sans-serif;

  --container: 1180px;
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================== RESET ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Атрибут hidden прячет элемент через display: none, но у браузера это
   правило слабее любого нашего display: flex/grid из класса. Скрипты по
   всему сайту рассчитывают на hidden — значит, оно должно побеждать. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; border-radius: 4px; }

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

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== TYPE ===================== */
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}
.section-title--light { color: var(--white); }
.section-title--center { text-align: center; }
.section-lead--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-lead { color: var(--slate); font-size: 1.02rem; max-width: 620px; margin-top: -6px; }
.section-lead--light { color: rgba(255,255,255,0.68); }

/* Появление по скроллу убрано намеренно: страница показывает всё сразу,
   иначе при быстрой прокрутке блоки успевают мелькнуть пустыми. */

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 15px 28px; border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange-500); color: var(--white);
  box-shadow: 0 6px 18px rgba(255, 107, 44, 0.26);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 107, 44, 0.36); background: var(--orange-400); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { color: var(--orange-500); }
.hero .btn--ghost { color: var(--white); }
.hero .btn--ghost:hover { color: var(--orange-300); }
.btn__arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn--ghost:hover .btn__arrow { transform: translateY(3px); }
.btn--outline {
  border: 1.5px solid var(--navy-900); color: var(--navy-900); background: transparent;
}
.btn--outline:hover { background: var(--navy-900); color: var(--white); }
.btn--sm { padding: 10px 20px; font-size: 0.88rem; }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 1; cursor: wait; }
.btn--primary:disabled { background: var(--orange-400); transform: none; }

.linklike {
  color: var(--orange-500); font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}
.linklike:hover { color: var(--orange-400); }

/* ===================== NAV ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 22px 0; transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav.is-scrolled {
  padding: 12px 0; background: rgba(11, 31, 61, 0.85); backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -12px rgba(5, 11, 22, 0.5);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo-mark { width: 38px; height: 38px; flex-shrink: 0; display: block; transition: transform 0.3s var(--ease); }
.nav__logo:hover .nav__logo-mark { transform: rotate(-6deg) scale(1.06); }
.nav__logo-text { font-family: var(--font-brand); font-weight: 600; font-size: 0.82rem; line-height: 1.28; color: var(--white); }
.nav__links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__links a { font-size: 0.92rem; color: rgba(255,255,255,0.78); transition: color 0.25s; position: relative; white-space: nowrap; }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange-500); border-radius: 2px; }
.nav__cta { flex-shrink: 0; }
.nav__cta--light { color: rgba(255,255,255,0.8); border: 1px solid var(--line-light); }
.nav__cta--light:hover { color: var(--white); border-color: var(--orange-500); }
.nav__burger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav__burger span { height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav--solid { position: sticky; background: var(--navy-900); padding: 16px 0; }

/* ===================== HERO ===================== */
.hero {
  position: relative; background: var(--navy-900); color: var(--white);
  padding: 168px 0 120px; overflow: hidden;
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,44,0.35) 0%, rgba(255,107,44,0) 68%);
  top: -420px; right: -280px; pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 60px) scale(1.08); }
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 24px;
}
.hero__sub { font-size: 1.08rem; color: rgba(255,255,255,0.75); max-width: 480px; margin-bottom: 36px; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__note { margin-top: 26px; font-size: 0.9rem; color: rgba(255,255,255,0.55); }
.hero__note b { color: rgba(255,255,255,0.9); font-weight: 600; }

.hero__art { opacity: 0; animation: art-in 0.9s var(--ease) 0.25s forwards; }
.hero__art img { width: 100%; height: auto; }
@keyframes art-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__art img { animation: float 6s ease-in-out 1.2s infinite; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ===================== DIRECTIONS ===================== */
.directions { padding: 110px 0; background: var(--white); }
.dir-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px; margin-top: 46px;
}
.dir-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  text-align: left; padding: 26px 24px 22px; border-radius: 18px;
  background: var(--paper); border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.dir-card:hover {
  transform: translateY(-4px); border-color: var(--orange-500);
  box-shadow: 0 22px 38px -24px rgba(11,31,61,0.4);
}
.dir-card.is-active { border-color: var(--navy-900); background: var(--white); box-shadow: 0 22px 38px -26px rgba(11,31,61,0.4); }
.dir-card__icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 6px;
  background: var(--white); color: var(--orange-500);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -6px rgba(11,31,61,0.3);
}
.dir-card.is-active .dir-card__icon { background: var(--navy-900); color: var(--orange-400); }
.dir-card__icon svg { width: 24px; height: 24px; }
.dir-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1.2; }
.dir-card__lead { font-size: 0.9rem; color: var(--slate); flex-grow: 1; }
.dir-card__meta { font-size: 0.82rem; color: var(--slate-light); margin-top: 8px; }
.dir-card__meta b { color: var(--orange-500); font-weight: 700; }

/* ===================== CATALOG ===================== */
.catalog { padding: 110px 0; background: var(--navy-950); color: var(--white); }
.catalog__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.catalog__head .section-lead { margin-bottom: 4px; }

.search { position: relative; display: block; width: 300px; flex-shrink: 0; }
.search__icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--slate-light); pointer-events: none;
}
.search input {
  width: 100%; padding: 14px 18px 14px 44px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1.5px solid var(--line-light);
  color: var(--white); font-size: 0.94rem;
  transition: border-color 0.25s, background 0.25s;
}
.search input::placeholder { color: var(--slate-light); }
.search input:focus { outline: none; border-color: var(--orange-500); background: rgba(255,255,255,0.1); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0 28px; }
.chip {
  padding: 9px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-light);
  color: rgba(255,255,255,0.75);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.chip:hover { color: var(--white); border-color: rgba(255,255,255,0.35); transform: translateY(-1px); }
.chip.is-active { background: var(--orange-500); border-color: var(--orange-500); color: var(--white); }

.uni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; }
.uni-card {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 18px;
  border-radius: 16px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-light); min-height: 158px;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}
.uni-card:hover { transform: translateY(-3px); border-color: var(--orange-500); background: rgba(255,255,255,0.09); }
.uni-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.uni-card__abbr { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.uni-card__status {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); white-space: nowrap;
}
.uni-card__status--ready { background: rgba(255,107,44,0.18); color: var(--orange-300); }
.uni-card__name { font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.4; }
.uni-card__city { font-size: 0.8rem; color: var(--slate-light); }
.uni-card__foot {
  margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.uni-card__price { font-weight: 700; font-size: 1.05rem; color: var(--orange-400); }
.uni-card--soon .uni-card__price { color: rgba(255,255,255,0.5); font-weight: 600; font-size: 0.92rem; }
.uni-card--owned { border-color: rgba(63,191,107,0.45); }
.uni-card--owned .uni-card__status { background: rgba(63,191,107,0.18); color: #7FE0A0; }
.uni-card--owned .uni-card__price { color: #7FE0A0; }
.uni-card__dur { font-size: 0.78rem; color: var(--slate-light); text-align: right; }
.uni-grid__empty { color: rgba(255,255,255,0.6); padding: 30px 0; }

.catalog__missing {
  margin-top: 34px; padding: 26px 28px; border-radius: 18px;
  background: rgba(255,107,44,0.1); border: 1px solid rgba(255,107,44,0.3);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.catalog__missing h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 4px; }
.catalog__missing p { color: rgba(255,255,255,0.68); font-size: 0.94rem; max-width: 540px; }

/* ===================== HOW IT WORKS ===================== */
.how { padding: 110px 0; background: var(--paper); }
.how .wrap { max-width: 860px; }
.steps { margin-top: 46px; display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 30px 0;
  border-bottom: 1px solid var(--line); align-items: start;
}
.step:last-child { border-bottom: none; }
.step__num { font-weight: 700; font-size: 1.4rem; color: var(--orange-500); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--slate); }

/* ===================== WHAT'S INSIDE ===================== */
.inside { padding: 110px 0; background: var(--white); }
.inside__grid { display: grid; grid-template-columns: 1fr 300px; gap: 44px; margin-top: 44px; align-items: start; }
.inside__list { border-top: 1px solid var(--line); }
.inside__item {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 16px; align-items: baseline;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.inside__item-num { font-weight: 700; color: var(--orange-500); font-size: 0.95rem; }
.inside__item-body b { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.inside__item-body span { font-size: 0.9rem; color: var(--slate); }
.inside__item-min { font-size: 0.84rem; color: var(--slate-light); white-space: nowrap; }

.inside__aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }
.inside__card { background: var(--paper); border-radius: 16px; padding: 22px 24px; }
.inside__card-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 2rem; color: var(--orange-500); line-height: 1.1; margin-bottom: 6px;
}
.inside__card p { font-size: 0.9rem; color: var(--slate); }
.inside__card--muted { background: var(--white); border: 1px dashed var(--line); }
.inside__card--muted b { color: var(--ink); }

/* ===================== STATS ===================== */
.stats { padding: 110px 0; background: var(--navy-900); color: var(--white); text-align: center; }
.stats .section-title { max-width: 640px; margin-left: auto; margin-right: auto; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; max-width: 760px; margin-left: auto; margin-right: auto; }
.stat-tile { padding: 8px 20px; border-left: 1px solid var(--line-light); }
.stat-tile:first-child { border-left: none; }
.stat-tile__num {
  font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--orange-400); display: block; margin-bottom: 14px; letter-spacing: -0.02em;
}
.stat-tile__label { color: rgba(255,255,255,0.68); font-size: 0.94rem; max-width: 280px; margin: 0 auto; }
.stats__footnote { margin-top: 56px; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; max-width: 620px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.92); }

/* ===================== AUTHORS ===================== */
.authors { padding: 110px 0; background: var(--paper); }
.authors__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 46px; align-items: start; }
.author {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
}
.author__media { position: relative; }
.author__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: center 22%; }
.author__chip {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(11,31,61,0.9); color: var(--white); backdrop-filter: blur(6px);
  font-size: 0.76rem; padding: 7px 13px; border-radius: 999px;
}
.author__body { padding: 24px 26px 26px; }
.author__uni { font-size: 0.8rem; color: var(--slate); }
.author__body h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.65rem; margin: 4px 0 16px; }
.author__stats { display: flex; gap: 26px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.author__stats div { display: flex; flex-direction: column; gap: 2px; }
.author__stats b { font-size: 1.45rem; font-weight: 700; color: var(--orange-500); line-height: 1; }
.author__stats span { font-size: 0.8rem; color: var(--slate); }
.author__bio { color: var(--slate); font-size: 0.96rem; margin-bottom: 18px; }
.author__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.docs { margin-bottom: 4px; }
.docs summary {
  cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--orange-500);
  padding: 10px 0; list-style: none;
}
.docs summary::-webkit-details-marker { display: none; }
.docs summary::before { content: '+ '; font-weight: 700; }
.docs[open] summary::before { content: '– '; }
.docs summary:hover { color: var(--orange-400); }
.docs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 6px 0 4px; }

.credential {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 14px 40px 14px 16px; border-radius: 12px;
  background: var(--paper); border: 1px solid transparent;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
/* Стрелка «откроется в новой вкладке» — рисуем из двух линий, а не глифом,
   чтобы она выглядела одинаково во всех шрифтах и системах. */
.credential::after {
  content: ''; position: absolute; top: 15px; right: 15px; width: 13px; height: 13px;
  background: var(--orange-500);
  clip-path: polygon(28% 0, 100% 0, 100% 72%, 82% 72%, 82% 31%, 12% 100%, 0 88%, 70% 18%, 28% 18%);
  transition: transform 0.25s var(--ease);
}
.credential:hover { border-color: var(--orange-500); transform: translateY(-2px); }
.credential:hover::after { transform: translate(2px, -2px); }
.credential__tag { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-500); }
.credential__title { font-weight: 600; font-size: 0.9rem; }
.credential__desc { font-size: 0.79rem; color: var(--slate); }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--slate);
  font-size: 0.88rem; font-weight: 500;
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.social svg { width: 17px; height: 17px; flex-shrink: 0; }
.social:hover { border-color: var(--orange-500); color: var(--orange-500); transform: translateY(-2px); }

.support-note {
  margin-top: 30px; padding: 22px 26px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 16px;
}
.support-note svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--orange-500); margin-top: 2px; }
.support-note p { color: var(--slate); font-size: 0.94rem; }
.support-note a { color: var(--orange-500); text-decoration: underline; text-underline-offset: 2px; }

/* ===================== FAQ ===================== */
.faq { padding: 110px 0; background: var(--white); }
.faq__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.faq__header .section-title { flex: 1; }
.faq__illustration { width: 118px; flex-shrink: 0; }
.accordion { margin-top: 32px; border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 26px 4px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.accordion__icon { color: var(--orange-500); font-size: 1.3rem; transition: transform 0.3s var(--ease); flex-shrink: 0; margin-left: 20px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.accordion__panel p { padding: 0 4px 26px; color: var(--slate); max-width: 620px; }
.accordion__panel a { color: var(--orange-500); text-decoration: underline; text-underline-offset: 2px; }

/* ===================== FINAL CTA ===================== */
.final-cta { background: var(--orange-500); padding: 100px 0; text-align: center; color: var(--white); }
.final-cta__inner h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.final-cta__inner p { font-size: 1.05rem; margin-bottom: 32px; color: rgba(255,255,255,0.9); }
.final-cta .btn--primary { background: var(--navy-900); box-shadow: 0 8px 20px rgba(5,11,22,0.28); }
.final-cta .btn--primary:hover { background: var(--navy-800); }

/* ===================== FOOTER ===================== */
.footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand { display: flex; gap: 14px; }
.footer__brand p { font-family: var(--font-brand); font-weight: 600; color: var(--white); font-size: 0.86rem; line-height: 1.35; }
.footer__brand span { font-family: var(--font-body); font-weight: 400; color: rgba(255,255,255,0.55); font-size: 0.82rem; display: block; margin-top: 6px; max-width: 230px; }
.footer__links, .footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 0.9rem; }
.footer__links a:hover, .footer__contact a:hover { color: var(--orange-400); }
.footer__cta { color: var(--orange-400); font-size: 0.9rem; font-weight: 600; text-align: left; transition: color 0.25s; }
.footer__cta:hover { color: var(--orange-300); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 32px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}

/* ===================== LEGAL PAGE ===================== */
.legal { padding: 60px 0 90px; background: var(--white); }
.legal__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 16px; }
.legal__meta { color: var(--slate); font-size: 0.9rem; line-height: 1.7; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin: 34px 0 12px; }
.legal h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 20px 0 8px; }
.legal p { color: var(--slate); margin-bottom: 12px; }
.legal ul { margin: 0 0 12px; padding-left: 4px; }
.legal li { position: relative; padding-left: 22px; color: var(--slate); margin-bottom: 7px; }
.legal li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-500); }
.legal__code { font-size: 0.9em; padding: 1px 6px; border-radius: 5px; background: var(--paper); border: 1px solid var(--line); }
.legal p a, .legal li a { color: var(--orange-500); text-decoration: underline; text-underline-offset: 2px; }
.legal p a:hover, .legal li a:hover { color: var(--orange-400); }
.legal__back { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal__back a { color: var(--orange-500); font-weight: 600; }
.legal__back a:hover { color: var(--orange-400); }

/* ===================== FAB ===================== */
.fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 150;
  background: var(--orange-500); color: var(--white); font-weight: 600; font-size: 0.9rem;
  padding: 16px 24px; border-radius: 999px; box-shadow: 0 10px 26px rgba(255,107,44,0.34);
  opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s;
}
.fab.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fab:hover { background: var(--orange-400); transform: translateY(-3px) scale(1.02); }

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,11,22,0.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 500;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--white); border-radius: 24px; padding: 40px; width: 100%; max-width: 460px;
  position: relative; max-height: 88vh; overflow-y: auto;
  transform: translateY(24px) scale(0.97); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal__close {
  position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
  transition: background 0.25s; z-index: 2;
}
.modal__close:hover { background: var(--orange-100); color: var(--orange-500); }
.modal h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; padding-right: 30px; }
.modal__sub { color: var(--slate); font-size: 0.92rem; margin-bottom: 24px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field[hidden] { display: none; }
.field > span { font-size: 0.82rem; font-weight: 600; color: var(--slate); }
.field__label { display: flex; align-items: center; gap: 7px; }
.field__label label { font-size: 0.82rem; font-weight: 600; color: var(--slate); cursor: pointer; }

/* Сама кнопка 34px — чтобы попадать пальцем. Видимый кружок 18px рисуется
   псевдоэлементом внутри, отрицательные поля не дают кнопке раздвинуть строку. */
.info {
  position: relative; z-index: 1;
  width: 34px; height: 34px; flex-shrink: 0; margin: -8px;
  color: var(--slate-light);
  font-size: 0.68rem; font-weight: 700; font-style: italic; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.info::after {
  content: ''; position: absolute; inset: 8px; border-radius: 50%; z-index: -1;
  border: 1.5px solid currentColor;
  transition: border-color 0.2s, background 0.2s;
}
.info:hover, .info[aria-expanded="true"] { color: var(--orange-500); }
.info[aria-expanded="true"]::after { background: var(--orange-500); border-color: var(--orange-500); }
.info[aria-expanded="true"] { color: var(--white); }
.info__tip {
  font-size: 0.8rem; line-height: 1.5; color: var(--slate);
  background: var(--paper); border-left: 3px solid var(--orange-500);
  padding: 10px 13px; border-radius: 0 10px 10px 0; margin-top: 2px;
}
.info__tip[hidden] { display: none; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 0.95rem;
  background: var(--paper); transition: border-color 0.25s;
  color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange-500); outline: none; }
.field textarea { resize: vertical; }
.field__hint { font-size: 0.76rem; color: var(--slate-light); margin-top: 2px; font-weight: 400; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; cursor: pointer; }
.consent input {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  accent-color: var(--orange-500); cursor: pointer;
}
.consent span { font-size: 0.82rem; color: var(--slate); line-height: 1.5; }
.consent a { color: var(--orange-500); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--orange-400); }
.form-error {
  font-size: 0.84rem; color: #B23A16; background: #FFF1EA;
  border: 1px solid rgba(255,107,44,0.35); border-radius: 12px;
  padding: 11px 14px; margin-bottom: 14px;
}
.form-error[hidden] { display: none; }

.modal__success-state { text-align: center; padding-top: 10px; }
.modal__success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--orange-100); color: var(--orange-500);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 20px;
}
.modal__success-state h3 { margin-bottom: 10px; padding-right: 0; }
.modal__success-state p { color: var(--slate); font-size: 0.92rem; margin-bottom: 24px; }

/* ---- оплата ---- */
.pay-summary { background: var(--paper); border-radius: 14px; padding: 16px 18px; margin: 6px 0 18px; }
.pay-summary__row { display: flex; justify-content: space-between; gap: 14px; font-size: 0.9rem; padding: 5px 0; color: var(--slate); }
.pay-summary__row b { color: var(--ink); font-weight: 600; text-align: right; }
.pay-summary__row--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 11px; }
.pay-summary__row--total b { font-size: 1.2rem; color: var(--orange-500); font-weight: 700; }
.pay-note { font-size: 0.78rem; color: var(--slate-light); text-align: center; margin-top: 12px; }
.demo-box {
  background: var(--paper); border-left: 3px solid var(--orange-500);
  border-radius: 0 12px 12px 0; padding: 14px 16px; margin-bottom: 20px;
  font-size: 0.88rem; color: var(--slate);
}
.demo-box code { background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 0.92em; }
/* Тестовая оплата: полоса должна быть заметной, чтобы её нельзя было
   спутать с настоящей покупкой. */
.test-banner {
  background: #FFE04D; color: #4A3400; border-radius: 12px;
  padding: 12px 15px; margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 3px;
}
.test-banner[hidden] { display: none; }
.test-banner b { font-size: 0.95rem; }
.test-banner span { font-size: 0.84rem; line-height: 1.5; }

/* ===================== СТРАНИЦА КУРСА ===================== */
.page-course { background: var(--paper); }

.course-loading { padding: 160px 0 120px; text-align: center; color: var(--slate); }
.course-404 { padding: 120px 0; text-align: center; background: var(--white); }
.course-404 .section-lead { margin: 0 auto 28px; }

.course-hero {
  position: relative; overflow: hidden;
  background: var(--navy-900); color: var(--white); padding: 46px 0 66px;
}
.course-hero__glow {
  position: absolute; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,44,0.28) 0%, rgba(255,107,44,0) 68%);
  top: -400px; left: -220px; pointer-events: none;
}
.course-hero .wrap { position: relative; z-index: 2; }

.crumbs { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; color: rgba(255,255,255,0.5); margin-bottom: 30px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--orange-300); }

.course-hero .wrap--narrow { text-align: center; }
.course-hero__line { display: block; }
/* Последняя строка — акцентом, с подчёркиванием от руки. */
.course-hero__line--mark { position: relative; color: var(--orange); display: inline-block; }
.course-hero__line--mark::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: -0.16em; height: 0.12em;
  border-radius: 999px; background: var(--orange); opacity: .55;
}
.course-hero__down {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 34px;
  color: rgba(255,255,255,0.8); font-size: 0.92rem; font-weight: 600;
}
.course-hero__down::after { content: '↓'; font-size: 1.05rem; }
.course-hero__down:hover { color: var(--orange-300); }
.course-hero__badge {
  display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 6px 14px;
  border-radius: 999px; background: rgba(255,107,44,0.18); color: var(--orange-300); margin-bottom: 16px;
}
.course-hero__badge.is-soon { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.65); }
.course-hero__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 26px;
}
.course-hero__full { font-size: 1.05rem; color: rgba(255,255,255,0.65); letter-spacing: 0.02em; }
.course-hero__lead { font-size: 1.06rem; color: rgba(255,255,255,0.8); max-width: 620px; margin: 0 auto; }
.course-hero .wrap--narrow .crumbs { justify-content: center; }
.course-hero__facts { justify-content: center; }
.course-hero__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-light); max-width: 460px;
}
.course-hero__facts li { display: flex; flex-direction: column; gap: 1px; }
.course-hero__facts b { font-size: 1.02rem; font-weight: 600; }
.course-hero__facts span { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ---- плеер ---- */
.player {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 18px; overflow: hidden; background: var(--navy-950);
  border: 1px solid var(--line-light);
}
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center;
  color: rgba(255,255,255,0.45);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 14px, transparent 14px 28px),
    var(--navy-950);
}
.player__placeholder svg { width: 46px; height: 46px; color: rgba(255,107,44,0.7); }
.player__placeholder p { font-size: 0.92rem; max-width: 300px; }
.player__caption { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-top: 12px; text-align: center; }
.player[hidden] { display: none; }

/* ---- постер: плеер появляется только после клика ---- */
.poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center; cursor: pointer;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 45%, rgba(255,107,44,0.22) 0%, rgba(255,107,44,0) 60%),
    var(--navy-950);
  transition: background 0.3s var(--ease);
}
.poster:hover { background: radial-gradient(circle at 50% 45%, rgba(255,107,44,0.32) 0%, rgba(255,107,44,0) 62%), var(--navy-950); }
.poster__play {
  width: 66px; height: 66px; border-radius: 50%; flex-shrink: 0;
  background: var(--orange-500); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(255,107,44,0.6);
  transition: transform 0.3s var(--ease);
}
.poster__play svg { width: 26px; height: 26px; margin-left: 3px; }
.poster:hover .poster__play { transform: scale(1.08); }
.poster__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.poster__note { font-size: 0.84rem; color: rgba(255,255,255,0.55); }

/* ---- подсказка вместо плеера, пока блок не выбран ---- */
.watch__hint {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 56px 24px;
  border: 1px dashed var(--line); border-radius: 16px; background: var(--paper);
}
.watch__hint[hidden] { display: none; }
.watch__hint svg { width: 40px; height: 40px; color: var(--orange-500); margin-bottom: 4px; }
.watch__hint h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.watch__hint p { color: var(--slate); font-size: 0.92rem; max-width: 340px; }
.watch__now[hidden] { display: none; }

/* ---- покупка ---- */
.buy { padding: 56px 0; background: var(--paper); }
.buy__card {
  display: grid; grid-template-columns: 1fr 320px; gap: 0;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -50px rgba(11,31,61,0.6);
}
.buy__main { padding: 34px 36px; }
.buy__main h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin-bottom: 8px; }
.buy__lead { color: var(--slate); font-size: 0.98rem; margin-bottom: 20px; }
.buy__list { display: flex; flex-direction: column; gap: 10px; }
.buy__list li { position: relative; padding-left: 24px; font-size: 0.95rem; color: var(--slate); }
.buy__list li::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 11px; height: 6px;
  border-left: 2px solid var(--orange-500); border-bottom: 2px solid var(--orange-500);
  transform: rotate(-45deg);
}
.buy__side {
  background: var(--navy-900); color: var(--white); padding: 34px 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.buy__price { font-family: var(--font-display); font-weight: 800; font-size: 2.9rem; line-height: 1; color: var(--orange-400); }
.buy__price-note { font-size: 0.84rem; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.buy__legal { font-size: 0.74rem; color: rgba(255,255,255,0.45); margin-top: 14px; line-height: 1.5; }
.buy__legal a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 2px; }
.buy__legal a:hover { color: var(--orange-300); }

/* ---- курс готовится ---- */
.soon { padding: 56px 0; background: var(--paper); }
.soon__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 36px; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.soon__card h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 8px; }
.soon__card p { color: var(--slate); font-size: 0.96rem; max-width: 620px; }

/* ---- просмотр ---- */
.watch { padding: 56px 0; background: var(--paper); }
.watch__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 30px; }
.watch__head .section-title { margin-bottom: 8px; }
.watch__progress { flex-shrink: 0; min-width: 200px; }
.watch__progress span { font-size: 0.84rem; color: var(--slate); display: block; margin-bottom: 8px; }
.watch__bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.watch__bar i { display: block; height: 100%; background: var(--orange-500); border-radius: 999px; transition: width 0.4s var(--ease); }

.watch__grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.watch__stage { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.watch__stage .player { border-color: transparent; }
.watch__now { padding: 18px 8px 6px; }
.watch__now h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }
.watch__now p { color: var(--slate); font-size: 0.94rem; }

.lessons {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; max-height: 620px; overflow-y: auto;
}
.lesson {
  width: 100%; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center;
  text-align: left; padding: 12px 12px; border-radius: 12px;
  transition: background 0.2s;
}
.lesson:hover { background: var(--paper); }
.lesson.is-active { background: var(--navy-900); color: var(--white); }
.lesson__num { font-weight: 700; font-size: 0.85rem; color: var(--orange-500); }
.lesson__title { font-size: 0.92rem; line-height: 1.35; }
.lesson__min { font-size: 0.78rem; color: var(--slate-light); white-space: nowrap; }
.lesson.is-active .lesson__min { color: rgba(255,255,255,0.55); }
.lesson.is-watched .lesson__num::after { content: ' ✓'; color: var(--orange-500); }

/* ---- программа ---- */
.program { padding: 84px 0; background: var(--white); }
.program__list { margin-top: 34px; display: flex; flex-direction: column; gap: 10px; }
.program__item {
  border: 1px solid var(--line); border-radius: 16px; background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.program__item[open] { border-color: rgba(255,107,44,0.5); box-shadow: 0 10px 30px rgba(16,25,43,0.06); }
.program__item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px; padding: 18px 22px;
}
.program__item summary::-webkit-details-marker { display: none; }
.program__num { font-weight: 700; color: var(--orange-500); font-size: 0.95rem; }
.program__title { font-weight: 600; font-size: 1rem; }
.program__min { font-size: 0.84rem; color: var(--slate-light); white-space: nowrap; }
.program__desc { padding: 0 22px 20px 50px; color: var(--slate); font-size: 0.95rem; line-height: 1.6; }
.program__item--special .program__num { color: var(--navy-700); }

/* ---- автор ---- */
.course-author { padding: 0 0 70px; background: var(--paper); }
.course-author__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; display: flex; align-items: center; gap: 24px;
}
.course-author__card img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex-shrink: 0; }
.course-author__label { font-size: 0.8rem; color: var(--slate); }
.course-author__card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin: 2px 0 4px; }
.course-author__card p { color: var(--slate); font-size: 0.92rem; }
.course-author__link { display: inline-block; margin-top: 8px; color: var(--orange-500); font-weight: 600; font-size: 0.9rem; }
.course-author__link:hover { color: var(--orange-400); }

/* ---- нижний блок ---- */
.course-foot { padding: 60px 0 70px; background: var(--white); border-top: 1px solid var(--line); }
.course-foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.course-foot h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.course-foot p { color: var(--slate); font-size: 0.94rem; }
.course-foot a { color: var(--orange-500); text-decoration: underline; text-underline-offset: 2px; }

/* ===================== ОПЛАТА И ПОЛУЧЕНИЕ ===================== */
.delivery { padding: 110px 0; background: var(--white); border-top: 1px solid var(--line); }
.delivery__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.delivery__head .section-lead { max-width: 540px; }
.delivery__price {
  flex-shrink: 0; text-align: right; background: var(--paper);
  border-radius: 16px; padding: 20px 26px; max-width: 260px;
}
.delivery__price span {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 2.4rem; line-height: 1; color: var(--orange-500); margin-bottom: 6px;
}
.delivery__price p { font-size: 0.84rem; color: var(--slate); }

.delivery__steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px;
}
.delivery__steps li {
  background: var(--paper); border-radius: 16px; padding: 24px 22px;
  border: 1px solid transparent; transition: border-color 0.25s var(--ease);
}
.delivery__steps li:hover { border-color: var(--orange-500); }
.delivery__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; margin-bottom: 14px;
  background: var(--orange-500); color: var(--white); font-weight: 700; font-size: 0.95rem;
}
.delivery__steps h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; margin-bottom: 6px; }
.delivery__steps p { font-size: 0.9rem; color: var(--slate); }
.delivery__note {
  margin-top: 28px; padding: 18px 22px; border-radius: 14px;
  background: var(--paper); border-left: 3px solid var(--orange-500);
  font-size: 0.92rem; color: var(--slate);
}
.delivery__note a { color: var(--orange-500); text-decoration: underline; text-underline-offset: 2px; }

/* Компактная версия того же на странице курса */
.delivery-strip {
  margin-top: 20px; padding: 24px 28px; border-radius: 18px;
  background: var(--white); border: 1px solid var(--line);
}
.delivery-strip h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.delivery-strip ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; counter-reset: d; }
.delivery-strip li {
  position: relative; padding-left: 30px; font-size: 0.92rem; color: var(--slate);
  counter-increment: d;
}
.delivery-strip li::before {
  content: counter(d); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange-100); color: var(--orange-500);
  font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.delivery-strip li b { color: var(--ink); font-weight: 600; }
.delivery-strip > p {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--slate-light);
}
.delivery-strip a { color: var(--orange-500); text-decoration: underline; text-underline-offset: 2px; }

/* ===================== КОНТАКТЫ ===================== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 10px; }
.contact-card { background: var(--paper); border-radius: 16px; padding: 20px 22px; }
.contact-card__label { font-size: 0.8rem; color: var(--slate); display: block; margin-bottom: 4px; }
.contact-card__value {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--orange-500); word-break: break-word; margin-bottom: 8px;
}
.contact-card__value--text { color: var(--ink); }
a.contact-card__value:hover { color: var(--orange-400); }
.contact-card p { font-size: 0.86rem; color: var(--slate); margin: 0; }

/* Заглушка для незаполненных реквизитов. Выглядит намеренно грубо —
   чтобы такое невозможно было случайно выложить на боевой сайт. */
.req-todo {
  display: inline-block; background: #FFE04D; color: #6B4A00;
  border: 2px dashed #B28900; border-radius: 6px;
  padding: 1px 8px; font-family: var(--font-body); font-weight: 700; font-size: 0.85rem;
}

.steps-numbered { counter-reset: s; margin: 0 0 14px; }
.steps-numbered li {
  position: relative; padding-left: 38px; margin-bottom: 12px;
  color: var(--slate); counter-increment: s;
}
.steps-numbered li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange-500); color: var(--white);
  font-size: 0.82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps-numbered li b { color: var(--ink); font-weight: 600; }

.footer__bottom--legal { font-size: 0.78rem; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 2px; }
.footer__bottom a:hover { color: var(--orange-400); }
.footer__req { color: rgba(255,255,255,0.45); font-size: 0.78rem; line-height: 1.6; margin-top: 10px; }

/* ===================== АККАУНТ В ШАПКЕ ===================== */
.nav__auth { display: flex; align-items: center; flex-shrink: 0; }
.nav__account {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-light); color: rgba(255,255,255,0.85);
  font-size: 0.86rem; font-weight: 500; max-width: 220px;
  transition: border-color 0.25s, color 0.25s;
}
.nav__account span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__account:hover { border-color: var(--orange-500); color: var(--white); }
.nav__account-dot { width: 7px; height: 7px; border-radius: 50%; background: #3FBF6B; flex-shrink: 0; }
.nav__account--guest { color: rgba(255,255,255,0.75); }

/* ===================== ВХОД И РЕГИСТРАЦИЯ ===================== */
.page-auth { background: var(--paper); }
.auth { display: flex; justify-content: center; padding: 56px 20px 90px; }
.auth__card {
  width: 100%; max-width: 440px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 36px; box-shadow: 0 30px 60px -50px rgba(11,31,61,0.6);
}
.auth__pane h1 { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; margin-bottom: 8px; }
.auth__lead { color: var(--slate); font-size: 0.94rem; margin-bottom: 22px; }
.auth__pane--center { text-align: center; }
.auth__pane--center .modal__success-icon { margin-bottom: 18px; }
.auth__pane--center .btn { margin-bottom: 10px; }
.auth__links {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--slate-light);
}

/* ---- покупка от имени вошедшего ---- */
.pay-asuser {
  background: var(--paper); border-radius: 12px; padding: 12px 15px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.pay-asuser[hidden] { display: none; }
.pay-asuser span { font-size: 0.78rem; color: var(--slate); }
.pay-asuser b { font-size: 0.95rem; }
#payGuestFields[hidden] { display: none; }

/* ===================== ЛИЧНЫЙ КАБИНЕТ ===================== */
.account { padding: 46px 0 80px; background: var(--paper); }
.account__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; margin-bottom: 34px;
}
.account__head .section-title { margin-bottom: 8px; }
.account__who {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; flex-shrink: 0;
}
.account__who span:first-child { font-weight: 600; font-size: 0.95rem; }
.account__who span:last-child { font-size: 0.84rem; color: var(--slate); }

.account__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.account-card {
  display: flex; flex-direction: column; gap: 4px; padding: 22px 24px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.account-card:hover {
  transform: translateY(-3px); border-color: var(--orange-500);
  box-shadow: 0 22px 38px -26px rgba(11,31,61,0.4);
}
.account-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.account-card__abbr { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.account-card__badge {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(63,191,107,0.14); color: #1E7A3C; white-space: nowrap;
}
.account-card__name { font-size: 0.88rem; color: var(--slate); line-height: 1.4; }
.account-card__meta { font-size: 0.8rem; color: var(--slate-light); }
.account-card__foot {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--slate);
}

.account__empty {
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 40px 32px; text-align: center;
}
.account__empty[hidden] { display: none; }
.account__empty h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.account__empty p { color: var(--slate); margin-bottom: 20px; }

.account__more { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.account__more h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.account__more p { color: var(--slate); font-size: 0.94rem; }
.account__more a { color: var(--orange-500); font-weight: 600; }

.account__danger { margin-top: 30px; }
.account__danger summary {
  cursor: pointer; font-weight: 600; font-size: 0.94rem; color: var(--slate);
  padding: 10px 0; list-style: none;
}
.account__danger summary::-webkit-details-marker { display: none; }
.account__danger summary::before { content: '+ '; font-weight: 700; }
.account__danger[open] summary::before { content: '– '; }
.account__danger-body {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px; max-width: 560px;
}
.account__danger-body p { color: var(--slate); font-size: 0.92rem; margin-bottom: 12px; }
.account__danger-body a { color: var(--orange-500); text-decoration: underline; text-underline-offset: 2px; }
.account__danger-body h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  margin: 20px 0 8px; padding-top: 16px; border-top: 1px solid var(--line);
}

/* ===================== ОКНО ПОКУПКИ ===================== */
.modal--checkout { max-width: 460px; }
.co-head { margin-bottom: 18px; }
.co-steps {
  display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--orange-500); margin-bottom: 8px;
}
.co-head h3 { margin-bottom: 6px; }
.co-head .modal__sub { margin-bottom: 0; }
.co-head .modal__sub[hidden] { display: none; }

.co-course {
  background: var(--navy-900); color: var(--white); border-radius: 14px;
  padding: 14px 17px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.co-course b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.co-course span { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

.co-pane[hidden] { display: none; }
.co-alt {
  margin-top: 14px; text-align: center; font-size: 0.86rem; color: var(--slate);
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.co-alt a { color: var(--orange-500); text-decoration: underline; text-underline-offset: 2px; }
.co-sent { font-size: 0.92rem; color: var(--slate); margin-bottom: 16px; }
.co-sent b { color: var(--ink); }

/* Код вводят с телефона и часто вслепую — делаем поле крупным и просторным. */
.co-code {
  font-size: 1.5rem !important; letter-spacing: 0.4em; text-align: center;
  font-weight: 600; padding: 14px !important;
}

.co-done { text-align: center; }
.co-done h4 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 8px; }
.co-done p { color: var(--slate); font-size: 0.94rem; margin-bottom: 22px; }
.co-done .btn { margin-bottom: 10px; }

/* ===================== КАТАЛОГ В КАБИНЕТЕ ===================== */
.account__shop { margin-top: 42px; padding-top: 34px; border-top: 1px solid var(--line); }
.account__shop-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 20px;
}
.account__shop-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin-bottom: 4px; }
.account__shop-head p { color: var(--slate); font-size: 0.94rem; }

.search--light input {
  background: var(--white); border-color: var(--line); color: var(--ink);
}
.search--light input::placeholder { color: var(--slate-light); }
.search--light .search__icon { color: var(--slate-light); }
.chips--light .chip {
  background: var(--white); border-color: var(--line); color: var(--slate);
}
.chips--light .chip:hover { color: var(--ink); border-color: var(--slate-light); }
.chips--light .chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.shop-grid { display: flex; flex-direction: column; gap: 10px; }
.shop-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  transition: border-color 0.25s var(--ease);
}
.shop-card:hover { border-color: var(--slate-light); }
.shop-card__main { min-width: 220px; flex: 1; }
.shop-card__title { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.shop-card__title b { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.shop-card__title span { font-size: 0.88rem; color: var(--slate); }
.shop-card__title:hover b { color: var(--orange-500); }
.shop-card__meta { display: block; font-size: 0.8rem; color: var(--slate-light); margin-top: 3px; }
.shop-card__buy { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.shop-card__soon { font-size: 0.86rem; color: var(--slate-light); }
.shop-card__more { font-size: 0.86rem; color: var(--orange-500); white-space: nowrap; }
.shop-card__more:hover { color: var(--orange-400); }

.account__who .linklike { font-size: 0.82rem; margin-top: 6px; font-weight: 500; }

/* ===================== КАБИНЕТ ===================== */
/* Внутри кабинета шапка другая: витрины здесь нет, есть «мои курсы».
   Так человек понимает, что он уже не в магазине. */
.page-cabinet { background: var(--paper); }
.nav--cabinet { position: sticky; background: var(--navy-950); padding: 14px 0; }
.nav--cabinet .nav__logo-text { color: rgba(255,255,255,0.9); }

.crumbs--dark { color: var(--slate); margin-bottom: 22px; }
.crumbs--dark a { color: var(--slate); }
.crumbs--dark a:hover { color: var(--orange-500); }

.watch__foot {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--slate); font-size: 0.9rem;
}
.watch__foot a { color: var(--orange-500); text-decoration: underline; text-underline-offset: 2px; }

/* ---- «курс уже открыт» на публичной странице ---- */
.owned { padding: 56px 0; background: var(--paper); }
.owned__card {
  background: var(--white); border: 1px solid rgba(63,191,107,0.4); border-radius: var(--radius);
  padding: 30px 34px; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.owned__badge {
  display: inline-block; font-size: 0.76rem; font-weight: 600; padding: 5px 12px;
  border-radius: 999px; background: rgba(63,191,107,0.15); color: #1E7A3C; margin-bottom: 10px;
}
.owned__card h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 6px; }
.owned__card p { color: var(--slate); font-size: 0.96rem; max-width: 560px; }
.owned__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ===================== АДМИНКА ===================== */
.nav__admin {
  display: inline-flex; align-items: center; padding: 9px 14px; margin-right: 8px;
  border-radius: 999px; background: rgba(255,107,44,0.18); color: var(--orange-300);
  font-size: 0.82rem; font-weight: 600; white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.nav__admin:hover { background: var(--orange-500); color: var(--white); }

.admin { padding: 40px 0 80px; background: var(--paper); }
.admin__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.admin__head .section-title { margin-bottom: 6px; }
.admin__h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; margin: 36px 0 14px; }
.admin__note { color: var(--slate); font-size: 0.9rem; margin-bottom: 12px; }
.admin__empty { color: var(--slate-light); padding: 16px 0; }

/* Расхождение схемы — самая частая причина «ошибка, попробуйте позже»,
   поэтому блок кричащий и с кнопкой, а не просто текст в логе. */
.admin__alert {
  background: #FFF4D6; border: 1px solid #E8C86A; border-radius: 16px;
  padding: 22px 26px; margin-bottom: 22px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.admin__alert h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; color: #6B4A00; }
.admin__alert p { color: #6B4A00; font-size: 0.94rem; margin-bottom: 10px; }
.admin__gaps { margin: 10px 0; display: flex; flex-direction: column; gap: 5px; }
.admin__gaps li { font-size: 0.88rem; color: #6B4A00; }
.admin__gaps code, .admin__hint code {
  background: rgba(255,255,255,0.7); border-radius: 5px; padding: 1px 6px; font-size: 0.92em;
}
.admin__hint { font-size: 0.84rem !important; opacity: 0.85; margin-bottom: 0 !important; max-width: 620px; }

.admin__ok {
  background: rgba(63,191,107,0.12); border: 1px solid rgba(63,191,107,0.4);
  color: #1E7A3C; border-radius: 14px; padding: 14px 18px; margin-bottom: 22px; font-size: 0.94rem;
}

.admin__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.admin__stat {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 3px;
}
.admin__stat b { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--orange-500); line-height: 1; }
.admin__stat span { font-size: 0.82rem; color: var(--slate); }

.admin__tools { display: flex; flex-direction: column; gap: 10px; }
.admin__tool {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.admin__tool b { display: block; font-size: 0.98rem; margin-bottom: 2px; }
.admin__tool span { font-size: 0.86rem; color: var(--slate); max-width: 520px; display: block; }

/* ---- курсы пользователя прямо в строке таблицы ---- */
.admin__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.admin__chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(63,191,107,0.14); color: #1E7A3C;
  border-radius: 999px; padding: 4px 6px 4px 11px; font-size: 0.82rem; font-weight: 600;
}
.admin__chip button {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: rgba(30,122,60,0.15); color: #1E7A3C;
  font-size: 0.8rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.admin__chip button:hover { background: #B23A16; color: var(--white); }

.admin__give { display: flex; align-items: center; gap: 8px; }
.admin__give select {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px;
  background: var(--white); font-size: 0.86rem; max-width: 150px;
}
.admin__give select:focus { border-color: var(--orange-500); outline: none; }

.admin .check-cell { background: var(--white); border: 1px solid var(--line); }
.admin .check-table td, .admin .check-table th { background: transparent; }

/* ===================== СТРАНИЦА ПРОВЕРКИ ===================== */
/* Служебная, посетителям не показывается — оформление минимальное. */
.setup-bar {
  position: sticky; top: 0; z-index: 300;
  background: #FFE04D; color: #4A3400;
  padding: 10px 20px; font-size: 0.88rem; line-height: 1.5;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center;
  text-align: center;
}
.setup-bar a { color: #7A4A00; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.has-setup-bar .nav { top: auto; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 10px; }
.check-cell {
  background: var(--paper); border-radius: 12px; padding: 12px 15px;
  display: flex; flex-direction: column; gap: 2px;
}
.check-cell span { font-size: 0.78rem; color: var(--slate); }
.check-cell b { font-size: 0.95rem; word-break: break-word; }

.check-ok { color: #1E7A3C; font-weight: 600; }
.check-bad { color: #B23A16; font-weight: 600; }
.check-warn { color: #A66A00; font-weight: 600; }
.check-soon { color: var(--slate); font-weight: 600; }

.check-table-wrap { overflow-x: auto; margin-bottom: 10px; }
.check-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 620px; }
.check-table th {
  text-align: left; padding: 10px 12px; font-size: 0.78rem; color: var(--slate);
  border-bottom: 1px solid var(--line); font-weight: 600;
}
.check-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.check-table tr:hover td { background: var(--paper); }
.check-sub { display: block; font-size: 0.78rem; color: var(--slate); margin-top: 2px; }
.check-tag {
  display: inline-block; background: #FFE04D; color: #6B4A00;
  border-radius: 5px; padding: 1px 7px; font-size: 0.7rem; font-weight: 700; margin-left: 6px;
}
.check-actions { white-space: nowrap; display: flex; gap: 10px; align-items: center; }
.check-tag--bad { background: #FFE1E1; color: #A61B1B; }

/* ---------- карточка пользователя в админке ---------- */
.modal--user { max-width: 620px; }
.modal--user h3 { margin-bottom: 4px; word-break: break-word; padding-right: 40px; }
.modal--user .modal__sub { margin-bottom: 22px; font-size: 0.85rem; line-height: 1.6; }

.u-block { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.u-block:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.u-block h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--slate); margin-bottom: 12px;
}
.u-block .field { margin-bottom: 14px; }
.u-block .admin__give { margin-top: 10px; }

.u-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.u-list li { font-size: 0.9rem; }

.u-note { font-size: 0.78rem; color: var(--slate); margin-top: 10px; line-height: 1.5; }
.u-note--top { margin-top: 0; margin-bottom: 12px; }
.u-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.u-actions .btn { flex: none; }
.u-actions .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.u-danger { border-color: #E7B4B4; color: #A61B1B; }
.u-danger:hover:not([disabled]) { background: #FFF1F1; border-color: #A61B1B; }

.check-keyform { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.check-keyform input {
  flex: 1; min-width: 220px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: var(--paper);
}
.check-keyform input:focus { border-color: var(--orange-500); outline: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .watch__grid { grid-template-columns: 1fr; }
  .lessons { max-height: none; }
}

@media (max-width: 980px) {
  .stats__grid, .inside__grid, .authors__grid, .buy__card, .course-foot__grid { grid-template-columns: 1fr; }
  .delivery__steps { grid-template-columns: repeat(2, 1fr); }
  .delivery__price { text-align: left; max-width: none; width: 100%; }
  .stat-tile { border-left: none; border-top: 1px solid var(--line-light); padding-top: 32px; }
  .stat-tile:first-child { border-top: none; padding-top: 8px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 420px; margin: 12px auto 0; width: 100%; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .inside__aside { position: static; }
  .course-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .course-hero { padding: 36px 0 52px; }
}

/* Меню уезжает в бургер раньше 760px: шесть пунктов на планшете
   начинают переноситься на две строки и ломают шапку. */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-menu-open .nav__links {
    display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; width: 78%;
    background: var(--navy-900); padding: 100px 32px 40px; gap: 26px; box-shadow: -20px 0 40px rgba(0,0,0,0.3);
  }
  .nav.is-menu-open .nav__links a { font-size: 1.1rem; }

  /* На странице курса бургера нет, а «У меня уже есть доступ» нужна именно
     на телефоне — там её и ищут, когда потеряли письмо. Поэтому не прячем. */
  .page-course .nav__links--course { display: flex; }
  .page-course .nav__cta--light { display: inline-flex; }
}

@media (max-width: 620px) {
  .page-course .nav__links--course { display: none; }
  .page-course .nav__inner { flex-wrap: wrap; row-gap: 10px; }
  .page-course .nav__cta--light { width: 100%; order: 3; }
  .account__head { flex-direction: column; }
  .account__who { width: 100%; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 128px 0 80px; }
  .directions, .catalog, .how, .delivery, .inside, .stats, .authors, .faq { padding: 74px 0; }
  .delivery__steps, .delivery-strip ol, .contact-grid { grid-template-columns: 1fr; }
  .delivery-strip { padding: 20px 22px; }
  .final-cta { padding: 72px 0; }
  .hero__title { font-size: 2.3rem; }
  .hero__art { max-width: 320px; }
  .faq__illustration { width: 76px; }

  .catalog__head { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .uni-grid { grid-template-columns: 1fr; }
  .docs__grid { grid-template-columns: 1fr; }
  .catalog__missing, .soon__card { flex-direction: column; align-items: flex-start; }
  .catalog__missing .btn, .soon__card .btn { width: 100%; }

  .buy__main, .buy__side { padding: 26px 22px; }
  .watch__stage { padding: 10px; }
  .course-author__card { flex-direction: column; align-items: flex-start; text-align: left; }

  /* На телефоне мелкие подписи нечитаемы — поднимаем до 13px. */
  .author__chip, .author__uni, .uni-card__city, .uni-card__dur,
  .course-hero__facts span, .lesson__min { font-size: 0.81rem; }
  .credential__tag, .uni-card__status { font-size: 0.78rem; }
  .buy__list li, .program__body span { font-size: 0.95rem; }

  /* Пальцу нужна цель не меньше 44px. */
  .nav__burger { height: 44px; width: 44px; justify-content: center; align-items: center; margin-right: -10px; }
  .nav__burger span { width: 26px; }
  .nav.is-menu-open .nav__links a { padding: 10px 0; }
  .footer__links a, .footer__contact a, .footer__cta { padding: 7px 0; }
  .modal__close { width: 42px; height: 42px; top: 14px; right: 14px; }
  .modal { padding: 32px 24px; }
  .lesson { padding: 14px 10px; }

  .fab { right: 16px; bottom: 16px; padding: 14px 20px; font-size: 0.84rem; }
  .final-cta .btn--lg { width: 100%; }
}

/* ===================== КАТАЛОГ: «ПОКАЗАТЬ ЕЩЁ» ===================== */
/* Секция каталога тёмная, поэтому обычная контурная кнопка (тёмная на тёмном)
   здесь не видна — переопределяем под светлый контур. */
.uni-more { display: flex; justify-content: center; margin-top: 26px; }
.uni-more__btn { border-color: rgba(255,255,255,0.35); color: var(--white); }
.uni-more__btn:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

/* ===================== «ЧТО ВНУТРИ»: ПОДПИСЬ ПРИМЕРА ===================== */
.inside__example {
  display: inline-block; margin: 18px 0 14px; padding: 5px 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 600; color: var(--slate);
}

/* ===================== АВТОРСКИЙ КУРС ===================== */
.course-hero__author-note {
  font-size: 0.8rem; line-height: 1.5; color: rgba(255,255,255,0.55);
  margin: 18px auto 0; max-width: 560px;
}
.course-hero__author-note a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 2px; }

.disclaimer { padding: 44px 0 52px; background: var(--paper); border-top: 1px solid var(--line); }
.disclaimer .wrap { max-width: 860px; }
.disclaimer__title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 12px;
}
.disclaimer p { font-size: 0.86rem; line-height: 1.6; color: var(--slate); }
.disclaimer p + p { margin-top: 8px; }

/* В окне оплаты две отметки подряд — сближаем их. */
#ppCoPay .consent { margin: 0 0 12px; }
#ppCoPay .consent + .form-error, #ppCoPay .consent + .btn { margin-top: 6px; }
/* Пока не отмечены обе галочки. Только эта кнопка: у остальных disabled значит «идёт загрузка». */
#ppCoPay [data-co="pay"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===================== СОГЛАСИЕ НА COOKIE ===================== */
/* Не перекрывает страницу и не мешает читать: полоса внизу, которую можно
   игнорировать — без согласия просто не включится аналитика. */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400;
  max-width: 760px; margin: 0 auto; padding: 16px 18px;
  display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap;
  background: var(--navy-950); color: rgba(255,255,255,0.82);
  border-radius: 16px; box-shadow: 0 18px 50px rgba(5,11,22,0.35);
}
.cookie[hidden] { display: none; }
.cookie__text { flex: 1 1 360px; font-size: 0.86rem; line-height: 1.5; }
.cookie__text a { color: var(--orange-300); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__decline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.cookie__decline:hover { border-color: var(--white); }
@media (max-width: 560px) {
  .cookie { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1 1 0; }
}

/* ===================== HERO: ПОДПИСЬ «АВТОРСКИЕ КУРСЫ» ===================== */
.hero__eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,107,44,0.14); border: 1px solid rgba(255,107,44,0.35);
  color: var(--orange-300); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
}

/* ===================== КОМУ И ЗАЧЕМ: СРАВНЕНИЕ ===================== */
.audience { padding: 110px 0; background: var(--white); }
.compare { margin-top: 46px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.compare__row {
  display: grid; grid-template-columns: 190px 1fr 1fr;
  border-top: 1px solid var(--line);
}
.compare__row:first-child { border-top: none; }
.compare__row > * { padding: 22px 26px; }
.compare__row p { color: var(--slate); font-size: 0.98rem; line-height: 1.55; }
.compare__row p + p { border-left: 1px solid var(--line); }
.compare__label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--slate); background: var(--paper);
}
.compare__row--head { background: var(--navy-900); color: var(--white); }
.compare__row--head .compare__label { background: var(--navy-900); }
.compare__col { display: flex; flex-direction: column; gap: 4px; position: relative; }
.compare__col + .compare__col { border-left: 1px solid rgba(255,255,255,0.1); }
.compare__col b { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.compare__col span:last-child { font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.compare__tag {
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; background: var(--orange-500); color: var(--white);
}
.compare__col--student .compare__tag { background: var(--white); color: var(--navy-900); }
.compare__note { margin-top: 18px; font-size: 0.85rem; color: var(--slate); max-width: 720px; }

@media (max-width: 820px) {
  .audience { padding: 74px 0; }
  .compare__row { grid-template-columns: 1fr 1fr; }
  .compare__label { grid-column: 1 / -1; padding: 12px 18px; }
  .compare__row--head .compare__label { display: none; }
  .compare__row > p, .compare__col { padding: 16px 18px; }
  .compare__row p { font-size: 0.9rem; }
  .compare__col b { font-size: 1.1rem; }
}
@media (max-width: 520px) {
  .compare__row { grid-template-columns: 1fr; }
  .compare__row p + p { border-left: none; border-top: 1px dashed var(--line); }
  .compare__row--head .compare__col + .compare__col { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .compare__row p::before { display: block; font-size: 0.74rem; font-weight: 700; color: var(--orange-500); margin-bottom: 4px; }
  .compare__row p:nth-of-type(1)::before { content: "Абитуриенту"; }
  .compare__row p:nth-of-type(2)::before { content: "Студенту вуза"; color: var(--navy-800); }
}

/* ===================== ФАЙЛЫ КУРСА ===================== */
.course-files { margin-top: 32px; }
.course-files__title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-bottom: 14px; }
.course-files__list { list-style: none; display: grid; gap: 10px; }
.course-file {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.course-file:hover { border-color: var(--orange-500); box-shadow: 0 8px 24px rgba(16,25,43,0.08); }
.course-file__ext {
  flex: none; width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-100); color: var(--orange-500); font-weight: 700; font-size: 0.8rem;
}
.course-file__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.course-file__body b { font-weight: 600; }
.course-file__body span { font-size: 0.82rem; color: var(--slate); }
.course-file__action { flex: none; font-weight: 600; font-size: 0.9rem; color: var(--orange-500); }
@media (max-width: 520px) { .course-file__action { display: none; } }

/* Карточка готовящегося курса — кнопка «сообщить о выходе», а не ссылка. */
button.uni-card { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }

/* ===================== СПАСИБО ЗА ПОКУПКУ ===================== */
.thanks { padding: 110px 0; background: var(--paper); min-height: 60vh; }
.thanks__card {
  background: var(--white); border-radius: 24px; padding: 56px 40px; text-align: center;
  box-shadow: 0 18px 50px rgba(16,25,43,0.07);
}
.thanks__card .section-lead { margin: 0 auto 28px; }
.thanks__card .section-lead a { color: var(--orange-500); text-decoration: underline; }
.thanks__icon { width: 72px; height: 72px; font-size: 2rem; }
.thanks__note { margin-top: 18px; font-size: 0.86rem; color: var(--slate); }
.thanks__spinner {
  width: 44px; height: 44px; margin: 0 auto 22px; border-radius: 50%;
  border: 3px solid var(--orange-100); border-top-color: var(--orange-500);
  animation: thanks-spin 0.9s linear infinite;
}
@keyframes thanks-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .thanks { padding: 60px 0; } .thanks__card { padding: 40px 22px; } }

/* ===================== ДОП. КНОПКИ ПОКУПКИ ===================== */
[data-buy], [data-buy-only] { display: none; }
.can-buy [data-buy] { display: inline-flex; }
.can-buy [data-buy-only] { display: block; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-row .btn--outline { display: none; }
.can-buy .cta-row .btn--outline { display: inline-flex; }
.cta-band { margin-top: 32px; padding: 22px 26px; border-radius: 18px; background: var(--orange-100);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cta-band p { margin: 0; }
.cta-final { padding: 80px 0; text-align: center; background: var(--paper); }
.cta-final .section-lead { margin: 0 auto 26px; }
.buy-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; border: 0; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; background: var(--orange-500); color: #fff; font: inherit; font-weight: 700;
  box-shadow: 0 10px 28px rgba(255,107,44,.4); opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .25s, transform .25s; }
.buy-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.buy-float:hover { filter: brightness(1.05); }
@media (max-width: 760px) { .buy-float { left: 16px; right: 16px; bottom: 14px; justify-content: center; } }
body:has(.cookie:not([hidden])) .buy-float { bottom: 170px; }

/* ===================== БОЛЬШАЯ ФРАЗА ===================== */
.claim { padding: 88px 0; background: var(--ink); }
.claim__text {
  margin: 0; max-width: 16ch; font-family: 'Alegreya', Georgia, serif; font-weight: 800;
  font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 1.05; color: var(--white);
}
.claim__text::after { content: '.'; color: var(--orange-500); }
@media (max-width: 760px) { .claim { padding: 56px 0; } .claim__text { max-width: none; } }

/* ===================== ДЕСЯТЬ СЛОВ О КУРСЕ ===================== */
.short { padding: 84px 0; background: var(--paper); }
.short__grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px;
}
.short__cell {
  flex: 0 1 auto; min-width: 150px; padding: 26px 22px; border-radius: 18px;
  background: var(--white); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; text-align: center;
}
.short__cell:nth-child(3n) { background: var(--ink); color: var(--white); border-color: transparent; }

/* ===================== БЕСПЛАТНЫЙ ОБЗОР ===================== */
.preview { padding: 84px 0; background: var(--white); }
.preview__title {
  display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 26px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1; color: var(--orange-500); text-align: center;
}
.preview__arrow { width: 62px; color: var(--orange-500); animation: hint-nudge 1.8s ease-in-out infinite; }
@keyframes hint-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .preview__arrow { animation: none; } }
.preview .player__caption { color: var(--slate); }

/* ===================== ЧТО ВХОДИТ ===================== */
.includes { padding: 84px 0; background: var(--paper); }
.includes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
.includes__card { padding: 30px 28px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.includes__num {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem;
  color: var(--orange-500); line-height: 1.1;
}
.includes__card h3 { font-weight: 600; font-size: 1.02rem; margin: 2px 0 10px; }
.includes__card p { color: var(--slate); font-size: 0.95rem; }
@media (max-width: 860px) { .includes__grid { grid-template-columns: 1fr; } }

/* ===================== ВОПРОСЫ О ПОЛУЧЕНИИ ===================== */
.qa { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.qa__item { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.qa__item summary {
  list-style: none; cursor: pointer; padding: 16px 28px 16px 0; position: relative;
  font-weight: 600; font-size: 0.98rem;
}
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--orange-500); font-size: 1.3rem; line-height: 1;
}
.qa__item[open] summary::after { content: '−'; }
.qa__item p { padding: 0 0 18px; color: var(--slate); font-size: 0.94rem; line-height: 1.6; }
.qa__item a { color: var(--orange-500); text-decoration: underline; text-underline-offset: 2px; }

/* ===================== ЦЕНА СО СКИДКОЙ ===================== */
.price-old { color: var(--slate); font-weight: 500; font-size: 0.78em; text-decoration-thickness: 1.5px; opacity: .75; margin-right: 2px; }
.price-now { font-weight: 700; }
.btn .price-old, .buy-float .price-old, .uni-card__price .price-old { color: inherit; opacity: .65; }
.buy__price .price-old { display: block; font-size: 0.42em; margin-bottom: 2px; }
.pay-summary__row--off b { color: var(--orange-500); }



/* ===================== МОБИЛЬНАЯ ВЕРСТКА КУРСА ===================== */
@media (max-width: 760px) {
  .short, .preview, .program, .includes { padding: 52px 0; }
  .short__grid { gap: 10px; }
  .short__cell { flex: 1 1 calc(50% - 10px); min-width: 0; padding: 20px 14px; font-size: 1.02rem; }
  .preview__title { font-size: 1.7rem; }
  .preview__arrow { width: 52px; }
  .program__item summary { padding: 15px 16px; gap: 10px; }
  .program__desc { padding: 0 16px 16px 40px; }
  .qa__item { padding: 2px 16px; }
  .course-hero__facts { gap: 18px 22px; }
}

@media (max-width: 760px) { .course-hero__down { margin-top: 26px; } }
