/* ПЛЮС.ПРАКТИКУМ — дизайн-система.
   Порядок: токены → база → примитивы → компоненты → страницы → утилиты.
   Правило: mobile-first, каждый брейкпоинт только добавляет.
   Цвета текста проверены на контраст ≥ 4.5:1 (WCAG 2.1 AA). */

/* Шрифты лежат локально, а не на CDN: Google Fonts в России отдаётся
   нестабильно, и внешний запрос в критическом пути отрисовки текста — это
   пустой экран у части посетителей. Roboto и Montserrat подключены
   вариативными: один файл на все начертания вместо шести. */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Только для слова «ПЛЮС» в логотипе — поэтому одна кириллическая подрезка
   и одно начертание. */
@font-face {
  font-family: "Comfortaa";
  src: url("../fonts/comfortaa-cyrillic.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ------------------------------------------------------------------ токены */
:root {
  /* Палитра */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-alt: #eef1f7;
  --ink: #121626;
  --ink-soft: #2a3247;
  /* --muted проходит AA на белом и на --bg; --muted-strong — для мелкого текста */
  --muted: #5f6879;
  --muted-strong: #4c5566;
  --line: #dde2eb;
  --line-strong: #c6cddb;
  --lime: #c9ff52;
  --lime-deep: #b4ec33;
  --accent: #6c4bff;
  --danger: #c0271f;
  --success: #1f7a3d;

  /* Тёмная секция */
  --dark-bg: #121626;
  --dark-surface: #1d2436;
  --dark-line: #343d55;
  --dark-text: #c4cbd9;

  /* Шкала отступов — шаг 4px, без промежуточных значений в разметке */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px;
  --s9: 52px; --s10: 68px; --s11: 88px;

  /* Скругления */
  --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(18, 22, 38, .06);
  --shadow-md: 0 8px 24px rgba(18, 22, 38, .08);
  --shadow-lg: 0 20px 52px rgba(18, 22, 38, .12);

  /* Типографика */
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Nunito", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 66px;
}

/* ------------------------------------------------------------------- база */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Якорные ссылки не должны уезжать под липкую шапку */
  scroll-padding-top: calc(var(--header-h) + var(--s4));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button, a, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; }
ul, ol { margin: 0; }
/* Флекс- и грид-элементы игнорируют display:none от [hidden], поэтому
   скрытие через атрибут нужно усилить явно. */
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-heading); text-wrap: balance; }

h1 {
  font-size: clamp(2.375rem, 8.5vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin: var(--s4) 0 var(--s6);
}
h2 {
  font-size: clamp(1.75rem, 6.5vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -1.1px;
  margin: var(--s3) 0 var(--s5);
}
h3 { font-size: 1.3125rem; line-height: 1.25; letter-spacing: -.4px; margin: var(--s4) 0 var(--s2); }
p { line-height: 1.62; color: var(--muted); margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

/* Видимый фокус — единственный ориентир для клавиатуры, поэтому он яркий
   и одинаковый на всех интерактивных элементах. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--s1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Ссылка «к содержимому» для клавиатуры и скринридеров */
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: var(--s3) var(--s5);
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: var(--s3); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------- примитивы */
.container { width: min(100% - 28px, 1180px); margin-inline: auto; }
.section { padding: var(--s9) 0; }
.section-title { margin-bottom: var(--s6); }
.section-title > div { min-width: 0; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.eyebrow.lime { color: var(--lime); }
.lead { font-size: 1.125rem; line-height: 1.55; max-width: 62ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  /* 48px по высоте — комфортная цель для пальца */
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-weight: 800;
  text-align: center;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background-color .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.primary { background: var(--lime); color: var(--ink); box-shadow: var(--shadow-sm); }
.primary:hover { background: var(--lime-deep); box-shadow: var(--shadow-md); }

.secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.secondary:hover { border-color: var(--ink); }

.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }

.back-btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; padding: var(--s2) var(--s4);
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--r-sm); font-weight: 700; font-size: 0.875rem;
}
.back-btn:hover { border-color: var(--ink); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s6);
}

.pill {
  display: inline-block;
  background: var(--surface-alt);
  border-radius: var(--r-pill);
  padding: var(--s2) var(--s3);
  font-size: 0.8125rem; font-weight: 700; color: var(--muted-strong);
}

/* ------------------------------------------------------------------ шапка */
.main-header, .course-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 246, 251, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 900; font-size: 1.1875rem; letter-spacing: -.6px; white-space: nowrap;
}
.brand-icon { width: 30px; height: 30px; flex: none; border-radius: 7px; }
.brand-text { display: inline-flex; align-items: baseline; }
.brand-mark,
.brand-tail {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1em;
  color: inherit;
  letter-spacing: -.01em;
  -webkit-text-stroke: .022em currentColor;
  paint-order: stroke fill;
}
.brand-tail {
  display: inline-block;
  text-transform: uppercase;
}

.nav-back { display: none; }
.nav-links { display: none; gap: var(--s6); font-weight: 700; color: var(--muted-strong); }
.nav-links a { padding: var(--s2) 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--lime);
}
.main-header .btn { padding: var(--s3) var(--s4); font-size: 0.875rem; min-height: 44px; }

/* Бургер: до 1024px основная навигация живёт только здесь */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface);
}
.nav-toggle-bars { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
  transition: transform .18s var(--ease), top .18s var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: grid; gap: var(--s1);
  padding: var(--s4) 0 var(--s6);
  border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: var(--s3) var(--s2);
  font-weight: 700;
  border-radius: var(--r-sm);
}
.mobile-nav a:hover { background: var(--surface); }

