/* Лендинг taimen.ai. Всё на токенах дизайн-системы консоли (tokens.css); компоненты
   консоли во фрагментах — её же стили (ds.css). Здесь — только раскладка страницы.

   Правило цвета (§6.2 ТЗ): --accent (лососёвый) стоит только там, где решает человек,
   и в точке знака. Кнопки, ссылки и декор его не получают. */

@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --logo-arc: var(--teal-700);
  --grid-line: var(--teal-600);
  --inverse-cell: var(--teal-800);
  --inverse-muted: var(--teal-100);
  --wrap: 1184px;
  --gutter: 24px;
  --sec: 104px;
  --line-y: 96px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-arc: var(--teal-300); --grid-line: var(--teal-800); --inverse-cell: var(--teal-950); --inverse-muted: var(--teal-200); } }
[data-theme="dark"] { --logo-arc: var(--teal-300); --grid-line: var(--teal-800); --inverse-cell: var(--teal-950); --inverse-muted: var(--teal-200); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { font-size: 16px; line-height: 1.5; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px; }
svg { flex: none; }

.lp-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.lp-narrow { max-width: 760px; }
.lp-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--surface-card); color: var(--text-primary); padding: 8px 12px; border: 1px solid var(--border-control); border-radius: var(--radius-md); }
.lp-skip:focus { top: 8px; }

/* Знак и локап: дуга — сине-зелёная линия машины, точка — человек (§6.3). */
.lp-mark { height: 26px; width: auto; display: block; }
.lp-mark-arc { fill: var(--logo-arc); }
.lp-mark-dot { fill: var(--accent); }
.lp-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.lp-wordmark { font-family: var(--font-brand); font-size: 22px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); }

/* Кнопки: два главных действия равны по весу — одна форма, один цвет. */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; border: 1px solid var(--border-control); border-radius: var(--radius-md); background: var(--surface-card); color: var(--text-primary); font: 600 16px/1.25 var(--font-sans); text-decoration: none; cursor: pointer; transition: background-color .15s cubic-bezier(.2,.7,.3,1); }
.lp-btn:hover { background: var(--surface-hover); }
.lp-btn svg, .lp-icon-btn svg, .lp-loop-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.lp-btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.lp-link-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 8px; font: 600 16px/1.25 var(--font-sans); color: var(--text-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lp-link-cta:hover { color: var(--link-hover); }
.lp-link-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; white-space: nowrap; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; color: var(--text-secondary); cursor: pointer; }
.lp-icon-btn:hover { background: var(--surface-hover); color: var(--text-primary); }

