/* === Design tokens === */
:root {
  --bg-page: #ECEDF1;
  --bg-elevated: #FAFAFC;
  --bg-subtle: #F2F3F7;
  --bg-dark: #1A1A1A;
  --bg-dark-elev: #232328;
  --border: #D9DBE3;
  --border-strong: #C5C8D2;
  --border-dark: #2E2E33;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A52;
  --text-muted: #6B6E7C;
  --text-on-dark: #FAFAFC;
  --text-on-dark-2: #B8BAC4;
  --accent: #E86A1F;
  --accent-hover: #D55A0F;
  --accent-soft: rgba(232, 106, 31, 0.08);
  --accent-strong: #C75510;
  --pop-blue: #0F8AFF;
  --pop-blue-soft: rgba(15, 138, 255, 0.10);
  --pop-lime: #DDFB57;
  --pop-lime-soft: rgba(221, 251, 87, 0.40);
  --success: #10B981;
  --warn: #F59E0B;
  --error: #DC2626;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-cta: 0 10px 30px -10px rgba(232, 106, 31, 0.55);

  --container: 1280px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: "Manrope", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

::selection { background: var(--pop-lime); color: var(--text-primary); }

/* === Typography === */
.h1 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-feature-settings: "ss01", "ss02";
}
.h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}
@media (max-width: 640px) {
  .h2 {
    font-size: clamp(30px, 9.2vw, 42px);
    line-height: 1.06;
    text-wrap: pretty;
  }
}
.h3 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0;
}
.body-l { font-size: clamp(17px, 1.25vw, 20px); line-height: 1.5; color: var(--text-secondary); letter-spacing: -0.005em; }
.body-m { font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.body-s { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
@media (max-width: 480px) {
  .h1 { font-size: clamp(28px, 10vw, 42px); line-height: 1.02; }
  .h2 { font-size: clamp(27px, 8.8vw, 36px); line-height: 1.08; }
  .body-l { font-size: 16px; line-height: 1.55; }
  .body-m { font-size: 15px; line-height: 1.55; }
}
.caption {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.caption-orange { color: var(--accent); }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* === Layout === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
}
@media (max-width: 390px) {
  .container { padding: 0 14px; }
}
@media (min-width: 1440px) {
  :root { --container: 1440px; }
  .container { padding: 0 40px; }
  section { padding: 88px 0; }
}
@media (min-width: 1720px) {
  :root { --container: 1600px; }
  section { padding: 104px 0; }
}
section { padding: 56px 0; position: relative; }
@media (max-width: 768px) {
  section { padding: 40px 0; }
}
@media (max-width: 480px) {
  section { padding: 34px 0; }
}
.section-header { max-width: 880px; margin-bottom: 40px; }
@media (max-width: 768px) {
  .section-header { margin-bottom: 28px; }
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-header .h2 { margin-bottom: 16px; }

/* === Highlight mark === */
.hl {
  display: inline-block;
  position: relative;
  padding: 0 6px;
  margin: 0 -2px;
  background: var(--pop-lime);
  transform: skew(-2deg);
  color: var(--text-primary);
  border-radius: 2px;
  white-space: nowrap;
}
.h1 .nb { white-space: nowrap; }
@media (max-width: 640px) {
  .hl { white-space: normal; }
  .h1 .nb { white-space: normal; }
  .h1 { font-size: clamp(30px, 8vw, 56px); line-height: 1.04; }
}
.hl-inner { display: inline-block; transform: skew(2deg); }
.hl.draw {
  background: linear-gradient(90deg, var(--pop-lime) 0%, var(--pop-lime) 100%) no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  transition: background-size 600ms cubic-bezier(.2,.8,.2,1);
}
.hl.draw.in { background-size: 100% 100%; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.005em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 1px 1px rgba(0,0,0,0.06);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-cta); }
.btn-primary:active { background: var(--accent-strong); transform: translateY(0); }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--text-primary); background: var(--bg-elevated); }
.btn-secondary.on-dark {
  color: var(--text-on-dark);
  border-color: var(--border-dark);
  background: transparent;
}
.btn-secondary.on-dark:hover { border-color: var(--text-on-dark-2); background: var(--bg-dark-elev); }
.btn-ghost { background: transparent; color: var(--accent); padding: 12px 14px; }
.btn-ghost:hover { color: var(--accent-hover); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* === Card === */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.card.hoverable:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.card.lg { border-radius: var(--r-lg); padding: 32px; }
.card.flat { box-shadow: none; }

/* === Pill === */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 106, 31, 0.30);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill.muted { background: var(--bg-subtle); border-color: var(--border); color: var(--text-secondary); }
.pill.dark { background: rgba(255,255,255,0.04); border-color: var(--border-dark); color: var(--text-on-dark-2); }
.pill.success { background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.30); color: #0F7A5E; }