/* ------------------------------------------------------------------- герой */
.hero { display: grid; grid-template-columns: 1fr; gap: var(--s7); padding: var(--s8) 0 var(--s9); }
.actions { display: grid; gap: var(--s3); margin-top: var(--s6); }
.actions .btn { width: 100%; }

.youth-hero-card {
  position: relative; min-height: 340px;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow-lg);
}
.youth-hero-card > img {
  width: 100%; height: 100%; min-height: 340px;
  object-fit: cover; display: block;
}
.youth-hero-card::after {
  content: ""; position: absolute; inset: auto 0 0; height: 42%;
  background: linear-gradient(transparent, rgba(18, 22, 38, .45));
}
.youth-hero-badge {
  position: absolute; right: var(--s3); bottom: var(--s3); z-index: 2;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-radius: var(--r-md); padding: var(--s3) var(--s4);
  display: grid; box-shadow: var(--shadow-md);
}
.youth-hero-badge strong { font-size: 1.1875rem; }
.youth-hero-badge span { font-size: 0.75rem; color: var(--muted); }
.floating-note {
  position: absolute; left: var(--s3); top: var(--s3); z-index: 2;
  background: var(--lime); border-radius: var(--r-md);
  padding: var(--s3) var(--s4); font-size: 0.875rem; font-weight: 600;
  transform: rotate(-3deg); box-shadow: var(--shadow-md);
}

/* ---------------------------------------------------------------- каталог */
.filters {
  display: flex; gap: var(--s2); margin-bottom: var(--s6);
  overflow-x: auto; flex-wrap: nowrap;
  padding-bottom: var(--s2);
  scrollbar-width: thin;
}
.filter {
  flex: 0 0 auto; min-height: 44px;
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--r-pill); padding: var(--s2) var(--s4);
  font-weight: 700; font-size: 0.875rem; white-space: nowrap;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter.active, .filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.course-grid { display: grid; grid-template-columns: 1fr; gap: var(--s4); }

.course-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              border-color .2s var(--ease);
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.course-photo {
  height: 180px; margin: calc(var(--s5) * -1) calc(var(--s5) * -1) var(--s4);
  overflow: hidden; border-radius: var(--r-lg) var(--r-lg) var(--r-md) var(--r-md);
  background: var(--surface-alt);
}
.course-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.course-card:hover .course-photo img { transform: scale(1.04); }
.course-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.course-icon { font-size: 1.75rem; line-height: 1; }
.course-tag {
  font-size: 0.75rem; font-weight: 800;
  background: var(--surface-alt); border-radius: var(--r-pill);
  padding: var(--s2) var(--s3); color: var(--muted-strong);
}
.course-card h3 { font-size: 1.375rem; }
.course-card p { flex: 1; font-size: 0.9375rem; }
.card-price { display: flex; align-items: baseline; gap: var(--s2); margin: var(--s4) 0 var(--s1); }
.card-price strong { font-size: 1.5625rem; letter-spacing: -.8px; }
.card-price span { font-size: 0.8125rem; color: var(--muted); }
.course-meta { font-size: 0.875rem; color: var(--muted); }
.text-link {
  border: 0; background: transparent; text-align: left;
  padding: var(--s4) 0 0; font-weight: 800; color: var(--ink);
}
.course-card:hover .text-link { color: var(--accent); }

/* ------------------------------------------------------- страница практикума */
.course-hero { grid-template-columns: 1fr; padding-top: var(--s7); }
.course-hero > .course-youth-photo { order: 2; }
.course-hero > .simulator { order: 3; }

.facts { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s6); }
.facts span {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: var(--s2) var(--s3);
  font-size: 0.875rem; font-weight: 600; color: var(--muted-strong);
}

.buy-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s4); margin-top: var(--s6);
}
.buy-summary > div { display: grid; }
.buy-summary strong { font-size: 1.75rem; letter-spacing: -1px; }
.buy-summary small { color: var(--muted); }
.buy-label { font-size: 0.75rem; font-weight: 800; color: var(--muted-strong); text-transform: uppercase; letter-spacing: .08em; }
.buy-now { white-space: nowrap; }

.course-youth-photo {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); min-height: 280px;
  background: var(--surface-alt);
}
.course-youth-photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.photo-caption {
  position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s3);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-radius: var(--r-md); padding: var(--s3); display: grid;
}
.photo-caption span { font-size: 0.75rem; color: var(--muted); }
.photo-caption b { margin-top: var(--s1); }