/* Шапка */
.lp-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--surface-page); border-bottom: 1px solid transparent; }
.lp-header.is-scrolled { border-bottom-color: var(--border-subtle); }
.lp-header-in { display: flex; align-items: center; gap: 28px; height: 64px; max-width: 1328px; }
.lp-nav { display: flex; gap: 24px; margin-right: auto; }
.lp-nav a, .lp-menu-panel a { font-size: 14px; color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
.lp-nav a:hover, .lp-menu-panel a:hover { color: var(--text-primary); }
.lp-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lp-lang { display: flex; border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; }
.lp-lang a { padding: 6px 9px; font: 500 12px/1.5 var(--font-mono); color: var(--text-secondary); text-decoration: none; }
.lp-lang a:hover { background: var(--surface-hover); }
.lp-lang a[aria-current] { background: var(--surface-hover); color: var(--text-primary); }
.lp-menu { display: none; position: relative; }
.lp-menu summary { list-style: none; }
.lp-menu summary::-webkit-details-marker { display: none; }
.lp-menu-panel { position: absolute; right: 0; top: 44px; display: grid; gap: 4px; min-width: 220px; padding: 8px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.lp-menu-panel a { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 15px; color: var(--text-primary); }
.lp-menu-panel a:hover { background: var(--surface-hover); }
.lp-menu-tools { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 10px 4px 2px 12px; border-top: 1px solid var(--border-subtle); }
.lp-menu-tools .lp-lang a { padding: 6px 9px; font: 500 12px/1.5 var(--font-mono); border-radius: 0; }

/* Типографика */
.lp-eyebrow { font: 500 13px/1.4 var(--font-mono); color: var(--text-brand); margin-bottom: 16px; }
h1 { font-size: clamp(42px, 6.1vw, 80px); line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.12; font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.lp-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }
.lp-n { font: 500 12px/1 var(--font-mono); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lp-cap { font: 400 12px/1.5 var(--font-mono); color: var(--text-muted); }

/* Секции */
.lp-sec { padding: var(--sec) 0; }
.lp-sunken { background: var(--surface-sunken); }
.lp-sec-head { max-width: 820px; margin-bottom: 48px; }
.lp-sec-head h2 + .lp-lead { margin-top: 20px; }
.lp-inverse { background-color: var(--surface-inverse); color: var(--text-inverse);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center top; }
.lp-inverse .lp-lead { color: var(--inverse-muted); }

/* Hero */
.lp-hero { padding: 72px 0 var(--sec); }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.lp-hero-text .lp-lead { margin: 28px 0 36px; max-width: 34em; }

/* Фрагменты консоли */
.lp-fig { min-width: 0; }
.lp-frag { pointer-events: none; user-select: none; }
.lp-cap { margin-top: 10px; }
.lp-fig-hero .lp-cap { text-align: right; }
.lp-work { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); font-size: 14px; line-height: 20px; }
.lp-work-kind { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.lp-work-title { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.lp-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 28px 0 24px; }
.lp-stage { position: relative; padding-top: 22px; font-size: 12px; line-height: 16px; color: var(--text-muted); }
.lp-stage::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; border-top: 2px dotted var(--border-strong); }
.lp-stage:last-child::before { right: 40%; }
.lp-stage-dot { position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-card); border: 2px solid var(--border-strong); }
.lp-stage.is-done { color: var(--text-primary); }
.lp-stage.is-done::before { border-top: 2px solid var(--machine-line); }
.lp-stage.is-done .lp-stage-dot { background: var(--machine-line); border-color: var(--machine-line); }
.lp-stage.is-gate { color: var(--accent-text); font-weight: 600; }
.lp-stage.is-gate .lp-stage-dot { top: -3px; left: -3px; width: 18px; height: 18px; background: var(--accent); border: 4px solid var(--accent-bg); }
.lp-work .tc-seals-labelled { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-work .tc-seal-text { white-space: normal; max-width: none; }
.lp-work-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-subtle); color: var(--text-secondary); }
.lp-work-chan { margin-left: auto; font-size: 12px; color: var(--text-muted); }

/* Проблема */
.lp-qcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-qcard { padding: 28px 24px 32px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-card); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.lp-qcard::before { content: "?"; display: block; font: 500 13px/1 var(--font-mono); color: var(--text-muted); margin-bottom: 40px; }

/* Пять вопросов */
.lp-five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--grid-line); border-radius: var(--radius-md); overflow: hidden; background: var(--inverse-cell); }
.lp-five li { padding: 22px 20px 26px; min-height: 148px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; font-size: 19px; line-height: 1.25; font-weight: 600; border-left: 1px solid var(--grid-line); }
.lp-five li:first-child { border-left: 0; }
.lp-five .lp-n { color: var(--inverse-muted); }
.lp-note { margin-top: 28px; font-size: 17px; color: var(--inverse-muted); }