/* === Inputs === */
.field { display: block; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.field .req { color: var(--accent); }
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-primary);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox .box {
  width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--border-strong);
  background: var(--bg-elevated); flex-shrink: 0; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 160ms, background 160ms;
}
.checkbox input:checked + .box {
  background: var(--accent); border-color: var(--accent);
}
.checkbox input:checked + .box svg { opacity: 1; }
.checkbox .box svg { opacity: 0; transition: opacity 120ms; }
.checkbox span.label-text { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.checkbox a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }

/* === Reveal animation === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hl.draw { background-size: 100% 100% !important; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* === Header === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 64px;
  background: rgba(236, 237, 241, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  transition: border-color 200ms ease, background 200ms ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); font-family: "Unbounded", "Manrope", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.04em; }
.logo .glyph { width: 28px; height: 28px; border-radius: 7px; background: var(--text-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.nav { display: none; align-items: center; gap: 28px; }
@media (min-width: 768px) { .nav { display: inline-flex; } }
.nav a { font-size: 14px; font-weight: 500; color: var(--text-primary); transition: opacity 160ms; }
.nav a:hover { opacity: 0.7; }
.header-actions { display: inline-flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--text-primary);
  transition: color 160ms, background 160ms, border-color 160ms;
}
.icon-btn:hover { color: var(--accent); }
.icon-btn.bordered { border-color: var(--border); }
.icon-btn.bordered:hover { border-color: var(--border-strong); background: var(--bg-elevated); }
.burger { display: inline-flex; }
@media (min-width: 768px) { .burger { display: none; } }
.tg-only-desktop { display: none; }
@media (min-width: 768px) { .tg-only-desktop { display: inline-flex; } }
.cta-only-desktop { display: none; }
@media (min-width: 640px) { .cta-only-desktop { display: inline-flex; } }

/* Drawer */
.drawer {
  position: fixed; inset: 0; z-index: 70;
  background: var(--bg-page);
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}
.drawer.open { transform: translateY(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.drawer-links { display: flex; flex-direction: column; padding: 24px; gap: 4px; flex: 1; }
.drawer-links a { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 700; font-size: 28px; padding: 14px 0; color: var(--text-primary); border-bottom: 1px solid var(--border); letter-spacing: -0.035em; }
@media (max-width: 420px) {
  .drawer-links { padding: 18px; }
  .drawer-links a { font-size: 24px; padding: 12px 0; }
}
.drawer-bottom { padding: 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }

/* === Hero === */
.hero { padding-top: 112px; padding-bottom: 56px; position: relative; overflow: hidden; min-height: 84vh; display: flex; align-items: center; }
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: 96px;
  }
}
@media (max-width: 480px) {
  .hero { padding-top: 84px; padding-bottom: 36px; }
  .hero-sub { margin-top: 18px; }
  .hero-cta-row { margin-top: 24px; }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(74,74,82,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; right: -10%; top: -20%; width: 60%; height: 80%;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (max-width: 1023px) {
  .hero-grid { gap: 28px; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .hero-stats { margin-top: 0; justify-self: end; }
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-sub { margin-top: 24px; max-width: 640px; }
.hero-lead-strong strong {
  font-weight: 700;
  color: var(--text-primary);
}
.hero-cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero-trust { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; }
@media (max-width: 640px) {
  .hero-cta-row .btn { width: 100%; }
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 460px;
  min-width: 0;
  align-self: start;
}
.hero-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 26px;
  position: relative;
  min-height: 0;
  min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  flex: 1 1 0;
}
.hero-stat .stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.hero-stat .stat-value { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 700; font-size: 34px; line-height: 1.0; color: var(--text-primary); letter-spacing: -0.04em; }
.hero-stat.feature { border-left: 3px solid var(--accent); }
.hero-stat .stat-mini { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: 0.02em; text-transform: none; line-height: 1.35; overflow-wrap: anywhere; word-break: normal; }
@media (max-width: 1023px) {
  .hero-stats {
    margin-top: 20px !important;
    height: auto !important;
    max-width: 100%;
  }
  .hero-stat {
    flex: 0 0 auto;
    min-height: 136px;
    padding: 20px 18px;
  }
  .hero-stat .stat-value {
    font-size: 44px;
    line-height: 0.95;
  }
  .hero-stat .stat-mini {
    font-size: 13px;
  }
}
@media (max-width: 640px) {
  .hero-stat .stat-value {
    font-size: 36px;
    line-height: 1;
  }
}
@media (max-width: 480px) {
  .hero-stat .stat-mini { font-size: 12px; }
}
@media (max-width: 430px) {
  .hero-stat {
    padding: 18px 16px;
    min-height: 124px;
  }
  .hero-stat .stat-value {
    font-size: 34px;
    line-height: 1;
  }
  .hero-stat .stat-mini {
    font-size: 11px;
    line-height: 1.4;
  }
}

/* === Generic grids === */
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* === Situations === */
.situation { padding: 32px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color 200ms, box-shadow 200ms; height: 100%; display: flex; flex-direction: column; gap: 14px; }
.situation:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.situation .num { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 800; font-size: 64px; line-height: 0.95; color: var(--accent); letter-spacing: -0.05em; }

/* === Offer callout === */
.offer-wrap { max-width: none; margin: 0; }
.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 26px 30px;
  border-radius: 4px 12px 12px 4px;
  color: var(--text-primary);
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-top: 28px;
}

/* === Use cases === */
.uc-card { padding: 24px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color 200ms, box-shadow 200ms; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.uc-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.uc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.uc-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-subtle); display: inline-flex; align-items: center; justify-content: center; color: var(--text-primary); }
.uc-icon.blue { background: var(--pop-blue-soft); color: var(--pop-blue); }
.uc-result {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 14px; color: var(--text-secondary);
}
.uc-result .check { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.uc-result b { color: var(--text-primary); font-weight: 600; }

/* === Dark sections === */
.dark { background: var(--bg-dark); color: var(--text-on-dark); }
.dark .h1, .dark .h2, .dark .h3 { color: var(--text-on-dark); }
.dark .body-l, .dark .body-m { color: var(--text-on-dark-2); }
.dark .body-s, .dark .caption { color: var(--text-on-dark-2); }
.dark .card { background: var(--bg-dark-elev); border-color: var(--border-dark); color: var(--text-on-dark); }

/* Quote section */
.quote-section { padding: 64px 0; background: var(--bg-dark); position: relative; overflow: hidden; }
@media (max-width: 768px) { .quote-section { padding: 48px 0; } }
.quote-wrap { max-width: 880px; margin: 0 auto; text-align: center; position: relative; }
.quote-mark { position: absolute; top: -40px; left: -20px; font-family: "Unbounded", "Manrope", sans-serif; font-weight: 800; font-size: 280px; line-height: 1; color: var(--accent); opacity: 0.4; pointer-events: none; user-select: none; }
@media (max-width: 768px) { .quote-mark { font-size: 160px; top: -20px; left: -10px; } }
.quote-text { position: relative; font-family: "Manrope", "Inter", sans-serif; font-style: italic; font-weight: 400; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.45; color: var(--text-on-dark); letter-spacing: -0.005em; text-wrap: balance; }
.quote-text .hl { font-style: normal; font-weight: 600; }
.quote-author { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 36px; }
.quote-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-dark-elev); border: 1px solid var(--border-dark); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.quote-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote-meta { text-align: left; }
.quote-name { color: var(--text-on-dark); font-weight: 700; font-size: 17px; font-family: "Unbounded", "Manrope", sans-serif; letter-spacing: -0.03em; }
.quote-role { color: var(--text-on-dark-2); font-size: 13px; }

/* === After-program checklist === */
.checklist { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .checklist { grid-template-columns: 1fr 1fr; gap: 16px 32px; } }
.checklist .item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 4px; border-bottom: 1px solid var(--border); }
.checklist .item:last-child { border-bottom: none; }
@media (max-width: 640px) {
  .checklist .item { padding: 14px 2px; gap: 10px; }
}
.check-circle { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); border: 1px solid rgba(232, 106, 31, 0.25); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.after-note {
  margin-top: 20px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* === Timeline === */
.timeline { position: relative; }
.timeline-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .timeline-grid { grid-template-columns: repeat(4, 1fr); } }
.timeline-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.timeline-card .num { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 800; font-size: 64px; line-height: 0.95; color: var(--accent); letter-spacing: -0.05em; }
.timeline-card .stage-name { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 600; font-size: 22px; color: var(--text-primary); letter-spacing: -0.025em; line-height: 1.1; }
.timeline-card .duration { font-size: 12px; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.timeline-card .duration { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.timeline-card .lesson-date-sep { color: rgba(232, 106, 31, 0.75); }
.timeline-card .lesson-date {
  color: var(--accent-strong);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 700;
}
@media (max-width: 640px) {
  .timeline-card .duration { font-size: 11px; line-height: 1.35; }
}
@media (max-width: 480px) {
  .timeline-card .duration { gap: 2px 6px; }
  .timeline-card .lesson-date-sep { display: none; }
  .timeline-card .lesson-date { width: 100%; }
}
.timeline-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.timeline-card ul li { font-size: 14px; color: var(--text-secondary); padding-left: 18px; position: relative; line-height: 1.5; }
.timeline-card ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--accent); }
.timeline-card .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); }
.timeline-card .mini-pill { font-size: 11px; padding: 4px 8px; border-radius: 999px; background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text-secondary); font-weight: 500; }
.timeline-track { display: none; }
@media (max-width: 640px) {
  .timeline-card { padding: 20px 16px; }
  .timeline-card .num { font-size: 52px; }
  .timeline-card .stage-name { font-size: 19px; }
}
@media (min-width: 1024px) {
  .timeline-track { display: block; height: 2px; background: var(--accent); margin-top: -2px; border-radius: 2px; opacity: 0.9; }
}
.timeline-summary {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between;
}
.timeline-summary .stat { display: flex; flex-direction: column; gap: 2px; }
.timeline-summary .stat .label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.timeline-summary .stat .val { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 600; font-size: 16px; color: var(--text-primary); letter-spacing: -0.03em; }

