/* ════════════════════════════════════════════════════════════════════
   IT-Корпус — landing styles
   Design system: editorial, clean, professional
   Palette: blue #0273ff accent, dark #1e1e1e / light #f5f5f7
   Font: Inter Tight (existing brand)

   Source-of-truth and rules: see DESIGN_SYSTEM.md
   ════════════════════════════════════════════════════════════════════ */


/* ──────── 1. Tokens ──────── */

:root {
  /* Surfaces */
  --c-bg-dark: #1e1e1e;
  --c-bg-darker: #131313;
  --c-bg-light: #f5f5f7;
  --c-bg-light-alt: #ebebef;
  --c-card-light: #ffffff;
  --c-card-dark: #2a2a2a;
  --c-card-dark-elevated: #333333;
  --c-photo-bg: #0c0c0c;

  /* Form inputs (dark surface) */
  --c-input-bg: #393939;
  --c-input-bg-focus: #424245;

  /* Text */
  --c-text-light: #ffffff;
  --c-text-dark: #1e1e1e;
  --c-text-muted-light: #c8c8c8;
  --c-text-muted-dark: #86868b;
  --c-text-subtle: #6e6e73;

  /* Accent */
  --c-accent: #0273ff;
  --c-accent-hover: #0058ff;
  --c-accent-light: #6da8ff;
  --c-accent-soft: rgba(2, 115, 255, 0.08);
  --c-accent-soft-strong: rgba(2, 115, 255, 0.16);
  --c-accent-glow: rgba(2, 115, 255, 0.32);

  --c-border-dark: #3a3a3a;
  --c-border-light: #e5e5e7;

  /* Status */
  --c-success: #3eb95f;
  --c-success-soft: rgba(62, 185, 95, 0.14);
  --c-success-text: #2a9b48;
  --c-warn-soft: rgba(255, 184, 0, 0.16);
  --c-warn-text: #b58300;
  --c-orange-soft: rgba(255, 122, 0, 0.14);
  --c-orange-text: #d65800;
  --c-danger-soft: rgba(220, 60, 60, 0.12);
  --c-danger-text: #b22b2b;
  --c-success-text-light: #bff1ce;

  /* Overlays (semi-transparent surfaces on top of dark/light) */
  --c-surface-on-dark: rgba(255, 255, 255, 0.04);
  --c-surface-on-dark-strong: rgba(255, 255, 255, 0.08);
  --c-divider-on-dark: rgba(255, 255, 255, 0.06);
  --c-divider-on-light: rgba(0, 0, 0, 0.04);
  --c-overlay-scrim: rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-body: var(--font-display);

  /* Spacing scale (8px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 48px;
  --s-9: 64px;
  --s-10: 80px;
  --s-11: 120px;

  /* Radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 980px;

  /* Layout */
  --max-w: 1280px;
  --max-w-narrow: 1080px;
  --max-w-prose: 720px;

  /* Motion */
  --t-fast: 0.15s ease;
  --t-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
}


/* ──────── 2. Reset & base ──────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchor targets visible below the sticky header */
  scroll-padding-top: 88px;
}

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--c-text-dark);
  background: var(--c-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Avoid horizontal scroll caused by decorative overflows */
  overflow-x: hidden;
}

/* Global focus ring — accessible on every interactive surface that doesn't override it */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* Selection color */
::selection {
  background: var(--c-accent-soft-strong);
  color: var(--c-text-dark);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }


/* ──────── 3. Typography ──────── */

.h-display {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h-1 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.h-2 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.016em;
}

.h-3 {
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.h-4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.008em;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.eyebrow--muted { color: var(--c-text-muted-dark); }

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--c-text-muted-dark);
  max-width: 680px;
}

.text-muted { color: var(--c-text-muted-dark); }
.text-muted-light { color: var(--c-text-muted-light); }


/* ──────── 4. Layout primitives ──────── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

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

.section {
  padding: var(--s-10) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--s-11) 0; }
}

.section--dark {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
}

.section--light {
  background: var(--c-bg-light);
  color: var(--c-text-dark);
}

.section--white {
  background: var(--c-card-light);
  color: var(--c-text-dark);
}

/* Section spacing modifiers — used when one section visually continues another */
.section--no-top { padding-top: 0; }
.section--no-bottom { padding-bottom: 0; }

.stack-2 > * + * { margin-top: var(--s-2); }
.stack-3 > * + * { margin-top: var(--s-3); }
.stack-4 > * + * { margin-top: var(--s-4); }
.stack-5 > * + * { margin-top: var(--s-5); }
.stack-6 > * + * { margin-top: var(--s-6); }


