/* ================================================================
   CareerGo landing — premium institutional design
   Палитра: deep navy ink, warm ivory, single accent
   Шрифты: Inter (UI) + JetBrains Mono (цифры, лейблы)
   ================================================================ */

:root {
  /* primary surface palette */
  --surface-0: #FFFFFF;
  --surface-1: #FBFAF7;       /* warm ivory */
  --surface-2: #F5F2EC;       /* deeper ivory */
  --surface-line: #E8E4DC;
  --surface-line-hi: #D6D1C5;

  /* ink scale */
  --ink-900: #0A0F1C;         /* deep near-black navy */
  --ink-800: #14192A;
  --ink-700: #2A2F42;
  --ink-600: #5B6470;         /* WCAG AA on warm ivory surface-2 */
  --ink-500: #6B7280;
  --ink-400: #9CA3AF;
  --ink-300: #D1D5DB;

  /* accents */
  --accent-700: #1B3A6B;
  --accent-500: #2E5AA8;
  --accent-100: #E8EEF8;
  --gold: #C9A969;             /* premium accent */
  --gold-soft: #E8DCBC;

  --pos: #1F6B3A;
  --neg: #8E2A2F;

  /* radii / shadows */
  --r-2: 2px;
  --r-4: 4px;
  --r-12: 12px;
  --shadow-soft: 0 1px 2px rgba(10, 15, 28, 0.04), 0 8px 24px rgba(10, 15, 28, 0.06);
  --shadow-deep: 0 4px 12px rgba(10, 15, 28, 0.08), 0 24px 48px rgba(10, 15, 28, 0.10);

  /* layout */
  --max-w: 1240px;
  --pad-x: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }

html, body { overflow-x: hidden; max-width: 100vw; }
html { background: var(--surface-0); scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-700);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' 1, 'cv11' 1;
}

/* iOS-фикс: не зумить при фокусе на input, если font-size <16px */
input, select, textarea {
  font-size: max(16px, 1em);
}

a { color: var(--accent-700); text-decoration: none; transition: color 140ms ease; }
a:hover { color: var(--accent-500); }

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

h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ====== Reusable type ====== */

.zone-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  margin-bottom: 14px;
}
.zone-label.light { color: rgba(255, 255, 255, 0.55); }

.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.section-title.light { color: #fff; }
.section-title strong { color: var(--ink-900); font-weight: 700; }

.section-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-500);
  max-width: 680px;
  margin-bottom: 0;
}
.section-dark .section-sub { color: rgba(255, 255, 255, 0.6); }

.lede-dark {
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin-bottom: 36px;
}

/* ====== NAV ====== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad-x);
  background: rgba(255, 255, 255, 0);
  transition: background 200ms ease, border-color 200ms ease, padding 200ms ease;
  border-bottom: 1px solid transparent;
}
.nav-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-color: var(--surface-line);
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-900); padding: 6px 0; min-height: 44px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--ink-900);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: var(--r-2);
}
.logo-text { font-size: 15px; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links > a { color: var(--ink-700); font-weight: 500; }
.nav-links > a:hover { color: var(--ink-900); }

.btn-cta {
  display: inline-flex; align-items: center;
  padding: 11px 18px;
  background: var(--ink-900) !important;
  color: #fff !important;
  font-weight: 500;
  font-size: 13px;
  border-radius: var(--r-2);
  transition: background 160ms ease;
  min-height: 40px;
  white-space: nowrap;
}
.btn-cta:hover { background: var(--accent-700) !important; }

/* На мобильном — гарантированный 44px tap-target */
@media (max-width: 720px) {
  .btn-cta { padding: 12px 18px; min-height: 44px; }
}

@media (max-width: 880px) {
  .nav-links > a:not(.btn-cta) { display: none; }
}

/* ====== HERO ====== */

.hero {
  position: relative;
  padding: clamp(110px, 14vw, 180px) var(--pad-x) clamp(80px, 12vw, 140px);
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* серая сетка как у институционалов */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: 0;
}
.hero-grad {
  position: absolute;
  top: -30%; right: -25%;
  width: 80vw; height: 80vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 30% 30%, rgba(46, 90, 168, 0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}
.hero-tag .dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
}
.hero-tag .dot.live {
  background: #4ADE80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero-title {
  font-size: clamp(36px, 6.5vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.032em;
  color: #fff;
  margin-bottom: 26px;
  max-width: 1000px;
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 720px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-flex; align-items: center;
  padding: 16px 28px;
  background: #fff;
  color: var(--ink-900) !important;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r-2);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--gold-soft);
  box-shadow: 0 4px 14px rgba(201, 169, 105, 0.25);
}

