/* Токены — из DESIGN.md (YESWorkflow). Шрифт лежит в assets/fonts: внешних запросов нет. */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-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 {
  --bg: #0c0f15;
  --s1: #111720;
  --s2: #161d27;
  --s3: #1c2530;
  --tint: #0f1f1d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f2f2;
  --muted: #a0a0a0;
  --accent: #5eead4;
  --accent-rgb: 94, 234, 212;
  --accent-hover: #2dd4bf;
  --ok: #5eead4;
  --glow: 0 0 25px rgba(var(--accent-rgb), 0.3);
  --r-chip: 6px;
  --r-btn: 6px;
  --r-card: 12px;
  --r-panel: 16px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-chip); }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(12, 15, 21, 0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { min-height: 56px; display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-weight: 800; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.top nav a { color: var(--text); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.top nav a:hover, .top nav a[aria-current] { color: var(--accent-hover); }

/* кнопки: тёмные, с контуром акцента и свечением при наведении (как на yesworkflow.com) */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-btn); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; line-height: 1.3; transition: box-shadow 0.25s, background-color 0.25s, border-color 0.25s; }
.btn-primary { background: rgba(var(--accent-rgb), 0.08); color: var(--accent); border-color: var(--accent); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3); }
.btn-primary:hover { background: rgba(var(--accent-rgb), 0.16); box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.3); }
.btn-secondary { background: var(--s1); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: rgba(var(--accent-rgb), 0.5); color: var(--accent); }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* типографика */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; text-rendering: optimizeLegibility; }
h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
h3 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
/* заголовок первого экрана: серебристый градиент, часть фразы — акцентом со свечением */
h1 { background: linear-gradient(135deg, #f5f5f5 0%, #c0c0c0 50%, #f5f5f5 100%); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
h1 .acc { -webkit-text-fill-color: var(--accent); color: var(--accent); text-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.25); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; margin: 20px 0 0; }
.eyebrow { font: 500 12px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }

section { padding: 48px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding: 32px 0 40px; position: relative; isolation: isolate; overflow: hidden; }
/* фон первого экрана: мягкое бирюзовое свечение везде, сеть узлов (net.svg из build.mjs) — только на главной (.hero-net) */
section.hero::before, section.hero-net::after { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
section.hero::before { background: radial-gradient(60% 55% at 28% 30%, rgba(var(--accent-rgb), 0.07), transparent 70%); }
section.hero-net::after { opacity: 0.35; background: url(/net.svg) center top / 1400px auto no-repeat; }
.sec-lead { color: var(--muted); max-width: 64ch; margin: 0 0 32px; }
.sec-head { margin-bottom: 32px; }
.sec-head .sec-lead { margin-bottom: 0; }
@media (min-width: 800px) { section { padding: 72px 0; } section.hero { padding: 40px 0 56px; } }

/* карточки */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.c2, .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s; }
.card p { margin: 0; color: var(--muted); }
.card .push { margin-top: auto; padding-top: 8px; }
a.card { text-decoration: none; }
.card:hover { box-shadow: var(--glow); border-color: rgba(var(--accent-rgb), 0.35); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-5px); } }
.price { font: 600 14px/1.4 var(--mono); color: var(--accent); }
.chip { display: inline-block; font: 600 12px/1 var(--mono); padding: 5px 8px; border-radius: var(--r-chip); background: rgba(var(--accent-rgb), 0.12); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.3); align-self: flex-start; text-decoration: none; }
a.chip:hover { background: rgba(var(--accent-rgb), 0.2); }
.chip.soon { background: var(--s3); color: var(--muted); border-color: var(--line); }
.chip.ok { color: var(--ok); }