/* === Lessons carousel === */
.lessons-carousel .carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .lessons-carousel .carousel-head {
    align-items: flex-start;
    gap: 10px;
  }
  .lessons-carousel .carousel-head .body-s,
  .reviews-carousel .carousel-head .body-s {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--accent-strong) !important;
    background: var(--accent-soft);
    border: 1px solid rgba(232, 106, 31, 0.35);
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  .lessons-carousel .carousel-head .body-s::before,
  .reviews-carousel .carousel-head .body-s::before {
    content: "↔";
    font-size: 13px;
    line-height: 1;
  }
  .lessons-carousel .carousel-controls,
  .reviews-carousel .carousel-controls {
    gap: 10px;
  }
  .lessons-carousel .icon-btn,
  .reviews-carousel .icon-btn {
    width: 44px;
    height: 44px;
    border-width: 2px;
  }
}
.lessons-carousel .carousel-controls {
  display: inline-flex;
  gap: 8px;
}
.lessons-carousel .carousel-viewport {
  overflow: hidden;
  scroll-snap-type: x mandatory;
}
.lessons-carousel .timeline-grid {
  display: flex;
  gap: 16px;
  grid-template-columns: none;
}
.lessons-carousel .timeline-card {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
}
@media (min-width: 900px) {
  .lessons-carousel .timeline-card {
    flex-basis: calc(50% - 8px);
    min-width: calc(50% - 8px);
  }
}
@media (min-width: 1280px) {
  .lessons-carousel .timeline-card {
    flex-basis: calc(33.333% - 11px);
    min-width: calc(33.333% - 11px);
  }
}
.lessons-carousel .icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* === Reviews carousel === */
.reviews-carousel { margin-top: 24px; }
.reviews-viewport {
  overflow: hidden;
  scroll-snap-type: x mandatory;
}
.reviews-track { display: flex; gap: 16px; }
.review-card { flex: 0 0 100%; min-width: 100%; scroll-snap-align: start; }
.review-card .case-desc { font-size: 18px; line-height: 1.65; color: var(--text-primary); }
.review-person {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(232, 106, 31, 0.32);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}
@media (max-width: 640px) {
  .review-person { font-size: 12px; padding: 7px 10px; }
}
@media (min-width: 900px) {
  .review-card {
    flex-basis: calc(50% - 8px);
    min-width: calc(50% - 8px);
  }
}
@media (min-width: 1280px) {
  .review-card {
    flex-basis: calc(33.333% - 11px);
    min-width: calc(33.333% - 11px);
  }
}

