:root {
  --bg: #0a0a0c;
  --bg-soft: #15151a;
  --bg-card: #16161c;
  --cream: #ede4d3;
  --cream-dim: #b8b1a3;
  --cream-mute: #8c867c;
  --line: #25252b;
  --red: #ee4e4e;
  --red-soft: #d94545;
  --red-2: #ff6a5a;
  --amber: #c97a3d; /* тёплый тон осьминога - вторичный цвет сцены hero (rgba 201,122,61 в glow/сцене) */
  --wrap: 1180px;
  --dot: rgba(255, 255, 255, 0.075);
  --grid-line: rgba(255, 255, 255, 0.035);
  --line-2: rgba(255, 255, 255, 0.06);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
::selection { background: var(--red); color: #fff; }

/* layered backdrop - fixed, non-scrolling: blueprint dot-grid + glow + film grain.
   Коралл в фоне приглушён (был .16) - красный на странице зарезервирован за ценами
   и CTA, фоновое свечение не должно с ними спорить; нижний глоу - тёплый amber сцены */
.dotgrid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.3px, transparent 1.3px);
  background-size: 24px 24px;
}
.gridlines {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 60% 0%, #000 25%, transparent 78%);
}
.glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 12%, rgba(201, 122, 61, .13), rgba(201, 122, 61, .07) 30%, rgba(201, 122, 61, .03) 50%, transparent 72%),
    radial-gradient(70% 60% at 8% 95%, rgba(238, 78, 78, .05), rgba(238, 78, 78, .025) 35%, transparent 70%);
}
.grain {
  position: fixed; inset: 0; z-index: 51; pointer-events: none;
  opacity: .04; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media print { .dotgrid, .gridlines, .glow, .grain { display: none; } }
.wrap { width: min(100%, var(--wrap)); margin: 0 auto; padding-inline: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.card-price noscript strong { color: var(--red); font-size: 1.6em; font-weight: 600; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3 {
  font-family: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  font-weight: 900;
  letter-spacing: -.01em;
  text-wrap: balance;
}
/* Big Shoulders Display has no Cyrillic glyphs - RU headings fall through to Oswald,
   which needs a looser line-height than the condensed Latin face to avoid crowding */
html[lang="ru"] .hero-text h1 { line-height: 1.02; }
html[lang="ru"] .blk-title h2,
html[lang="ru"] .routes-intro h2 { line-height: 1.06; }
/* Oswald шире Big Shoulders: RU-заголовкам секций меньший максимум, иначе h2
   вылезает из своей grid-колонки на широких экранах */
html[lang="ru"] .blk-title h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
html[lang="ru"] .product-main h3 { line-height: 1.02; }
.accent { color: var(--red); }
.rise {
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .5s cubic-bezier(.16, 1, .3, 1);
}
.rise.pre { opacity: 0; transform: translateY(16px); }
.rise.in { opacity: 1; transform: none; }

/* Header */
.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.head .wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.logo i { font-style: normal; color: var(--red); }
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream-dim);
}
.nav a:hover { color: var(--cream); }
.nav .back { margin-left: auto; }
.lang-switch,
.cta-mini,
.btn,
.srv-action {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
}
.lang-switch {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--cream-dim);
  border: 1px solid var(--line);
  padding: 7px 10px;
}
.lang-switch:hover,
.lang-switch:focus-visible { color: var(--cream); border-color: var(--red); }
/* тёмный текст на коралле: белый #fff на #ee4e4e даёт ~3.6:1 - ниже AA для мелкого текста */
.cta-mini {
  font-size: 13px;
  padding: 9px 16px;
  background: var(--red);
  color: #0a0a0c;
}