.btn-ghost-dark {
  display: inline-flex; align-items: center;
  padding: 16px 24px;
  background: transparent;
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-2);
  transition: border-color 200ms ease, color 200ms ease;
}
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff !important; }

/* hero-metrics — это «сердце» премиум-вида */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 4vw, 64px);
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 980px;
}
.metric { text-align: left; }
.metric-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.metric-num span {
  color: var(--gold);
  font-size: 0.5em;
  margin-left: 4px;
  font-weight: 500;
}
.metric-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* ====== PROOF BAND ====== */

.proof-band {
  background: var(--surface-2);
  border-bottom: 1px solid var(--surface-line);
  padding: 20px var(--pad-x);
}
.proof-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-500);
}
.proof-tag {
  display: inline-flex;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--ink-900);
  padding: 6px 12px;
  border-radius: var(--r-2);
}
.proof-text { line-height: 1.5; }

/* ====== SECTIONS BASE ====== */

.section {
  padding: clamp(72px, 11vw, 140px) var(--pad-x);
}
.section-dark {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.78);
}

/* ====== PROBLEM ====== */

.section-problem { background: var(--surface-1); }
.section-problem .section-title strong { color: var(--neg); font-weight: 700; }
.pain-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.pain {
  background: #fff;
  border: 1px solid var(--surface-line);
  border-radius: var(--r-4);
  padding: 28px 26px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.pain:hover {
  transform: translateY(-2px);
  border-color: var(--ink-800);
  box-shadow: var(--shadow-soft);
}
.pain-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}
.pain-num {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.pain-text { font-size: 14px; color: var(--ink-500); line-height: 1.6; }

/* ====== CATEGORY ====== */

.section-category { background: var(--ink-900); position: relative; overflow: hidden; }
.section-category::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 1200px; height: 1200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 169, 105, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.category-statement { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; text-align: center; }
.big-quote {
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.25;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.022em;
  margin: 0 0 56px;
}
.big-quote em {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
}
.category-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 32px;
  text-align: left;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cat-h { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.cat-p { font-size: 14px; color: rgba(255, 255, 255, 0.6); line-height: 1.55; }

/* ====== ROLES — swipe-slider ====== */

.section-roles { background: var(--surface-0); }

.roles-slider {
  margin-top: 56px;
  position: relative;
}
/* Side arrows on desktop — sit OUTSIDE the card, in the slider's side padding */
.roles-arrow-side {
  display: none;
  position: absolute;
  top: calc(50% - 28px);
  transform: translateY(-50%);
  z-index: 5;
  width: 52px; height: 52px;
  box-shadow: var(--shadow-soft);
}
.roles-arrow-left { left: 0; }
.roles-arrow-right { right: 0; }
@media (min-width: 720px) {
  .roles-arrow-side { display: inline-flex; }
  /* room for side arrows on desktop so they don't overlap the card */
  .roles-slider { padding: 0 72px; }
}
.roles-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  gap: 32px;
  scrollbar-width: none;
  padding: 0 0 8px;
}
.roles-track::-webkit-scrollbar { display: none; }

.role-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--surface-1);
  border: 1px solid var(--surface-line);
  border-radius: var(--r-4);
  padding: 36px 40px;
  max-width: 100%;
}

/* McKinsey-style slide heading with gold underline */
.role-title {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
  padding-bottom: 14px;
  position: relative;
}
.role-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.role-top {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  max-width: 760px;
}

/* face block — small portrait thumbnail */
.role-face {
  position: relative;
  border-radius: var(--r-4);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--ink-900);
}
.role-face img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) saturate(0.94);
}

/* quote — thin gold rule on left */
.role-quote { position: relative; padding-left: 18px; border-left: 2px solid var(--gold); }
.role-quote blockquote {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.role-quote figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

/* McKinsey-style comparison table: hairlines, no box, weight contrast */
.role-trans {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-900);
}
.role-trans-head {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.1fr);
  column-gap: 32px;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--surface-line-hi);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-500);
}
.role-trans-head-before { grid-column: 2; }
.role-trans-head-after  { grid-column: 3; }