/* Схема цикла: сине-зелёная линия — машина, лососёвые точки — человек. */
.lp-cycle { position: relative; padding-top: var(--line-y); }
.lp-loop-line { position: absolute; left: 0; top: var(--line-y); width: 100%; height: calc(100% - var(--line-y) - 15px); overflow: visible; }
.lp-loop-line rect { x: 0; y: 0; width: 100%; height: 100%; fill: none; stroke: var(--machine-line); stroke-width: 2; }
.lp-steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0 12px 64px 60px; }
.lp-step { position: relative; padding: 30px 14px 0; }
.lp-step-dot { position: absolute; top: -7px; left: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--machine-line); box-shadow: 0 0 0 5px var(--surface-page); }
.lp-step h3 { margin: 10px 0 8px; font-size: 19px; }
.lp-step p { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.lp-kinds { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.lp-kind { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); }
.lp-human { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--text-primary); }
.lp-hdot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }
.lp-human-rules, .lp-human-gate { top: calc(40px - var(--line-y)); max-width: 30%; }
.lp-human-rules::after, .lp-human-gate::after { content: ""; position: absolute; left: 5px; top: calc(50% + 8px); width: 2px; height: calc(var(--line-y) - 40px - 14px); background: var(--accent); }
.lp-human-rules { left: 26px; }
.lp-human-gate { left: calc(60px + (100% - 72px) * 4 / 6 - 12px); }
.lp-human-rules::before, .lp-human-gate::before { content: ""; position: absolute; left: -1px; top: calc(var(--line-y) - 40px - 9px + 50%); width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--surface-page); z-index: 1; }
.lp-human-gate::before { border-radius: 3px; left: -1px; }
.lp-human-over { top: calc(-1 * var(--line-y)); left: 0; right: 0; justify-content: center; }
.lp-human-over::before, .lp-human-over::after { content: ""; flex: 1; height: 8px; border-top: 2px solid var(--accent); }
.lp-human-over::before { border-left: 2px solid var(--accent); margin-top: 8px; }
.lp-human-over::after { border-right: 2px solid var(--accent); margin-top: 8px; }
.lp-loop-back { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; background: var(--surface-page); font-size: 14px; color: var(--text-brand); white-space: nowrap; }
.lp-runner { position: absolute; top: calc(var(--line-y) - 6px); left: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-card); border: 3px solid var(--machine-line); opacity: 0; z-index: 2; }
.lp-cycle.is-run .lp-runner { animation: lp-run 2.6s cubic-bezier(.4,.1,.4,1) 1 both; }
@keyframes lp-run { 0% { opacity: 0; transform: translateX(0); } 8% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--run, 1000px)); } }

/* Human Control — четыре смысла */
.lp-meaning { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--border-strong); }
.lp-meaning:last-child { padding-bottom: 0; }
.lp-meaning-text h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; margin: 14px 0 14px; letter-spacing: -0.015em; }
.lp-meaning-text p { color: var(--text-secondary); font-size: 17px; }
.lp-check { margin-top: 18px; font: 400 13px/1.55 var(--font-mono) !important; color: var(--text-secondary); }
.lp-check b { font-weight: 500; color: var(--text-primary); }
.lp-rule-table { width: 100%; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); border-collapse: separate; border-spacing: 0; font-size: 15px; }
.lp-rule-table th, .lp-rule-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-subtle); font-variant-numeric: tabular-nums; }
.lp-rule-table th { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.lp-rule-table tr:last-child td { border-bottom: 0; }
.lp-fig-chain .tc-root { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 20px 20px 8px; }
.lp-model { display: grid; gap: 0; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.lp-model-row { display: grid; grid-template-columns: 28px 92px minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); font-size: 15px; }
.lp-model-row:last-child { border-bottom: 0; }
.lp-model-row b { font-weight: 600; }
.lp-model-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 13px; color: var(--text-secondary); }
.lp-model-stages span { position: relative; padding-top: 14px; }
.lp-model-stages span::before { content: ""; position: absolute; top: 3px; left: 0; right: 0; border-top: 2px solid var(--machine-line); }
.lp-model-stages span::after { content: ""; position: absolute; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--machine-line); }

/* Real impact */
.lp-axes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--text-primary); }
.lp-axes li { padding: 20px 20px 56px 0; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; border-left: 1px solid var(--border-strong); padding-left: 20px; }
.lp-axes li:first-child { border-left: 0; padding-left: 0; }
.lp-axes-note { margin-top: 0; padding-top: 12px; border-top: 1px solid var(--border-strong); font: 400 13px/1.5 var(--font-mono); color: var(--text-muted); }
.lp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; margin-top: 56px; }
.lp-honest { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; text-wrap: balance; }

