@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/onest-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f5f5f2;
  --cell: #ffffff;
  --ink: #141414;
  --ink-2: #2e2e2c;
  --muted: #5a5a55;
  --rule: #141414;
  --rule-soft: #d9d9d3;
  --rule-faint: #e4e4de;
  --marker: #ffd83d;
  --marker-deep: #f5c400;
  --word: #cfe3ff;
  --night: #121212;
  --night-2: #1d1d1c;
  --night-line: #34332f;
  --night-text: #e9e8e3;
  --night-muted: #a9a8a1;
  --pilot: #f2682a;
  --pilot-text: #c2410c;
  --pilot-wash: #fde6da;
  --hunter: #0b6f69;
  --hunter-glow: #6fd6cc;
  --hunter-wash: #d8efec;
  --check: #8a4f00;
  --check-wash: #fbf0df;
  --error: #b42318;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1280px;
  --section: clamp(88px, 11vw, 160px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--marker); color: var(--ink); }
html { scrollbar-color: var(--ink) var(--paper); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-2); }
input, textarea { caret-color: var(--ink); accent-color: var(--ink); }
textarea::-webkit-resizer { background: linear-gradient(135deg, transparent 55%, var(--ink) 55%, var(--ink) 65%, transparent 65%, transparent 75%, var(--ink) 75%, var(--ink) 85%, transparent 85%); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, .xw-cell, summary, input[type="range"], .step, .fit-check { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
sup { font-size: 0.55em; line-height: 0; vertical-align: 0.9em; letter-spacing: 0.02em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--marker); border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--marker); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.line { display: block; text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.stub { color: var(--ink); background: var(--marker); padding: 0 0.25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 2px solid var(--ink); border-radius: 0;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn-ink { background: var(--ink); color: var(--cell); }
.btn-ink:hover { background: var(--marker); color: var(--ink); }
.btn-ink:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn-wide { width: 100%; }

.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--marker-deep); padding-bottom: 2px; }
.link-arrow:hover { background: var(--marker); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--rule-soft);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(1.2) blur(10px); }
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.logo {
  display: inline-flex; align-items: center;
  font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.02em; text-decoration: none;
}
.logo-cell {
  position: relative; display: inline-grid; place-items: center;
  width: 1.5em; height: 1.5em; margin: 0 0.08em;
  background: var(--marker); outline: 2px solid var(--ink); outline-offset: -1px;
  font-size: 0.95em; line-height: 1;
}
.logo-cell i { position: absolute; top: 2px; left: 3px; font-style: normal; font-size: 0.4em; font-weight: 600; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 0.9375rem; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 160ms; }
.nav a:hover { border-bottom-color: var(--ink); }

