/* =========================================================
   lumen.lab — landing
   Визуальная система:
   - «Тёплая» белая бумага + закатный градиент (пурпур → мадженто → оранж → жёлтый)
   - Крупная редакторская типографика: Space Grotesk (display) + Instrument Serif Italic (accent)
   - Моно-акценты (JetBrains Mono) для служебных подписей
   - Пиксельные детали как playful-отсылка к референсу
   - Асимметрия, ручной grid, минимум «карточек по шаблону»
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* бумага */
  --bg: #f6f1e9;
  --bg-2: #efe8dc;
  --ink: #0e0d0b;
  --ink-2: #2a2823;
  --muted: #6a665d;
  --line: #dcd4c4;
  --line-strong: #c7bfae;

  /* «закатный» акцент */
  --g-magenta: #e5357c;
  --g-orange: #ff7a3a;
  --g-yellow: #ffd23a;
  --g-violet: #5a2bd2;
  --g-plum: #2a0f4f;

  /* функциональные */
  --ok: #1f9d55;
  --err: #d64040;

  /* шрифты */
  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* ритм */
  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
  --section-y: clamp(48px, 6vw, 80px);
  --radius: 20px;
}

/* ---------- RESET-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* Грейн — тёплая бумажная фактура. Отключается у пользователя, не любящего motion. */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  mix-blend-mode: multiply;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 14px var(--pad-x);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav--scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.nav__logo-img {
  display: block;
  height: 21px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.nav__logo-text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__logo-text em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
}

.nav__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-2);
}
.nav__links a {
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s ease;
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.burger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.25s ease;
}
.nav--open .burger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav--open .burger-icon span:nth-child(2) {
  opacity: 0;
}
.nav--open .burger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn__arrow {
  transition: transform 0.25s ease;
  display: inline-block;
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  padding: 16px 26px;
  box-shadow: 0 10px 24px -12px rgba(14, 13, 11, 0.45);
}
.btn--primary:hover {
  background: var(--g-plum);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(42, 15, 79, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 15px 24px;
}
.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--pill {
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 10px 18px;
  font-size: 14px;
}
.btn--pill:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.btn--pill-dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  padding: 14px 22px;
  font-size: 15px;
}
.btn--pill-dark:hover {
  background: var(--g-plum);
  border-color: var(--g-plum);
}

.btn--full {
  width: 100%;
  justify-content: center;
  padding: 18px 24px;
  font-size: 16px;
}