/* Пример: лента дела */
.lp-tender { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--machine-line); }
.lp-tstep { position: relative; padding: 26px 16px 0 0; }
.lp-tdot { position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--machine-line); box-shadow: 0 0 0 5px var(--surface-sunken); }
.lp-tstep.is-human .lp-tdot { background: var(--accent); }
.lp-tstep p { margin-top: 10px; font-size: 15px; line-height: 1.4; }
.lp-tmark { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.lp-tstatus { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 48px; }
.lp-badge { padding: 8px 14px; border: 1px dashed var(--border-dashed); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; background: var(--surface-card); }
.lp-tstatus .lp-cap { margin: 0; }

/* Декларативные описания и package-sdk. */
.lp-sec :not(pre) > code { font: 400 0.92em/1 var(--font-mono); color: var(--text-primary); white-space: nowrap; }
.lp-decl { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.lp-yaml { margin: 0; background: var(--surface-card); font-size: 13px; line-height: 1.75; }
.lp-gives { font-size: 14px; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }
.lp-points li { padding: 18px 0; border-top: 1px solid var(--border-strong); }
.lp-points li:first-child { border-top: 0; }
.lp-points h4 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.lp-points p { margin-top: 6px; color: var(--text-secondary); }
.lp-points .lp-tmark { display: inline-flex; align-items: center; gap: 8px; }
.lp-sdk-more { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border-strong); }
.lp-sdk-more .lp-code { margin: 0; background: var(--surface-card); }
.lp-sdk-side { display: grid; gap: 12px; }
.lp-sdk-side h3 { font-size: 22px; }
.lp-sdk-side p { color: var(--text-secondary); }
.lp-sdk-side .lp-cap { margin: 0; }
.lp-sdk-side .lp-cta { margin-top: 8px; align-items: center; }

/* Память организации */
.lp-mem-flow { display: grid; gap: 0; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-card); }
.lp-mem-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px 24px; border-top: 1px solid var(--border-subtle); }
.lp-mem-row:first-child { border-top: 0; }
.lp-mem-k { flex: 0 0 230px; font-size: 15px; font-weight: 600; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 300px; }
.lp-tags li { padding: 4px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-secondary); background: var(--surface-page); }
.lp-mem-props { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.lp-mem-props li { padding-top: 16px; border-top: 2px solid var(--machine-line); }
.lp-mem-props h4 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.lp-mem-props p { margin-top: 6px; font-size: 15px; color: var(--text-secondary); }
.lp-mem-props .lp-tmark { display: inline-flex; align-items: center; gap: 8px; }
.lp-onto { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border-strong); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
#sdk .lp-yaml, #sdk .lp-sdk-more .lp-code { background: var(--surface-sunken); }
.lp-onto .lp-yaml { background: var(--surface-sunken); }

/* Развилка */
.lp-fork { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.lp-path { display: flex; flex-direction: column; padding: 36px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-card); }
.lp-path h3 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.18; letter-spacing: -0.018em; text-wrap: balance; }
.lp-list { margin: 24px 0 28px; display: grid; gap: 10px; }
.lp-list li { position: relative; padding-left: 22px; color: var(--text-secondary); }
.lp-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; border-top: 2px solid var(--machine-line); }
.lp-path .lp-cta { margin-top: auto; }
.lp-code { margin: 0 0 28px; padding: 16px 18px; background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); font: 400 13px/1.7 var(--font-mono); color: var(--text-primary); overflow-x: auto; }
.lp-c { color: var(--text-muted); user-select: none; }

/* Чем не является */
.lp-nots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.lp-nots > div { padding: 22px 0; border-top: 1px solid var(--border-strong); }
.lp-nots dt { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.lp-nots dd { margin-top: 6px; color: var(--text-secondary); }

/* Статус: строку можно перенести между колонками, не трогая вёрстку. */
.lp-status { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-card); }
.lp-status-date { padding: 14px 24px; border-bottom: 1px solid var(--border-subtle); font: 400 13px/1.5 var(--font-mono); color: var(--text-muted); }
.lp-status-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-status-col { padding: 24px; border-left: 1px solid var(--border-subtle); }
.lp-status-col:first-child { border-left: 0; }
.lp-status-col h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 16px; }
.lp-status-col h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--machine-line); }
.lp-status-0 h3::before { background: var(--machine-line); }
.lp-status-2 h3::before { border: 2px dashed var(--border-dashed); }
.lp-status-col ul { display: grid; gap: 8px; }
.lp-status-col li { font-size: 15px; line-height: 1.4; color: var(--text-secondary); }
.lp-status-0 li { color: var(--text-primary); }