/* списки болей/изменений */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list li { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 20px; }
.list.arrows li::before { content: "→"; display: inline-block; margin-right: 10px; color: var(--accent); font-weight: 700; }
/* «Что изменится»: одна бирюзовая панель со строками — ответ на «Знакомо?» */
.list.changes { gap: 0; background: var(--tint); border: 1px solid rgba(var(--accent-rgb), 0.25); border-radius: var(--r-panel); padding: 4px 28px; }
.list.changes li { background: none; border: 0; border-radius: 0; padding: 20px 0; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.45; }
.list.changes li + li { border-top: 1px solid rgba(var(--accent-rgb), 0.18); }
.list.changes li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.list.changes li::before { margin-right: 0; }
/* «Честные условия»: галочки в кружках, без карточек */
.checks { display: grid; gap: 28px 48px; }
@media (min-width: 800px) { .checks { grid-template-columns: repeat(2, 1fr); } }
.check { display: flex; gap: 16px; align-items: flex-start; }
.check .ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb), 0.08); border: 1px solid var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.25); }
.check h3 { font-size: 18px; margin: 2px 0 4px; }
.check p { margin: 0; color: var(--muted); }
/* «Как оформляем работу»: термин слева, расшифровка справа */
.terms { margin: 0; border-top: 1px solid var(--line); }
.term { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .term { grid-template-columns: 260px 1fr; gap: 32px; } }
.term dt { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.term dt .acc { color: var(--accent); }
.term dd { margin: 0; color: var(--muted); max-width: 70ch; }
/* «Почему не сорвётся»: четыре слоя защиты 2×2, первые два (до и после запуска) выделены */
.layers { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 800px) { .layers { grid-template-columns: repeat(2, 1fr); } }
.layer { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; }
.layer.key { border-color: rgba(var(--accent-rgb), 0.35); background: var(--tint); }
.layer .lab { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.layer p { margin: 10px 0 0; line-height: 1.5; }
/* «Кратко» в отчёте: вывод одной строкой, под ним серое пояснение */
.list.summary li { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; row-gap: 4px; padding: 18px 22px; }
.list.summary li::before { grid-row: 1 / span 2; margin-right: 0; }
.list.summary strong { font-size: clamp(17px, 1.8vw, 19px); line-height: 1.35; }
.list.summary span { color: var(--muted); line-height: 1.5; }
/* «Другие проекты»: название и пояснение слева, метка и ссылка на код справа */
.list.ops li.op { display: grid; gap: 10px 24px; align-items: center; padding: 16px 20px; }
@media (min-width: 800px) { .list.ops li.op { grid-template-columns: 1fr 400px; } .op-side { display: grid; grid-template-columns: 124px 1fr; justify-items: start; } }
.op-main { display: flex; flex-direction: column; gap: 2px; }
.op-main strong { font-weight: 600; }
.op-main .muted { font-size: 15px; }
.op-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.op-repo { font-size: 14px; }
.op-repo .repo { font-size: 14px; }
.op-repo a.repo { text-decoration: none; }
.op-repo a.repo:hover { text-decoration: underline; }
.op-repo a.repo::after { content: "\00a0\2197"; color: var(--accent); white-space: nowrap; }
/* «Чего я не делаю»: тот же вид, что «Кратко», но вместо стрелки крестик (отрицание) */
.list.nots li::before { content: "×"; display: block; font-size: 22px; line-height: 1; font-weight: 400; color: var(--accent); }
/* первый экран: три шага бесплатного примера в одну строку */
.mini-steps { list-style: none; counter-reset: ms; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
.mini-steps li { counter-increment: ms; font-size: 14px; line-height: 1.4; color: var(--muted); }
.mini-steps li::before { content: counter(ms); display: block; margin-bottom: 8px; width: 24px; height: 24px; line-height: 22px; text-align: center; font: 500 12px/22px var(--mono); color: var(--accent); border: 1px solid var(--accent); border-radius: 50%; background: rgba(var(--accent-rgb), 0.08); }
@media (max-width: 640px) { .mini-steps { grid-template-columns: 1fr; } .mini-steps li { display: flex; gap: 12px; align-items: center; } .mini-steps li::before { margin: 0; flex: none; } }
/* «Кто я»: два абзаца */
.sec-lead.bio { margin: 12px 0 0; max-width: 68ch; }
/* «Знакомая ситуация»: строки, а не карточки; бирюзовый маркер со свечением, при наведении строка подсвечивается */
.list.pains { gap: 0; border-top: 1px solid var(--line); }
.list.pains li { display: grid; grid-template-columns: 24px minmax(0, 62ch); gap: 16px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 22px 0; font-size: clamp(18px, 2.1vw, 22px); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.list.pains li { transition: border-color 0.3s; }
.list.pains li::before { content: ""; width: 8px; height: 8px; margin: 0.6em 0 0 2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5); transition: box-shadow 0.3s; }
.list.pains li:hover { border-bottom-color: rgba(var(--accent-rgb), 0.5); }
.list.pains li:hover::before { box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.9); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .list.pains li { transition: border-color 0.3s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .list.pains li:hover { transform: translateX(6px); } }
.pains-next { margin: 20px 0 0; font-size: 15px; }
.pains-next a { color: var(--muted); text-decoration: none; }
.pains-next a::after { content: " ↓"; color: var(--accent); }
.pains-next a:hover { color: var(--accent); }
.cols { display: grid; gap: 12px; }
@media (min-width: 800px) { .cols.c3 { grid-template-columns: repeat(3, 1fr); } .cols.c2 { grid-template-columns: repeat(2, 1fr); } }

/* шаги */
.steps { list-style: none; counter-reset: s; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); font: 500 13px/32px var(--mono); text-align: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); }
/* этапы: кружок с номером и линия к следующему; на узком экране линия вертикальная */
.stages { grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 800px) { .stages.c3 { grid-template-columns: repeat(3, 1fr); } .stages.c4 { grid-template-columns: repeat(4, 1fr); } }
.stages li { position: relative; grid-template-columns: 40px 1fr; column-gap: 16px; }
.stages li::before { grid-row: 1 / span 2; width: 40px; height: 40px; font-size: 14px; line-height: 38px; color: var(--accent); border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.25); }
.stages li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: -28px; width: 1px; background: var(--line-strong); }
.stages li strong { display: block; margin-bottom: 4px; }
.stages li span { color: var(--muted); font-size: 15px; }
@media (min-width: 800px) {
  .stages li { display: block; padding-top: 56px; }
  .stages li::before { position: absolute; left: 0; top: 0; }
  .stages li:not(:last-child)::after { left: 44px; right: -28px; top: 20px; bottom: auto; width: auto; height: 1px; }
  .stages li:last-child::after { content: ""; position: absolute; left: 44px; right: 0; top: 20px; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
}

/* details */
details { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-card); }
details + details { margin-top: 8px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-family: var(--mono); }
details[open] summary::after { content: "−"; }
details .body { padding: 0 20px 18px; color: var(--muted); }
details .body p { margin: 0 0 8px; }
/* плавное раскрытие: высота и прозрачность; в браузерах без ::details-content (и при отключённых анимациях) раскрывается сразу, как раньше */
@media (prefers-reduced-motion: no-preference) {
  @supports selector(details::details-content) {
    details { interpolate-size: allow-keywords; }
    details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, content-visibility 0.4s allow-discrete; }
    details[open]::details-content { block-size: auto; opacity: 1; }
  }
}