/* ──────── 5. Buttons ──────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-base), color var(--t-fast);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-accent);
  color: var(--c-text-light);
}
.btn--primary:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--c-accent-glow);
}

.btn--dark {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
}
.btn--dark:hover {
  background: var(--c-bg-darker);
  transform: translateY(-1px);
}

.btn--white {
  background: var(--c-card-light);
  color: var(--c-text-dark);
  border: 1px solid var(--c-border-light);
}
.btn--white:hover {
  background: var(--c-bg-light-alt);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.btn--lg { padding: 20px 40px; font-size: 17px; }
.btn--full { width: 100%; }


/* ──────── 6. Header ──────── */

.header {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.header__logo img { height: 28px; width: auto; }

.header__nav {
  display: none;
  align-items: center;
  gap: var(--s-6);
}

@media (min-width: 980px) {
  .header__nav { display: flex; }
}

.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-muted-light);
  transition: color var(--t-fast);
}
.header__nav a:hover { color: var(--c-text-light); }

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-text-light);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--t-fast);
}
.header__cta:hover { background: var(--c-accent-hover); }


/* ──────── 7. Hero (light) ──────── */

.hero {
  background: var(--c-bg-light);
  color: var(--c-text-dark);
  padding: var(--s-9) 0 var(--s-10);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.hero::before {
  content: '';
  position: absolute;
  top: -240px;
  right: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(2, 115, 255, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: start;
  position: relative;
}

@media (min-width: 980px) {
  .hero__inner {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-9);
  }
}

.hero__intake .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-soft-strong);
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
  color: var(--c-accent);
}

.hero h1 {
  margin-bottom: var(--s-5);
  color: var(--c-text-dark);
}

.hero__sub {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--c-text-muted-dark);
  margin-bottom: var(--s-6);
  max-width: 560px;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--s-7);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--c-card-light);
  color: var(--c-text-dark);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
}

.pill__check {
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-text-light);
  font-size: 10px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-border-light);
  max-width: 480px;
}

.stat__num {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
  color: var(--c-text-dark);
}

.stat__label {
  font-size: 14px;
  color: var(--c-text-muted-dark);
  line-height: 1.4;
}

/* Hero card with form */
.hero__card {
  background: var(--c-card-dark);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  color: var(--c-text-light);
  box-shadow: 0 24px 48px rgba(2, 30, 60, 0.08), 0 8px 16px rgba(2, 30, 60, 0.06);
}

@media (min-width: 980px) {
  .hero__card {
    margin-top: -18px;
    padding: var(--s-5);
    gap: 18px;
  }

  .hero__card .hero__video {
    aspect-ratio: 16 / 6;
  }

  .hero__card .hero__form-sub {
    margin-top: 6px;
  }

  .hero__card .form {
    gap: 10px;
  }

  .hero__card .form__input {
    padding: 12px 16px;
  }

  .hero__card .btn--lg {
    padding: 17px 36px;
  }
}

.hero__video {
  position: relative;
  aspect-ratio: 16 / 6;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-card-dark-elevated);
}

.hero__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero__video img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero__video-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  color: var(--c-text-light);
  font-size: 12px;
  font-weight: 500;
}

.hero__form-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--c-text-light);
}

.hero__form-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text-muted-light);
  margin-top: var(--s-2);
}


/* ──────── 8. Form ──────── */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.form__row {
  position: relative;
}

.form__input {
  width: 100%;
  background: var(--c-input-bg);
  border: 1px solid var(--c-border-dark);
  color: var(--c-text-light);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 15px;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.form__input::placeholder { color: var(--c-text-muted-dark); }
.form__input:focus {
  outline: none;
  border-color: var(--c-accent);
  background: var(--c-input-bg-focus);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-text-muted-light);
}

.form__check input {
  margin-top: 2px;
  accent-color: var(--c-accent);
}

.form__check a { color: var(--c-text-light); border-bottom: 1px solid currentColor; }

.form__hint {
  font-size: 13px;
  color: var(--c-text-muted-dark);
  text-align: center;
  margin-top: 8px;
}

.form__hint a {
  color: var(--c-accent);
  font-weight: 500;
}

.form__message {
  display: none;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
}

.form__message--success {
  background: var(--c-success-soft);
  color: var(--c-success-text-light);
}

.form__message--error {
  background: var(--c-surface-on-dark-strong);
  color: #ffd1d1;
}


/* ──────── 9. Section heading ──────── */

.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-9);
  max-width: 760px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}