/* === Cases === */
.case-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 16px; transition: border-color 200ms, box-shadow 200ms; height: 100%; }
.case-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.case-card.featured { border: 2px solid var(--accent); }
.case-metric { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 800; font-size: clamp(56px, 6vw, 80px); line-height: 0.92; color: var(--text-primary); letter-spacing: -0.06em; }
.case-metric.tariff-price { white-space: nowrap; font-size: clamp(54px, 5.2vw, 76px); letter-spacing: -0.05em; }
@media (max-width: 1120px) {
  .case-metric.tariff-price { font-size: clamp(42px, 7vw, 62px); }
}
.case-metric .hl { font-size: 0.96em; }
.case-desc { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
@media (max-width: 640px) {
  .case-card { padding: 20px 16px; }
  .case-metric { font-size: clamp(44px, 12vw, 60px); }
  .case-metric.tariff-price { font-size: clamp(40px, 11vw, 54px); }
}
.case-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.case-list li { font-size: 14px; color: var(--text-secondary); padding-left: 18px; position: relative; line-height: 1.5; }
.case-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--accent); }
.case-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* === Expert === */
.expert-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .expert-grid { grid-template-columns: minmax(0, 320px) 1fr; gap: 56px; } }
.expert-portrait { aspect-ratio: 1; max-width: 320px; border-radius: 24px; background: linear-gradient(140deg, var(--accent) 0%, #F08B47 100%); position: relative; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(232,106,31,0.45); }
.expert-portrait .initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: "Unbounded", "Manrope", sans-serif; font-weight: 800; font-size: 104px; color: rgba(255,255,255,0.95); letter-spacing: -0.06em; }
.expert-portrait .expert-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.expert-portrait .grain { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px); background-size: 8px 8px; opacity: 0.4; }
.expert-portrait .corner { position: absolute; bottom: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; color: rgba(255,255,255,0.8); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; font-family: "Inter", sans-serif; }
.expert-credentials { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.expert-credentials li { padding-left: 22px; position: relative; color: var(--text-secondary); line-height: 1.55; }
.expert-credentials li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 1px; background: var(--accent); }
.expert-socials { display: inline-flex; align-items: center; gap: 10px; }
.expert-socials .icon-btn { border: 1px solid var(--border); }