.role-trans-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.1fr);
  column-gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--surface-line);
  align-items: baseline;
}
.role-trans-row:last-child { border-bottom: none; }

.role-trans-topic {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-900);
  white-space: nowrap;
}
.role-trans-before {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-600);
}
.role-trans-after {
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}

/* controls — стрелки и точки */
.roles-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}
.roles-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--surface-line);
  background: #fff;
  color: var(--ink-700);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.roles-arrow:hover { border-color: var(--ink-900); color: var(--ink-900); }
.roles-arrow:active { transform: scale(0.96); }
.roles-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.roles-dots { display: inline-flex; gap: 4px; align-items: center; }
.roles-dot {
  width: 28px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.roles-dot::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-300);
  transition: background 160ms ease, width 200ms ease, border-radius 200ms ease;
}
.roles-dot.active::before { background: var(--ink-900); width: 24px; border-radius: 4px; }
.roles-dot:hover:not(.active)::before { background: var(--ink-500); }

/* Top controls — only visible on mobile, compact pill with counter + arrows */
.roles-controls-top {
  display: none;
  margin-top: 0;
  margin-bottom: 18px;
  justify-content: space-between;
  gap: 12px;
}
.roles-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-700);
  background: var(--surface-2);
  border: 1px solid var(--surface-line);
  border-radius: 100px;
  padding: 8px 14px;
  flex: 1;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.roles-counter > span { white-space: nowrap; }
.roles-counter-pos { color: var(--gold); }
.roles-counter-sep { color: var(--ink-300); }
.roles-counter-name { color: var(--ink-900); }
.roles-counter-hint {
  display: none;
  margin-left: 6px;
  color: var(--ink-400);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: none;
}
.roles-controls-top .roles-arrow {
  width: 40px; height: 40px;
  font-size: 20px;
  flex: 0 0 auto;
}

/* ====== PRODUCT (5 stages on dark) ====== */

.section-product { background: var(--ink-900); }
.section-product .section-title { color: #fff; }
.stages-v2 {
  list-style: none;
  margin-top: 56px;
  display: grid;
  gap: 24px;
}
.stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: padding-left 240ms ease;
}
.stage:first-child { border-top: 0; padding-top: 0; }
.stage:hover { padding-left: 8px; }
.stage-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
  min-width: 70px;
}
.stage-body h4 {
  font-size: clamp(20px, 2.2vw, 26px);
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stage-body p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 720px;
}
.stage-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-chips span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 100px;
}

/* ====== QUOTES ====== */

.section-quotes { background: var(--surface-1); }
.quotes {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.quote {
  background: #fff;
  border: 1px solid var(--surface-line);
  border-radius: var(--r-4);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.quote:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.quote::before {
  content: '"';
  position: absolute;
  top: 8px; right: 22px;
  font-family: 'Inter', serif;
  font-size: 80px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.18;
  font-weight: 700;
}
.quote blockquote {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  font-weight: 500;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.quote figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--surface-line);
  padding-top: 14px;
  line-height: 1.5;
}

/* ====== DIFFERENTIATION ====== */

.section-diff { background: var(--surface-0); }
.diff-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.diff-card {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--r-4);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.diff-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-deep); }
.diff-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}
.diff-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.diff-card p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.diff-card em { font-style: normal; color: #fff; font-weight: 600; }

/* ====== PRICING ====== */

.section-pricing { background: var(--surface-1); }
.price-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .price-grid-4 { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
}
@media (min-width: 900px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .price-grid-2 { grid-template-columns: 1.35fr 1fr; }
}
@media (min-width: 1100px) {
  .price-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .price-grid-4 .price-card { padding: 28px 22px; }
  .price-grid-4 .price-h { font-size: 18px; }
  .price-grid-4 .price-features li { font-size: 12.5px; line-height: 1.45; gap: 6px; }
}
.price-card {
  background: #fff;
  border: 1px solid var(--surface-line);
  border-radius: var(--r-4);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.price-featured {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.85);
  border: none;
  transform: scale(1.02);
}
.price-featured:hover { box-shadow: var(--shadow-deep); }
.price-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}
.price-h {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.price-featured .price-h { color: #fff; }
.price-sub {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.55;
  margin-bottom: 24px;
}
.price-featured .price-sub { color: rgba(255, 255, 255, 0.6); }
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: auto;
}
.price-features li {
  font-size: 13px;
  color: var(--ink-700);
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--pos);
  font-weight: 700;
}
.price-featured .price-features li { color: rgba(255,255,255,0.8); }
.price-featured .price-features li::before { color: var(--gold); }
.price-badge {
  position: absolute;
  top: -10px; left: 28px;
  background: var(--gold);
  color: var(--ink-900);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--r-2);
}