/* ──────── 10. Tasks (Что делает BA) ──────── */

.tasks {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 768px) {
  .tasks { grid-template-columns: repeat(3, 1fr); }
}

.task {
  background: var(--c-bg-light);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.task:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.task__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.task__title { line-height: 1.3; }

.task__result {
  background: var(--c-card-light);
  border-radius: var(--r-md);
  padding: var(--s-4);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-muted-dark);
  margin-top: auto;
  border: 1px solid var(--c-border-light);
}
.task__result strong {
  display: block;
  color: var(--c-accent);
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.task__result-text { color: var(--c-text-dark); font-weight: 500; }


/* ──────── 11. Audience fit ──────── */

.fit {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 768px) {
  .fit { grid-template-columns: repeat(2, 1fr); }
}

.fit__col {
  background: var(--c-card-dark);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r-lg);
  padding: var(--s-7);
}

.fit__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--s-5);
}

.fit__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.fit__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text-muted-light);
}

.fit__mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.fit__mark--plus {
  background: var(--c-accent-soft-strong);
  color: var(--c-accent);
}

.fit__mark--minus {
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-text-muted-dark);
}

.fit__cta {
  margin-top: var(--s-7);
  text-align: center;
}


/* ──────── 12. Modules (программа курса) ──────── */

.modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}

.module {
  background: var(--c-card-light);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base);
}

.module:hover { border-color: var(--c-accent-soft-strong); }
.module[open] { border-color: var(--c-accent); }

.module__head {
  list-style: none;
  display: grid;
  grid-template-columns: 90px 1fr 28px;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  cursor: pointer;
}

.module__head::-webkit-details-marker { display: none; }

.module__week {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.module__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.module__chevron {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-bg-light);
  color: var(--c-text-muted-dark);
  font-size: 16px;
  transition: transform var(--t-base), background var(--t-base);
}

.module[open] .module__chevron {
  transform: rotate(45deg);
  background: var(--c-accent);
  color: var(--c-text-light);
}

.module__body {
  padding: 0 var(--s-6) var(--s-6);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--s-4);
}

@media (max-width: 640px) {
  .module__head, .module__body {
    grid-template-columns: 1fr;
  }
  .module__head { gap: var(--s-2); padding: var(--s-5); }
  .module__body { padding: 0 var(--s-5) var(--s-5); }
  .module__chevron { position: absolute; right: var(--s-5); top: var(--s-5); }
  .module__head { position: relative; padding-right: 60px; }
}

.module__topics {
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text-muted-dark);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.module__topics ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
}
.module__topics ul li { list-style: disc; color: var(--c-text-dark); }
.module__topics ul li::marker { color: var(--c-accent); }

.module__outcome {
  background: var(--c-accent-soft);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--c-text-dark);
}
.module__outcome strong { color: var(--c-accent); }


/* ──────── 13. Support (Поддержка обучения) ──────── */

.support {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 768px) {
  .support { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .support { grid-template-columns: repeat(4, 1fr); }
}

.support__item {
  background: var(--c-card-dark);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

.support__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-accent-soft-strong);
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--s-4);
}

.support__visual {
  margin-bottom: var(--s-4);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.support__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--c-text-light);
}

.support__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text-muted-light);
}


/* ──────── 14. Teacher (Дена) — full-section, dark ──────── */

.teacher-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
  margin-top: var(--s-9);
}

@media (min-width: 880px) {
  .teacher-block {
    grid-template-columns: 415px minmax(0, 480px);
    justify-content: center;
    gap: var(--s-7);
    align-items: center;
  }
}

.teacher-block__photo {
  aspect-ratio: 4 / 5;
  background: var(--c-photo-bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 415px;
}
.teacher-block__photo img { width: 100%; height: 100%; object-fit: cover; }

.teacher-block__name {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--c-text-light);
  margin-bottom: var(--s-2);
}

.teacher-block__role {
  font-size: 17px;
  font-weight: 400;
  color: var(--c-text-muted-light);
  margin-bottom: var(--s-7);
}

.teacher-block__points {
  display: flex;
  flex-direction: column;
}

.teacher-block__point {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--c-border-dark);
  font-size: 17px;
  line-height: 1.5;
  color: var(--c-text-light);
}
.teacher-block__point:first-child { padding-top: 0; }
.teacher-block__point:last-child { border-bottom: 0; padding-bottom: 0; }

.teacher-block__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 2px;
}


/* ──────── 14a. Salary growth (Зарплаты + HH) ──────── */

.salary {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 880px) {
  .salary { grid-template-columns: 1.1fr 1fr; }
}