/* Финальный CTA и форма */
.lp-final-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.lp-card { padding: 32px; background: var(--surface-card); color: var(--text-primary); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.lp-card h3 { font-size: 22px; margin-bottom: 20px; }
.lp-form { display: grid; gap: 18px; }
.lp-form h3 { margin-bottom: 2px; }
.lp-field { display: grid; gap: 6px; }
.lp-field > label { font-size: 14px; font-weight: 500; }
.lp-field .tc-input, .lp-field .tc-textarea { width: 100%; font: 400 16px/1.4 var(--font-sans); padding: 10px 12px; min-height: 44px; color: var(--text-primary); background: var(--surface-card); border: 1px solid var(--border-control); border-radius: var(--radius-sm); }
.lp-field .tc-textarea { resize: vertical; }
.lp-field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.lp-hint { font-size: 13px; color: var(--text-muted); }
.lp-err { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--error); }
.lp-err[hidden], .lp-form-fail[hidden], .lp-form-done[hidden], .lp-form[hidden] { display: none; }
.lp-err svg, .lp-form-fail svg { width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lp-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.lp-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-btn-submit { justify-self: start; }
.lp-reply { margin-top: -8px; font-size: 13px; color: var(--text-muted); }
.lp-btn-submit[disabled] { opacity: .6; cursor: progress; }
.lp-form-fail { display: flex; gap: 8px; padding: 12px 14px; border: 1px solid var(--error); border-radius: var(--radius-sm); background: var(--error-bg); color: var(--error); font-size: 14px; }
.lp-form-done svg { width: 28px; height: 28px; fill: none; stroke: var(--machine-line); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.lp-form-done h3 { margin-bottom: 8px; }
.lp-form-done p { color: var(--text-secondary); }
.lp-direct { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-subtle); font-size: 14px; color: var(--text-secondary); }
.lp-oss p { color: var(--text-secondary); }
.lp-oss-links { display: grid; gap: 10px; margin: 20px 0 28px; font-size: 15px; }

/* Подвал */
.lp-footer { padding: 56px 0 40px; border-top: 1px solid var(--border-subtle); font-size: 14px; }
.lp-footer-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.lp-slogan-sm { margin-top: 12px; color: var(--text-secondary); }
.lp-footer-links { display: grid; gap: 8px; align-content: start; }
.lp-footer-links a { color: var(--text-secondary); text-decoration: none; }
.lp-footer-links a:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.lp-footer-lang a[aria-current] { color: var(--text-primary); font-weight: 600; }
.lp-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 13px; }

/* Простые страницы: политика, 404 */
.lp-plain { min-height: 62vh; }
.lp-h1-sm { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.025em; margin-bottom: 12px; }
.lp-plain h2 { font-size: 20px; letter-spacing: -0.01em; margin: 36px 0 10px; }
.lp-plain p { color: var(--text-secondary); margin-bottom: 12px; }
.lp-plain .lp-cta { margin: 28px 0; }
.lp-other { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-subtle); font-size: 14px; }