/* ==========================================================
   TYPOGRAPHY PRIMITIVES
   ========================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, white);
  width: max-content;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g-orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--g-orange) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.75;
  }
}

.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section__head {
  max-width: 920px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section__head--split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: end;
  max-width: none;
}
.section__index {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.section__title .serif {
  font-weight: 400;
  font-size: 1.05em;
  line-height: 1;
}
.section__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 96px) 0 clamp(80px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.85;
  will-change: transform;
}
.hero__gradient--a {
  width: 640px;
  height: 640px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--g-magenta),
    transparent 60%
  );
  top: -180px;
  right: -120px;
}
.hero__gradient--b {
  width: 720px;
  height: 720px;
  background: radial-gradient(
    circle at 50% 50%,
    var(--g-orange),
    transparent 62%
  );
  top: 120px;
  right: -220px;
  opacity: 0.6;
}
.hero__gradient--c {
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle at 50% 50%,
    var(--g-yellow),
    transparent 65%
  );
  top: 280px;
  right: 80px;
  opacity: 0.55;
}

.hero__inner {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(36px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.hero__title em.serif {
  font-size: 1.05em;
  line-height: 1;
  display: inline-block;
  /* Паддинг расширяет фоновый прямоугольник за пределы em-квадрата,
     чтобы background-clip: text не срезал выносные элементы (У, Й, Ф…) */
  padding: 0.15em 0.12em 0.08em 0.04em;
  margin: -0.15em -0.04em -0.08em -0.04em;
  background: linear-gradient(
    100deg,
    var(--g-violet),
    var(--g-magenta) 45%,
    var(--g-orange) 80%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* STAGE (хиро-визуал вместо стоковой картинки) */
.hero__stage {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 2vw, 32px);
  align-items: stretch;
  padding: clamp(18px, 2.2vw, 28px);
  background: color-mix(in srgb, var(--bg) 55%, white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 60px -40px rgba(42, 15, 79, 0.35);
}
.stage {
  padding: 22px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.stage--after {
  background: linear-gradient(
    135deg,
    #fff 0%,
    color-mix(in srgb, var(--g-yellow) 22%, white) 45%,
    color-mix(in srgb, var(--g-magenta) 18%, white) 100%
  );
  border-color: color-mix(in srgb, var(--g-magenta) 25%, var(--line));
  position: relative;
  overflow: hidden;
}
.stage--after::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--g-magenta) 45%, transparent),
    transparent 70%
  );
  pointer-events: none;
}
.stage__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 12px;
}
.stage__tag {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
}
.stage__tag--accent {
  background: var(--ink);
  color: var(--bg);
}
.stage__tag--mute {
  text-decoration: line-through;
  opacity: 0.7;
}
.stage__meta {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.stage__list {
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.stage__list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stage--before .stage__list li {
  color: var(--muted);
}
.stage__kpi {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--g-magenta) 40%, var(--line));
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.stage__kpi-val {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(
    100deg,
    var(--g-violet),
    var(--g-magenta),
    var(--g-orange)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stage__arrow {
  color: var(--ink);
  align-self: center;
  opacity: 0.75;
}

/* Пиксельные индикаторы */
.pixel {
  width: 10px;
  height: 10px;
  display: inline-block;
  flex-shrink: 0;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px var(--ink) inset;
}
.pixel--ok {
  background: var(--g-yellow);
  box-shadow: 2px 0 0 var(--g-orange), 0 0 0 1px var(--ink) inset;
}
.pixel--err {
  background: transparent;
  position: relative;
}
.pixel--err::before,
.pixel--err::after {
  content: "";
  position: absolute;
  inset: 2px 0;
  height: 2px;
  background: var(--err);
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.pixel--err::after {
  transform: translateY(-50%) rotate(-45deg);
}

/* TRUST marquee */
.trust {
  margin-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}
.trust__track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  will-change: transform;
}
.trust__track span {
  flex-shrink: 0;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================
   PAIN
   ========================================================== */
.pain__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.pain__card {
  grid-column: span 4;
  background: color-mix(in srgb, var(--bg) 55%, white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s ease, border-color 0.35s ease,
    background 0.35s ease;
}
.pain__card:nth-child(2) {
  transform: translateY(24px);
}
.pain__card:nth-child(3) {
  transform: translateY(48px);
}
.pain__card:hover {
  border-color: var(--ink);
}
.pain__num {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.pain__num-line {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.pain__card h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pain__card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.service {
  position: relative;
  padding: 40px 32px 36px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  transition: background 0.35s ease;
  overflow: hidden;
}
.service:hover {
  background: color-mix(in srgb, var(--bg) 55%, white);
}
.service__head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.service__idx {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--muted);
  padding-top: 8px;
}
.service h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.service h3 em.serif {
  font-size: 1.05em;
}
.service p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.service__tags li {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.service--accent {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--g-yellow) 20%, white) 0%,
    color-mix(in srgb, var(--g-orange) 22%, white) 45%,
    color-mix(in srgb, var(--g-magenta) 22%, white) 100%
  );
}
.service--accent:hover {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--g-yellow) 30%, white) 0%,
    color-mix(in srgb, var(--g-orange) 32%, white) 45%,
    color-mix(in srgb, var(--g-magenta) 32%, white) 100%
  );
}

/* ==========================================================
   DIFFERENTIATION
   ========================================================== */
.diff__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.diff__col {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.diff__col--before {
  background: var(--bg-2);
  border-right: 1px solid var(--line-strong);
}
.diff__col--after {
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--g-yellow) 18%, white),
    color-mix(in srgb, var(--g-magenta) 16%, white)
  );
}
.diff__label {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, white);
  width: max-content;
}
.diff__label--accent {
  background: var(--ink);
  color: var(--bg);
}
.diff__col ul {
  display: grid;
  gap: 14px;
  font-size: 16.5px;
  line-height: 1.5;
}
.diff__col--before ul li {
  color: var(--muted);
  position: relative;
  padding-left: 24px;
}
.diff__col--before ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 14px;
  height: 2px;
  background: var(--err);
}
.diff__col--after ul li {
  color: var(--ink);
  position: relative;
  padding-left: 24px;
}
.diff__col--after ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ok);
}