/* Shared controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  background: var(--red);
  color: #0a0a0c;
  font-size: 13px;
  border: 1px solid var(--red);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s ease;
}
.btn:hover { background: var(--red-soft); border-color: var(--red-soft); }
.btn:active,
.cta-mini:active,
.lang-switch:active,
.srv-action:active { transform: translateY(1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { background: transparent; border-color: var(--red); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 12px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 48px;
  align-items: center;
  padding-block: 64px;
}
.hero-kicker,
.kicker,
.route-no,
.service-label,
.product-status {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.hero-kicker,
.kicker {
  color: var(--cream-mute);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
/* звёзды кикеров нейтральные: коралл на странице означает «деньги или действие» */
.kicker .star,
.hero-kicker .star { color: var(--cream-mute); }
.hero-text h1 {
  max-width: 760px;
  margin: 14px 0 22px;
  font-size: clamp(3.3rem, 7.2vw, 6.2rem);
  line-height: .88;
  letter-spacing: -.02em;
}
.hero-sub { max-width: 58ch; color: var(--cream-dim); font-size: 1.03rem; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.dm-strip {
  display: block;
  width: min(430px, 100%);
  height: 36px;
  margin-top: 26px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  color: var(--cream-mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-proof span::before { content: "// "; }
/* сцена осьминога: персонаж не «висит в вакууме», а живёт в тёплой витрине-аквариуме -
   слоёный фон (свечение + вертикальный градиент + сетка) и блик пола под персонажем */
.hero-stage {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 18px 24px;
  border: 1px solid var(--line);
}
.hero-stage::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(85% 65% at 50% 84%, rgba(201, 122, 61, .22), rgba(201, 122, 61, .08) 42%, transparent 72%),
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .028), transparent 55%),
    radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(180deg, #0c0b10, #130d08);
  pointer-events: none;
}
.hero-stage::after {
  content: "";
  position: absolute; left: 14%; right: 14%; bottom: 18px; height: 44px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 170, 90, .20), transparent 72%);
  filter: blur(7px);
  pointer-events: none;
}
.hero-stage canvas { width: 100%; max-width: 460px; aspect-ratio: 3 / 2; position: relative; z-index: 1; }
.hero-stage-cap {
  position: relative;
  z-index: 1;
  max-width: 300px;
  color: var(--cream-mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .2s var(--ease);
}
.hero-stage-cap:hover { color: var(--red); }

/* Section headers */
.blk { padding: 78px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.blk-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, .6fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}
/* dot-matrix номер секции: живая замена outline-watermark (см. assets/dotmatrix.js) */
.watermark-dots {
  position: absolute; top: -.6rem; right: 0;
  width: clamp(150px, 19vw, 260px);
  height: clamp(72px, 9vw, 124px);
  pointer-events: none; user-select: none; z-index: 0;
}
.blk-title, .blk-sub { position: relative; z-index: 1; }
.blk-title h2 { margin-top: 8px; font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: .95; }
.blk-sub { max-width: 60ch; margin-top: 22px; color: var(--cream-dim); }
@media (max-width: 880px) { .watermark-dots { display: none; } }

/* Routes */
.routes { padding: 56px 0 68px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.routes-intro {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 28px;
}
.routes-intro h2 { margin-top: 8px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .95; }
.routes-intro p { max-width: 48ch; color: var(--cream-dim); }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.route {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 24px 20px 26px 0;
  border-top: 1px solid var(--line);
  /* opacity/transform в списке обязательны: шорткат-транзишен перекрывает .rise,
     и reveal-каскад молча перестаёт анимироваться */
  transition: background-color .25s var(--ease), opacity .5s var(--ease), transform .5s var(--ease);
}
.route:nth-child(3n+2),
.route:nth-child(3n) { padding-left: 20px; border-left: 1px solid var(--line); }
.route:hover { background: var(--bg-soft); transform: translateY(-2px); }
.route:hover .route-go { color: var(--red-2); }
.route-no { color: var(--cream-mute); font-size: 11px; padding-top: 6px; }
.route h3 { font-size: 1.5rem; margin-bottom: 7px; }
.route p { color: var(--cream-dim); font-size: .9rem; max-width: 40ch; }
/* маршрут ведёт к цене - это действие, ему коралл положен */
.route-go {
  display: inline-block;
  margin-top: 14px;
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .2s var(--ease);
}

/* Product */
.product-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--red) 6%, var(--bg-card)), var(--bg-card) 40%);
  overflow: hidden;
}
/* soft coral top accent - fades to transparent at both ends instead of a hard edge-to-edge line */
.product-feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--red) 55%, transparent) 12%,
    var(--red) 38%, var(--red-2) 50%, var(--red) 62%, color-mix(in srgb, var(--red) 55%, transparent) 88%, transparent);
  pointer-events: none;
}
.product-feature::after {
  content: ""; position: absolute; top: -38%; right: -10%; width: 56%; height: 90%;
  background: radial-gradient(closest-side, rgba(238,78,78,.20), rgba(238,78,78,.12) 30%, rgba(238,78,78,.05) 55%, transparent 82%);
  pointer-events: none; filter: blur(56px);
}
.product-main { padding: 36px; }
.product-status { color: var(--cream-mute); font-size: 11px; }
.product-main h3 { margin: 10px 0 12px; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: .9; }
.product-main > p { max-width: 64ch; color: var(--cream-dim); }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.card-price {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  color: var(--cream-mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}
.dm-price { width: 116px; height: 54px; flex-shrink: 0; }
.product-proof { border-left: 1px solid var(--line); }
.proof-block { padding: 24px 26px; border-bottom: 1px solid var(--line); }
.proof-block:last-child { border-bottom: 0; }
.proof-block span { color: var(--cream-mute); font-family: "JetBrains Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.proof-block strong { display: block; margin-top: 7px; font-size: .96rem; line-height: 1.45; font-weight: 500; color: var(--cream-dim); }

/* Mac apps */
.apps-blk { background: var(--bg-soft); }
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 44rem;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.app-card {
  display: flex;
  min-width: 0;
  min-height: 480px;
  padding: 30px;
  flex-direction: column;
  background: var(--bg);
}
.app-card__top { display: flex; align-items: center; gap: 22px; }
.app-card__top img { width: 112px; height: 112px; flex: 0 0 auto; }
.app-status {
  color: var(--cream-mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.app-card h3 { margin-top: 7px; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: .92; }
.app-card > p { max-width: 58ch; margin-top: 24px; color: var(--cream-dim); }
.app-facts { margin: 20px 0 28px; padding: 0; list-style: none; color: var(--cream-dim); font-size: .9rem; }
.app-facts li { padding: 9px 0; border-top: 1px solid var(--line); }
.app-facts li::before { content: "—"; margin-right: 10px; color: var(--cream-mute); }
.app-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: auto; }
.app-price { color: var(--red); font-family: "JetBrains Mono", monospace; font-size: 1.65rem; font-weight: 600; line-height: 1; }
.app-price small { display: block; margin-top: 8px; color: var(--cream-mute); font-size: 10px; font-weight: 500; text-transform: uppercase; }
.apps-note { margin-top: 16px; color: var(--cream-mute); font-size: .82rem; }
.app-card__foot .card-actions { margin-top: 0; }
.app-card__fine { margin-top: 14px; color: var(--cream-mute); font-size: .74rem; line-height: 1.4; }

/* Sprints: компактная сетка-прайс вместо 12 полных рядов */
.sprint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.srv-group {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 22px 12px;
  background: var(--bg);
}
.srv-group .kicker { flex-shrink: 0; }
.srv-group::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.sprint {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 20px 22px;
  background: var(--bg);
  scroll-margin-top: 86px;
  transition: background-color .25s var(--ease), opacity .5s var(--ease), transform .5s var(--ease);
}
.sprint:hover { background: var(--bg-soft); }
.sprint--hot { grid-column: span 2; box-shadow: inset 2px 0 0 var(--red); background: linear-gradient(90deg, rgb(238 78 78 / .05), var(--bg) 60%); }
.sprint--wide { grid-column: span 2; }
.sprint--hot:hover { background: linear-gradient(90deg, rgb(238 78 78 / .07), var(--bg-soft) 60%); }
.service-label { color: var(--cream-mute); font-size: 10px; }
.sprint--hot .service-label { color: var(--red); }
.sprint h3 { margin: 6px 0 7px; font-size: 1.4rem; }
.sprint p { color: var(--cream-dim); font-size: .88rem; flex: 1; }
/* филлер неполного ряда сетки: осознанная «пустая» ячейка с точечным паттерном */
.sprint-fill {
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
}
.sprint-fill--sm { display: none; }
/* филлер-CTA: «дыра» сетки превращена в вход для нестандартной задачи */
.sprint-fill--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 20px 22px;
}
.sprint-fill--cta p { color: var(--cream-dim); font-size: .92rem; }
.sprint-link { color: var(--red); }
.sprint-link:hover { text-decoration: underline; }
.sprint-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.srv-price { color: var(--cream-mute); font-family: "JetBrains Mono", monospace; font-size: 12px; }
.srv-price strong { color: var(--red); font-size: 1.45em; font-weight: 600; }
/* скидка: перечёркнутая старая цена + плашка процента */
.price-old {
  color: var(--cream-dim);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  font-size: 1.3em;
}
.sale {
  display: inline-block;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 8px;
  margin-left: 4px;
  background: var(--red);
  color: #0a0a0c;
  vertical-align: 2px;
}
.srv-action {
  padding: 12px 0;
  margin: -12px 0;
  border: 0;
  background: none;
  color: var(--red);
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.srv-action:hover { text-decoration: underline; }
.addon-strip {
  display: grid;
  grid-template-columns: 1fr minmax(240px, .38fr);
  gap: 28px;
  margin-top: 26px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.addon-strip h3 { margin: 5px 0 7px; font-size: 1.4rem; }
.addon-strip p { max-width: 70ch; color: var(--cream-dim); font-size: .88rem; }
.addon-action { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 10px; }

/* Open Lab: компактная лента-строка вместо семи полных карточек */
.lab-strip { padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.lab-strip-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lab-strip-head p { color: var(--cream-dim); font-size: .92rem; }
.lab-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lab-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--cream-dim);
  border: 1px solid var(--line);
  padding: 9px 13px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
a.lab-chip:hover { color: var(--cream); border-color: var(--red); }
.lab-chip--pending { border-style: dashed; color: var(--cream-mute); }

/* Footer */
.foot { padding: 56px 0 28px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.about-col .logo { display: block; margin-bottom: 10px; }
.about-col p { max-width: 34ch; color: var(--cream-dim); font-size: .9rem; }
.foot h4 { margin-bottom: 12px; color: var(--cream-mute); font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.foot .cols > div > a { display: block; padding: 4px 0; color: var(--cream-dim); font-size: .92rem; }
.foot .cols > div > a:hover { color: var(--cream); }
.legal { padding-bottom: 16px; color: var(--cream-mute); font-size: .74rem; line-height: 1.6; max-width: var(--wrap); }
.base { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--cream-mute); font-size: .82rem; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  /* visibility, а не только opacity: закрытая модалка не должна жить в tab-order
     и в accessibility tree (Tab «проваливался» в невидимую форму) */
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.modal.open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .2s ease; }
.modal__back { position: absolute; inset: 0; background: rgb(10 10 12 / .86); }
.modal__box { position: relative; width: min(440px, calc(100vw - 28px)); padding: 32px 28px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 2px; }
.modal__close { position: absolute; top: 6px; right: 6px; min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--cream-mute); font-size: 22px; cursor: pointer; line-height: 1; }
.modal__close:hover { color: var(--cream); }
.modal__box h3 { margin-bottom: 6px; font-size: 1.55rem; }
.modal__box .sub { margin-bottom: 20px; color: var(--cream-dim); font-size: .9rem; }
.modal__box label { display: block; margin: 14px 0 6px; color: var(--cream-mute); font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.modal__box input,
.modal__box textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--cream);
  font-size: .92rem;
}
.modal__box textarea { min-height: 82px; resize: vertical; }
.modal__box input[aria-invalid="true"] { border-color: var(--red); }
.send { display: block; width: 100%; margin-top: 18px; padding: 12px; background: var(--red); color: #0a0a0c; text-align: center; font-family: "JetBrains Mono", monospace; font-weight: 600; font-size: 13px; }
.send:hover { background: var(--red-soft); }
.modal__box .fine { margin-top: 10px; color: var(--cream-mute); font-size: .76rem; }
.form-error { min-height: 1.3em; margin-top: 8px; color: var(--red); font-size: .78rem; }
/* Telegram - главный канал заявки (красная кнопка), почта - вторичная ghost */
.send-alt { margin-top: 10px; background: transparent; border: 1px solid var(--line); color: var(--cream); }
.send-alt:hover { border-color: var(--red); background: transparent; }

/* Кто делает работу - компактная полоса идентичности перед FAQ */
.maker-strip { padding: 38px 0; border-bottom: 1px solid var(--line); }
.maker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.maker-inner h3 { margin: 8px 0 8px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.maker-inner p { max-width: 62ch; color: var(--cream-dim); font-size: .92rem; }
.maker-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* Cursor spotlight на карточках: JS пишет --mx/--my, свечение следует за курсором */
[data-spot] { position: relative; }
[data-spot]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
    rgb(238 78 78 / .09), rgb(238 78 78 / .04) 40%, transparent 68%);
}
[data-spot].spot-on::after { opacity: 1; }

/* Scroll-driven слой: прогресс чтения + дрейф фонового свечения (progressive enhancement) */
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--red-2));
    transform-origin: 0 50%;
    z-index: 60;
    animation: progress-grow linear both;
    animation-timeline: scroll();
    pointer-events: none;
  }
  @keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .glow {
    animation: glow-drift linear both;
    animation-timeline: scroll();
  }
  @keyframes glow-drift { to { transform: translateY(-140px); } }
}