.salary-card {
  background: var(--c-card-dark);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.salary-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  align-items: end;
  margin-top: auto;
  height: 320px;
}

.salary-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-3);
  height: 100%;
  justify-content: flex-end;
}

.salary-bar__num {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--c-text-light);
  text-align: center;
  white-space: nowrap;
}

.salary-bar__shape {
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 100%);
  border-radius: 12px 12px 0 0;
  width: 100%;
}

.salary-bar--1 .salary-bar__shape { height: 22%; }
.salary-bar--2 .salary-bar__shape { height: 50%; }
.salary-bar--3 .salary-bar__shape { height: 100%; }

.salary-bar__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-light);
  text-align: center;
}
.salary-bar__sub {
  font-size: 12px;
  color: var(--c-text-muted-dark);
  text-align: center;
  line-height: 1.35;
}

.hh-card {
  background: var(--c-card-dark);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-width: 0;
  width: 100%;
}
.hh-card__visual {
  flex-grow: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  min-height: 200px;
}
.hh-card__visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hh-card__visual--contain { padding: var(--s-3); display: flex; align-items: center; justify-content: center; }
.hh-card__visual--contain img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.hh-card__visual--mock {
  background: #fff;
  padding: var(--s-5);
  overflow: hidden;
}
.hh-card__visual--mock > * { min-width: 0; }

/* Мок-карточка hh.ru с подсвеченным «Можно удалённо» */
.hh-mock {
  font-family: var(--font-body);
  color: #1e1e1e;
}
.hh-mock > * + * { margin-top: 8px; }
.hh-mock__meta {
  font-size: 12px;
  color: #86868b;
}
.hh-mock__title {
  font-size: 18px;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.01em;
}
.hh-mock__highlight {
  padding: 10px 12px;
  border: 2px solid #ff5252;
  border-radius: 8px;
  font-size: 14px;
  color: #1e1e1e;
  line-height: 1.6;
}
.hh-mock__highlight strong {
  font-weight: 700;
  margin-right: 4px;
}
.hh-mock__tag {
  display: inline-block;
  background: #f0f0f4;
  color: #1e1e1e;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 4px;
  white-space: nowrap;
}
.hh-mock__line {
  display: inline-block;
  background: #f0f0f4;
  color: #1e1e1e;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}
.hh-mock__rating {
  font-size: 12px;
  color: #6e6e73;
}

/* Мок-таблица компенсационного пакета */
.package-mock {
  width: 100%;
  font-family: var(--font-body);
  color: #1e1e1e;
  background: #fff;
  border: 1px solid #e5e5e7;
  border-radius: 8px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
}
.package-mock__head {
  background: #7b3fe4;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  text-align: center;
}
.package-mock__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid #ececef;
}
.package-mock__row:first-of-type { border-top: none; }
.package-mock__row span { color: #1e1e1e; }
.package-mock__row strong {
  font-weight: 700;
  color: #1e1e1e;
  white-space: nowrap;
}
.package-mock__row--total {
  background: #f7f5ff;
  font-weight: 600;
}

.hh-card__num {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text-light);
  line-height: 1;
}
.hh-card__label {
  font-size: 14px;
  color: var(--c-text-muted-light);
  line-height: 1.45;
}


/* ──────── 14b. Feature cards (Резюме / Кураторы) ──────── */

.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 768px) { .feature-cards { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--c-card-light);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
}

.section--dark .feature-card {
  background: var(--c-card-dark);
}

.feature-card__visual {
  aspect-ratio: 4 / 3;
  background: var(--c-bg-light);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-6);
}
.section--dark .feature-card__visual { background: rgba(255, 255, 255, 0.02); }
.feature-card__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.feature-card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--s-3);
}

.feature-card__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text-muted-dark);
}

.section--dark .feature-card__text { color: var(--c-text-muted-light); }


/* ──────── 14c. Дополнительная поддержка (dark wrapper) ──────── */

.support-extra {
  background: var(--c-card-dark);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  margin-top: var(--s-7);
}

@media (min-width: 768px) {
  .support-extra {
    padding: var(--s-8);
    margin-top: var(--s-8);
  }
}

.support-extra__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.014em;
  line-height: 1.2;
  color: var(--c-text-light);
  margin-bottom: var(--s-6);
}

.support-extra__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 768px) {
  .support-extra__grid { grid-template-columns: 1fr 1fr; }
}

.support-extra__card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.support-extra__visual {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.support-extra__visual img { width: 100%; height: 100%; object-fit: cover; }

.support-extra__heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text-light);
  line-height: 1.3;
}
.support-extra__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-muted-light);
}