/* «Для кого», ситуация клиента, смысл исследования */
.for { margin: 20px 0 0; color: var(--muted); max-width: 62ch; }
.for span { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 8px; }
.situation { font: 500 12px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.card p.meaning { color: var(--text); font-size: 15px; }

/* пример в первом экране: общая панель */
.panel { margin: 0; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.panel-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12px/1.4 var(--mono); color: var(--muted); }
.panel-body { padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.panel-foot { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* диалог */
.chat-body { padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.msg.sys { align-self: center; max-width: 100%; padding: 6px 10px; font: 500 12px/1.4 var(--mono); color: var(--ok); border: 1px dashed var(--line-strong); border-radius: var(--r-chip); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.msg.user { align-self: flex-end; background: rgba(var(--accent-rgb), 0.14); border: 1px solid rgba(var(--accent-rgb), 0.4); color: var(--text); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--s3); border: 1px solid var(--line-strong); border-bottom-left-radius: 4px; }
.msg .src { display: inline-block; margin-top: 8px; padding: 4px 8px; font: 500 12px/1.4 var(--mono); color: var(--muted); text-decoration: none; border: 1px solid var(--line-strong); border-radius: var(--r-chip); }
.msg .src:hover { color: var(--text); }

/* живой чат: прокрутка, подсказки, поле ввода, «печатает…» */
.chat.is-live .chat-body { max-height: 420px; overflow-y: auto; scroll-behavior: smooth; }
/* в первом экране сообщения компактнее: все четыре видны сразу, а чат не вытягивает экран выше текста слева */
.hero .chat .chat-body { padding: 14px 16px; gap: 8px; }
.hero .chat .msg { padding: 7px 12px; font-size: 14px; line-height: 1.4; }
.hero .chat .msg .src { margin-top: 6px; padding: 2px 7px; font-size: 11px; }
.chat.is-live .caret { display: none; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.ask-chip { font: 600 13px/1.3 var(--sans); color: var(--accent); background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.3); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.ask-chip:hover:not(:disabled) { background: rgba(var(--accent-rgb), 0.16); border-color: rgba(var(--accent-rgb), 0.6); }
.ask-chip:disabled { opacity: 0.5; cursor: default; }
.ask-chip:focus-visible, .ask button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-count { padding: 0 16px 10px; font: 500 12px/1.4 var(--mono); color: var(--muted); }
.ask-count[hidden] { display: none; }
.typing-note { margin-left: 6px; font-size: 13px; color: var(--muted); }
.ask { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.ask[hidden], .ask-chips[hidden], [data-live][hidden], [data-static][hidden] { display: none; }
.ask input { flex: 1; min-width: 0; font: 500 15px/1.4 var(--sans); color: var(--text); background: var(--s2); border: 1px solid var(--line-strong); border-radius: var(--r-btn); padding: 9px 12px; }
.ask input::placeholder { color: var(--muted); }
.ask input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ask button:disabled { opacity: 0.5; }
.msg.err { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.msg .src.contact { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.4); }
.msg.typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px; }
.msg.typing .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .msg.typing .dot { animation: blink 1.2s infinite; }
  .msg.typing .dot:nth-child(2) { animation-delay: 0.2s; }
  .msg.typing .dot:nth-child(3) { animation-delay: 0.4s; }
}

/* поиск: по словам и по смыслу */
.sq { display: flex; flex-direction: column; gap: 10px; }
.sq-query { padding: 10px 12px; font: 500 14px/1.4 var(--mono); background: var(--s2); border: 1px solid var(--line-strong); border-radius: var(--r-btn); }
.sq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sq-col { min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--r-btn); }
.sq-col.good { background: var(--s2); border-color: var(--accent); }
.sq-label { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.sq-empty { color: var(--muted); font-size: 15px; }
.sq-hit { font-weight: 500; font-size: 15px; }
.sq-note { color: var(--ok); font-size: 13px; }

/* схема контура */
.contour { position: relative; padding: 24px 14px 14px; border: 1px dashed var(--accent); border-radius: var(--r-card); }
.contour-label { position: absolute; top: -9px; left: 12px; padding: 0 6px; background: var(--s1); font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.contour-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.contour-flow li { position: relative; padding: 10px 12px; text-align: center; font-size: 15px; background: var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-btn); }
.contour-flow li:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); color: var(--muted); font-size: 14px; line-height: 18px; }
.outside { padding: 10px 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-btn); }
.outside strong { color: var(--text); font-weight: 500; }

/* что внутри отчёта */
.report { list-style: none; margin: 0; padding: 4px 16px; }
.report li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.report li:last-child { border-bottom: 0; }
.report .rn { font: 500 12px/1.7 var(--mono); color: var(--accent); }
.report strong { display: block; font-weight: 500; }
.report li div > span { display: block; color: var(--muted); font-size: 14px; }
.rchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* «Как это работает» — конвейер: светящиеся узлы на линии, последний (результат) ярче; на узком экране линия вертикальная */
.flow { list-style: none; counter-reset: f; margin: 0 0 24px; padding: 0; display: grid; gap: 22px; }
.flow li { counter-increment: f; position: relative; padding: 0 0 0 44px; font-size: 16px; line-height: 1.45; }
.flow li::before { content: counter(f, decimal-leading-zero); position: absolute; left: -5px; top: 1px; height: 20px; padding-left: 25px; font: 500 12px/20px var(--mono); color: var(--accent); background: radial-gradient(circle at 10px 10px, var(--accent) 0 4px, transparent 4.5px), radial-gradient(circle at 10px 10px, rgba(var(--accent-rgb), 0.3) 0 10px, transparent 10.5px); background-repeat: no-repeat; }
.flow li:last-child::before { background: radial-gradient(circle at 10px 10px, var(--accent) 0 5.5px, transparent 6px), radial-gradient(circle at 10px 10px, rgba(var(--accent-rgb), 0.5) 0 10px, transparent 10.5px); background-repeat: no-repeat; }
.flow li:last-child { font-weight: 600; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 24px; bottom: -20px; width: 1px; background: rgba(var(--accent-rgb), 0.35); }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(var(--n, 5), 1fr); gap: 28px; }
  .flow li { padding: 36px 0 0; }
  .flow li::before { top: 0; }
  .flow li:not(:last-child)::after { left: 46px; right: -22px; top: 10px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.5), rgba(var(--accent-rgb), 0.15)); }
}
/* курсор — по мотивам Typewriter (kinetics.colorion.co), цвет из нашего акцента */
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--accent); }