/* Price amount block — only on featured tier (Founders Rate) */
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.price-was {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  font-weight: 400;
}
.price-now {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-period {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0;
}
.price-deal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 18px;
}
.price-featured .price-features li strong { color: #fff; font-weight: 600; }

/* Solo price (on light card) */
.price-amount-solo { margin-bottom: 6px; }
.price-now-solo {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price-now-quote { color: var(--ink-700); font-size: 22px; }
.price-period-solo {
  display: inline;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-500);
  letter-spacing: 0;
  margin-left: 2px;
}
.price-deal-solo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  margin-bottom: 18px;
  line-height: 1.4;
}

/* Dual price block — two payment options stacked with "или" separator */
.price-dual {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.price-opt { display: flex; flex-direction: column; gap: 2px; }
.price-opt-amount {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price-opt-unit {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0;
}
.price-opt-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}
.price-opt-best .price-opt-amount { color: var(--gold); }
.price-opt-best .price-opt-period { color: var(--gold); opacity: 0.85; }
.price-dual-sep {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 2px 0;
  position: relative;
}
.price-dual-sep::before, .price-dual-sep::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.price-dual-sep::before { left: 0; }
.price-dual-sep::after { right: 0; }

/* ====== TESTIMONIALS ====== */
.section-testimonials { background: var(--surface-1); }
.testimonials-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 900px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial {
  background: #fff;
  border: 1px solid var(--surface-line);
  border-radius: var(--r-4);
  padding: 28px 26px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}
.testimonial-mark {
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 0.6;
  color: var(--gold);
  height: 24px;
  font-weight: 700;
}
.testimonial blockquote {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-700);
  font-weight: 400;
  margin: 0;
  flex: 1;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-line);
}
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.testimonial-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}

/* ====== WAITLIST ====== */