/* === Fit / Not fit === */
.fit-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .fit-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.fit-col { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; }
.fit-col h3 { margin-bottom: 16px; }
.fit-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fit-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; font-size: 15px; }
.fit-list .mark { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.fit-list .mark.ok { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.fit-list .mark.no { background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border); }
.fit-list.bad li { color: var(--text-muted); }

/* === FAQ === */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 4px; background: transparent; border: none; text-align: left; color: var(--text-primary); font-family: "Unbounded", "Manrope", sans-serif; font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -0.03em; cursor: pointer; transition: color 200ms; }
.faq-trigger:hover { color: var(--accent); }
.faq-trigger .plus { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); transition: transform 220ms cubic-bezier(.2,.8,.2,1); }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 320ms cubic-bezier(.2,.8,.2,1); }
.faq-item.open .faq-body { max-height: 1200px; }
.faq-body-inner { padding: 0 4px 22px; color: var(--text-secondary); font-size: 15px; line-height: 1.6; max-width: 720px; white-space: pre-line; }
@media (max-width: 640px) {
  .faq-trigger { font-size: 17px; gap: 14px; padding: 18px 2px; }
  .faq-trigger .plus { width: 24px; height: 24px; }
  .faq-body-inner { padding: 0 2px 18px; font-size: 14px; }
}
.faq-after { margin-top: 32px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-secondary); }
.faq-after a { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.faq-after a:hover { color: var(--accent-hover); }

/* === Final CTA + form === */
.cta-final { background: var(--bg-dark); padding: 72px 0 56px; position: relative; overflow: hidden; }
@media (max-width: 768px) { .cta-final { padding: 48px 0 40px; } }
.cta-final .cta-text { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-final .cta-text .cta-bullets { text-align: left; max-width: 560px; margin: 28px auto; }
.cta-final .cta-form-wrap { max-width: 640px; margin: 40px auto 0; width: 100%; box-sizing: border-box; }
.cta-final .cta-form-wrap .form-card { max-width: 640px; margin: 0 auto; box-sizing: border-box; }
@media (max-width: 640px) { .cta-final .cta-form-wrap { margin-top: 32px; } }
@media (max-width: 480px) {
  .cta-final .cta-text { text-align: left; }
  .cta-final .cta-text .eyebrow.center { justify-content: flex-start; }
}
.cta-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.cta-stack { display: flex; flex-direction: column; align-items: center; gap: 0; }
.cta-bullets { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-direction: column; gap: 12px; }
.cta-bullets li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-on-dark-2); line-height: 1.5; }
.cta-bullets .check { width: 22px; height: 22px; border-radius: 50%; background: rgba(232,106,31,0.15); color: var(--accent); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.cohort-line { display: inline-flex; align-items: center; gap: 10px; color: var(--text-on-dark); font-size: 16px; font-weight: 600; padding: 10px 14px; background: rgba(232, 106, 31, 0.10); border: 1px solid rgba(232, 106, 31, 0.25); border-radius: 999px; margin-top: 8px; }
.cohort-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232,106,31,0.15); }
.cta-fineprint { color: var(--text-on-dark-2); font-size: 13px; margin-top: 16px; }