/* цифры под первым экраном */
.stats + .stats-note { margin: 12px 0 0; }
.stats { margin-top: 32px; display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(var(--n, 4), 1fr); } }
.stat { background: var(--s1); padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
a.stat:hover { background: var(--s2); }
.stat .v { font-weight: 800; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; letter-spacing: -0.03em; color: var(--accent); }
.stat .l { color: var(--muted); font-size: 14px; line-height: 1.4; }
.stat .r { margin-top: auto; padding-top: 8px; font: 500 12px/1 var(--mono); color: var(--muted); }

/* движение: только если человек не просил его убрать.
   Появление — Stagger Entrance (kinetics.colorion.co): 14px снизу, cubic-bezier(0.16, 1, 0.3, 1).
   У них оно на JavaScript; здесь привязано к прокрутке средствами CSS. Где браузер этого не умеет, всё просто видно сразу. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: no-preference) {
  h1 { animation: shimmer 8s ease-in-out infinite; }
  .chat .msg { animation: rise 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .chat .msg:nth-child(1) { animation-delay: 0.1s; }
  .chat .msg:nth-child(2) { animation-delay: 0.5s; }
  .chat .msg:nth-child(3) { animation-delay: 1.1s; }
  .chat .msg:nth-child(4) { animation-delay: 1.5s; }
  .chat .msg:nth-child(5) { animation-delay: 2s; }
  .caret { animation: blink 1s steps(1) infinite; }
  /* остальные примеры в первом экране собираются по частям */
  :is(.sq, .contour-flow li, .report li, .outside) { animation: rise 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.3s; }
  :is(.sq, .contour-flow li, .report li):nth-child(2) { animation-delay: 0.8s; }
  :is(.contour-flow li, .report li):nth-child(3) { animation-delay: 1.3s; }
  :is(.contour-flow li, .report li):nth-child(4) { animation-delay: 1.8s; }
  .outside { animation-delay: 2.4s; }

  @supports (animation-timeline: view()) {
    section:not(.hero) :is(.sec-head, .grid > *, .list li, .stages li, .flow li, .contact, details) {
      animation-name: rise;
      animation-fill-mode: both;
      animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    section:not(.hero) :is(.grid > *, .list li, .stages li, .flow li):nth-child(3n + 2) { animation-range: entry 10% entry 70%; }
    section:not(.hero) :is(.grid > *, .list li, .stages li, .flow li):nth-child(3n + 3) { animation-range: entry 20% entry 80%; }
  }
}

/* фото в «Обо мне» */
.portrait { display: block; width: 200px; height: 200px; margin: 0 0 24px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(var(--accent-rgb), 0.4); }

/* демо «два поиска» */
.sd-cols { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border-top: 1px solid var(--line); }
@media (min-width: 800px) { .sd-cols { grid-template-columns: 1fr 1fr; } }
.sd-col { background: var(--s1); padding: 20px 16px; min-width: 0; }
.sd-col.good { background: var(--tint); }
.sd-col h3 { font-size: 16px; }
.sd-how { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.sd-res { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.sd-res .muted { margin: 0; font-size: 14px; }
.sd-count { margin: 0 0 4px; font: 500 12px/1.4 var(--mono); color: var(--muted); }
.sd-zero { color: var(--bad); font-size: 14px; font-family: var(--sans); }
.sd-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; text-decoration: none; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-btn); transition: border-color 0.2s; }
.sd-item:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.sd-meta { font: 500 12px/1.3 var(--mono); font-style: normal; color: var(--accent); }
.sd-item strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.sd-item span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.searchdemo .ask-chips { padding-top: 14px; }

/* отчёт об аудите */
:root { --bad: #f87171; }
.chip.bad { color: var(--bad); background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.35); }
.bar { display: block; width: 120px; height: 6px; margin-top: 6px; background: var(--s3); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.plan { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { counter-increment: p; display: grid; grid-template-columns: 32px 1fr; gap: 4px 14px; padding: 16px 20px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-card); }
.plan li::before { content: counter(p); grid-row: 1 / span 3; font: 600 13px/30px var(--mono); text-align: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); }
.plan li span { color: var(--muted); }
.plan li em { font: 500 13px/1.4 var(--mono); font-style: normal; color: var(--accent); }
td strong { font-weight: 700; }

/* печать и PDF: светлый документ вместо тёмного сайта */
@media print {
  :root { --bg: #fff; --s1: #fff; --s2: #f4f6f8; --s3: #e8ecf0; --tint: #f0fdfa; --text: #111827; --muted: #4b5563; --line: rgba(0, 0, 0, 0.14); --line-strong: rgba(0, 0, 0, 0.28); --accent: #0f766e; --accent-rgb: 15, 118, 110; --bad: #b91c1c; --glow: none; }
  html, body { background: #fff; color: #111827; font-size: 12.5px; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; text-shadow: none !important; }
  .top, footer, .btns, #contact, section.hero::before, section.hero-net::after, .crumbs { display: none !important; }
  section { padding: 18px 0; border-top: 1px solid var(--line); break-inside: auto; }
  section.hero { padding: 0 0 18px; border: 0; overflow: visible; }
  h1 { background: none; -webkit-text-fill-color: #111827; color: #111827; font-size: 30px; }
  h1 .acc { -webkit-text-fill-color: var(--accent); color: var(--accent); }
  h2 { font-size: 20px; }
  .wrap { max-width: none; padding: 0; }
  .lead, .sec-lead { color: #374151; max-width: none; }
  .stats { margin-top: 18px; }
  .stat .v { font-size: 22px; }
  .card, .list li, .plan li, .table-wrap, .stats, .stat { background: #fff; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; font-size: 11px; }
  th, td { padding: 6px 8px; }
  tr, .card, .plan li { break-inside: avoid; }
  .grid.c2 { grid-template-columns: 1fr 1fr; }
  a { color: inherit; text-decoration: none; }
  @page { margin: 14mm 12mm; }
}

/* демо */
.demo { background: var(--s1); border: 1px dashed var(--line-strong); border-radius: var(--r-panel); padding: 32px; }
.demo p { color: var(--muted); margin: 8px 0 0; max-width: 62ch; }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .hero-grid.has-side { grid-template-columns: 1.25fr 1fr; align-items: start; } }

/* пакеты */
.pkg { gap: 12px; }
.pkg.featured { border-color: rgba(var(--accent-rgb), 0.6); background: var(--tint); box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.12); }
.pkg .name { font-weight: 600; font-size: 18px; }
.pkg .time { font: 400 13px/1 var(--mono); color: var(--muted); }
.note { margin-top: 20px; color: var(--muted); font-size: 15px; }
.promo { margin-top: 20px; padding: 16px 20px; border: 1px solid rgba(var(--accent-rgb), 0.5); border-radius: var(--r-card); background: var(--tint); }

/* таблицы */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
/* на узком экране таблица шире экрана: подпись сверху и тень у края, где есть что прокручивать */
@media (max-width: 700px) {
  .table-wrap {
    background:
      linear-gradient(to right, var(--bg), var(--bg)) left / 28px 100% no-repeat local,
      linear-gradient(to left, var(--bg), var(--bg)) right / 28px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(var(--accent-rgb), 0.35), transparent) left / 14px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(var(--accent-rgb), 0.35), transparent) right / 14px 100% no-repeat scroll;
    background-color: var(--bg);
  }
  .table-wrap::before { content: "Таблица шире экрана: листайте вбок →"; display: block; position: sticky; left: 0; padding: 8px 16px; font: 500 12px/1.3 var(--mono); color: var(--muted); border-bottom: 1px solid var(--line); }
}
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--s1); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 500; }