.diff__thesis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.diff__thesis > div {
  padding: 36px 0 0;
  padding-right: 36px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diff__thesis > div:last-child {
  border-right: none;
  padding-right: 0;
}
.diff__thesis > div:not(:first-child) {
  padding-left: 36px;
}
.diff__thesis h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.diff__thesis p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ==========================================================
   MID CTA
   ========================================================== */
.mid-cta {
  padding: clamp(48px, 6vw, 80px) 0;
}
.mid-cta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(24px, 3vw, 48px);
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--g-yellow) 28%, white),
    color-mix(in srgb, var(--g-orange) 22%, white) 55%,
    color-mix(in srgb, var(--g-magenta) 24%, white) 100%
  );
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.mid-cta__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(14, 13, 11, 0.12) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}
.mid-cta__inner > p {
  position: relative;
  z-index: 1;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 28ch;
}
.mid-cta__inner > .btn {
  position: relative;
  z-index: 1;
}
.mid-cta--alt .mid-cta__inner {
  background: var(--ink);
  color: var(--bg);
}
.mid-cta--alt .mid-cta__inner .serif {
  color: var(--bg-2);
}
.mid-cta--alt .mid-cta__inner::after {
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(246, 241, 233, 0.18) 1px,
    transparent 1px
  );
  opacity: 0.6;
}
.mid-cta--alt .btn--pill-dark {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.mid-cta--alt .btn--pill-dark:hover {
  background: var(--g-yellow);
  border-color: var(--g-yellow);
}

/* ==========================================================
   CASES
   ========================================================== */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.case {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  background: color-mix(in srgb, var(--bg) 50%, white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.case:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.case::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--g-orange) 28%, transparent),
    transparent 70%
  );
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.case--01::before {
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--g-magenta) 30%, transparent),
    transparent 70%
  );
}
.case--02::before {
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--g-violet) 28%, transparent),
    transparent 70%
  );
}
.case--03::before {
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--g-yellow) 50%, transparent),
    transparent 70%
  );
}
.case--04::before {
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--g-orange) 40%, transparent),
    transparent 70%
  );
}
.case > * {
  position: relative;
  z-index: 1;
}
.case__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.case__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 60%, white);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.case h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.case__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.case__label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.case__body p:not(.case__label) {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.case__result {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
}
.case__result-big {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(
    100deg,
    var(--g-violet),
    var(--g-magenta),
    var(--g-orange)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case__result-text {
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-2);
}

/* ==========================================================
   PROCESS
   ========================================================== */
.process__steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.step {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-bottom: 1px solid var(--line-strong);
  align-items: start;
  transition: padding-left 0.35s ease;
}
.step:hover {
  padding-left: 16px;
}
.step__num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(56px, 7vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  position: relative;
}
.step__num::after {
  content: "";
  display: block;
  width: 36px;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--g-violet),
    var(--g-magenta),
    var(--g-orange)
  );
  margin-top: 16px;
}
.step__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 60ch;
}
.step__body h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.step__body p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.step__meta {
  font-family: var(--f-mono);
  font-size: 12.5px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted) !important;
  margin-top: 4px;
}

/* ==========================================================
   REVIEWS
   ========================================================== */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  background: color-mix(in srgb, var(--bg) 50%, white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.review--accent {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.review--accent blockquote {
  color: var(--bg) !important;
}
.review--accent blockquote::before {
  background: linear-gradient(90deg, var(--g-yellow), var(--g-orange));
}
.review--accent .review__avatar {
  background: var(--g-yellow);
}
.review__avatar svg circle {
  fill: color-mix(in srgb, var(--g-magenta) 30%, var(--bg-2));
}
.review--accent .review__avatar svg circle {
  fill: var(--g-magenta);
}
.review blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
  quotes: "«" "»";
}
.review blockquote::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 16px;
  background: linear-gradient(
    90deg,
    var(--g-magenta),
    var(--g-orange),
    var(--g-yellow)
  );
}
.review figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.review--accent figcaption {
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}
.review figcaption b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.review--accent figcaption b {
  color: var(--bg);
}
.review__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

/* ==========================================================
   CONTACT / FINAL FORM
   ========================================================== */