.section-accent { background: var(--ink-900); position: relative; overflow: hidden; }
.section-accent::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 70vw; height: 70vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle at 50% 50%, rgba(201, 169, 105, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.waitlist-container { position: relative; z-index: 1; max-width: 680px; }

.lead-form { margin-top: 36px; }
.lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-2);
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transition: border-color 160ms ease, background 160ms ease;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: rgba(255, 255, 255, 0.42); }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
}
.lead-form select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath d='M3 5l3 3 3-3' stroke='%23C9A969' stroke-width='1.2' fill='none'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.lead-form select option { color: var(--ink-900); background: #fff; }
.lead-form textarea {
  resize: vertical;
  min-height: 56px;
  margin-bottom: 12px;
  font-family: inherit;
}
.lead-form .hp { position: absolute !important; left: -9999px !important; opacity: 0; pointer-events: none; }
.lead-submit-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.lead-form button {
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  background: var(--gold);
  color: var(--ink-900);
  border: 0;
  border-radius: var(--r-2);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.lead-form button:hover:not(:disabled) { background: #d8bb7d; transform: translateY(-1px); }
.lead-form button:disabled { opacity: 0.7; cursor: wait; }
.lead-status { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.lead-status.ok {
  display: block;
  padding: 18px 22px;
  background: rgba(74, 222, 128, 0.08);
  border-left: 3px solid #4ADE80;
  color: #fff;
  font-size: 15px;
  border-radius: var(--r-2);
}
.lead-status.err { color: #FBB; }
.fine { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin-top: 8px; }
.fine a {
  display: inline-block;
  color: var(--gold);
  text-decoration: underline;
  padding: 4px 0;
}
@media (max-width: 720px) {
  .fine a { padding: 10px 4px; min-height: 44px; line-height: 1.6; }
}

@media (max-width: 540px) {
  .lead-row { grid-template-columns: 1fr; }
}

/* ====== FAQ ====== */

.section-faq { background: var(--surface-0); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--surface-line);
  padding: 22px 0;
  transition: padding-left 200ms ease;
}
.faq-item:hover { padding-left: 6px; }
.faq-item summary {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: -2px;
  font-size: 24px;
  font-weight: 300;
  color: var(--ink-400);
  line-height: 1;
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--gold); }
.faq-item p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.65;
  max-width: 680px;
}

/* ====== FOOTER ====== */

.footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.55);
  padding: 64px var(--pad-x) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 48px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 40px;
  margin-bottom: 28px;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 0;
}
.footer-links-grid a {
  display: inline-flex; align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  padding: 8px 0;
  min-height: 32px;
  line-height: 1.3;
}
.footer-links-grid a:hover { color: #fff; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand p { font-size: 13px; line-height: 1.55; margin-top: 14px; max-width: 320px; }
.footer-brand .logo { color: #fff; }
.footer-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col a {
  display: inline-flex; align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  padding: 8px 0;
  min-height: 32px;
  line-height: 1.3;
}
.footer-col a:hover { color: #fff; }
@media (max-width: 720px) {
  .footer-col a { padding: 10px 0; min-height: 44px; }
}
.footer-sm { font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, 0.4); }
.footer-disclaimer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0;
}

/* ====== FADE-IN на скролле ====== */

.fade-init { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.fade-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-init { opacity: 1; transform: none; transition: none; }
  .stage { transition: none; }
  .hero-tag .dot.live { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ====== Mobile фиксы ====== */

/* TABLET / SMALL DESKTOP — до 960px */
@media (max-width: 960px) {
  :root { --pad-x: clamp(18px, 4vw, 40px); }
  .section { padding-top: clamp(56px, 9vw, 96px); padding-bottom: clamp(56px, 9vw, 96px); }
  .hero { padding-top: clamp(96px, 14vw, 140px); padding-bottom: clamp(64px, 10vw, 100px); }
  /* Метрики ровно 4 в ряд на планшете (а не 3+1) */
  .hero-metrics { grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
  .metric-num { font-size: clamp(34px, 4.4vw, 48px); }
  /* Category row — даём 3 колонки на планшете */
  .category-row { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
}

/* MOBILE — до 720px */
@media (max-width: 720px) {
  /* Hero */
  .hero { padding-top: 88px; padding-bottom: 64px; }
  .hero-tag { font-size: 10px; padding: 5px 12px; margin-bottom: 22px; }
  .hero-title { font-size: clamp(32px, 9vw, 44px); line-height: 1.08; margin-bottom: 20px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 42px; }
  .btn-primary, .btn-ghost-dark { justify-content: center; padding: 15px 22px; font-size: 14px; }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
    padding-top: 28px;
  }
  .metric-num { font-size: clamp(32px, 9vw, 44px); margin-bottom: 8px; }
  .metric-label { font-size: 12px; }

  /* Sections */
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-title { font-size: clamp(24px, 7vw, 34px); margin-bottom: 12px; }
  .section-sub, .lede-dark { font-size: 14px; }
  .zone-label { font-size: 10px; margin-bottom: 12px; }

  /* Proof band */
  .proof-band-inner { gap: 12px; font-size: 12px; }
  .proof-tag { font-size: 10px; padding: 5px 10px; }

  /* Problem */
  .pain-grid { margin-top: 32px; gap: 14px; }
  .pain { padding: 22px 20px; }
  .pain-num { font-size: 22px; margin-bottom: 10px; }
  .pain-text { font-size: 13px; }

  /* Category (dark) */
  .big-quote { font-size: clamp(22px, 6vw, 30px); margin-bottom: 36px; }
  .category-row {
    grid-template-columns: 1fr;
    padding-top: 24px;
    gap: 28px;
  }
  .cat-h { font-size: 16px; }
  .cat-p { font-size: 14px; }

  /* Roles slider */
  .roles-slider { margin-top: 28px; }
  .role-slide {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }
  .role-title { font-size: 18px; padding-bottom: 10px; }
  .role-title::after { width: 32px; }
  .role-top { grid-template-columns: 1fr; gap: 16px; max-width: none; }
  .role-face { aspect-ratio: 1 / 1; max-width: 220px; margin: 0 auto; }
  /* Top control bar visible on mobile */
  .roles-controls-top { display: flex; }
  .roles-counter-hint { display: inline; }
  .role-quote { padding-left: 14px; }
  .role-quote blockquote { font-size: 16px; }
  .role-quote figcaption { font-size: 10px; }
  .role-trans { border-top-color: var(--ink-900); }
  .role-trans-head { display: none; }
  .role-trans-row {
    grid-template-columns: 1fr;
    row-gap: 4px;
    padding: 14px 0;
    align-items: start;
  }
  .role-trans-topic {
    font-size: 10px;
    order: 0;
    margin-bottom: 2px;
  }
  .role-trans-after {
    order: 1;
    font-size: 14.5px;
    line-height: 1.4;
  }
  .role-trans-before {
    order: 2;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--ink-500);
    margin-top: 2px;
  }
  .role-trans-before::before {
    content: 'Было · ';
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 600;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .roles-controls { gap: 12px; margin-top: 22px; }
  .roles-arrow { width: 44px; height: 44px; font-size: 22px; }

  /* Product (dark) */
  .stages-v2 { margin-top: 32px; gap: 0; }
  .stage {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 4px 14px;
    padding: 22px 0;
    align-items: center;
  }
  .stage:hover { padding-left: 0; }
  .stage-num { font-size: 28px; min-width: auto; align-self: center; }
  .stage-body { grid-column: 1 / -1; }
  .stage-body h4 { font-size: 18px; margin-bottom: 8px; }
  .stage-body p { font-size: 14px; margin-bottom: 12px; }
  .stage-chips span { font-size: 10.5px; padding: 3px 9px; }

  /* Quotes */
  .quotes { margin-top: 32px; gap: 14px; }
  .quote { padding: 22px 22px; }
  .quote blockquote { font-size: 15px; margin-bottom: 14px; }
  .quote figcaption { font-size: 10px; padding-top: 12px; }
  .quote::before { font-size: 60px; top: 4px; right: 18px; }

  /* Diff */
  .diff-grid { margin-top: 32px; gap: 14px; }
  .diff-card { padding: 24px 22px; }
  .diff-h { font-size: 12px; }
  .diff-card p { font-size: 13px; }

  /* Pricing */
  .price-grid { margin-top: 32px; gap: 14px; }
  .price-card { padding: 26px 22px; }
  .price-featured { transform: none; }
  .price-h { font-size: 19px; }
  .price-features li { font-size: 13px; }

  /* Waitlist */
  .lead-form { margin-top: 24px; }
  .lead-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .lead-form input, .lead-form select, .lead-form textarea { padding: 12px 14px; }
  .lead-submit-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .lead-form button { padding: 14px 24px; font-size: 15px; width: 100%; }

  /* FAQ */
  .faq-item { padding: 18px 0; }
  .faq-item:hover { padding-left: 0; }
  .faq-item summary { font-size: 15px; padding-right: 26px; }
  .faq-item p { font-size: 14px; }

  /* Footer */
  .footer { padding: 48px var(--pad-x) 32px; }
  .footer-grid { gap: 28px 20px; padding-bottom: 32px; margin-bottom: 22px; }
}

/* SMALL MOBILE — 360-420px */
@media (max-width: 420px) {
  .hero-title { font-size: clamp(28px, 8.5vw, 36px); }
  .hero-tag { font-size: 9.5px; }
  .metric-num { font-size: 32px; }
  .metric-label { font-size: 11.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .stage-num { font-size: 24px; }
  .section-title { font-size: clamp(22px, 7.5vw, 28px); }
  .big-quote { font-size: 22px; }
}

/* TINY — 320-360 (iPhone SE 1st gen, очень узкие) */
@media (max-width: 360px) {
  :root { --pad-x: 16px; }
  .nav { padding: 14px 16px; }
  .logo-text { font-size: 14px; }
  .logo-mark { width: 28px; height: 28px; font-size: 11px; }
  .btn-cta { padding: 10px 14px; font-size: 12px; }
  .hero-tag { padding: 4px 10px; }
  .hero-title { font-size: 26px; }
  .metric-num { font-size: 28px; }
  .pain-num { font-size: 20px; }
  .price-badge { left: 22px; font-size: 10px; padding: 3px 8px; }
}