.simulator {
  background: linear-gradient(145deg, #121626, #242c43);
  border-radius: var(--r-xl); padding: var(--s5);
  color: #fff; min-height: 380px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.simulator-head { display: flex; justify-content: space-between; gap: var(--s3); }
.simulator-head small, .demo small { color: var(--lime); font-weight: 800; letter-spacing: .08em; }
.simulator h3, .simulator-title { color: #fff; }
.simulator-title {
  font-family: var(--font-heading); text-wrap: balance;
  font-size: 1.3125rem; line-height: 1.25; letter-spacing: -.4px;
  margin: var(--s4) 0 var(--s2);
}
.progress-pill {
  background: var(--lime); color: var(--ink); border-radius: var(--r-pill);
  padding: var(--s2) var(--s3); font-weight: 800; height: max-content;
}
.simulator-screen { background: #1c2335; border: 1px solid #323b55; border-radius: var(--r-lg); padding: var(--s5); }
.line { height: 9px; background: #37415b; border-radius: var(--r-pill); margin: var(--s3) 0; }
.line.short { width: 58%; }
.sim-card { background: #252e45; border-radius: var(--r-md); padding: var(--s4); margin-top: var(--s4); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s4); }
.metrics div { background: #151b2a; border-radius: var(--r-sm); padding: var(--s3); }
.metrics b { display: block; font-size: 1.375rem; }
.metrics span { font-size: 0.8125rem; color: var(--dark-text); }
/* Подпись у декоративного макета: макет — иллюстрация, а не скриншот продукта */
.mock-note { margin-top: var(--s3); font-size: 0.75rem; color: #8d97ad; }

.trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.trust-row div {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s4);
  text-align: center; font-weight: 800;
}

.two-col { display: grid; grid-template-columns: 1fr; gap: var(--s6); }
.skills { padding: 0; list-style: none; display: grid; gap: var(--s3); }
.skills li { background: var(--surface-alt); border-radius: var(--r-sm); padding: var(--s3) var(--s4); }

.demo { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: var(--s6); }
.demo h2 { color: #fff; }
.demo p { color: var(--dark-text); }
.demo button, .demo-preview-option {
  display: block; width: 100%; text-align: left;
  background: #20283c; color: #fff;
  border: 1px solid var(--dark-line); border-radius: var(--r-sm);
  padding: var(--s4); margin-top: var(--s3);
}
.demo-preview-option.best { border-color: var(--lime); }
.demo-lock { margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: #151b29; color: var(--dark-text); font-size: 0.875rem; }
.demo-result { margin-top: var(--s4); font-weight: 800; color: var(--lime); }

.modules { display: grid; gap: var(--s3); }
.module-row {
  display: grid; grid-template-columns: 48px 1fr; gap: var(--s3) var(--s4);
  align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s4);
}
.module-row > span:last-child { grid-column: 2; font-size: 0.8125rem; font-weight: 700; color: var(--muted-strong); }
.module-num {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.module-row small { display: block; color: var(--muted); margin-top: var(--s1); }

.dark-section { background: var(--dark-bg); color: #fff; }
.dark-section h2, .dark-section h3 { color: #fff; }
.dark-section p, .dark-section small { color: var(--dark-text); }
.lime { color: var(--lime); }
.steps { display: grid; gap: var(--s3); }
.steps div {
  background: var(--dark-surface); border: 1px solid var(--dark-line);
  border-radius: var(--r-md); padding: var(--s4);
  display: grid; grid-template-columns: 42px 1fr; gap: var(--s1) var(--s3);
}
.steps span {
  grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  display: grid; place-items: center; font-weight: 800;
}
.steps small { grid-column: 2; }

.projects, .reviews { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.projects article {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5);
}
.project-cover {
  height: 160px; border-radius: var(--r-md);
  background: linear-gradient(145deg, #d5ff83, #8cd7ff);
  display: flex; align-items: flex-end; padding: var(--s4);
  font-size: 1.3125rem; font-weight: 800; color: var(--ink);
}

.certificate-grid { display: grid; grid-template-columns: 1fr; gap: var(--s7); align-items: center; }
.certificate {
  background: var(--surface); border: 12px solid var(--ink);
  padding: var(--s7) var(--s5); text-align: center;
}
.certificate h2 { letter-spacing: 2px; }

.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s4) var(--s5); margin: var(--s3) 0;
}
.faq summary { font-weight: 800; cursor: pointer; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin-top: var(--s3); }

.cta {
  background: linear-gradient(140deg, #c9ff52, #9bdfff);
  border-radius: var(--r-xl); padding: var(--s7) var(--s5); text-align: center;
}
.cta p { color: var(--ink-soft); }
.cta .btn { margin-top: var(--s4); }

.guarantee {
  display: grid; grid-template-columns: 58px 1fr; gap: var(--s4);
  align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5);
}
.guarantee-icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--lime); display: grid; place-items: center;
  font-weight: 800; font-size: 1.5rem;
}
.guarantee h3 { margin: var(--s2) 0; }

.human-story { display: grid; grid-template-columns: 1fr; gap: var(--s6); align-items: center; }
.human-story-photo { border-radius: var(--r-xl); overflow: hidden; min-height: 280px; background: var(--surface-alt); }
.human-story-photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.story-points { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.story-points span {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: var(--s2) var(--s3);
  font-weight: 700; font-size: 0.875rem;
}

/* Липкая панель покупки — только на узких экранах */
.mobile-buybar {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  background: rgba(18, 22, 38, .96); color: #fff;
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom));
  backdrop-filter: blur(14px); border-top: 1px solid #31384c;
}
.mobile-buybar > div { display: grid; }
.mobile-buybar strong { font-size: 1.3125rem; }
.mobile-buybar small { color: var(--dark-text); }

/* ------------------------------------------------------------ хлебные крошки */
.breadcrumbs { padding: var(--s4) 0 0; font-size: 0.875rem; }
.breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: var(--s2); }
.breadcrumbs li + li::before { content: "→"; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ журнал */
.hub-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
.hub-card {
  display: grid; gap: var(--s1);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.hub-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.hub-card b { font-size: 1.125rem; }
.hub-card small { color: var(--muted); }

.article-grid { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.article-card {
  display: flex; flex-direction: column; gap: var(--s2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card h3 { margin: 0; font-size: 1.25rem; }
.article-card p { font-size: 0.9375rem; margin: 0; flex: 1; }
.article-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  font-size: 0.8125rem; color: var(--muted);
}
.article-card-hub {
  background: var(--lime); color: var(--ink);
  border-radius: var(--r-pill); padding: var(--s1) var(--s3);
  font-size: 0.75rem; font-weight: 800;
}

/* Текст статьи. Ограничение по ширине важнее размера шрифта: длинные строки
   читаются хуже любого кегля. */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { margin-top: var(--s8); font-size: clamp(1.625rem, 5.5vw, 2rem); }
.prose h3 { margin-top: var(--s6); font-size: 1.25rem; }
.prose p { font-size: 1.0625rem; line-height: 1.72; color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: var(--s5); color: var(--ink-soft); }
.prose li { margin-bottom: var(--s2); line-height: 1.65; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote {
  margin: var(--s6) 0; padding: var(--s4) var(--s5);
  border-left: 4px solid var(--lime);
  background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.0625rem;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: var(--s3); text-align: left; }
.prose th { background: var(--surface-alt); font-weight: 800; }
/* Таблицы шире экрана скроллятся внутри себя, а не ломают страницу */
.table-scroll { overflow-x: auto; }

.article-header { padding: var(--s6) 0 var(--s4); max-width: 72ch; }
.article-body > .prose,
.article-body > .practicum-inline { max-width: 72ch; margin-inline: auto; }
/* Заголовок статьи мельче витринного: на длинном тексте огромный H1 забирает
   первый экран целиком и мешает начать читать. */
.article-header h1 { font-size: clamp(1.875rem, 4.4vw, 2.875rem); letter-spacing: -1.4px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  font-size: 0.875rem; color: var(--muted); margin-top: var(--s4);
}

.toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5); margin: var(--s6) 0;
}
.toc b { display: block; margin-bottom: var(--s3); }
.toc ol { padding-left: var(--s5); display: grid; gap: var(--s2); }
.toc a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }

.related { display: grid; gap: var(--s3); }
.related-item {
  display: grid; gap: var(--s1);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s4);
}
.related-item:hover { border-color: var(--ink); }
.related-item b { font-size: 1rem; }
.related-item small { color: var(--muted); font-size: 0.8125rem; }

/* Врезка практикума внутри статьи — основной путь «чтение → покупка» */
.practicum-inline {
  display: grid; gap: var(--s4);
  background: var(--ink); color: #fff;
  border-radius: var(--r-xl); padding: var(--s6); margin: var(--s8) 0;
}
.practicum-inline h3 { margin: 0; color: #fff; font-size: 1.375rem; }
.practicum-inline p { color: var(--dark-text); margin: 0; }
.practicum-inline .btn { justify-self: start; }

/* ------------------------------------------------------------------ футер */
.footer { background: var(--ink); color: #fff; padding: var(--s8) 0 var(--s9); }
.footer .brand-tail { color: #8791a7; }
.footer p, .footer li, .footer a { color: var(--dark-text); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s6); }
.footer-col { display: grid; gap: var(--s2); align-content: start; }
.footer-col b { color: #fff; font-size: 0.875rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.footer-legal {
  margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid #2b3348;
  display: grid; gap: var(--s3);
  font-size: 0.8125rem; color: #8d97ad;
}
.footer-legal a { color: #8d97ad; }

/* --------------------------------------------------------- форма и модалка */
.pp-quick-buy { display: grid; gap: var(--s3); }
.pp-quick-buy__input {
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: var(--s3) var(--s4); width: 100%; min-height: 48px;
  background: var(--surface); color: var(--ink);
}
.pp-quick-buy__input::placeholder { color: var(--muted); }
.pp-quick-buy__input:focus-visible { border-color: var(--accent); }
.pp-quick-buy__submit { width: 100%; min-height: 52px; font-size: 1rem; }
.pp-quick-buy__error { margin: 0; font-size: 0.875rem; color: var(--danger); font-weight: 700; }
.pp-quick-buy__note { margin: 0; font-size: 0.75rem; color: var(--muted); line-height: 1.45; }
.pp-quick-buy__note a { text-decoration: underline; }

.pp-buy-modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: var(--s4);
}
.pp-buy-modal[hidden] { display: none; }
.pp-buy-modal__overlay { position: absolute; inset: 0; background: rgba(18, 22, 38, .72); backdrop-filter: blur(6px); }
.pp-buy-modal__dialog {
  position: relative; width: min(100%, 440px);
  max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--s7) var(--s6) var(--s6);
  box-shadow: var(--shadow-lg);
}
.pp-buy-modal__close {
  position: absolute; top: var(--s3); right: var(--s3);
  width: 44px; height: 44px; border: 0; border-radius: var(--r-sm);
  background: var(--surface-alt); color: var(--muted-strong); font-size: 1.5rem; line-height: 1;
}
.pp-buy-modal__close:hover { background: var(--line); color: var(--ink); }
.pp-buy-modal__head { margin-bottom: var(--s5); padding-right: var(--s8); }
.pp-buy-modal__head h2 { margin: var(--s2) 0 var(--s3); font-size: 1.625rem; }
.pp-buy-modal__price { margin: 0; font-size: 0.9375rem; font-weight: 700; color: var(--muted); }

body.pp-buy-modal-open, body.course-open { overflow: hidden; }

.pp-payment-status { max-width: 720px; }
.pp-payment-status--error { color: var(--danger); }
.pp-payment-status--success { color: var(--success); }

/* --------------------------------------------------------------- 404 и текст */
.page-narrow { max-width: 72ch; }
.error-page { padding: var(--s10) 0; text-align: center; }
.error-page .actions { justify-content: center; max-width: 420px; margin-inline: auto; }

/* -------------------------------------------------------------- ≥ 700px */
@media (min-width: 700px) {
  .container { width: min(100% - 48px, 1180px); }
  h1 { font-size: clamp(3rem, 6vw, 4rem); letter-spacing: -2.6px; }
  h2 { font-size: 2.5rem; letter-spacing: -1.6px; }
  .lead { font-size: 1.1875rem; }
  .hero { grid-template-columns: 1.05fr .95fr; gap: var(--s7); padding: var(--s9) 0 var(--s10); }
  .actions { display: flex; flex-wrap: wrap; }
  .actions .btn { width: auto; }
  .section-title { display: flex; justify-content: space-between; align-items: end; gap: var(--s6); }
  .course-grid, .article-grid, .projects, .reviews { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(4, 1fr); }
  .course-photo { height: 190px; }
  .course-hero { grid-template-columns: 1fr 1fr; }
  .course-hero > .simulator { grid-column: 1 / -1; }
  .human-story { grid-template-columns: .9fr 1.1fr; }
  .buy-summary { max-width: 620px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-legal { grid-template-columns: 1fr auto; align-items: center; }
  .module-row { grid-template-columns: 58px 1fr auto; }
  .module-row > span:last-child { grid-column: auto; }
  .certificate { padding: var(--s8); border-width: 14px; }
  .related { grid-template-columns: repeat(2, 1fr); }
  .practicum-inline { grid-template-columns: 1fr auto; align-items: center; }
  .practicum-inline .btn { justify-self: end; }
}

/* ------------------------------------------------------------- ≥ 1024px */
@media (min-width: 1024px) {
  :root { --header-h: 78px; }
  .nav-links { display: flex; }
  .nav-toggle, .mobile-nav { display: none; }
  h1 { font-size: clamp(4rem, 5.6vw, 5.25rem); letter-spacing: -3.6px; }
  h2 { font-size: 3.125rem; letter-spacing: -2px; }
  .section { padding: var(--s10) 0; }
  .hero { grid-template-columns: 1.15fr .85fr; gap: var(--s8); padding: var(--s10) 0 var(--s11); }
  .youth-hero-card, .youth-hero-card > img { min-height: 420px; }
  .course-grid, .projects, .reviews { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(3, 1fr); }
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col, .certificate-grid { grid-template-columns: 1fr 1fr; }
  .course-hero { grid-template-columns: 1.05fr .75fr .75fr; }
  .course-hero > .simulator { grid-column: auto; }
  .course-youth-photo, .course-youth-photo img { min-height: 430px; }
  .human-story { grid-template-columns: .85fr 1.15fr; gap: var(--s8); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .mobile-buybar { display: none; }
  .footer { padding-bottom: var(--s8); }
}

@media (max-width: 699px) {
  .main-header .nav > .btn,
  .course-header .nav > .btn { display: none; }
  .nav { gap: var(--s2); }
  .back-btn { min-width: 0; }
  .brand { font-size: 1.0625rem; }
  .brand-icon { width: 26px; height: 26px; }
  .course-header .nav { justify-content: flex-start; gap: var(--s4); }
  .course-header .nav-back {
    margin-left: auto;
    font-weight: 700; font-size: 0.875rem; color: var(--muted-strong);
    display: inline-flex; align-items: center; gap: var(--s1);
    min-height: 44px; padding: 0 var(--s1);
  }
  .course-header .nav-back:hover { color: var(--ink); }
}

/* На узких экранах футер уступает место липкой панели покупки */
@media (max-width: 1023px) {
  body.has-buybar .footer { padding-bottom: var(--s11); }
}


:root {
  --tint: #f4f6fb;
  --rule: #e6e9ef;
  --space-section: clamp(64px, 8vw, 128px);
}

.section,
body.has-buybar .section { padding: var(--space-section) 0; }
.section-title { margin-bottom: var(--s8); }

.section-tint--lilac,
.section-tint--sky,
.section-tint--lime { background: var(--tint); }

h1 { letter-spacing: -.035em; line-height: 1.02; }
h2, body.has-buybar h2 { letter-spacing: -.03em; line-height: 1.08; }
h3 { letter-spacing: -.015em; }

.lead, body.has-buybar .lead {
  color: var(--muted-strong);
  max-width: 56ch;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
}

.kick {
  display: block;
  background: none;
  padding: 0;
  margin-bottom: var(--s5);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.kick--lime, .kick--lilac, .kick--sky { background: none; color: var(--muted-strong); }

.btn.primary {
  border-radius: var(--r-pill);
  padding: 16px 30px;
  font-size: 1rem;
  box-shadow: none;
}
.btn.primary:hover { box-shadow: none; background: var(--lime-deep); }
.btn.secondary {
  border-radius: var(--r-pill);
  padding: 15px 28px;
  border: 1px solid var(--line-strong);
  background: transparent;
}

.facts span {
  background: none;
  border: 1px solid var(--rule);
  color: var(--muted-strong);
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-badge {
  position: absolute;
  z-index: 2;
  font-family: var(--font-heading);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-md);
}
.hero-badge--age {
  top: var(--s4); left: var(--s4);
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.hero-badge--price {
  right: var(--s4); bottom: var(--s4);
  padding: var(--s4) var(--s5);
  display: grid; gap: 2px;
  box-shadow: var(--shadow-lg);
}
.hero-badge--price strong { font-size: 1.75rem; letter-spacing: -.03em; line-height: 1; }
.hero-badge--price span { font-family: var(--font); font-size: 0.8125rem; color: var(--muted-strong); }
.youth-hero-card, .course-youth-photo { position: relative; }

.trust-grid { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.trust-item {
  display: grid; grid-template-columns: 40px 1fr; gap: var(--s4);
  align-items: start;
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--rule);
  background: none; border-left: 0; border-right: 0; border-top: 0;
  border-radius: 0;
}
.trust-item b { display: block; font-family: var(--font-heading); font-size: 1rem; margin-bottom: 2px; }
.trust-item p { margin: 0; font-size: 0.875rem; color: var(--muted-strong); }
.trust-mark {
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  color: var(--ink); background: none; border: 0; padding: 0;
  min-width: 0; height: auto; display: block;
}

.home-audience .panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s7);
}

.guarantee-icon, .g7 {
  background: none; border: 0; color: var(--ink);
  font-family: var(--font-heading); font-size: 2rem; width: auto; height: auto;
}

body.has-buybar .demo { background: var(--tint); color: var(--ink); border-radius: var(--r-lg); padding: var(--s7); }
body.has-buybar .demo h2 { color: var(--ink); }
body.has-buybar .demo p { color: var(--muted-strong); }
body.has-buybar .demo small { color: var(--muted-strong); }
.demo-preview-option {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: var(--s4) var(--s5); font-size: 1rem; cursor: pointer;
  transition: border-color .2s var(--ease);
}
.demo-preview-option:hover { border-color: var(--ink); }
.demo-preview-option.best { border-color: var(--rule); }
.demo-preview-option:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.demo-lock { background: none; padding: var(--s3) 0 0; color: var(--muted-strong); }

body.has-buybar .module-row {
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  padding: var(--s6) 0; align-items: start;
}
body.has-buybar .module-num {
  background: none; border: 0; color: var(--muted);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem;
  width: auto; height: auto; display: block; padding-top: 3px;
}
body.has-buybar .module-row strong { font-size: 1.0625rem; }
body.has-buybar .module-row small { color: var(--muted-strong); font-size: 0.9375rem; line-height: 1.5; }

body.has-buybar .certificate-grid { background: var(--tint); border-radius: var(--r-lg); padding: var(--s7); }
.trust-row > div { background: none; border-bottom: 1px solid var(--rule); border-radius: 0; padding: var(--s5) 0; }

.pp-quick-buy__field { display: grid; gap: 6px; margin: 0; }
.pp-quick-buy__label { font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.pp-quick-buy__hint { font-size: 0.75rem; color: var(--muted-strong); line-height: 1.4; }
.pp-quick-buy__consent {
  display: grid; grid-template-columns: 20px 1fr; gap: var(--s3);
  align-items: start; margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--muted-strong);
}
.pp-quick-buy__consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.pp-quick-buy__consent a { text-decoration: underline; }
.pp-quick-buy__submit[disabled] { opacity: .7; cursor: progress; }

.age-mark { display: inline-block; border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 0 6px; margin-right: var(--s1); font-weight: 600; }

.cookie-note {
  position: fixed; right: var(--s4); bottom: var(--s4); left: var(--s4);
  z-index: 60; max-width: 420px; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3);
}
.cookie-note p { margin: 0; font-size: 0.8125rem; color: var(--ink-soft); }
.cookie-note a { text-decoration: underline; }
.cookie-note .btn { padding: 10px 18px; font-size: 0.875rem; }
body.has-buybar .cookie-note { bottom: calc(var(--s11) + var(--s3)); }

html { scroll-padding-bottom: 96px; }

@media (min-width: 860px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); column-gap: var(--s9); }
}
@media (min-width: 700px) {
  .cookie-note { flex-direction: row; align-items: center; }
  .cookie-note .btn { flex: 0 0 auto; }
}

body.has-buybar h1 { font-size: clamp(1.875rem, 3.4vw, 2.875rem); }

@media (min-width: 1024px) {
  body.has-buybar h1 { font-size: clamp(2.375rem, 3.4vw, 3.125rem); }
  body.has-buybar h2 { font-size: 2.375rem; }
  body.has-buybar .course-hero { grid-template-columns: 1.15fr .85fr; }
  body.has-buybar .course-hero > .simulator { grid-column: 1 / -1; }
}

:root {
  --ink: #25262c;
  --ink-soft: #43454f;
  --muted: #696c7a;
  --muted-strong: #565963;
  --line: #ecedf3;
  --line-strong: #d9dbe4;
  --surface-alt: #f5f6f9;
  --r-sm: 14px; --r-md: 20px; --r-lg: 28px; --r-xl: 40px;
}

h1, h2, h3, .btn, .kick, strong, b { font-family: var(--font-heading); }
h1 { font-weight: 900; letter-spacing: -.02em; }
h2, body.has-buybar h2 { font-weight: 900; letter-spacing: -.015em; }
h3 { font-weight: 800; letter-spacing: -.01em; }
body { font-weight: 400; }

.btn {
  border-radius: var(--r-pill);
  font-weight: 800;
  letter-spacing: -.01em;
}
.btn.primary { background: var(--lime); color: var(--ink); }
.btn.primary:hover { background: var(--lime-deep); }
.btn.secondary { background: var(--surface); border: 1px solid var(--line-strong); }

.kick { font-weight: 800; letter-spacing: .1em; color: var(--muted); }

.course-card {
  border-radius: var(--r-xl);
  border-color: var(--line);
  overflow: hidden;
}
.course-card:hover { border-color: var(--line-strong); }
.course-photo { border-radius: 0; }
.course-tag {
  background: var(--tint);
  color: var(--ink-soft);
  font-weight: 800;
  border-radius: var(--r-pill);
}
.card-price strong { font-family: var(--font-heading); font-weight: 900; }

.youth-hero-card, .course-youth-photo, .hero__ph { border-radius: var(--r-xl); }
.hero-badge { border-radius: var(--r-md); font-weight: 800; }
.hero-badge--price strong { font-weight: 900; }

.panel, .home-audience .panel, .cta, .final-cta,
body.has-buybar .demo, body.has-buybar .certificate-grid,
.simulator, .demo { border-radius: var(--r-xl); }

.filters .filter { border-radius: var(--r-pill); font-weight: 800; }
.facts span { border-radius: var(--r-pill); font-weight: 600; }

.pp-quick-buy__input { border-radius: var(--r-md); }
.pp-buy-modal__dialog { border-radius: var(--r-xl); }

.mobile-buybar {
  border-radius: var(--r-pill);
  left: var(--s4); right: var(--s4); bottom: var(--s4);
  width: auto;
  box-shadow: var(--shadow-lg);
}

.tiles { display: grid; gap: var(--s5); grid-template-columns: 1fr; }

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  align-items: flex-start;
}
.tile h2 { margin: 0; }
.tile p { margin: 0; max-width: 46ch; }
.tile__kick {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}
.tile__btn { margin-top: var(--s3); background: var(--surface); color: var(--ink); }
.tile__btn:hover { background: var(--surface); transform: translateY(-1px); }

.tile--sky {
  background: linear-gradient(140deg, #9bdfff 0%, #cdeeff 60%, #e9f7ff 100%);
  color: var(--ink);
}
.tile--lime {
  background: linear-gradient(140deg, #c9ff52 0%, #e2ff9c 60%, #f2ffd2 100%);
  color: var(--ink);
}
.tile--violet {
  background: linear-gradient(140deg, #4a25e0 0%, #5b37f0 55%, #6c4bff 100%);
  color: #fff;
}
.tile--violet h2, .tile--violet b { color: #fff; }
.tile--violet p, .tile--violet .lead { color: rgba(255,255,255,.94); }
.tile--violet .trust-row > div { color: #fff; border-bottom-color: rgba(255,255,255,.28); }

.tile--ink { background: var(--dark-bg); color: #fff; }
.tile--ink h2, .tile--ink b { color: #fff; }
.tile--ink p, .tile--ink small { color: var(--dark-text); }
.tile--ink .steps div { background: rgba(255,255,255,.06); border-radius: var(--r-md); padding: var(--s5); }
.tile--ink .steps span {
  background: var(--lime); color: var(--ink);
  width: 32px; height: 32px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-weight: 800;
}

.tile.two-col { display: grid; gap: var(--s7); align-items: start; }

@media (min-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile.two-col { grid-template-columns: 1fr 1fr; }
}

.section:has(> .tile),
.section:has(> .tiles) { padding: var(--s6) 0; }

.tile .trust-row {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  margin: var(--s3) 0 0;
}
.tile .trust-row > div {
  background: none;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.24);
  border-radius: 0;
  padding: var(--s4) 0;
  font-weight: 600;
  text-align: left;
}
.tile--violet .trust-row > div { color: #fff; }
.tile .lead { margin-top: var(--s4); }

@media (min-width: 860px) {
  .tile .trust-row { grid-template-columns: repeat(2, 1fr); column-gap: var(--s7); }
}

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(24px, 3vw, 40px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}

.hero-stage__photo {
  position: relative;
  width: min(100%, 720px);
  border-radius: var(--r-xl);
  overflow: visible;
  background: linear-gradient(150deg, #efe6ff 0%, #e7f6ff 55%, #f3ffdd 100%);
  padding: clamp(16px, 2vw, 28px);
}
.hero-stage__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-xl) - 12px);
  aspect-ratio: 664 / 560;
  object-fit: cover;
  object-position: center 22%;
}
.hero-stage__note {
  position: absolute;
  left: -8px;
  bottom: 28px;
  margin: 0;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s5);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  line-height: 1.25;
  text-align: left;
  color: var(--muted-strong);
}
.hero-stage__note b { display: block; font-size: 1.25rem; font-weight: 900; color: var(--ink); }

.hero-stage .hero-badge--age { top: 28px; left: 28px; }
.hero-stage .hero-badge--price { right: 28px; bottom: 28px; text-align: left; }

.hero-stage__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s5);
  max-width: 820px;
}
.hero-stage__text h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: 1.02; }
.hero-stage__text .kick { margin: 0; }
.hero-stage__text .lead { margin: 0; max-width: 60ch; }
.hero-stage__text .facts { justify-content: center; margin: 0; }
.hero-stage__text .actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin: 0; }
.hero-stage__text .actions .btn { width: auto; }

@media (max-width: 699px) {
  .hero-stage__note { left: 0; bottom: 12px; padding: var(--s3) var(--s4); font-size: 0.8125rem; }
  .hero-stage__note b { font-size: 1rem; }
  .hero-stage .hero-badge--age { top: 20px; left: 20px; }
  .hero-stage .hero-badge--price { right: 20px; bottom: 20px; }
}

.hero-stage__photo img { aspect-ratio: 664 / 400; max-height: 420px; }
.hero-stage { padding-top: var(--s5); gap: clamp(24px, 3vw, 36px); }

@media (max-width: 699px) {
  .hero-stage__photo img { aspect-ratio: 1 / 1; max-height: none; }
}

body.has-buybar .demo {
  background: linear-gradient(140deg, #4a25e0 0%, #5b37f0 55%, #6c4bff 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
}
body.has-buybar .demo h2 { color: #fff; }
body.has-buybar .demo p { color: rgba(255,255,255,.94); }
body.has-buybar .demo small { color: rgba(255,255,255,.7); }
body.has-buybar .demo-preview-option {
  background: rgba(255,255,255,.94);
  border-color: transparent;
  color: var(--ink);
}
body.has-buybar .demo-preview-option:hover { border-color: #fff; background: #fff; }
body.has-buybar .demo-lock { color: rgba(255,255,255,.85); }

body.has-buybar .certificate-grid {
  background: linear-gradient(140deg, #9bdfff 0%, #cdeeff 60%, #e9f7ff 100%);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
}

.section-tint--sky {
  background: linear-gradient(140deg, #9bdfff 0%, #cdeeff 60%, #e9f7ff 100%);
  border-radius: var(--r-xl);
}
.section-tint--sky > .container { padding: clamp(28px, 4vw, 56px); width: auto; }

body.has-buybar .modules { display: grid; gap: var(--s3); }
body.has-buybar .module-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s6);
}
body.has-buybar .module-num {
  background: var(--lime); color: var(--ink);
  width: 34px; height: 34px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-size: 0.875rem;
}

.catalog-intro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s5); }
.catalog-intro h1 { max-width: 18ch; }
.catalog-intro .lead { margin: 0; }
.catalog-intro .facts { justify-content: center; margin: 0; }

@media (min-width: 860px) {
  body.has-buybar .modules { grid-template-columns: repeat(2, 1fr); }
}

.section-tint--sky,
.section-tint--lilac,
.section-tint--lime {
  width: min(100% - 28px, 1180px);
  margin-inline: auto;
}

.course-hero {
  background: linear-gradient(150deg, #4a25e0 0%, #5b37f0 45%, #6c4bff 100%);
  color: #fff;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
  margin-bottom: clamp(32px, 5vw, 64px);
}
.course-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s5);
  text-align: center;
  max-width: 860px;
}
.course-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}
.course-hero__chip {
  margin: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 9px 20px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
}
.course-hero__lead {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(1rem, 1.7vw, 1.1875rem);
  color: rgba(255, 255, 255, .94);
}
.course-hero .btn.primary {
  margin-top: var(--s3);
  padding: 18px 36px;
  font-size: 1.0625rem;
}
.course-hero__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, .85);
}

.course-preview { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
.course-preview__art {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-alt);
}
.course-preview__art img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.course-preview .simulator { margin: 0; }

@media (min-width: 860px) {
  .course-preview { grid-template-columns: .8fr 1.2fr; align-items: stretch; }
}

.mobile-buybar {
  display: flex;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: var(--s5);
  width: max-content;
  max-width: calc(100% - 2 * var(--s4));
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: var(--s2) var(--s2) var(--s2) var(--s6);
  gap: var(--s5);
  align-items: center;
  box-shadow: 0 12px 40px rgba(18, 22, 38, .16);
}
.mobile-buybar strong { font-size: 1.125rem; color: var(--ink); }
.mobile-buybar small { color: var(--muted-strong); font-size: 0.75rem; }
.mobile-buybar .btn { white-space: nowrap; }

@media (min-width: 1024px) {
  .mobile-buybar { display: flex; }
}
body.has-buybar .cookie-note { bottom: calc(var(--s9) + var(--s7)); }

.course-preview__art img { aspect-ratio: 16 / 10; max-height: 360px; }

@media (min-width: 860px) {
  .course-preview__art img { aspect-ratio: auto; max-height: none; }
}

.final-cta, .cta {
  background: linear-gradient(140deg, #4a25e0 0%, #5b37f0 55%, #6c4bff 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 72px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
}
.final-cta h2, .cta h2 { color: #fff; max-width: 20ch; }
.final-cta p, .cta p { color: rgba(255,255,255,.94); max-width: 48ch; margin: 0; }
.final-cta .kick, .cta .kick, .final-cta .eyebrow, .cta .eyebrow { color: rgba(255,255,255,.85); margin: 0; }
.final-cta .btn.primary, .cta .btn.primary {
  background: var(--surface);
  color: var(--ink);
  margin-top: var(--s3);
  padding: 18px 36px;
}
.final-cta .btn.primary:hover, .cta .btn.primary:hover { background: #fff; }

.mobile-buybar { position: fixed; z-index: 55; }

.dark-section {
  width: min(100% - 28px, 1180px);
  margin-inline: auto;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
}
.dark-section > .container { width: auto; padding: 0; }

.section-tint--sky,
.section-tint--lilac,
.section-tint--lime,
.dark-section,
body.has-buybar .certificate-grid,
body.has-buybar .demo,
.final-cta,
.cta,
.course-preview,
.tile { margin-block: clamp(20px, 3vw, 40px); }

body.has-buybar .section,
.section { padding: clamp(28px, 4vw, 56px) 0; }

.section-tint--sky,
.section-tint--lilac,
.section-tint--lime,
.dark-section,
body.has-buybar .certificate-grid,
body.has-buybar .demo,
.final-cta,
.cta,
.course-preview,
.tile { margin-block: clamp(40px, 5vw, 72px); }

.section.dark-section,
.section.section-tint--sky,
.section.section-tint--lilac,
.section.section-tint--lime,
body.has-buybar .section.certificate-grid,
.section.faq {
  padding-left: clamp(24px, 4vw, 56px);
  padding-right: clamp(24px, 4vw, 56px);
}

.tile,
body.has-buybar .demo,
.final-cta,
.cta,
.course-hero__inner,
.price,
.pricebox {
  padding-left: clamp(24px, 4vw, 56px);
  padding-right: clamp(24px, 4vw, 56px);
}

body .section.dark-section,
body .section.section-tint--sky,
body .section.section-tint--lilac,
body .section.section-tint--lime,
body .section.faq,
body.has-buybar .section.dark-section,
body.has-buybar .section.section-tint--sky,
body.has-buybar .section.faq {
  padding-left: clamp(24px, 4vw, 56px);
  padding-right: clamp(24px, 4vw, 56px);
}

.mobile-buybar { display: none; }

.hero-cta-spacer { width: 100%; }

.course-hero .btn.primary.is-stuck {
  position: fixed;
  left: var(--s4);
  right: var(--s4);
  bottom: calc(var(--s4) + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: 420px;
  margin: 0 auto;
  transform: none;
  z-index: 55;
  box-shadow: 0 12px 40px rgba(18, 22, 38, .22);
  animation: none;
}

body.has-buybar .cookie-note { bottom: calc(var(--s9) + var(--s6)); }