/* «Как я работаю»: три тезиса без рамок, с номерами */
/* принципы: иконка в кружке над текстом, на узком экране — слева */
.grid.steps { gap: 32px; }
.step { position: relative; padding-left: 56px; display: flex; flex-direction: column; gap: 10px; }
.step .ico { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb), 0.08); border: 1px solid var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.25); }
.step h3 { margin-top: 8px; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 960px) {
  .step { padding: 56px 0 0; }
  .step h3 { margin-top: 0; }
}
/* «Три главных проекта»: главный проект крупно слева, два других друг над другом справа */
@media (min-width: 960px) { .bento { grid-template-columns: 1.35fr 1fr; } .bento .main { grid-row: span 2; } }
.big { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.big .v { font-weight: 800; font-size: clamp(40px, 5.5vw, 64px); line-height: 1; letter-spacing: -0.035em; color: var(--accent); text-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.25); }
.big .l { color: var(--muted); font-size: 15px; }
.facts { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.facts > div { display: flex; flex-direction: column; gap: 6px; }
.facts .v { font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -0.03em; color: var(--accent); }
.facts .l { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* доказательства */
/* вся карточка — ссылка на репозиторий: ::before заголовочной ссылки растягивается на карточку, ↗ — внешняя ссылка */
.proof { position: relative; }
.proof h3 a { text-decoration: none; }
.proof h3 a:hover { text-decoration: underline; }
.proof h3 a.repo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.proof h3 a.repo::after { content: "\00a0\2197"; color: var(--accent); white-space: nowrap; }
.proof:has(h3 a.repo) { cursor: pointer; }
.proof:has(h3 a.repo:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.proof h3 a.repo:focus-visible { outline: 0; }
.proof .chip[href], .proof .push a { position: relative; z-index: 1; }
.repo { font-family: var(--mono); font-size: 15px; }

/* контакт */
.contact { background: var(--tint); border: 1px solid rgba(var(--accent-rgb), 0.25); border-radius: var(--r-panel); padding: 32px; }
.contact .hint { color: var(--muted); margin: 16px 0 0; max-width: 62ch; }
.rel { display: grid; gap: 12px; }
@media (min-width: 640px) { .rel { grid-template-columns: 1fr 1fr; } }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer a { color: var(--muted); }
footer .legal { flex-basis: 100%; font-size: 13px; }
footer a:hover { color: var(--text); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.plain { max-width: 70ch; }
.plain p { color: var(--muted); }

/* телефон: шапка не прилипает (три ряда съедали 17% экрана), цели касания не меньше 44 px, мелкие подписи крупнее */
@media (max-width: 640px) {
  html { scroll-padding-top: 16px; }
  .top { position: static; }
  .top .wrap { gap: 0 16px; padding-top: 4px; padding-bottom: 4px; }
  .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .top nav { gap: 0 14px; width: 100%; order: 3; }
  .top nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .btn, .btn-sm { min-height: 44px; justify-content: center; }
  .ask-chip { min-height: 44px; padding: 8px 14px; font-size: 14px; }
  .ask input { min-height: 44px; font-size: 16px; }
  .msg .src { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
  footer a { display: inline-block; padding: 12px 4px; }
  .crumbs a, .proof h3 a, .repo a, a.repo { display: inline-block; padding: 12px 0; }
  .chip, .eyebrow, .situation, .stat .r, th, .panel-head, .sq-label, .sd-meta, .sd-count { font-size: 13px; }
}
@media print { .table-wrap::before { display: none !important; } }