/* ──────── 14d. Chips для блока программы ──────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
  margin-bottom: var(--s-7);
}

@media (min-width: 768px) {
  .chips { margin-bottom: var(--s-8); }
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--c-card-light);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-dark);
  white-space: nowrap;
}

.section--dark .chip {
  background: var(--c-card-dark);
  border-color: var(--c-border-dark);
  color: var(--c-text-light);
}


/* ──────── 14e. Stat-card (карточка статистики в блоке зарплат) ──────── */

.stat-card {
  background: var(--c-card-dark);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 200px;
}

.stat-card__num {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text-light);
  line-height: 1;
}

.stat-card__label {
  font-size: 14px;
  color: var(--c-text-muted-light);
  line-height: 1.45;
}


/* ──────── 15. Cases (Истории выпускников) ──────── */

.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 560px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .cases { grid-template-columns: repeat(5, 1fr); } }

.case {
  background: var(--c-card-light);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.case:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.case__photo {
  aspect-ratio: 1 / 1;
  background: var(--c-bg-light-alt);
  overflow: hidden;
}
.case__photo img { width: 100%; height: 100%; object-fit: cover; }

.case__body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex-grow: 1;
}

.case__from-to {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-border-light);
}

.case__from { font-size: 12px; color: var(--c-text-muted-dark); line-height: 1.4; }
.case__name { font-size: 16px; font-weight: 600; }

.case__title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-text-muted-dark);
}

.case__story {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-muted-dark);
  flex-grow: 1;
}

.case__result {
  background: var(--c-accent-soft);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-text-dark);
}
.case__result strong {
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
  color: var(--c-accent);
}


/* ──────── 16. Pricing ──────── */

.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 768px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}

.tariff {
  background: var(--c-card-dark);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.tariff--featured {
  border-color: var(--c-accent);
  background: linear-gradient(180deg, var(--c-accent-soft-strong) 0%, var(--c-card-dark) 30%);
  position: relative;
}

.tariff__badge {
  position: absolute;
  top: -14px;
  right: var(--s-7);
  background: var(--c-accent);
  color: var(--c-text-light);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
}

.tariff__name { font-size: 20px; font-weight: 700; }

.tariff__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tariff__price-monthly {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.tariff__price-monthly-from { font-size: 14px; color: var(--c-text-muted-light); }
.tariff__price-monthly-num {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--c-text-light);
}
.tariff__price-monthly-suffix { font-size: 16px; color: var(--c-text-muted-light); font-weight: 500; }
.tariff__price-detail { font-size: 13px; color: var(--c-text-muted-dark); line-height: 1.4; }
.tariff__price-detail strong { color: var(--c-text-muted-light); font-weight: 500; }

.tariff__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex-grow: 1;
}
.tariff__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--c-text-muted-light);
}
.tariff__list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-accent-soft-strong);
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'><path d='M1 4l2.5 2.5L9 1' stroke='%230273ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.tariff__list li.is-off { color: var(--c-text-subtle); opacity: 0.55; }
.tariff__list li.is-off::before { background: rgba(255, 255, 255, 0.04); background-image: none; }

/* Comparison block under tariffs */

.compare {
  margin-top: var(--s-7);
  background: var(--c-card-dark);
  border-radius: var(--r-xl);
  padding: var(--s-7);
}

.compare__roi {
  background: linear-gradient(135deg, var(--c-accent-soft-strong) 0%, transparent 50%);
  border: 1px solid var(--c-accent-soft-strong);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  margin-bottom: var(--s-7);
}

.compare__roi-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: -0.022em;
  line-height: 1;
  margin-bottom: var(--s-2);
}

.compare__roi-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text-muted-light);
}
.compare__roi-text strong { color: var(--c-text-light); }

.competitors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-3);
}

.competitor {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r-md);
  padding: var(--s-5);
}

.competitor--us {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.competitor__label { font-size: 13px; color: var(--c-text-muted-dark); margin-bottom: 6px; font-weight: 500; }
.competitor__price { font-size: 22px; font-weight: 700; color: var(--c-text-light); margin-bottom: 4px; letter-spacing: -0.012em; }
.competitor__detail { font-size: 12px; color: var(--c-text-muted-dark); }

.competitor--us .competitor__label,
.competitor--us .competitor__detail { color: rgba(255, 255, 255, 0.85); }
.competitor--us .competitor__label { font-weight: 600; }


/* ──────── 17. FAQ ──────── */

.faq {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.faq__item {
  background: var(--c-card-light);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq__item:hover { border-color: var(--c-accent-soft-strong); }
.faq__item[open] { border-color: var(--c-accent); }

.faq__q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  color: var(--c-text-dark);
}
.faq__q::-webkit-details-marker { display: none; }

.faq__chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-bg-light);
  color: var(--c-text-muted-dark);
  font-size: 18px;
  transition: transform var(--t-base), background var(--t-base);
}
.faq__item[open] .faq__chevron {
  transform: rotate(45deg);
  background: var(--c-accent);
  color: var(--c-text-light);
}

