/* ------------------------------------------------------------------
   LEKO AI IT Partner — styles v3 (dark-first, brand 3D, retro-tech)
   Тема через переменные: страница тёмная, `.section--tint` и `.form` —
   светлые острова, внутри которых переменные переопределяются.
------------------------------------------------------------------ */
:root {
  --ink: #1A1030;
  --ink-2: #251842;
  --crimson: #E5195C;
  --crimson-deep: #C0124A;
  --pink: #FF6B9A;
  --green: #5BE49B;
  --amber: #FFC46B;
  --white: #FFFFFF;

  /* dark context (default) */
  --bg: #1A1030;
  --surface: rgba(255,255,255,.05);
  --surface-2: rgba(255,255,255,.09);
  --text: #FFFFFF;
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.26);
  --accent-bg: var(--crimson);
  --accent-text: #FFFFFF;
  --accent-muted: rgba(255,255,255,.8);
  --shadow: 0 30px 60px -30px rgba(0,0,0,.7);

  --font: 'Manrope', 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 7vw, 96px);
  --r: 18px;
  --r-sm: 12px;
}

/* light island */
.light, .section--tint, .form {
  --bg: #FBFAFC;
  --surface: #FFFFFF;
  --surface-2: #F3F1F8;
  --text: #1A1030;
  --muted: #6B657F;
  --line: #E4E1EC;
  --line-strong: #CFCADB;
  --accent-bg: #1A1030;
  --accent-text: #FFFFFF;
  --accent-muted: rgba(255,255,255,.72);
  --shadow: 0 30px 60px -30px rgba(26,16,48,.35);
  color: var(--text);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.lead { font-size: 19px; line-height: 1.5; font-weight: 600; }
.lead--accent { color: var(--pink); }
.section--tint .lead--accent { color: var(--crimson); }
@media (max-width: 600px) { .lead { font-size: 18px; } }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border: 0; border-radius: 999px;
  background: var(--crimson); color: var(--white);
  font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--crimson-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--big { padding: 20px 36px; font-size: 17px; box-shadow: 0 16px 40px -12px rgba(229,25,92,.7); }
.btn--small { padding: 12px 20px; font-size: 14px; }
.btn--outline { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.btn--outline:hover { background: var(--surface-2); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--pink); color: var(--white); }
.link-arrow { font-weight: 700; color: var(--pink); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.section--tint .link-arrow { color: var(--crimson); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26,16,48,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand__mark { flex: 0 0 auto; }
.brand__sub { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--pink); padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); line-height: 1.2; }
.site-nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 600; }
.site-nav a { text-decoration: none; color: rgba(255,255,255,.68); padding: 6px 0; transition: color .15s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--white); }
.site-nav__contact { display: none; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin: 0 -8px 0 0; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; border-radius: 10px; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 12px; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease); }
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ''; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .site-header__inner { justify-content: space-between; gap: 12px; }
  .site-header__cta { margin-left: auto; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: rgba(26,16,48,.98); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 40px -20px rgba(0,0,0,.7); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav__contact { display: block; color: var(--pink); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) { .site-header__cta { display: none; } }
@media (max-width: 420px) { .brand__sub { display: none; } }
/* якоря не прячутся под фиксированной шапкой */
[id] { scroll-margin-top: 84px; }

/* ---------- hero (retro-tech) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 84px) 0 clamp(40px, 5vw, 64px); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 55% at 78% 55%, rgba(229,25,92,.38), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 48px);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hero .container { position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__term { font-family: var(--mono); font-size: 14px; color: var(--pink); margin: 0 0 20px; }
.hero__term::before { content: '~/leko $ '; color: rgba(255,255,255,.5); }
.hero__title { font-size: clamp(38px, 5.4vw, 74px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; margin: 0 0 22px; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: rgba(255,255,255,.8); max-width: 30em; margin: 0 0 28px; }
.hero__input {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--ink); border-radius: 16px;
  padding: 8px 8px 8px 20px; max-width: 580px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.hero__typed { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: clip; min-height: 1.4em; }
@media (max-width: 600px) {
  .hero__input { flex-wrap: wrap; padding: 14px 8px 8px 16px; gap: 10px; }
  .hero__typed { flex-basis: 100%; white-space: normal; min-height: 2.8em; line-height: 1.4; }
  .hero__input .btn { margin-left: auto; }
}
.hero__typed::after { content: ''; display: inline-block; width: 2px; height: 18px; background: var(--crimson); margin-left: 3px; vertical-align: -3px; animation: blink 1s steps(2, start) infinite; }
.hero__hint { margin: 14px 0 0; font-size: 13px; color: rgba(255,255,255,.55); }
.hero__art { position: relative; text-align: center; }
.hero__mac { width: min(100%, 560px); margin: 0 auto; filter: drop-shadow(0 50px 80px rgba(229,25,92,.45)); will-change: transform; }
.hero__tag {
  position: absolute; font-family: var(--mono); font-size: 13px;
  background: rgba(26,16,48,.6); border: 1px solid rgba(255,255,255,.22); padding: 8px 12px; border-radius: 8px;
  backdrop-filter: blur(6px); white-space: nowrap; animation: float 6s ease-in-out infinite;
}
.hero__tag b { font-weight: 600; color: var(--green); }
.hero__tag--work b { color: var(--pink); }
.hero__tag--queued b { color: var(--amber); }
.hero__tag--1 { left: 0; top: 18%; animation-delay: -1s; }
.hero__tag--2 { right: 0; top: 8%; animation-delay: -3s; }
.hero__tag--3 { right: 4%; bottom: 12%; animation-delay: -2s; }
.hero__tag--4 { left: 3%; bottom: 6%; animation-delay: -4s; }
@keyframes blink { to { visibility: hidden; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } .hero__art { margin-top: 24px; } .hero__tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__typed::after, .hero__tag { animation: none; } }

/* ---------- facts ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.section--tint + .facts, .light .facts { background: var(--surface); }
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__list li { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 4px; }
.facts__list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.facts__list strong { font-family: var(--mono); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; color: var(--pink); }
.section--tint .facts__list strong { color: var(--crimson); }
.facts__list span { font-size: 14px; color: var(--muted); line-height: 1.35; font-weight: 500; }
@media (max-width: 800px) {
  .facts__list { grid-template-columns: 1fr 1fr; }
  .facts__list li { padding: 20px 16px 20px 0; }
  .facts__list li + li { padding-left: 16px; }
  .facts__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__list li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--bg); }
.section--ink { background: rgba(255,255,255,.03); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split__head h2 { margin-bottom: 14px; }
.split__sub { font-size: 18px; color: var(--muted); max-width: 26em; font-weight: 500; }
.split__body { max-width: 640px; }
.split__body > p + ul, .split__body > p + ol { margin-top: 4px; }
.split__body > ul + p, .split__body > ol + p { margin-top: 28px; }
.split__body .btn { margin-top: 28px; }
.split__label { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.section__head { margin-bottom: clamp(32px, 4vw, 56px); }
.section__head--row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.section__head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section__head--center .section__sub { margin: 0 auto 28px; }
.section__sub { color: var(--muted); max-width: 34em; font-size: 18px; font-weight: 500; }
.section__art { width: min(100%, 420px); justify-self: end; }
@media (max-width: 900px) { .split, .section__head--row { grid-template-columns: 1fr; gap: 24px; } .section__art { justify-self: start; max-width: 280px; } }

/* ---------- cards (shared) ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- pain: backlog board ---------- */
.backlog { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.backlog__item { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.backlog__text { font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.backlog__status { align-self: flex-start; font-family: var(--mono); font-size: 12px; color: var(--amber); background: rgba(255,196,107,.12); border-radius: 999px; padding: 4px 10px; }
.section--tint .backlog__status { color: #B36B00; background: #FFF3DF; }
.backlog + .lead { margin-top: 28px; }
@media (max-width: 560px) { .backlog { grid-template-columns: 1fr; } }

/* ---------- promise: chat + steps + tools ---------- */
.quote { margin: 0 0 28px; padding: 22px 26px; border-left: 3px solid var(--crimson); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 19px; font-weight: 600; line-height: 1.45; }
.quote--small { font-size: 16px; padding: 14px 18px; margin: 12px 0 0; }
.chat { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.chat__msg { position: relative; max-width: 86%; padding: 16px 20px; border-radius: 16px; font-size: 16px; line-height: 1.45; }
.chat__msg p { margin: 0; font-weight: 500; }
.chat__who { display: block; font-family: var(--mono); font-size: 12px; font-weight: 600; margin-bottom: 6px; opacity: .7; }
.chat__msg--you { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat__msg--leko { align-self: flex-end; background: var(--accent-bg); color: var(--accent-text); border-bottom-right-radius: 4px; }
.chat__msg--leko .chat__who { color: var(--pink); opacity: 1; }
.steps-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; counter-reset: s; }
.steps-row li { counter-increment: s; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.steps-row li::before { content: counter(s); font-family: var(--mono); width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-bg); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.tools__item { padding: 9px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.tools__item--ai { background: var(--crimson); border-color: var(--crimson); color: var(--white); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.services__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 18px; }
.services__col h3 { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--pink); }
.section--tint .services__col h3 { border-bottom-color: var(--ink); }
.services__col li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; font-weight: 500; }
.services__col li:last-child { border-bottom: 0; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .services { grid-template-columns: 1fr; } }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 44px 0 32px; }
.timeline::before { content: ''; position: absolute; left: 20px; right: 20px; top: -26px; height: 2px; background: var(--line-strong); }
.timeline__item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.timeline__item::before { content: ''; position: absolute; left: 18px; top: -33px; width: 12px; height: 12px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 4px var(--bg); }
.timeline__item:first-child::before { background: var(--pink); }
.timeline__when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.timeline__what { font-weight: 700; font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
@media (max-width: 700px) { .timeline { grid-template-columns: 1fr 1fr; margin-top: 8px; } .timeline::before, .timeline__item::before { display: none; } }

/* ---------- lists ---------- */
.cols-2 { columns: 2; column-gap: 32px; margin: 12px 0 32px; }
.cols-2 li { break-inside: avoid; padding: 8px 0 8px 22px; position: relative; font-weight: 500; }
.cols-2 li::before { content: ''; position: absolute; left: 0; top: 18px; width: 10px; height: 2px; background: var(--pink); }
@media (max-width: 560px) { .cols-2 { columns: 1; } }
.checks li { position: relative; padding: 9px 0 9px 32px; font-weight: 500; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px; border-left: 2.5px solid var(--pink); border-bottom: 2.5px solid var(--pink); transform: rotate(-45deg); }
.section--tint .checks li::before { border-color: var(--crimson); }
.checks--big li { font-size: 18px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.checks--big li::before { top: 19px; }
.checks--big li:first-child { border-top: 1px solid var(--line); }

/* ---------- steps ---------- */
.steps { border-top: 2px solid var(--line-strong); }
.step { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--mono); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; color: var(--crimson); }
.step__body { max-width: 620px; }
.step__body h3 { margin-bottom: 8px; }
.step__body p { color: var(--muted); }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; } }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.compare__col { display: flex; flex-direction: column; border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.compare__col--before { background: var(--surface); border: 1px solid var(--line); }
.compare__col--after { background: var(--crimson); color: var(--white); box-shadow: 0 30px 60px -30px rgba(229,25,92,.7); }
.compare__tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted); margin-bottom: 24px; }
.compare__tag--light { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: var(--white); }
.vendors { flex: 1; }
.vendors li { display: grid; grid-template-columns: 12px 110px 1fr; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.vendors li:last-child { border-bottom: 0; }
.vendors__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--muted)); }
.vendors__what { font-weight: 700; }
.vendors__who { color: var(--muted); font-weight: 500; font-size: 15.5px; }
.compare__note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 500; }
.compare__mark { flex: 1; display: flex; align-items: center; color: var(--white); padding: 12px 0 28px; }
.compare__one { font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.03em; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } .compare__mark { padding: 8px 0 20px; } .vendors li { grid-template-columns: 12px 96px 1fr; } }