/* Процесс + FAQ */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 34px;
}
.steps li {
  counter-increment: step;
  padding: 20px 18px 22px;
  background: var(--bg-soft);
  color: var(--cream-dim);
  font-size: .88rem;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  color: var(--cream-mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
}
.steps li strong { display: block; margin-bottom: 5px; color: var(--cream); font-size: .96rem; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  padding: 18px 34px 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .005em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cream-mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  transition: rotate .25s var(--ease), color .2s var(--ease);
}
.faq-item[open] summary::after { rotate: 45deg; color: var(--red); }
.faq-item summary:hover { color: var(--red-2); }
.faq-item p { padding: 0 0 20px; max-width: 70ch; color: var(--cream-dim); font-size: .92rem; }
.proof-line { margin-top: 30px; color: var(--cream-mute); font-size: .9rem; }
.proof-line a { color: var(--cream-dim); border-bottom: 1px solid var(--line); transition: color .2s var(--ease), border-color .2s var(--ease); }
.proof-line a:hover { color: var(--cream); border-color: var(--red); }

@media (max-width: 880px) {
  .wrap { padding-inline: 18px; }
  /* навигация второй строкой шапки уже с 880, не только с 620: в диапазоне 621-880px
     (iPad portrait) якоря просто исчезали - страница оставалась без навигации */
  .head .wrap { gap: 12px; flex-wrap: wrap; padding-block: 8px; row-gap: 2px; min-height: 58px; }
  .nav { order: 10; width: 100%; gap: 14px; font-size: 13px; }
  .nav .back { margin-left: auto; }
  .cta-mini { margin-left: auto; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 18px; padding-block: 50px; }
  /* текст и CTA первыми - страница продаёт спринты, осьминог ниже как десерт */
  .hero-stage { padding: 18px 14px 20px; }
  .hero-stage canvas { max-width: 320px; }
  .hero-text h1 { font-size: clamp(3rem, 13vw, 5rem); }
  .blk { padding: 56px 0; }
  .blk-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
  .routes { padding: 46px 0 54px; }
  .routes-intro { align-items: flex-start; flex-direction: column; }
  .route-grid { grid-template-columns: 1fr; }
  .route,
  .route:nth-child(3n+2),
  .route:nth-child(3n) { padding: 20px 0; border-left: 0; }
  .product-feature { grid-template-columns: 1fr; }
  .product-main { padding: 26px 22px; }
  .product-proof { border-top: 1px solid var(--line); border-left: 0; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 0; }
  .sprint-grid { grid-template-columns: 1fr 1fr; }
  .sprint-fill--sm { display: block; }
  .srv-group { padding: 18px 16px 10px; }
  .sprint { min-height: 0; padding: 18px 16px; }
  .addon-strip { grid-template-columns: 1fr; padding: 20px; }
  .addon-action { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .foot .cols { grid-template-columns: 1fr; gap: 26px; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  /* шесть якорей не влезают в строку уже на 414px и распирали документ (378 при экране 360):
     сам .nav переносов не имел, хотя .head .wrap оборачивается с 880 */
  .nav { font-size: 12px; flex-wrap: wrap; row-gap: 6px; }
  .cta-mini { padding: 8px 11px; font-size: 12px; }
  .hero-proof { flex-direction: column; gap: 6px; }
  .route { grid-template-columns: 34px 1fr; gap: 10px; }
  .sprint-grid { grid-template-columns: 1fr; }
  .sprint--hot, .sprint--wide { grid-column: auto; }
  .sprint-fill:not(.sprint-fill--cta), .sprint-fill--sm { display: none; }
  .card-actions { flex-direction: column; }
  .card-actions .btn { width: 100%; }
  .card-price { flex-direction: column; align-items: flex-start; gap: 10px; }
  .app-card { padding: 22px; }
  .app-card__top { align-items: flex-start; gap: 15px; }
  .app-card__top img { width: 80px; height: 80px; }
  /* обёртке нужен min-width:0, иначе она не сжимается ниже своего содержимого */
  .app-card__top > div { min-width: 0; }
  .app-card__foot { align-items: stretch; flex-direction: column; }
  .app-card__foot .btn { width: 100%; }
  .base { flex-direction: column; gap: 6px; }
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .rise { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 420px) {
  /* «Qwerty Switcher» — длинные слова в крупном кегле: рядом с
     иконкой 80px они не помещаются. На 320px это распирало документ (341 при экране 320),
     а на 360-414 заголовок упирался в край карточки без отступа. Иконка встаёт отдельной
     строкой — кегль заголовка при этом не мельчает */
  .app-card__top { flex-wrap: wrap; }
  .app-card__top > div { flex: 1 1 100%; }
}


/* ===== Ролики (секция #films) =====
   Видео грузится только по клику (preload="none"): три автозагрузки на
   витрине съели бы мобильный трафик до того, как человек решит смотреть. */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
}
.film-card {
  margin: 0;
  border: 1px solid var(--line, rgba(255,255,255,.12));
  background: var(--bg-2, #141114);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.film-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #0d0b0d;
  object-fit: cover;
}
.film-card figcaption {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.film-card strong {
  font-size: 1.02rem;
  line-height: 1.2;
}
.film-card span {
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.72;
}