.faq__a {
  padding: 0 var(--s-6) var(--s-6);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-muted-dark);
  max-width: 800px;
}

.faq__a p + p { margin-top: 12px; }


/* ──────── 18. Final CTA ──────── */

.final-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 768px) {
  .final-cta { grid-template-columns: repeat(2, 1fr); }
}

.cta-card {
  background: var(--c-card-light);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.cta-card--primary {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
  border-color: var(--c-bg-dark);
}

.cta-card__title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.cta-card__text { font-size: 15px; line-height: 1.55; flex-grow: 1; }
.cta-card--primary .cta-card__text { color: var(--c-text-muted-light); }

.cta-card__hint {
  font-size: 13px;
  color: var(--c-text-muted-dark);
  line-height: 1.5;
}

.cta-card__btn {
  margin-top: var(--s-2);
}


/* ──────── 19. Footer ──────── */

.footer {
  background: var(--c-bg-darker);
  color: var(--c-text-muted-light);
  padding: var(--s-9) 0 var(--s-7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer__brand { display: flex; flex-direction: column; gap: var(--s-3); }
.footer__brand-logo { display: inline-flex; align-items: center; gap: 8px; }
.footer__brand-logo img { height: 32px; width: auto; }
.footer__brand-tag { font-size: 14px; line-height: 1.5; max-width: 320px; color: var(--c-text-muted-light); }

.footer__col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted-dark);
  margin-bottom: var(--s-3);
}

.footer__list { display: flex; flex-direction: column; gap: var(--s-2); }
.footer__list a {
  font-size: 14px;
  color: var(--c-text-muted-light);
  transition: color var(--t-fast);
}
.footer__list a:hover { color: var(--c-text-light); }

.footer__legal {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 12px;
  color: var(--c-text-subtle);
}


/* ──────── 20. Utilities ──────── */

.text-center { text-align: center; }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }


/* ──────── 21. Test page (/test) — interactive ──────── */

.test-page {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
  min-height: 100vh;
  position: relative;
}
.test-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(2, 115, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(2, 115, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.test-page > * { position: relative; z-index: 1; }

.test-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-5) var(--s-9);
}

@media (min-width: 768px) {
  .test-shell { padding: var(--s-9) var(--s-5) var(--s-10); }
}

.test-screen { display: none; }
.test-screen--active { display: block; animation: fadein 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

#screen-intro.test-screen--active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Intro screen */

.test-intro__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
}

.test-intro__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-soft-strong);
  color: var(--c-accent-light);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
}

.test-intro__title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.024em;
  color: var(--c-text-light);
  margin: 0;
  max-width: 16ch;
}

.test-intro__lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--c-text-muted-light);
  max-width: 56ch;
  margin: 0;
}
.test-intro__lead strong { color: var(--c-text-light); font-weight: 500; }
.test-intro__lead--muted { font-size: 15px; color: var(--c-text-muted-light); opacity: 0.75; }

.test-intro__inner .btn { margin-top: var(--s-3); }

/* Progress bar */

.test-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--s-7);
}

.test-progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--c-text-muted-light);
  font-weight: 500;
}

.test-progress__bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.test-progress__fill {
  height: 100%;
  background: var(--c-accent);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* Question */

.test-question__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.014em;
  line-height: 1.2;
  margin-bottom: var(--s-6);
  color: var(--c-text-light);
}

.test-options {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.test-option {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--c-card-dark);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: 16px;
  line-height: 1.45;
  color: var(--c-text-light);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  font-family: inherit;
}

.test-option:hover {
  border-color: var(--c-accent-soft-strong);
  background: var(--c-accent-soft);
}

.test-option__indicator {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--c-border-dark);
  position: relative;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.test-option--active {
  border-color: var(--c-accent);
  background: var(--c-accent-soft-strong);
  box-shadow: 0 0 0 4px var(--c-accent-soft-strong);
}

.test-option--active .test-option__indicator {
  border-color: var(--c-accent);
  background: var(--c-accent);
}
.test-option--active .test-option__indicator::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--c-text-light);
}