/* ---------- crossword grid ---------- */
.xw {
  --cell-line: 2px;
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  width: 100%;
  user-select: none;
}
.xw-cell {
  position: relative;
  aspect-ratio: 1;
  background: var(--ink);
}
.xw { outline: 2px solid var(--ink); outline-offset: 0; }
.xw:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; box-shadow: 0 0 0 9px var(--marker); border-radius: 0; }
.xw-cell.is-letter {
  z-index: 1;
  display: grid; place-items: center;
  background: var(--cell);
  outline: var(--cell-line) solid var(--rule);
  outline-offset: calc(var(--cell-line) / -2);
  cursor: pointer;
  transition: background-color 180ms var(--ease-out);
}
.xw-cell.is-block { z-index: 1; background: var(--ink); outline: var(--cell-line) solid var(--rule); outline-offset: calc(var(--cell-line) / -2); }
.xw-cell.is-block em {
  position: absolute; left: 12%; top: 10%;
  font-style: normal; font-weight: 700; font-size: calc(100cqi / var(--cols) * 0.22); letter-spacing: 0.04em;
}
.xw-cell.is-block[data-brand="pilot"] em { color: var(--pilot); }
.xw-cell.is-block[data-brand="hunter"] em { color: var(--hunter-glow); }
.xw-cell i {
  position: absolute; top: 6%; left: 9%;
  font-style: normal; font-weight: 600; line-height: 1;
  font-size: max(9px, calc(100cqi / var(--cols) * 0.19));
}
.xw-cell b {
  font-weight: 600; line-height: 1;
  font-size: calc(100cqi / var(--cols) * 0.5);
  transform: translateY(4%);
}
.xw-cell.is-word { background: var(--word); }
.xw-cell.is-key { background: var(--marker); }
.xw-cell.is-cursor { background: var(--marker); }
.xw[data-brand="pilot"] .xw-cell.is-word { background: var(--pilot-wash); }
.xw[data-brand="hunter"] .xw-cell.is-word { background: var(--hunter-wash); }
.xw-cell.is-letter:hover:not(.is-word):not(.is-key) { background: #f0f5ff; }

/* буквы вписываются: только с JS и без reduced motion */
.xw.is-typing .xw-cell b { opacity: 0; }
.xw .xw-cell b.is-typed { opacity: 1; animation: type-in 260ms var(--ease-out); }
@keyframes type-in {
  from { opacity: 0; transform: translateY(-18%) scale(1.25); }
  to { opacity: 1; transform: translateY(4%) scale(1); }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.hero-copy { padding-top: clamp(8px, 2vw, 32px); }
h1 {
  font-size: clamp(2.5rem, 1.35rem + 3.1vw, 4.5rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead { margin-top: 28px; max-width: 34em; font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.5; color: var(--ink-2); }
.lead strong { font-weight: 600; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.hero-facts {
  list-style: none; padding: 0; margin-top: 44px;
  display: grid; gap: 10px; font-size: 0.9375rem; color: var(--ink-2);
}
.hero-facts li { display: flex; gap: 12px; align-items: baseline; }
.hero-facts li::before {
  content: ""; flex: none; width: 10px; height: 10px; transform: translateY(-1px);
  background: var(--marker); outline: 1.5px solid var(--ink);
}

.hero-puzzle { display: grid; gap: 20px; }
.clue-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.clue-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px 0 10px;
  background: var(--cell); border: 1.5px solid var(--ink); border-radius: 0;
  font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}
.clue-chip i { font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.clue-chip:hover { background: #f0f5ff; }
.clue-chip.is-active { background: var(--word); }
.clue-chip.is-active i { color: var(--ink); }
.clue-chip.chip-pilot.is-active { background: var(--pilot-wash); }
.clue-chip.chip-hunter.is-active { background: var(--hunter-wash); }
.clue-card { min-height: 8em; }
.clue-text b { font-weight: 700; }
.clue-len { font-weight: 500; color: var(--muted); white-space: nowrap; }
.clue-text { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.clue-answer { margin-top: 8px; max-width: 40em; color: var(--ink-2); }
.clue-answer a { font-weight: 600; }
.hero-sign { font-size: 0.875rem; color: var(--muted); border-top: 1px solid var(--rule-soft); padding-top: 14px; }
.hero-sign b { color: var(--ink); background: var(--marker); padding: 0 0.2em; font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
h2 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-lead { margin-top: 22px; max-width: 36em; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.5; color: var(--ink-2); }

/* directions */
.directions { border-top: 2px solid var(--ink); background: var(--cell); }
.dir-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "head puzzle" "clues answers";
  gap: clamp(40px, 5vw, 72px) clamp(32px, 5vw, 80px);
}
.dir-head { grid-area: head; }
.dir-puzzle { grid-area: puzzle; align-self: center; }
.dir-clues { grid-area: clues; display: grid; gap: 32px; align-content: start; }
.dir-answers { grid-area: answers; }
.clue-group h3 { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.01em; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.clue-row {
  display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline;
  width: 100%; padding: 14px 10px 14px 6px; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}
.clue-row i { font-style: normal; font-weight: 700; }
.clue-row span { font-weight: 500; line-height: 1.4; }
.clue-row small { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.clue-row:hover { background: #f0f5ff; }
.clue-row.is-active { background: var(--word); }
.clue-row.is-active small { color: var(--ink-2); }
.clue-row.is-active i { background: var(--marker); outline: 1.5px solid var(--ink); text-align: center; }

.answer { padding-top: 4px; }
.answer h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.answer-word { background: linear-gradient(transparent 58%, var(--marker) 58%); }
.answer > p { margin-top: 16px; max-width: 38em; color: var(--ink-2); }
.answer ul { margin-top: 20px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 38em; }
.answer li { position: relative; padding-left: 24px; }
.answer li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; outline: 1.5px solid var(--ink); }
.answer .measure { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--rule-soft); font-size: 0.9375rem; }
.js .answer[hidden] { display: none; }
html:not(.js) .answer + .answer { margin-top: 48px; }

/* products */
.products { background: var(--night); color: var(--night-text); }
.products .section-lead { color: var(--night-muted); }
.products-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.product {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
  margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--night-line);
}
.product-cells { display: flex; margin-bottom: 28px; }
.product-cells span {
  position: relative; display: grid; place-items: center; width: clamp(34px, 3.4vw, 46px); aspect-ratio: 1;
  background: var(--cell); color: var(--ink); font-weight: 600; font-size: clamp(1rem, 0.8rem + 0.6vw, 1.375rem);
  outline: 2px solid var(--night); outline-offset: -1px;
}
.product-cells em {
  display: grid; place-items: start; padding: 4px 5px; width: clamp(34px, 3.4vw, 46px); aspect-ratio: 1;
  background: var(--night-2); font-style: normal; font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.04em;
  outline: 2px solid var(--night); outline-offset: -1px;
}
.product-cells span i { position: absolute; top: 2px; left: 4px; font-style: normal; font-size: 0.5625rem; font-weight: 600; }
.product-pilot .product-cells span { background: var(--pilot-wash); }
.product-pilot .product-cells em { color: var(--pilot); }
.product-hunter .product-cells span { background: var(--hunter-wash); }
.product-hunter .product-cells em { color: var(--hunter-glow); }
.product h3 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.product-pilot h3 sup { color: var(--pilot); }
.product-hunter h3 sup { color: var(--hunter-glow); }
.product-tag { margin-top: 14px; font-size: 1.1875rem; font-weight: 600; color: #fff; }
.product-copy > p:not(.product-cells):not(.product-tag) { margin-top: 14px; color: var(--night-muted); max-width: 32em; }
.product-copy .product-note { color: var(--night-text) !important; font-weight: 500; }
.link-out {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  min-height: 48px; padding: 0 18px; font-weight: 600; text-decoration: none;
  border: 2px solid currentColor;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.link-out svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.product-pilot .link-out { color: var(--pilot); }
.product-pilot .link-out:hover { background: var(--pilot); color: var(--ink); }
.product-hunter .link-out { color: var(--hunter-glow); }
.product-hunter .link-out:hover { background: var(--hunter-glow); color: var(--ink); }

.pilot-demo, .pilot-builder, .hunter-report { background: var(--cell); color: var(--ink); padding: clamp(20px, 2.6vw, 36px); }
.demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-weight: 600; font-size: 0.9375rem; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.tag { font-weight: 500; font-size: 0.8125rem; color: var(--muted); }
.demo-asks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.demo-ask {
  min-height: 40px; padding: 0 14px; background: var(--cell); border: 1.5px solid var(--ink); border-radius: 0;
  font-weight: 500; font-size: 0.9375rem; cursor: pointer; transition: background-color 160ms var(--ease-out);
}
.demo-ask:hover { background: var(--pilot-wash); }
.demo-ask.is-active { background: var(--pilot); color: var(--ink); }
.demo-answer { margin-top: 24px; }
.demo-figure { font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--pilot-text); font-variant-numeric: tabular-nums; }
.demo-summary { margin-top: 10px; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.demo-detail { margin-top: 8px; color: var(--ink-2); }
.demo-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule-soft); font-size: 0.875rem; }
.demo-meta dt { color: var(--muted); }
.demo-meta dd { font-weight: 500; }
.demo-answer.is-swapping > * { animation: swap-in 320ms var(--ease-out) both; }
.demo-answer.is-swapping > *:nth-child(2) { animation-delay: 40ms; }
.demo-answer.is-swapping > *:nth-child(3) { animation-delay: 80ms; }
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); } }

/* инструменты под заказ: сборка из клеток-блоков */
.product-sub h4 { margin: 0; font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.product-sub strong { color: #fff; font-weight: 600; }
.builder-body { margin-top: 22px; }
.builder-label { display: block; margin-bottom: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.builder-request span:last-child { display: block; font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
#bricks-label { margin-top: 22px; }
.bricks { display: flex; flex-wrap: wrap; margin: 0; padding: 0 1px 1px 0; list-style: none; }
.bricks li {
  display: flex; align-items: center; min-height: 42px; padding: 8px 11px; margin: 0 -1px -1px 0;
  background: var(--cell); outline: 2px solid var(--ink); outline-offset: -1px;
  font-size: 0.9375rem; font-weight: 500; line-height: 1.25;
  transition: background-color 220ms var(--ease-out);
}
.bricks.is-built li { background: var(--pilot-wash); }
.bricks li.brick-dest, .bricks.is-built li.brick-dest { background: var(--ink); color: var(--pilot); font-weight: 600; }
.builder-result tr.is-total td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.bricks.is-building li:not(.is-placed) { opacity: 0; }
.bricks li.is-placed { animation: brick-in 280ms var(--ease-out); }
@keyframes brick-in { from { opacity: 0; transform: translateY(-40%) scale(1.06); } }
.builder-result { margin-top: 24px; }
.builder-result table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.builder-result caption { caption-side: top; text-align: left; padding-bottom: 10px; font-weight: 600; }
.builder-result th { padding: 0 8px 8px; text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); }
.builder-result td { padding: 10px 8px; border-bottom: 1px solid var(--rule-soft); }
.builder-result th:first-child, .builder-result td:first-child { padding-left: 0; }
.builder-result th:last-child, .builder-result td:last-child { padding-right: 0; }
.builder-result th:not(:first-child), .builder-result td:not(:first-child) { text-align: right; }
.builder-result.is-waiting { visibility: hidden; }
.builder-result.is-swapping > * { animation: swap-in 320ms var(--ease-out) both; }

.verdicts { list-style: none; padding: 0; margin-top: 8px; }
.verdicts li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--rule-soft);
}
.v-task { font-weight: 500; }
.v-mark { justify-self: start; font-size: 0.8125rem; font-weight: 600; padding: 4px 10px; white-space: nowrap; }
.v-ok { background: var(--hunter-wash); color: var(--hunter); }
.v-check { background: var(--check-wash); color: var(--check); }
.v-thin { background: #ececea; color: var(--ink-2); }
.v-time { font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--hunter); }
.report-foot { margin-top: 18px; font-size: 0.9375rem; color: var(--ink-2); }

/* calculator */
.calc { background: var(--paper); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.calc-form { display: grid; gap: 26px; background: var(--cell); padding: clamp(24px, 3vw, 44px); outline: 2px solid var(--ink); outline-offset: -1px; }
.range { display: grid; gap: 10px; }
.range-label { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; }
.range output { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* слайдер как слово в сетке: пройденная часть голубая, бегунок — жёлтая клетка-курсор */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 24px; border: 1.5px solid var(--ink);
  background:
    repeating-linear-gradient(to right, transparent 0 23px, var(--rule-soft) 23px 24px),
    linear-gradient(to right, var(--word) var(--fill, 50%), var(--cell) var(--fill, 50%));
}
input[type="range"]::-moz-range-track {
  height: 24px; border: 1.5px solid var(--ink);
  background: repeating-linear-gradient(to right, transparent 0 23px, var(--rule-soft) 23px 24px), var(--cell);
}
input[type="range"]::-moz-range-progress { height: 24px; background: var(--word); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -3px; background: var(--marker); border: 2px solid var(--ink); border-radius: 0; }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; background: var(--marker); border: 2px solid var(--ink); border-radius: 0; }
input[type="range"]:focus-visible { outline: none; box-shadow: none; }
/* с JS полоса собирается из целых клеток, нативный range прозрачный поверх неё */
.js .range-track { position: relative; display: block; }
.js .range-track input { position: absolute; left: 0; top: -8px; z-index: 2; width: 100%; height: calc(100% + 16px); opacity: 0; }
.range-cells { display: grid; grid-template-columns: repeat(var(--count, 20), minmax(0, 1fr)); }
.range-cells span {
  position: relative; aspect-ratio: 1; background: var(--cell);
  outline: 1.5px solid var(--ink); outline-offset: -0.75px;
  transition: background-color 120ms var(--ease-out);
}
.range-cells span.is-word { background: var(--word); }
.range-cells span.is-cursor { z-index: 1; background: var(--marker); outline-width: 2px; outline-offset: -1px; }
@media (hover: hover) { .range-track:hover .range-cells span:not(.is-word):not(.is-cursor) { background: #f0f5ff; } }
.range-track:has(input:focus-visible) .range-cells span.is-cursor { box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--marker); }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--marker); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--marker); }

.calc-result { margin-top: 6px; padding-top: 26px; border-top: 2px solid var(--ink); }
.result-main { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; }
.result-cells { display: flex; }
.result-cells span {
  display: grid; place-items: center; width: clamp(52px, 5.6vw, 72px); aspect-ratio: 1;
  background: var(--marker); outline: 2px solid var(--ink); outline-offset: -1px;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); font-weight: 700; font-variant-numeric: tabular-nums;
}
.result-cells span.is-typed { animation: type-in 260ms var(--ease-out); }
.result-unit { font-size: 1.125rem; font-weight: 600; padding-bottom: 6px; }
.result-rows { margin-top: 22px; display: grid; gap: 0; }
.result-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.result-rows dt { color: var(--ink-2); }
.result-rows dd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.result-rows .result-money { align-items: center; }
.result-money dd { display: flex; align-items: center; gap: 10px; }

/* строка клеток: цифры результата, слово самопроверки, ответы FAQ */
.digit-cells { --cs: 34px; display: inline-flex; flex: none; }
.digit-cells > span {
  display: grid; place-items: center; width: var(--cs); aspect-ratio: 1;
  background: var(--cell); outline: 2px solid var(--ink); outline-offset: -1px;
  font-size: calc(var(--cs) * 0.5); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
  transition: background-color 180ms var(--ease-out);
}
.digit-cells > span + span { margin-left: -1px; }
.digit-cells > span.gs { margin-left: 7px; }
.digit-cells > span.is-typed, .digit-cells b.is-typed { animation: type-in 260ms var(--ease-out); }
.digit-cells b { font-weight: inherit; }

/* pricing */
.pricing { background: var(--cell); border-top: 2px solid var(--ink); }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(32px, 5vw, 80px); align-items: start; }
.pricing-puzzle { display: grid; gap: 16px; padding-top: 10px; }
.pricing-sign { font-size: 0.875rem; color: var(--muted); }
.steps { grid-column: 1 / -1; margin-top: clamp(56px, 7vw, 96px); border-top: 2px solid var(--ink); }
.step {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 140px 220px;
  gap: 16px 32px; align-items: start;
  padding: 28px 16px 28px 8px; margin-inline: -8px -16px; border-bottom: 1px solid var(--rule-soft);
  transition: background-color 180ms var(--ease-out);
}
.js .step { cursor: pointer; }
@media (hover: hover) { .js .step:not(.is-active):hover { background: #f0f5ff; } }
.step.is-active { background: var(--word); }
.step-n {
  display: grid; place-items: center; width: 56px; aspect-ratio: 1;
  font-size: 1.5rem; font-weight: 700; outline: 2px solid var(--ink); outline-offset: -1px; background: var(--cell);
  transition: background-color 180ms var(--ease-out);
}
.step.is-active .step-n { background: var(--marker); }
.step.is-active .step-price small { color: var(--ink-2); }
.step h3 .clue-len { font-size: 0.6em; letter-spacing: 0; vertical-align: 0.1em; }
.step.is-active .clue-len { color: var(--ink-2); }
.step h3 { font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.step-body p { margin-top: 8px; color: var(--ink-2); max-width: 36em; }
.step-term { padding-top: 6px; font-weight: 500; color: var(--ink-2); }
.step-price { padding-top: 2px; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; }
.step-price small { display: block; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 4px; }

/* terms */
.terms { background: var(--paper); }
.terms-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 5vw, 80px); }
.terms h2 { grid-row: span 2; }
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.fit-col h3, .fit-col legend { display: block; width: 100%; font-size: 1.1875rem; font-weight: 700; padding: 0 0 10px; border-bottom: 2px solid var(--ink); }
fieldset.fit-col { margin: 0; padding: 0; border: 0; min-width: 0; }
.fit-col legend { float: left; margin-bottom: 8px; }
.fit-col legend + * { clear: left; }
.fit-col ul { list-style: none; padding: 0; margin-top: 8px; }
.fit-col li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--rule-soft); }
/* «нет» — чёрная клетка-блок: слово сюда не впишется */
.fit-no li::before { content: ""; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; background: var(--ink); }