.form-card { background: var(--bg-elevated); border-radius: 20px; padding: 28px; box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5); }
.form-card .form-title { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 700; font-size: 22px; color: var(--text-primary); margin-bottom: 4px; letter-spacing: -0.03em; }
.form-card .form-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.form-foot { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.form-success { padding: 28px 8px; text-align: center; }
.form-success .ok { width: 56px; height: 56px; border-radius: 50%; background: rgba(16,185,129,0.10); color: var(--success); display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
@media (max-width: 640px) {
  .form-card { padding: 20px 16px; border-radius: 16px; }
}

/* === Footer === */
.footer { background: var(--bg-dark); color: var(--text-on-dark-2); padding: 56px 0 32px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (min-width: 1120px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.footer h4 { font-family: "Unbounded", "Manrope", sans-serif; font-weight: 600; font-size: 12px; color: var(--text-on-dark); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--text-on-dark-2); transition: color 160ms; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer .legal { font-size: 12px; color: var(--text-on-dark-2); opacity: 0.7; margin-top: 12px; line-height: 1.55; }
.footer .logo { color: var(--text-on-dark); }
.footer .logo .glyph { background: var(--text-on-dark); color: var(--bg-dark); }
.footer-divider { height: 1px; background: var(--border-dark); margin: 40px 0 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-on-dark-2); opacity: 0.8; }

/* === Floating + sticky bar + cookies === */
.tg-fab {
  position: fixed; right: 20px; bottom: 84px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(232,106,31,0.6); border: none;
  transition: transform 160ms, background 160ms;
}
.tg-fab:hover { background: var(--accent-hover); transform: translateY(-2px); }
@media (min-width: 768px) { .tg-fab { bottom: 24px; } }
.tg-fab .tip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: var(--text-primary); color: #fff; font-size: 12px; padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 160ms;
}
.tg-fab:hover .tip { opacity: 1; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(236,237,241,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) { .sticky-bar { display: none; } }

.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 84px; z-index: 50;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; box-shadow: 0 16px 40px -12px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; gap: 12px;
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: opacity 220ms, transform 220ms;
  max-width: 480px;
}
.cookies.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookies p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.cookies .actions { display: flex; gap: 10px; }
@media (min-width: 768px) { .cookies { left: auto; right: 24px; bottom: 24px; } }

/* === Layout helpers === */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: "Inter", sans-serif; font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.eyebrow.center::before { display: none; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
hr.section-rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* === Misc === */
[hidden] { display: none !important; }
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
}

/* === Modal === */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
}
.modal.open { visibility: visible; pointer-events: auto; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 16, 22, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 220ms cubic-bezier(.2,.8,.2,1);
}
.modal.open .modal-overlay { opacity: 1; }
.modal-window {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), opacity 220ms cubic-bezier(.2,.8,.2,1);
  -webkit-overflow-scrolling: touch;
}
.modal.open .modal-window { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: color 160ms, border-color 160ms, background 160ms;
}
.modal-close:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-subtle); }
.modal-title {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.03em;
  padding-right: 40px;
}
.modal-title.center { padding-right: 0; text-align: center; }
.modal-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.55; }
.modal-sub.center { text-align: center; }