.test-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-7);
  gap: var(--s-3);
  flex-wrap: wrap;
}

.test-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-muted-light);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px 4px;
  transition: color var(--t-fast);
  font-family: inherit;
}
.test-back:hover { color: var(--c-text-light); }
.test-back:disabled { opacity: 0.3; cursor: not-allowed; }

/* Result */

.test-result__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--s-5);
}

.test-result--green .test-result__badge { background: var(--c-success-soft); color: var(--c-success-text); }
.test-result--yellow .test-result__badge { background: var(--c-warn-soft); color: var(--c-warn-text); }
.test-result--orange .test-result__badge { background: var(--c-orange-soft); color: var(--c-orange-text); }
.test-result--red .test-result__badge { background: var(--c-danger-soft); color: var(--c-danger-text); }

.test-result__title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--s-3);
  color: var(--c-text-light);
}

.test-result__score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--s-6);
  font-size: 14px;
  color: var(--c-text-muted-light);
}
.test-result__score strong { font-size: 22px; color: var(--c-text-light); font-weight: 700; }

.test-result__text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text-light);
  margin-bottom: var(--s-7);
}
.test-result__text p + p { margin-top: var(--s-4); }
.test-result__text strong { font-weight: 600; color: var(--c-accent-light); }

.test-result__lead-form {
  background: var(--c-card-dark);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-6);
}

.test-result__form-copy {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}

.test-result__form-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text-light);
}

.test-result__form-copy p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text-muted-light);
}

.test-result__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
@media (min-width: 480px) {
  .test-result__actions { flex-direction: row; flex-wrap: wrap; }
}


/* legacy hidden */
.test-hero {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
  padding: var(--s-11) 0;
  position: relative;
  overflow: hidden;
}

.test-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, var(--c-accent-soft-strong) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(2, 115, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.test-hero__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.test-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.024em;
}

.test-hero__lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--c-text-muted-light);
}
.test-hero__lead strong { color: var(--c-text-light); font-weight: 500; }

.test-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  align-self: center;
  padding: 8px 16px;
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-soft-strong);
  color: var(--c-accent-light);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
}


/* ──────── 22. What you get section (test page) ──────── */

.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 768px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
}

.benefit {
  background: var(--c-card-dark);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

.benefit__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-accent-soft-strong);
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: var(--s-4);
}

.benefit__title { font-size: 17px; font-weight: 600; color: var(--c-text-light); margin-bottom: var(--s-2); }
.benefit__text { font-size: 14px; line-height: 1.5; color: var(--c-text-muted-light); }
.benefit__text strong { color: var(--c-text-light); font-weight: 500; }


/* ──────── 23. Steps (test page) ──────── */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  display: flex;
  gap: var(--s-4);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--c-accent);
  color: var(--c-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.step__title { font-size: 16px; font-weight: 600; color: var(--c-text-light); margin-bottom: 4px; }
.step__text { font-size: 14px; line-height: 1.5; color: var(--c-text-muted-light); }


/* ──────── 24. Promise (negative list) ──────── */

.promise {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.promise li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text-muted-light);
}

.promise li::before {
  content: '✕';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}


/* ──────── 25. Decorative — grain optional ──────── */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .reveal:nth-child(2) { animation-delay: 0.05s; }
  .reveal:nth-child(3) { animation-delay: 0.1s; }
  .reveal:nth-child(4) { animation-delay: 0.15s; }
  .reveal:nth-child(5) { animation-delay: 0.2s; }
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}


/* ──────── 26. Module-mini (Модули 5–10, без аккордеона) ──────── */

.modules-mini {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 560px) {
  .modules-mini { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .modules-mini { grid-template-columns: repeat(3, 1fr); }
}

.module-mini {
  background: var(--c-card-light);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: border-color var(--t-base), transform var(--t-base);
}

.module-mini:hover {
  border-color: var(--c-accent-soft-strong);
  transform: translateY(-2px);
}

.module-mini__week {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.module-mini__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: var(--c-text-dark);
}

.module-mini__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-muted-dark);
}

.modules-mini__intro {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--c-text-dark);
  margin-bottom: var(--s-6);
}


/* ──────── 27. Compare-table (Сравнение тарифов) ──────── */