/* ---------- plan (format) ---------- */
.plan { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--crimson); border-radius: 0 0 var(--r) var(--r); padding: 28px 32px 30px; }
.plan__label { font-weight: 700; margin-bottom: 8px; }
.plan .checks { columns: 2; column-gap: 24px; }
.plan .checks li { break-inside: avoid; }
.plan__price { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.h3--gap { margin-top: 48px; }
@media (max-width: 560px) { .plan .checks { columns: 1; } .plan { padding: 22px 20px; } }

/* ---------- pricing ---------- */
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tabs__btn { border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.tabs__btn[aria-selected="true"] { background: var(--crimson); color: var(--white); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 28px 28px; }
.plan-card--featured { background: var(--accent-bg); color: var(--accent-text); border-color: var(--accent-bg); box-shadow: var(--shadow); --muted: var(--accent-muted); --line: rgba(255,255,255,.18); }
.plan-card__name { font-size: 24px; margin-bottom: 8px; }
.plan-card__lead { color: var(--muted); font-size: 15px; font-weight: 500; min-height: 3.2em; margin-bottom: 20px; }
.plan-card__price { font-family: var(--mono); font-weight: 700; font-size: clamp(28px, 2.8vw, 38px); line-height: 1; margin: 0 0 22px; }
.plan-card__unit { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan-card .btn { width: 100%; margin-bottom: 22px; }
.plan-card--featured .btn--light { background: var(--white); color: var(--ink); }
.section--tint .plan-card--featured .btn--light { background: var(--crimson); color: var(--white); }
.plan-card__features { border-top: 1px solid var(--line); padding-top: 12px; }
.plan-card__features li { font-size: 15px; padding: 7px 0 7px 30px; }
.plan-card__features li::before { top: 13px; }
.plan-card--featured .plan-card__features li::before { border-color: var(--pink); }
.plans__note { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 15px; font-weight: 500; margin-top: 8px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.benefits li { padding: 24px 0 32px; border-top: 2px solid var(--line-strong); }
.benefits h3 { margin-bottom: 10px; }
.benefits p { color: var(--muted); font-size: 16px; font-weight: 500; }
.benefits--list { grid-template-columns: 1fr; gap: 0; }
.benefits--list li { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.benefits--list li:first-child { border-top: 2px solid var(--line-strong); }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr 1fr; gap: 0 28px; } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } .benefits li { padding: 18px 0 22px; } }

/* ---------- cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.case__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.case__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__img--render { display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px 0; }
.case__img--render img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.case__img-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 800; font-size: 28px; color: var(--muted); }
.case__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; border-top: 1px solid var(--line); }
.case__name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.case__what { color: var(--muted); font-size: 15px; line-height: 1.5; font-weight: 500; }
.case__result { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 15px; color: var(--pink); }
.section--tint .case__result { color: var(--crimson); }
.case--more { background: var(--crimson); border-color: var(--crimson); color: var(--white); }
.case--more .case__body { padding: 28px 26px 26px; justify-content: flex-end; border-top: 0; }
.case--more .case__what { color: rgba(255,255,255,.8); }
.case--more .case__result { color: var(--white); }
.case__more-num { font-family: var(--mono); font-weight: 700; font-size: clamp(44px, 5vw, 68px); line-height: 1; margin-bottom: auto; padding-bottom: 28px; }
.cases__more { margin-top: 32px; color: var(--muted); font-weight: 500; }
.cases__more a { color: var(--pink); font-weight: 700; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .cases { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 40em; font-weight: 500; }

/* ---------- contact + form ---------- */
.contact { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.contact::before { content: ''; position: absolute; left: -10%; bottom: -40%; width: 50vw; height: 50vw; max-width: 800px; max-height: 800px; background: radial-gradient(closest-side, rgba(229,25,92,.28), rgba(229,25,92,0)); pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__copy h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.035em; }
.contact__copy .lead { color: rgba(255,255,255,.82); font-weight: 500; margin-bottom: 32px; }
.contact__links li { padding: 6px 0; }
.contact__links a { color: var(--white); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact__links a:hover { border-bottom-color: var(--pink); color: var(--pink); }
.form { background: var(--surface); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--white); color: var(--text); transition: border-color .15s ease; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field--error input, .field--error textarea { border-color: var(--crimson); }
.field__error { font-size: 13px; color: var(--crimson); font-weight: 600; }
.form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form__hint { font-size: 14px; color: var(--muted); font-weight: 500; }
.form__legal { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.form__done { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; font-size: 18px; }
.form__done strong { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.form__done span { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- partners ---------- */
.partners { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 40px; background: rgba(255,255,255,.03); }
.partners__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.partners__title { font-size: 18px; margin-bottom: 6px; }
.partners p { color: var(--muted); max-width: 44em; font-size: 15.5px; font-weight: 500; }
@media (max-width: 760px) { .partners__inner { flex-direction: column; align-items: flex-start; gap: 16px; } }

/* ---------- footer ---------- */
.site-footer { padding-block: 48px 40px; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px; align-items: start; font-size: 15px; }
.site-footer__brand p { margin-top: 16px; color: var(--muted); max-width: 26em; font-weight: 500; }
.site-footer__links li { padding: 3px 0; }
.site-footer__links a { text-decoration: none; color: var(--text); font-weight: 600; }
.site-footer__links a:hover { color: var(--pink); }
.site-footer__copy { color: var(--muted); text-align: right; font-family: var(--mono); font-size: 13px; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } .site-footer__copy { text-align: left; } }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 85% 40%, rgba(229,25,92,.3), transparent 70%), repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 48px), repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 48px); mask-image: linear-gradient(180deg, #000 50%, transparent); }
.page-hero .container { position: relative; }
.page-hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.page-hero--error .hero__term { margin-bottom: 28px; }
.page-hero__err { color: var(--crimson); }
.page-hero--error { min-height: 60vh; display: flex; align-items: center; border-bottom: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); font-weight: 500; }
.prose a { color: var(--pink); }
.prose .checks--big { margin-bottom: 20px; }
.prose .checks--big li { font-size: 17px; }
.prose--policy p { margin-bottom: .9em; }
.prose__dash { margin: 0 0 1em; display: grid; gap: 6px; }
.prose__dash li { position: relative; padding-left: 22px; font-weight: 500; }
.prose__dash li::before { content: '—'; position: absolute; left: 0; color: var(--pink); }
.form__legal a { color: var(--muted); }
.form__legal a:hover { color: var(--pink); }
.page-hero__title { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; max-width: 16em; margin-bottom: 20px; }
.page-hero__lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: rgba(255,255,255,.82); max-width: 40em; margin: 0; }
.crumbs { display: flex; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags__item { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }

/* ---------- case page ---------- */
.case-page__figure { margin: 0 0 40px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.case-page__figure img { width: 100%; height: auto; }
.case-page__figure--render { padding: 40px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.case-page__figure--render img { max-height: 520px; width: auto; margin: 0 auto; }
.case-page__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.case-page__main h2 { font-size: 24px; margin-top: 32px; }
.case-page__main h2:first-child { margin-top: 0; }
.case-page__box { background: var(--crimson); color: var(--white); border-radius: var(--r); padding: 28px; position: sticky; top: 96px; }
.case-page__label { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.75); margin: 0 0 6px; }
.case-page__result { font-weight: 800; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 22px; }
.case-page__stack { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.9); margin: 0 0 22px; }
.case-page__box .link-arrow { color: var(--white); }
@media (max-width: 860px) { .case-page__grid { grid-template-columns: 1fr; } .case-page__box { position: static; } }

/* ---------- about ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.team strong { font-family: var(--mono); font-weight: 700; font-size: 32px; line-height: 1; color: var(--crimson); }
.team span { font-size: 14px; color: var(--muted); font-weight: 500; }
@media (max-width: 800px) { .team { grid-template-columns: 1fr 1fr; } }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-weight: 600; font-size: 15px; }
.contact-list a { font-weight: 700; text-decoration: none; color: var(--text); }
.contact-list a:hover { color: var(--pink); }

/* ==================================================================
   Motion — единый стандарт появления + несколько сюжетных анимаций.
   Правило: любой блок и любой элемент сетки появляются одинаково:
   rise-in, 0.7s, cubic-bezier(.2,.7,.2,1), сдвиг 24px, шаг каскада 80ms.
   Появление сделано keyframes, чтобы hover-transition карточек его не перебивал.
================================================================== */
:root { --ease: cubic-bezier(.2,.7,.2,1); --rise: 16px; --dur: .4s; --step: 45ms; }

@keyframes rise-in { from { opacity: 0; transform: translateY(var(--rise)); } to { opacity: 1; transform: none; } }

/* блок целиком */
.reveal { opacity: 0; }
.reveal.is-visible { animation: rise-in var(--dur) var(--ease) both; }
/* заголовок по словам */
.reveal h2 .w { display: inline-block; opacity: 0; }
.reveal.is-visible h2 .w { animation: rise-in .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
/* элементы сеток каскадом */
.stagger > * { opacity: 0; }
.stagger.is-visible > * { animation: rise-in var(--dur) var(--ease) both; animation-delay: calc(min(var(--i, 0), 8) * var(--step)); }
/* строки и колонки внутри блоков — тот же каскад */
.reveal .vendors li { opacity: 0; }
.reveal.is-visible .vendors li { animation: rise-in var(--dur) var(--ease) both; animation-delay: calc(.1s + var(--i, 0) * var(--step)); }
.reveal .compare__col--after { opacity: 0; }
.reveal.is-visible .compare__col--after { animation: rise-in var(--dur) var(--ease) both; animation-delay: .2s; }
.chat__msg { opacity: 0; }
.chat__msg.is-in { animation: rise-in var(--dur) var(--ease) both; }

/* hero: тот же rise-in каскадом */
.hero__copy > * { opacity: 0; animation: rise-in var(--dur) var(--ease) both; }
.hero__copy > :nth-child(1) { animation-delay: .05s; }
.hero__copy > :nth-child(2) { animation-delay: .15s; }
.hero__copy > :nth-child(3) { animation-delay: .25s; }
.hero__copy > :nth-child(4) { animation-delay: .35s; }
.hero__copy > :nth-child(5) { animation-delay: .45s; }
.hero__art { opacity: 0; animation: rise-in 1s var(--ease) .25s both; }
.hero::before { animation: grid-drift 40s linear infinite; }
@keyframes grid-drift { to { background-position: 0 0, 0 48px, 48px 0; } }
.hero__mac { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* hero: строка ввода → «принято» */
.hero__input { position: relative; }
.hero__sent { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: #1E8A5B; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
@media (max-width: 600px) { .hero__sent { order: 2; margin-right: auto; } }
.hero__sent::before { content: '✓ '; }
.hero__input.is-sent .hero__sent { opacity: 1; transform: none; }
.hero__input.is-sent .hero__typed::after { visibility: hidden; animation: none; }

/* hero: жизненный цикл тегов задач */
.hero__tag { display: inline-flex; align-items: center; gap: 8px; transition: border-color .3s, box-shadow .3s; }
.hero__tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: background .3s; }
.hero__tag-state { font-weight: 600; transition: color .3s; }
.hero__tag.is-queued .hero__tag-dot { background: var(--amber); }
.hero__tag.is-queued .hero__tag-state { color: var(--amber); }
.hero__tag.is-running .hero__tag-dot { background: var(--pink); animation: pulse 1s ease-in-out infinite; }
.hero__tag.is-running .hero__tag-state { color: var(--pink); }
.hero__tag.is-running { border-color: rgba(255,107,154,.6); box-shadow: 0 0 0 4px rgba(229,25,92,.15); }
.hero__tag.is-done .hero__tag-dot { background: var(--green); }
.hero__tag.is-done .hero__tag-state { color: var(--green); }
.hero__tag.is-pop { animation: pop .5s var(--ease); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,154,.6); } 50% { box-shadow: 0 0 0 6px rgba(255,107,154,0); } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* сюжетные: точки набора в чате, логотип рисуется штрихом */
.chat__typing { display: none; gap: 5px; align-items: center; padding: 16px 20px; min-width: 64px; }
.chat__typing.is-in { display: inline-flex; }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); animation: dots 1s infinite ease-in-out; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.compare__mark svg path, .compare__mark svg circle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease-out; }
.reveal.is-visible .compare__mark svg path:nth-of-type(1) { stroke-dashoffset: 0; transition-delay: .9s; }
.reveal.is-visible .compare__mark svg path:nth-of-type(2) { stroke-dashoffset: 0; transition-delay: 1.15s; }
.reveal.is-visible .compare__mark svg path:nth-of-type(3) { stroke-dashoffset: 0; transition-delay: 1.4s; }
.reveal.is-visible .compare__mark svg circle { stroke-dashoffset: 0; transition-delay: 1.65s; }

/* интерактив: единый hover для карточек */
.services__col, .plan-card, .case, .backlog__item, .timeline__item, .team li { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.services__col:hover, .plan-card:hover, .case:hover { transform: translateY(-4px); border-color: rgba(255,107,154,.45); box-shadow: 0 24px 50px -30px rgba(229,25,92,.6); }
.plan-card--featured:hover { border-color: var(--accent-bg); }

/* шапка: прогресс + компактный режим */
.site-header { transition: box-shadow .2s; }
.site-header__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--crimson), var(--pink)); transition: width .1s linear; }
.site-header--compact .site-header__inner { min-height: 60px; }
.site-header--compact { box-shadow: 0 10px 30px -20px rgba(0,0,0,.8); }