/* Планшет */
@media (max-width: 1120px) {
  .lp-nav { display: none; }
  .lp-menu { display: block; }
  .lp-hide-m { display: none; }
}
@media (max-width: 1023px) {
  :root { --sec: 80px; }
  .lp-hero { padding-top: 48px; }
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .lp-fig-hero { max-width: 680px; }
  .lp-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-five li { min-height: 0; border-left: 0; border-top: 1px solid var(--grid-line); }
  .lp-five li:nth-child(even) { border-left: 1px solid var(--grid-line); }
  .lp-five li:nth-child(-n+2) { border-top: 0; }
  .lp-five li:last-child { grid-column: 1 / -1; }
  .lp-meaning { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 0; }
  .lp-meaning-vis { max-width: 640px; }
  /* Цикл и лента дела — вертикально: линия машины слева. */
  .lp-cycle { padding: 0 0 0 7px; }
  .lp-loop-line, .lp-runner { display: none; }
  .lp-steps { display: block; padding: 4px 0 4px 30px; border-left: 2px solid var(--machine-line); }
  .lp-step { padding: 0 0 28px; max-width: 560px; }
  .lp-step-dot { top: 2px; left: -38px; box-shadow: 0 0 0 4px var(--surface-page); }
  .lp-step h3 { margin-top: 6px; }
  .lp-human { position: relative; inset: auto; top: auto; left: auto; right: auto; max-width: none; justify-content: flex-start; padding: 0 0 28px; color: var(--accent-text); }
  .lp-human::before, .lp-human::after { content: none; }
  .lp-hdot { position: absolute; left: -38px; top: 3px; width: 14px; height: 14px; box-shadow: 0 0 0 4px var(--surface-page); }
  .lp-human-gate .lp-hdot { border-radius: 3px; }
  .lp-human-over { padding-bottom: 8px; }
  .lp-loop-back { position: static; transform: none; white-space: normal; margin: 16px 0 0 -7px; padding: 0; }
  .lp-tender { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--machine-line); margin-left: 7px; padding-left: 30px; }
  .lp-tstep { padding: 0 0 26px; max-width: 560px; }
  .lp-tstep:last-child { padding-bottom: 0; }
  .lp-tdot { top: 0; left: -38px; box-shadow: 0 0 0 4px var(--surface-sunken); }
  .lp-tstep p { margin-top: 6px; }
  .lp-final-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-fork { grid-template-columns: minmax(0, 1fr); }
  .lp-decl, .lp-sdk-more { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lp-mem-props { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-mem-props .lp-hdot, .lp-points .lp-hdot { position: static; box-shadow: none; width: 12px; height: 12px; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --sec: 64px; }
  html { scroll-padding-top: 68px; }
  .lp-header-in { height: 56px; gap: 12px; }
  .lp-hide-s { display: none; }
  .lp-menu-tools { display: flex; }
  .lp-tools { gap: 6px; }
  .lp-sec-head { margin-bottom: 32px; }
  .lp-work { padding: 20px; }
  .lp-work-title { font-size: 20px; }
  .lp-track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .lp-work .tc-seals-labelled { grid-template-columns: minmax(0, 1fr); }
  .lp-work-chan { margin-left: 0; }
  .lp-qcards, .lp-fork, .lp-nots, .lp-two, .lp-status-cols { grid-template-columns: minmax(0, 1fr); }
  .lp-qcard::before { margin-bottom: 20px; }
  .lp-two { gap: 24px; margin-top: 40px; }
  .lp-axes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-axes li { padding: 16px 0 32px 16px; }
  .lp-axes li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .lp-axes li:nth-child(n+3) { border-top: 1px solid var(--border-strong); }
  .lp-path, .lp-card { padding: 24px 20px; }
  .lp-status-col { border-left: 0; border-top: 1px solid var(--border-subtle); padding: 20px; }
  .lp-status-col:first-child { border-top: 0; }
  .lp-status-date { padding: 12px 20px; }
  .lp-footer-in { grid-template-columns: minmax(0, 1fr); }
  .lp-btn { width: 100%; }
  .lp-btn-sm, .lp-btn-submit { width: auto; }
  .lp-model-row { grid-template-columns: 28px minmax(0, 1fr); }
  .lp-mem-props { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lp-mem-k { flex-basis: 100%; }
  .lp-mem-row { padding: 16px 20px; }
  .lp-model-stages { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .lp-five { grid-template-columns: minmax(0, 1fr); }
  .lp-five li, .lp-five li:nth-child(even) { border-left: 0; border-top: 1px solid var(--grid-line); }
  .lp-five li:first-child { border-top: 0; }
  .lp-five li:nth-child(2) { border-top: 1px solid var(--grid-line); }
  .lp-lang a { padding: 6px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-cycle.is-run .lp-runner { animation: none; }
  .lp-btn { transition: none; }
}