@media (max-width: 480px) {
  .modal { padding: 0; align-items: flex-start; }
  .modal-window {
    max-width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    padding: 24px 20px 28px;
    transform: translateY(20px);
  }
  .modal.open .modal-window { transform: translateY(0); }
  .modal-close { top: 10px; right: 10px; }
  .modal-title { font-size: 20px; padding-right: 44px; }
}

/* Honeypot */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Form error message */
.form-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--error);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

/* Invalid input state */
.input.invalid, .textarea.invalid, .select.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}
.checkbox.invalid .box { border-color: var(--error); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10); }

/* Submit button: loading + arrow swap */
.apply-submit { position: relative; }
.apply-submit .btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.apply-submit.loading { pointer-events: none; opacity: 0.85; }
.apply-submit.loading .btn-label,
.apply-submit.loading .btn-arrow { display: none; }
.apply-submit.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .apply-submit .btn-spinner { animation: none; border-top-color: rgba(255,255,255,0.85); }
}

/* Success modal icon */
.modal-window.modal-success { text-align: center; padding-top: 40px; }
.success-icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  display: inline-flex; align-items: center; justify-content: center;
  animation: pop 380ms cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* Body scroll lock when modal open */
body.modal-open { overflow: hidden; }

/* === Legal pages (privacy / consent) === */
.legal-page { padding-top: 96px; padding-bottom: 64px; }
@media (max-width: 768px) { .legal-page { padding-top: 80px; padding-bottom: 40px; } }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 24px;
  transition: color 160ms;
}
.legal-back:hover { color: var(--accent); }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal-h1 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.legal-meta { color: var(--text-muted); font-size: 14px; margin: 0 0 32px; }
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 40px 0 14px;
}
.legal-content h3 {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin: 24px 0 10px;
  letter-spacing: -0.02em;
}
.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul,
.legal-content ol { padding-left: 22px; margin: 12px 0 18px; }
.legal-content ul li,
.legal-content ol li { margin-bottom: 8px; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--accent-hover); }
.legal-content strong { color: var(--text-primary); font-weight: 600; }