/* прожектор за курсором */
.spotlight { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(255,107,154,.10), transparent 60%); mix-blend-mode: screen; }
.spotlight.is-on { opacity: 1; }

/* faq, форма */
.faq__body { overflow: hidden; }
.faq summary::after { transition: transform .3s var(--ease); }
.btn--loading { position: relative; color: transparent !important; pointer-events: none; }
.btn--loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__check { color: #1E8A5B; margin-bottom: 8px; }
.form__check circle, .form__check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.form__done:not([hidden]) .form__check circle { animation: draw .6s ease-out forwards; }
.form__done:not([hidden]) .form__check path { animation: draw .45s ease-out .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible, .stagger > *, .stagger.is-visible > *, .reveal h2 .w, .reveal.is-visible h2 .w,
  .reveal .vendors li, .reveal .compare__col--after, .chat__msg, .hero__copy > *, .hero__art { opacity: 1; animation: none; }
  .hero::before, .hero__mac, .hero__tag.is-pop, .chat__typing i { animation: none; }
  .compare__mark svg path, .compare__mark svg circle { stroke-dashoffset: 0; transition: none; }
  .spotlight { display: none; }
}

/* ==================================================================
   Trust blocks: clients, results, alternatives, promises
================================================================== */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.results__link { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 22px 20px; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.results__link:hover { transform: translateY(-4px); border-color: rgba(229,25,92,.5); box-shadow: 0 24px 50px -30px rgba(229,25,92,.5); }
.results__value { font-family: var(--mono); font-weight: 700; font-size: clamp(28px, 2.6vw, 36px); line-height: 1; color: var(--crimson); }
.results__label { font-size: 14px; color: var(--text); font-weight: 600; line-height: 1.3; }
.results__case { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--muted); font-weight: 500; }
.results__more { margin-top: 24px; }
@media (max-width: 960px) { .results { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .results { grid-template-columns: 1fr 1fr; } }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.alt { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
@media (max-width: 760px) {
  .table-wrap { overflow: visible; }
  .alt { min-width: 0; display: block; }
  .alt thead { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .alt tbody, .alt tr { display: block; }
  .alt tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
  .alt tbody th { display: block; width: auto; padding: 14px 16px 6px; border-bottom: 0; font-size: 16px; }
  .alt td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .alt td::before { content: attr(data-label); font-size: 13px; font-weight: 700; color: var(--muted); }
  .alt td.alt__col--leko { border-radius: 0; border-bottom: 0; }
  .alt td.alt__col--leko::before { color: var(--pink); }
  .alt tbody tr:last-child .alt__col--leko { border-radius: 0; }
}
.alt th, .alt td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.alt thead th { border-bottom: 2px solid var(--line-strong); vertical-align: bottom; }
.alt tbody th { font-weight: 700; width: 22%; color: var(--text); }
.alt td { color: var(--muted); font-weight: 500; }
.alt__crit { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.alt__title { display: block; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.alt__lead { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.alt .alt__col--leko { background: rgba(229,25,92,.08); color: var(--text); }
.alt thead .alt__col--leko { border-top: 3px solid var(--crimson); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.alt thead .alt__col--leko .alt__title { color: var(--pink); }
.alt tbody tr:last-child .alt__col--leko { border-radius: 0 0 var(--r-sm) var(--r-sm); }
.alt__note { margin-top: 16px; font-size: 13px; color: var(--muted); }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.promises__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.promises__num { font-family: var(--mono); font-size: 13px; color: var(--crimson); display: block; margin-bottom: 14px; }
.promises__item h3 { margin-bottom: 8px; }
.promises__item p { color: var(--muted); font-size: 15px; font-weight: 500; }
.promises__label { margin-top: 8px; }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } }

/* grid children must be allowed to shrink below content width on narrow screens */
.team li, .facts__list li, .services__col, .plan-card, .case, .backlog__item, .results__item, .promises__item, .timeline__item, .benefits li, .vendors li { min-width: 0; overflow-wrap: break-word; }
.team span { overflow-wrap: anywhere; }

/* ---------- переходы между секциями ---------- */
.divider { position: relative; display: block; line-height: 0; }
.divider--wave svg { display: block; width: 100%; height: clamp(28px, 4.5vw, 56px); }
.divider--wave.divider--dark-light { background: var(--ink); }
.divider--wave.divider--dark-light path { fill: #FBFAFC; }
.divider--wave.divider--light-dark { background: #FBFAFC; }
.divider--wave.divider--light-dark path { fill: var(--ink); }
.divider--cut { height: clamp(32px, 5vw, 64px); }
.divider--cut.divider--light-dark { background: linear-gradient(to bottom right, #FBFAFC 49.6%, var(--ink) 50.4%); }
.divider--cut.divider--dark-light { background: linear-gradient(to bottom right, var(--ink) 49.6%, #FBFAFC 50.4%); }
.divider--ticker { background: #0F0A20; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); overflow: hidden; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; font-weight: 600; line-height: 1; color: rgba(255,255,255,.6); padding: 11px 0; }
.divider--ticker span { display: inline-block; padding-inline: 22px; }
.divider--ticker i { color: var(--pink); font-style: normal; }
.divider--ticker b { color: var(--green); }
.divider--ticker b.is-running { color: var(--amber); }
.divider--ticker b.is-queued { color: rgba(255,255,255,.45); }
.ticker__track { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker-run 32s linear infinite; }
  @keyframes ticker-run { to { transform: translateX(-50%); } }
}

/* ---------- факты на стыке hero и первой секции ---------- */
.hero--straddle { padding-bottom: calc(clamp(40px, 5vw, 64px) + 44px); }
.facts--straddle { position: relative; z-index: 2; margin: -44px 0 -44px; border: 0; background: none; }
.facts--straddle .facts__list { background: var(--white); color: var(--ink); border: 1px solid #E4E1EC; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(26,16,48,.5); padding: 0 8px; }
.facts--straddle .facts__list li { padding-left: 20px; }
.facts--straddle .facts__list li + li { border-left-color: #E4E1EC; }
.facts--straddle .facts__list strong { color: var(--crimson); }
.facts--straddle .facts__list span { color: #6B657F; }
.facts--straddle + .section { padding-top: calc(var(--section) + 44px); }
@media (max-width: 800px) {
  .facts--straddle .facts__list li:nth-child(-n+2) { border-bottom-color: #E4E1EC; }
  .facts--straddle .facts__list li:nth-child(3) { padding-left: 20px; }
}

/* ---------- доска задач (до / после) ---------- */
.board { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.board__col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.board__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 6px 6px 4px; }
.board__count { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; font-weight: 700; }
.board__cards { display: flex; flex-direction: column; gap: 10px; }
.board__card { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.35; box-shadow: 0 8px 20px -14px rgba(26,16,48,.35); }
.board__card--tilt { transform: rotate(-1deg); }
.board__status { justify-self: start; font-family: var(--mono); font-size: 12px; color: #B36B00; background: #FFF3DF; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.board__col--empty { border-style: dashed; }
.board__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 16px 8px; color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: center; line-height: 1.5; }
.board__ghost { width: 70%; height: 44px; border: 1px dashed var(--line-strong); border-radius: 10px; opacity: .6; }
.board__foot { margin-top: 28px; max-width: 34em; }
.board--before { margin-top: 8px; }
/* дальше: тёмная компактная доска в «Мы берём это на себя» */
.board--after { grid-template-columns: 1fr 1.1fr 1.3fr; margin-bottom: 36px; }
.board--after .board__card { font-size: 13.5px; padding: 9px 12px; gap: 6px; box-shadow: none; }
.board--after .board__status { font-size: 11px; padding: 3px 8px; }
.board__status--done { color: var(--green); background: rgba(91,228,155,.12); }
.board__status--running { color: var(--amber); background: rgba(255,196,107,.12); }
.board--after .board__empty { min-height: 90px; }
@media (max-width: 760px) {
  .board { grid-template-columns: 1fr; }
  .board__col--empty { flex-direction: row; align-items: center; justify-content: space-between; }
  .board__col--empty .board__head { padding: 4px 6px; }
  .board__empty { flex: 0 1 auto; min-height: 0; flex-direction: row; padding: 4px 8px; }
  .board__ghost { display: none; }
}

/* ---------- услуги: иконки у заголовков ---------- */
.services__col h3 { display: flex; align-items: center; gap: 10px; }
.services__icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--crimson); }

/* ---------- AI: цитата-акцент в шапке блока ---------- */
.pull { margin: 26px 0 0; padding-left: 18px; border-left: 3px solid var(--crimson); font-size: clamp(19px, 1.9vw, 24px); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; color: var(--pink); max-width: 20em; text-wrap: balance; }

/* ---------- 3D-рендеры в секциях ---------- */
.split__art { display: block; height: auto; margin-top: 28px; filter: drop-shadow(0 30px 50px rgba(229,25,92,.35)); }
.split__art--flow { width: min(100%, 440px); }
.split__art--astronaut { width: min(100%, 300px); margin-top: 36px; }
.pricing { position: relative; overflow: hidden; }
.pricing__art { position: absolute; right: max(2vw, calc((100% - var(--container)) / 2 - 80px)); top: 24px; width: 220px; height: auto; opacity: .95; filter: drop-shadow(0 20px 40px rgba(229,25,92,.3)); pointer-events: none; }
@media (max-width: 1100px) { .pricing__art { display: none; } }
@media (max-width: 900px) { .split__art--astronaut { width: min(60%, 220px); margin-top: 20px; } .split__art--flow { margin-top: 16px; } }
.hero__mac, .split__art, .pricing__art { animation: bob 7s ease-in-out infinite; }
.split__art--flow { animation-delay: -2s; }
.pricing__art { animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .split__art, .pricing__art { animation: none; } }

/* ---------- услуги: было → стало ---------- */
.flip { display: grid; gap: 10px; margin: 0 0 14px; }
.flip p { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.4; font-weight: 500; }
.flip__label { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.flip__before { background: var(--surface-2); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(229,25,92,.55); text-decoration-thickness: 1.5px; }
.flip__before .flip__label { text-decoration: none; color: var(--muted); }
.flip__after { background: rgba(229,25,92,.08); color: var(--text); border: 1px solid rgba(229,25,92,.25); font-weight: 600; }
.flip__after .flip__label { color: var(--crimson); }
.services__more summary { cursor: pointer; list-style: none; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 8px 0; display: flex; align-items: center; gap: 8px; }
.services__more summary::-webkit-details-marker { display: none; }
.services__more summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.services__more[open] summary::before { transform: rotate(-135deg) translateY(-2px); }
.services__more summary:hover { color: var(--text); }
.services__col ul { margin-top: 4px; }

/* ---------- аудит: чек-лист, отмеченное уходит в заявку ---------- */
.checks--pick li { padding-left: 0; }
.checks--pick li::before { display: none; }
.checks--pick label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.checks--pick input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--surface); display: grid; place-items: center; transition: border-color .15s, background .15s; }
.checks--pick input::after { content: ''; width: 10px; height: 6px; border-left: 2.5px solid var(--white); border-bottom: 2.5px solid var(--white); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checks--pick input:checked { background: var(--crimson); border-color: var(--crimson); }
.checks--pick input:checked::after { opacity: 1; }
.checks--pick input:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.checks--pick label:hover span { color: var(--white); }
.audit__hint { display: inline-block; margin: 28px 0 0 16px; font-family: var(--mono); font-size: 12.5px; color: var(--green); vertical-align: middle; }

/* ---------- «С LEKO»: мини-список готового ---------- */
.compare__done { display: grid; gap: 8px; margin: 0 0 26px; }
.compare__done li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 14px; font-weight: 600; }
.compare__done b { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink); background: var(--white); border-radius: 999px; padding: 3px 8px; }

/* ---------- форма: чип выбранного тарифа ---------- */
.form__plan { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(229,25,92,.1); border: 1px solid rgba(229,25,92,.3); color: var(--text); font-size: 14px; font-weight: 600; }
.form__plan b { color: var(--crimson); }
.form__plan button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.form__plan button:hover { background: var(--crimson); color: var(--white); }

/* ---------- липкая кнопка на телефоне ---------- */
.cta-bar { display: none; }
@media (max-width: 900px) {
  .cta-bar { position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: center; align-items: center; min-height: 52px; border-radius: 999px; background: var(--crimson); color: var(--white); font-weight: 700; text-decoration: none; box-shadow: 0 20px 40px -16px rgba(229,25,92,.7); transition: transform .3s var(--ease), opacity .3s; }
  .cta-bar--hidden, body.nav-open .cta-bar { transform: translateY(120%); opacity: 0; pointer-events: none; }
  body { padding-bottom: 72px; }
}

/* ---------- тарифы: строки SLA ---------- */
.plan-card__sla { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-strong); display: grid; gap: 8px; }
.plan-card__sla div { display: grid; grid-template-columns: 1fr; gap: 2px; }
.plan-card__sla dt { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.plan-card__sla dd { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; }

/* ---------- месяц с LEKO (в блоке «Начать легко») ---------- */
.month { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.month__head { margin-bottom: clamp(24px, 3vw, 40px); }
.month__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: m; }
.month__step { position: relative; padding: 22px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); display: grid; gap: 8px; align-content: start; }
.month__step::before { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--crimson), var(--pink)); }
.month__when { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--crimson); }
.month__step h3 { font-size: 17px; margin: 0; }
.month__step p { margin: 0; font-size: 14.5px; color: var(--muted); font-weight: 500; line-height: 1.45; }
@media (max-width: 900px) { .month__steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .month__steps { grid-template-columns: 1fr; } }

/* ---------- мини-кейсы про задачи по подписке (в блоке результатов) ---------- */
.mini { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.mini__head { margin-bottom: clamp(24px, 3vw, 40px); }
.mini__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini__item { display: grid; gap: 10px; align-content: start; padding: 20px 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.mini__item:hover { transform: translateY(-4px); border-color: rgba(229,25,92,.5); box-shadow: 0 24px 50px -30px rgba(229,25,92,.5); }
.mini__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mini__term { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--crimson); line-height: 1; }
.mini__client a { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.mini__client a:hover { color: var(--crimson); border-bottom-color: var(--crimson); }
.mini__item h3 { font-size: 17px; margin: 4px 0 0; line-height: 1.3; }
.mini__item p { margin: 0; font-size: 14.5px; color: var(--muted); font-weight: 500; line-height: 1.45; }
.mini__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.mini__effect { font-size: 13px; font-weight: 700; color: var(--text); }
.mini__tags { display: flex; gap: 6px; }
.mini__tags i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
@media (max-width: 900px) { .mini__list { grid-template-columns: 1fr; } }

/* ---------- trust: snake timeline (первая неделя) ---------- */
/* SNAKE-CSS-START */
/* маршрут: 4 колонки, подписи чередуются над и под кривой, кривая в средней строке */
.snake { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; margin: 12px 0 32px; }
.snake__path { grid-column: 1 / -1; grid-row: 2; width: 100%; height: clamp(72px, 9vw, 120px); display: block; overflow: visible; }
.snake__line { fill: none; stroke: var(--line-strong); stroke-width: 3; stroke-dasharray: 6 8; stroke-linecap: round; }
.snake__dot { fill: var(--pink); stroke: var(--bg); stroke-width: 4; }
.snake__dot--last { fill: var(--crimson); }
.snake__item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 8px; }
/* подписи: нечётные над кривой (прижаты к ней), чётные под кривой */
.snake__item--up { grid-row: 1; align-self: end; padding-bottom: 6px; }
.snake__item--down { grid-row: 3; padding-top: 6px; }
.snake__item:nth-of-type(1) { grid-column: 1; }
.snake__item:nth-of-type(2) { grid-column: 2; }
.snake__item:nth-of-type(3) { grid-column: 3; }
.snake__item:nth-of-type(4) { grid-column: 4; }
/* телефон: вертикальный список с пунктиром слева и точками у пунктов */
@media (max-width: 700px) {
  .snake { grid-template-columns: 1fr; grid-template-rows: none; position: relative; row-gap: 18px; padding-left: 28px; margin-top: 4px; }
  .snake::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; border-left: 3px dashed var(--line-strong); }
  .snake__path { display: none; }
  .snake__item, .snake__item--up, .snake__item--down, .snake__item:nth-of-type(n) { grid-row: auto; grid-column: auto; align-self: auto; padding: 0; }
  .snake__item::before { content: ''; position: absolute; left: -28px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); border: 3px solid var(--bg); box-sizing: content-box; margin-left: -1px; }
  .snake__item:last-child::before { background: var(--crimson); }
}
/* SNAKE-CSS-END */

/* ---------- внутренние страницы, клиенты, hover результатов (subagent) ---------- */
/* AGENT-A-CSS-START */
/* 404: текст слева, пиксельный рендер справа */
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-hero__art { width: 100%; max-width: 320px; justify-self: end; filter: drop-shadow(0 30px 60px rgba(229,25,92,.35)); }
@media (max-width: 760px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero__art { max-width: 200px; justify-self: start; margin-top: 8px; } }

/* полоса клиентов: названия в моно, светлая тонкая лента */
.clients { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 22px; }
.clients__inner { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.clients__label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.clients__list { display: flex; flex: 1 1 auto; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.clients__list a { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; opacity: .82; transition: opacity .15s, color .15s; }
.clients__list a:hover { opacity: 1; color: var(--crimson); }
@media (max-width: 760px) { .clients__list { justify-content: flex-start; gap: 8px 22px; } }

/* результаты: рендер кейса проявляется при наведении */
.results__link { position: relative; overflow: hidden; }
.results__link > span { position: relative; z-index: 1; }
.results__img { position: absolute; right: -8px; bottom: -14px; width: 120px; height: auto; opacity: 0; transform: translate(10px, 10px) rotate(-4deg); transition: opacity .3s var(--ease), transform .35s var(--ease); pointer-events: none; z-index: 0; }
.results__link:hover .results__img, .results__link:focus-within .results__img { opacity: .9; transform: none; }
@media (hover: none) { .results__img { display: none; } }
/* AGENT-A-CSS-END */