/* самопроверка: пустая клетка, отметка заливает её жёлтым */
.fit-check {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 10px 8px 10px 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}
@media (hover: hover) { .fit-check:hover { background: #f0f5ff; } }
.fit-check input {
  -webkit-appearance: none; appearance: none; margin: 3px 0 0; width: 22px; height: 22px;
  background: var(--cell); border: 1.5px solid var(--ink); border-radius: 0; cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}
.fit-check input:checked {
  background: var(--marker) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23141414' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.fit-check input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--marker); border-radius: 0; }
.fit-word { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.fit-cells { --cs: 48px; }
.fit-cells b { opacity: 0; }
.fit-cells > span.is-on { background: var(--word); }
.fit-cells > span.is-on b { opacity: 1; }
.fit-yes.is-solved .fit-cells > span { background: var(--marker); }
.fit-status { flex: 1 1 14em; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); }
.fit-status a { font-weight: 600; }
html:not(.js) .fit-word { display: none; }
.data-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.data-rules div { padding-top: 14px; border-top: 2px solid var(--ink); }
.data-rules dt { font-weight: 700; }
.data-rules dd { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }

/* faq */
.faq { background: var(--cell); border-top: 2px solid var(--ink); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule-soft); }
/* вопрос кроссворда: номер, текст, длина ответа и пустые клетки; открытый вопрос — разгаданное слово */
.faq-list summary {
  display: grid; grid-template-columns: 2.25em minmax(0, 1fr) auto; gap: 10px 16px; align-items: center;
  padding: 18px 8px 18px 6px; font-size: 1.125rem; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none;
  transition: background-color 160ms var(--ease-out);
}
.faq-list summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq-list summary:hover { background: #f0f5ff; } }
.faq-list summary .clue-len { font-size: 0.9375rem; }
.faq-n { justify-self: start; min-width: 1.75em; font-style: normal; font-weight: 700; text-align: center; transition: background-color 160ms var(--ease-out); }
.faq-cells { --cs: 30px; }
.faq-cells b { opacity: 0; }
.faq-list details[open] summary { background: var(--word); }
.faq-list details[open] .faq-n { background: var(--marker); outline: 1.5px solid var(--ink); }
.faq-list details[open] .faq-cells > span { background: var(--cell); }
.faq-list details[open] .faq-cells b { opacity: 1; }
.faq-list details.is-typing .faq-cells b:not(.is-typed) { opacity: 0; }
.faq-list details p { padding: 18px 56px 24px 62px; color: var(--ink-2); max-width: calc(40em + 62px); }

/* contact: жёлтая клетка */
.contact { background: var(--marker); padding: var(--section) 0; border-top: 2px solid var(--ink); }
.contact .section-lead { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.contact-form { display: grid; gap: 20px; background: var(--cell); padding: clamp(24px, 3vw, 44px); outline: 2px solid var(--ink); outline-offset: -1px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--cell); border: 1.5px solid var(--ink); border-radius: 0;
  font-size: 1rem; line-height: 1.4;
  transition: background-color 160ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 116px; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23141414' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.field ::placeholder { color: #6e6e68; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: #fffbe6; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; box-shadow: none; background-color: #fffbe6; }
.field [aria-invalid="true"] { border-color: var(--error); background-color: #fdf0ef; }
.field-error { color: var(--error); font-size: 0.875rem; font-weight: 500; }
.form-note { font-size: 0.8125rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; background: var(--word); font-weight: 500; font-size: 0.9375rem; }

/* footer */
.site-footer { background: var(--night); color: var(--night-text); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; }
.logo-dark .logo-cell { color: var(--ink); outline-color: var(--night-text); }
.footer-sign { color: var(--night-muted); font-size: 0.9375rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 500; font-size: 0.9375rem; }
.footer-links a { display: inline-block; padding: 10px 0 6px; text-decoration: none; border-bottom: 1px solid var(--night-line); }
.footer-links a:hover { border-bottom-color: var(--marker); }
.footer-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 0.8125rem; color: var(--night-muted); }
.footer-legal .stub { color: var(--ink); }

/* появление при прокрутке: только с JS и без reduced motion */
@media (prefers-reduced-motion: no-preference) {
  /* строки вписываются слева направо, как ответ в клетки */
  .motion .reveal[data-reveal="rows"] .rv-row { clip-path: inset(0 100% 0 0); transition: clip-path 620ms var(--ease-out) calc(var(--i, 0) * 60ms); }
  .motion .reveal[data-reveal="rows"].is-in .rv-row { clip-path: inset(-12px -12px -12px -12px); }
  /* листы разворачиваются сверху, как газетная полоса */
  .motion .reveal[data-reveal="sheet"] { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-out); }
  .motion .reveal[data-reveal="sheet"].is-in { clip-path: inset(-16px -16px -16px -16px); }
  /* название продукта впечатывается по буквам */
  .motion [data-type-in] > * { opacity: 0; }
  .motion [data-type-in] > .is-typed { opacity: 1; animation: type-in 260ms var(--ease-out); }
}

@media (min-width: 901px) {
  .calc-head, .terms-grid > h2, .faq-grid > h2, .contact-copy { position: sticky; top: 104px; align-self: start; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .step { grid-template-columns: 64px minmax(0, 1fr) 180px; }
  .step-term { grid-column: 2; padding-top: 0; }
  .step-price { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-grid, .dir-grid, .products-head, .product, .calc-grid, .pricing-grid, .terms-grid, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .pricing-puzzle { margin-top: 40px; padding-top: 0; }
  .dir-grid { grid-template-areas: "head" "puzzle" "clues" "answers"; }
  .terms h2 { grid-row: auto; }
  .product { gap: 32px; }
  .product-sub { padding-top: 28px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 64px; gap: 12px; }
  .logo { font-size: 1.125rem; }
  .btn-sm { min-height: 40px; padding: 0 12px; font-size: 0.875rem; }
  .hero { padding-top: 28px; }
  .lead { margin-top: 20px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { margin-top: 32px; }
  .xw { --cell-line: 1.5px; }
  .xw-services .xw-cell i { display: none; }
  /* в цене номера нужны: они связывают слово с шагом, поэтому буква уступает место номеру */
  .xw-pricing .xw-cell i { top: 2px; left: 2px; font-size: 8px; }
  .xw-pricing .xw-cell b { font-size: calc(100cqi / var(--cols) * 0.42); }
  .xw-pricing .xw-cell.is-letter { padding: 22% 0 0 14%; }
  .clue-chip, .demo-ask, .btn-sm { min-height: 44px; }
  .hero-puzzle { display: contents; }
  .xw-hero { order: -1; }
  .hero-grid { gap: 24px; }
  .hero-sign { order: 2; }
  .result-rows div { flex-wrap: wrap; gap: 2px 16px; }
  .result-rows dd { text-align: left; }
  .clue-card { min-height: 0; }
  .fit, .data-rules, .field-row { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 48px minmax(0, 1fr); gap: 10px 16px; padding: 22px 8px; margin-inline: -8px; }
  .step-n { width: 44px; font-size: 1.25rem; }
  .step-term, .step-price { grid-column: 2; grid-row: auto; text-align: left; padding-top: 0; }
  .step-price small { display: inline; margin: 0 0 0 8px; }
  .verdicts li { grid-template-columns: minmax(0, 1fr) auto; }
  .v-task { grid-column: 1 / -1; }
  .demo-meta { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .faq-list summary { grid-template-columns: 2em minmax(0, 1fr); gap: 10px 12px; align-items: start; font-size: 1.0625rem; }
  .faq-n { margin-top: -1px; }
  .faq-cells { grid-column: 2; --cs: 28px; }
  .faq-list details p { padding: 14px 0 22px 52px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- цвет сканворда ---------- */
/* пустые клетки тонированы, как клетки-вопросы в сканворде; у каждого слова свой цвет:
   он всегда виден на номере вопроса, а в сетке заливает слово, когда его выбрали */
:root {
  --sky: #d6e9f8;   --sky-2: #a9d2f3;
  --pink: #f9d9e4;  --pink-2: #f3b3c9;
  --mint: #d5f0df;  --mint-2: #a6dfbd;
  --lilac: #e4ddf7; --lilac-2: #c6b8f0;
  --peach: #fde3cb; --peach-2: #f9c596;
  --lemon: #fff3b0; --lemon-2: #ffe066;
}
.xw { background: var(--cell); }
.xw-cell:not(.is-letter):not(.is-block) { outline: 1px solid rgba(255, 255, 255, 0.9); outline-offset: -0.5px; }
.xw-hero .xw-cell:not(.is-letter):not(.is-block) { background: #e4f0f9; }
.xw-services .xw-cell:not(.is-letter):not(.is-block) { background: #efe9f9; }
.xw-pricing .xw-cell:not(.is-letter):not(.is-block) { background: #fbf1e4; }

[data-word="market"], [data-word="automation"], [data-word="system"], [data-answer="automation"] { --w: var(--sky); --w2: var(--sky-2); }
[data-word="talent"], [data-word="audit"], [data-answer="audit"] { --w: var(--lemon); --w2: var(--lemon-2); }
[data-word="analytics"], [data-answer="analytics"] { --w: var(--lilac); --w2: var(--lilac-2); }
[data-word="content"], [data-answer="content"] { --w: var(--pink); --w2: var(--pink-2); }
[data-word="hiring"], [data-word="support"], [data-answer="hiring"] { --w: var(--mint); --w2: var(--mint-2); }
[data-word="profit"], [data-word="pilot"], [data-answer="profit"] { --w: var(--peach); --w2: var(--peach-2); }
.clue-chip.chip-pilot { --w: var(--pilot-wash); }
.clue-chip.chip-hunter { --w: var(--hunter-wash); }

.xw[data-active="market"] .xw-cell.is-word, .xw[data-active="system"] .xw-cell.is-word, .xw[data-active="automation"] .xw-cell.is-word { background: var(--sky-2); }
.xw[data-active="talent"] .xw-cell.is-word, .xw[data-active="audit"] .xw-cell.is-word { background: var(--lemon-2); }
.xw[data-active="analytics"] .xw-cell.is-word { background: var(--lilac-2); }
.xw[data-active="content"] .xw-cell.is-word { background: var(--pink-2); }
.xw[data-active="hiring"] .xw-cell.is-word, .xw[data-active="support"] .xw-cell.is-word { background: var(--mint-2); }
.xw[data-active="profit"] .xw-cell.is-word, .xw-pricing[data-active="pilot"] .xw-cell.is-word { background: var(--peach-2); }
.xw.xw .xw-cell.xw-cell.is-key, .xw.xw .xw-cell.xw-cell.is-cursor { background: var(--marker); }

.clue-chip i, .clue-row i { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; color: var(--ink); background: var(--w); outline: 1.5px solid var(--ink); }
.clue-chip.is-active:not(.chip-pilot):not(.chip-hunter) { background: var(--sky); }
.clue-row.is-active { background: var(--w); }
.clue-row.is-active i { background: var(--w2); }
.answer-word { background: linear-gradient(transparent 58%, var(--w2, var(--marker)) 58%); }
.step-n { background: var(--w); }
.step.is-active { background: var(--w); }
.step.is-active .step-n { background: var(--w2); }
.hero-facts li:nth-child(1)::before { background: var(--sky-2); }
.hero-facts li:nth-child(2)::before { background: var(--pink-2); }
.hero-facts li:nth-child(3)::before { background: var(--mint-2); }
.hero-facts li:nth-child(4)::before { background: var(--lemon-2); }
@media (hover: hover) {
  .clue-row:not(.is-active):hover { background: color-mix(in srgb, var(--w) 45%, white); }
  .js .step:not(.is-active):hover { background: color-mix(in srgb, var(--w) 45%, white); }
}

/* ---------- возражение «нанять человека»: газетная таблица под калькулятором ---------- */
.versus { margin-top: clamp(72px, 9vw, 128px); }
.versus-title { max-width: 18em; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.versus-lead { margin-top: 14px; color: var(--ink-2); }
.vs-table { width: 100%; margin-top: 36px; border-collapse: collapse; background: var(--cell); outline: 2px solid var(--ink); outline-offset: -1px; }
.vs-table th, .vs-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
.vs-table tbody tr:last-child > * { border-bottom: 0; }
.vs-table thead th, .vs-table thead td { padding-top: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.vs-table thead th { font-weight: 600; }
.vs-table tbody th { width: 28%; font-weight: 700; }
.vs-table td { width: 36%; color: var(--ink-2); }
.vs-table td:last-child, .vs-table th:last-child { background: color-mix(in srgb, var(--marker) 12%, var(--cell)); color: var(--ink); }
.vs-word { --cs: 40px; display: flex; }
.vs-word-ai > span { background: var(--marker); }
.vs-head { display: block; margin-top: 12px; font-size: 0.9375rem; }
.versus-foot { margin-top: 28px; max-width: 46em; color: var(--ink-2); }
.versus-foot strong { color: var(--ink); font-weight: 700; }

/* ---------- образец отчёта аудита ---------- */
.audit-sample { grid-column: 1 / -1; margin-top: clamp(80px, 10vw, 136px); }
.audit-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(32px, 5vw, 80px); align-items: end; }
.audit-intro h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.audit-intro .section-lead { margin-top: 0; }
.audit-sheet { margin-top: 36px; background: var(--cell); outline: 2px solid var(--ink); outline-offset: -1px; }
.audit-mast { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding: 16px clamp(20px, 2.4vw, 32px); background: var(--ink); color: var(--night-text); }
.audit-kind { font-weight: 700; font-size: 1.0625rem; color: var(--cell); }
.audit-client { flex: 1 1 24em; font-size: 0.9375rem; }
.audit-stamp { padding: 2px 8px; background: var(--marker); color: var(--ink); font-size: 0.8125rem; font-weight: 600; }
.audit-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.85fr); }
.audit-part { padding: clamp(22px, 2.4vw, 32px); }
.audit-part + .audit-part { border-left: 1px solid var(--rule-soft); }
.audit-part h4 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.audit-part h4 i { display: grid; place-items: center; width: 1.7em; height: 1.7em; font-style: normal; font-size: 0.875rem; outline: 1.5px solid var(--ink); }
.audit-gap { margin-top: 32px; }
.audit-note { margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }
.audit-map { margin-top: 16px; display: grid; gap: 14px; }
.audit-map li { display: grid; gap: 6px; font-size: 0.9375rem; line-height: 1.35; }
.audit-bar {
  display: block; height: 22px; width: calc(var(--n) * 22px);
  background: linear-gradient(90deg, transparent 20.5px, var(--ink) 20.5px) 0 0 / 22px 100%, var(--bar, var(--cell));
  outline: 1.5px solid var(--ink); outline-offset: -0.75px;
}
.audit-map .is-loss { --bar: var(--marker); }
.audit-legend { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 0.875rem; font-weight: 600; }
.audit-key { flex: none; width: 16px; height: 16px; background: var(--marker); outline: 1.5px solid var(--ink); }
.audit-data { margin-top: 14px; display: grid; gap: 10px; font-size: 0.9375rem; line-height: 1.4; }
.audit-data li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.audit-data b { padding: 1px 0; text-align: center; font-size: 0.75rem; font-weight: 700; outline: 1.5px solid var(--ink); outline-offset: -0.75px; }
.audit-data .is-no b { background: var(--ink); color: var(--cell); }
.audit-calc { margin-top: 10px; }
.audit-calc div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); font-size: 0.9375rem; }
.audit-calc dt { color: var(--ink-2); }
.audit-calc dd { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.audit-calc div:last-child { border-bottom: 0; }
.audit-calc div:last-child dd { background: var(--marker); padding: 0 6px; }
.audit-word { --cs: 42px; margin-top: 18px; }
.audit-word > span { background: var(--marker); }
.audit-plan-title { margin-top: 24px; font-weight: 700; font-size: 0.9375rem; }
.audit-plan { margin-top: 10px; padding-left: 1.2em; display: grid; gap: 8px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }

@media (max-width: 900px) {
  .audit-intro { grid-template-columns: minmax(0, 1fr); }
  .audit-cols { grid-template-columns: minmax(0, 1fr); }
  .audit-part + .audit-part { border-left: 0; border-top: 1px solid var(--rule-soft); }
}
@media (max-width: 640px) {
  .vs-table thead { display: none; }
  .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td, .vs-table tbody th { display: block; width: auto; }
  .vs-table tbody tr { padding: 4px 0; border-bottom: 1px solid var(--rule-soft); }
  .vs-table tbody tr:last-child { border-bottom: 0; }
  .vs-table th, .vs-table td { padding: 8px 16px; border-bottom: 0; }
  .vs-table tbody th { padding-top: 16px; }
  .vs-table td::before { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
  .vs-table td:nth-of-type(1)::before { content: "Нанять сотрудника"; }
  .vs-table td:nth-of-type(2)::before { content: "Отдать рутину AI"; color: var(--ink); }
  .vs-table td:last-child { margin: 4px 0 12px; }
  .audit-word { --cs: 36px; }
}

/* ---------- абстрактные картинки: только вне кроссвордов ---------- */
.art-strip { width: 100%; height: auto; margin-top: clamp(40px, 5vw, 72px); -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.art-clip { width: 100%; height: auto; margin-top: 40px; outline: 2px solid var(--ink); outline-offset: -1px; }
.art-routine { max-width: 300px; }
.art-map { max-width: 400px; }
@media (max-width: 900px) {
  .art-routine { max-width: 220px; margin-top: 28px; }
  .art-map { max-width: 260px; margin-top: 28px; }
}

/* ---------- кейсы: пустые клетки ждут цифр ---------- */
.cases { background: var(--cell); }
.calc { border-top: 2px solid var(--ink); }
.cases-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(32px, 5vw, 80px); align-items: end; }
.cases-head .section-lead { margin-top: 0; }
.case-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 2px solid var(--ink); }
.case { padding: 28px clamp(20px, 2.4vw, 32px) 8px 0; }
.case + .case { padding-left: clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--rule-soft); }
.case-meta { font-size: 0.875rem; color: var(--muted); }
.case-title { margin-top: 12px; font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.case-numbers { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 24px; }
.case-label { display: block; margin-bottom: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.case-cells { --cs: 44px; }
.case-cells.is-after > span { background: var(--marker); }
.case-metric { margin-top: 14px; font-size: 0.9375rem; }
.case-text { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule-soft); color: var(--ink-2); }
.case-foot { margin-top: 14px; font-size: 0.875rem; font-weight: 600; }

/* ---------- основатели: силуэты из клеток до настоящих фото ---------- */
.founders { background: var(--paper); border-top: 2px solid var(--ink); }
.founders-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.founders-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); }
.founder-offset { margin-top: clamp(40px, 6vw, 88px); }
.founder-photo { width: 100%; max-width: 280px; height: auto; outline: 2px solid var(--ink); outline-offset: -1px; }
.founder-name { margin-top: 20px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.founder-role { margin-top: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.founder-text { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.founder-contact { margin-top: 12px; font-size: 0.9375rem; font-weight: 600; }

@media (max-width: 900px) {
  .cases-head, .founders-grid { grid-template-columns: minmax(0, 1fr); }
  .case-list { grid-template-columns: minmax(0, 1fr); }
  .case, .case + .case { padding: 24px 0; border-left: 0; }
  .case + .case { border-top: 1px solid var(--rule-soft); }
}
@media (max-width: 640px) {
  .founders-list { grid-template-columns: minmax(0, 1fr); }
  .founder-offset { margin-top: 0; }
  .founder-photo { max-width: 200px; }
  .case-cells { --cs: 38px; }
}