.contact {
  position: relative;
  color: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      60% 60% at 10% 20%,
      color-mix(in srgb, var(--g-magenta) 70%, black) 0%,
      transparent 70%
    ),
    radial-gradient(
      50% 60% at 90% 10%,
      color-mix(in srgb, var(--g-orange) 55%, black) 0%,
      transparent 70%
    ),
    radial-gradient(
      60% 60% at 80% 90%,
      color-mix(in srgb, var(--g-yellow) 45%, black) 0%,
      transparent 70%
    ),
    linear-gradient(180deg, #140923 0%, #2a0f4f 100%);
}
.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.section__index--light {
  color: color-mix(in srgb, var(--bg) 60%, transparent);
}
.section__title--light {
  color: var(--bg);
}
.section__title--light .serif {
  background: linear-gradient(
    100deg,
    var(--g-yellow),
    var(--g-orange) 50%,
    var(--g-magenta)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact__lede {
  font-size: 17px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--bg) 80%, transparent);
  margin-top: 22px;
  max-width: 42ch;
}
.contact__bullets {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-size: 15px;
  color: color-mix(in srgb, var(--bg) 85%, transparent);
}
.contact__bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact__form {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  color: var(--ink);
  padding: clamp(28px, 3vw, 40px);
  border-radius: 24px;
  display: grid;
  gap: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.field {
  display: grid;
  gap: 8px;
}
.field__label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__label em {
  font-family: var(--f-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: normal;
  font-size: 13.5px;
  color: var(--muted);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line-strong);
  padding: 10px 0;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
}
.field--error input,
.field--error textarea {
  border-color: var(--err);
}
.contact__policy {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.contact__policy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact__success[hidden] {
  display: none;
}
.contact__success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--g-yellow) 50%, white);
  border: 1px solid var(--ink);
  font-size: 14.5px;
  color: var(--ink);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  padding: clamp(48px, 6vw, 80px) 0 32px;
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(32px, 5vw, 80px);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer__logo-icon {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.footer__logo-text {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.footer__logo-text em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
}
.footer__tag {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36ch;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  flex-shrink: 0;
}
.footer__cols h4 {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer__cols ul {
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.footer__cols a {
  transition: opacity 0.2s ease;
}
.footer__cols a:hover {
  opacity: 0.6;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__signature {
  text-align: right;
  line-height: 1.5;
}

/* ==========================================================
   REVEAL (JS подхватит)
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  .section__head--split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pain__card:nth-child(n) {
    transform: none;
  }
  .pain__card {
    grid-column: span 6;
  }
  .case {
    grid-column: span 12;
  }
  .reviews__grid {
    grid-template-columns: 1fr 1fr;
  }
  .review:nth-child(3) {
    grid-column: span 2;
  }
  .diff__thesis {
    grid-template-columns: 1fr;
  }
  .diff__thesis > div {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }
  .diff__thesis > div:not(:first-child) {
    padding-left: 0;
  }
  .diff__thesis > div:last-child {
    border-bottom: none;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav--scrolled {
    background: var(--bg);
  }
  .nav__links {
    display: none;
  }
  .nav__cta {
    display: none;
  }
  .nav__burger {
    display: inline-flex;
  }
  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px var(--pad-x);
    gap: 18px;
    font-size: 20px;
  }
  .nav--open .nav__cta {
    display: inline-flex;
    margin-top: 12px;
  }

  .hero__stage {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stage__arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
  .pain__card {
    grid-column: span 12;
  }
  .services__list {
    grid-template-columns: 1fr;
  }
  .diff__compare {
    grid-template-columns: 1fr;
  }
  .diff__col--before {
    border-right: none;
    border-bottom: 1px solid var(--line-strong);
  }
  .reviews__grid {
    grid-template-columns: 1fr;
  }
  .review:nth-child(3) {
    grid-column: auto;
  }
  .case__body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step:hover {
    padding-left: 0;
  }
  .contact__inner {
    grid-template-columns: 1fr;
  }
  .footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .mid-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .br-mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .btn--primary {
    width: 100%;
    justify-content: center;
  }
  .btn--ghost {
    width: 100%;
    justify-content: center;
  }
  .footer__cols {
    grid-template-columns: 1fr;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .trust__track {
    animation: none;
  }
  .grain {
    display: none;
  }
}