.compare-table-wrapper {
  background: var(--c-card-dark);
  border-radius: var(--r-lg);
  padding: var(--s-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}

.compare-table th {
  text-align: center;
  padding: var(--s-5) var(--s-5);
  font-weight: 600;
  color: var(--c-text-light);
  font-size: 15px;
}

.compare-table th.compare-table__feature-head {
  text-align: left;
  font-weight: 500;
  color: var(--c-text-muted-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-table tbody tr {
  border-top: 1px solid var(--c-border-dark);
}

.compare-table td {
  padding: var(--s-4) var(--s-5);
  color: var(--c-text-muted-light);
}

.compare-table td.compare-table__check {
  text-align: center;
  color: var(--c-accent);
  font-weight: 700;
  font-size: 18px;
}

.compare-table td.compare-table__dash {
  text-align: center;
  color: var(--c-border-dark);
  font-size: 18px;
}

.compare-table tr.compare-table__total {
  background: var(--c-bg-dark);
  border-top: 1px solid var(--c-border-dark);
}

.compare-table tr.compare-table__total td {
  padding: var(--s-5);
  color: var(--c-text-light);
  font-weight: 600;
}

.compare-table tr.compare-table__total td:not(:first-child) {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
}

.compare-table tr.compare-table__instalment td {
  padding: var(--s-2) var(--s-5) var(--s-5);
  font-size: 13px;
  color: var(--c-text-muted-dark);
  border-top: 0;
}

.compare-table tr.compare-table__instalment td:not(:first-child) {
  text-align: center;
}


/* ──────── 28. Market-grid (Сравнение цен с конкурентами в _v4) ──────── */

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}

.market-card {
  background: var(--c-card-dark);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.market-card--us {
  background: var(--c-accent);
  border-color: var(--c-accent);
}

.market-card__name {
  font-size: 14px;
  color: var(--c-text-muted-dark);
  margin-bottom: var(--s-2);
  font-weight: 500;
}

.market-card--us .market-card__name {
  color: var(--c-text-light);
  font-weight: 600;
}

.market-card__price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--c-text-light);
}

.market-card__detail {
  font-size: 12px;
  color: var(--c-text-muted-dark);
  line-height: 1.4;
  margin-top: var(--s-1);
}

.market-card--us .market-card__detail {
  color: var(--c-text-light);
  opacity: 0.9;
}


/* ──────── 29. Local utilities (replacements for inline styles) ──────── */

/* Dark heading pinned over .compare wrapper background */
.compare__heading {
  color: var(--c-text-light);
  margin-bottom: var(--s-2);
}

/* Compact muted subhead under .compare__heading */
.compare__sub {
  font-size: 13px;
  margin-bottom: var(--s-5);
}

/* Inline brand logo inside .competitor--us — same height as text */
.competitor__logo {
  height: 18px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

/* Disclaimer line under the final CTA */
.cta-disclaimer {
  margin-top: var(--s-6);
  font-size: 14px;
}

/* Telegram-channel link in the footer brand block */
.footer__channel-link {
  color: var(--c-accent);
  margin-top: var(--s-2);
  font-weight: 500;
  transition: color var(--t-fast);
}
.footer__channel-link:hover { color: var(--c-accent-light); }

/* Lead-text under the .fit grid before its CTA */
.fit__cta-text {
  margin: 0 auto var(--s-5);
}

/* Market sub-section heading inside the compare wrapper */
.compare__market-head {
  margin-top: var(--s-7);
  margin-bottom: var(--s-5);
}
.compare__market-head .compare__sub { margin-bottom: 0; }


/* ──────── 30. Mobile polish ──────── */

/* On narrow screens roomy 40px card paddings cramp the content — tighten them. */
@media (max-width: 640px) {
  .fit__col,
  .tariff,
  .salary-card,
  .hh-card,
  .stat-card,
  .cta-card,
  .support-extra,
  .compare {
    padding: var(--s-5);
  }

  .compare__roi { padding: var(--s-5); }

  .tariff__badge { right: var(--s-5); }

  /* Pricing list is a wall of text on small phones — give it air */
  .tariff { gap: var(--s-4); }

  /* Hero pills overflow on phones — let them wrap with a smaller gap */
  .hero__pills { gap: var(--s-2); }
  .pill { padding: 8px 14px; font-size: 13px; }

  /* Footer columns stacked: ensure consistent gap */
  .footer__inner { gap: var(--s-6); }
}

/* Reduce sticky-header height on small phones to leave more room for hero */
@media (max-width: 480px) {
  .header { padding: 14px 0; }
  .header__cta { padding: 9px 14px; font-size: 13px; }
}

/* Ensure interactive aria-current/active states remain visible on touch */
.faq__item[open] .faq__q,
.module[open] .module__head {
  color: var(--c-text-dark);
}
