/* ============================================================================
   ailc · лендинг · стили
   Тёмная приборная панель: почти чёрный кобальтовый фон, кобальтовое свечение,
   янтарный акцент-индикатор, семантика «прошло / не прошло» для вердикта.
   ========================================================================== */

:root {
  /* поверхности */
  --bg:        oklch(0.135 0.013 262);
  --bg-2:      oklch(0.165 0.014 262);
  --bg-3:      oklch(0.205 0.016 264);
  --line:      oklch(0.305 0.014 262);
  --line-2:    oklch(0.245 0.012 262);

  /* текст */
  --ink:       oklch(0.965 0.006 250);
  --ink-2:     oklch(0.795 0.013 255);
  --muted:     oklch(0.665 0.015 258);

  /* бренд */
  --primary:        oklch(0.705 0.152 258);
  --primary-bright: oklch(0.785 0.150 256);
  --primary-dim:    oklch(0.48 0.10 260);
  --accent:         oklch(0.825 0.130 78);   /* янтарь, индикатор */

  /* семантика вердикта */
  --pass:  oklch(0.805 0.155 152);
  --warn:  oklch(0.835 0.140 75);
  --fail:  oklch(0.665 0.205 25);

  /* типографика */
  --sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* шкала (fluid) */
  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.36rem + 0.7vw, 2rem);
  --step-3:  clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step-4:  clamp(2.6rem, 2.05rem + 2.7vw, 4.6rem);

  /* ритм и геометрия */
  --wrap: 1140px;
  --gap: clamp(1rem, 0.7rem + 1.5vw, 2rem);
  --radius: 14px;
  --radius-sm: 9px;

  /* z-слои */
  --z-nav: 100;

  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quint */
}

/* ───────────────────────── базовое ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* фоновая «приборная» сетка */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(transparent 0 0) no-repeat,
    radial-gradient(1200px 600px at 78% -8%, oklch(0.705 0.152 258 / 0.16), transparent 60%),
    radial-gradient(900px 500px at -5% 4%, oklch(0.50 0.12 268 / 0.10), transparent 55%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(oklch(0.965 0.006 250 / 0.022) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.965 0.006 250 / 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 80%);
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-weight: 800; letter-spacing: -0.03em; }

a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--primary-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }

/* якорные переходы не должны прятать заголовок секции под липкой шапкой */
main section[id], section[id] { scroll-margin-top: 80px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: oklch(0.16 0.02 262);
  padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip:focus { left: 0; }

.kicker {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-bottom: 1.1rem;
}
.hl { color: var(--primary-bright); }

/* ───────────────────────── кнопки ───────────────────────── */
.btn {
  --bg-btn: var(--primary);
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: var(--step-0);
  color: oklch(0.15 0.02 262);
  background: var(--bg-btn);
  padding: 0.7rem 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
  box-shadow: 0 1px 0 oklch(0.95 0.05 256 / 0.25) inset, 0 8px 24px -10px oklch(0.705 0.152 258 / 0.7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 oklch(0.95 0.05 256 / 0.3) inset, 0 16px 34px -12px oklch(0.705 0.152 258 / 0.85); background: var(--primary-bright); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 0.95rem 1.6rem; font-size: var(--step-1); }
.btn--sm { padding: 0.5rem 0.95rem; font-size: var(--step--1); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { background: oklch(0.705 0.152 258 / 0.10); border-color: var(--primary-dim); box-shadow: none; }

/* ───────────────────────── навигация ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  backdrop-filter: blur(14px);
  background: oklch(0.135 0.013 262 / 0.72);
  border-bottom: 1px solid var(--line-2);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 0.5rem; }
.brand__mark {
  display: grid; place-items: center; align-self: center;
  width: 30px; height: 30px; border-radius: 8px;
  color: var(--bg); background: var(--primary);
  box-shadow: 0 6px 18px -8px oklch(0.705 0.152 258 / 0.9);
}
.brand__name { font-family: var(--mono); font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.01em; }
.brand__sub { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links > a:not(.btn):not(.nav__gh) { color: var(--ink-2); font-size: var(--step--1); transition: color 0.18s; }
.nav__links > a:not(.btn):not(.nav__gh):hover { color: var(--ink); }
.nav__gh { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-2); font-size: var(--step--1); transition: color 0.18s; }
.nav__gh:hover { color: var(--ink); }
@media (max-width: 860px) {
  .nav__links > a:not(.btn) { display: none; }
  .nav__links { gap: 0.8rem; }
}

/* ───────────────────────── секции (общее) ───────────────────────── */
.section { padding: clamp(3.5rem, 2.4rem + 5vw, 7rem) 0; }
.section--alt { background: linear-gradient(180deg, oklch(0.155 0.014 262 / 0.6), oklch(0.145 0.013 262 / 0.6)); border-block: 1px solid var(--line-2); }
.sec-head { max-width: 64ch; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.4rem); }
.sec-head h2 { font-size: var(--step-3); margin-bottom: 0.9rem; }
.sec-sub { color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; text-wrap: pretty; }

/* ───────────────────────── hero ───────────────────────── */
.hero { position: relative; padding: clamp(3rem, 1.5rem + 7vw, 6.5rem) 0 clamp(2.5rem, 4vw, 4rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--step-4); margin-bottom: 1.3rem; }
.hero .lede { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; line-height: 1.55; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.9rem 0 1.6rem; }
.hero__facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: var(--step--1); color: var(--muted); }
.hero__facts b { color: var(--ink); font-family: var(--mono); font-size: 1.05rem; margin-right: 0.35rem; }
.hero__glow { position: absolute; z-index: -1; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; right: -10%; top: -20%; background: radial-gradient(circle, oklch(0.705 0.152 258 / 0.22), transparent 62%); filter: blur(8px); pointer-events: none; }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .verdict { max-width: 460px; }
}

/* панель вердикта */
.verdict {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0; overflow: hidden;
  box-shadow: 0 30px 70px -30px oklch(0.05 0.02 262 / 0.9), 0 0 0 1px oklch(0.705 0.152 258 / 0.06);
  font-family: var(--mono);
}
.verdict__bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line-2); background: oklch(0.18 0.015 263); }
.verdict__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.verdict__title { font-size: 0.78rem; color: var(--ink-2); letter-spacing: 0.02em; }
.verdict__path { margin-left: auto; font-size: 0.72rem; color: var(--muted); }
.verdict__axes { list-style: none; padding: 0.5rem 0; margin: 0; }
.verdict__axes li { display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem 1rem; font-size: 0.82rem; }
.verdict__axes .ax { color: var(--ink-2); }
.verdict__axes .ax::before { content: "✓"; display: inline-block; width: 1.2em; color: var(--pass); font-weight: 700; }
.verdict__axes .warnrow .ax::before { content: "•"; color: var(--warn); }
.verdict__axes .val { margin-left: auto; color: var(--muted); }
.verdict__axes .ok .val { color: var(--pass); }
.verdict__axes .warnrow .val { color: var(--warn); }
.verdict__out { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1rem; border-top: 1px solid var(--line-2); }
.verdict__label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.verdict__state { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.03em; }
.verdict__out--hold { background: oklch(0.835 0.140 75 / 0.10); }
.verdict__out--hold .verdict__state { color: var(--warn); }
.verdict__note { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); padding: 0.4rem 1rem 1rem; line-height: 1.5; border-top: 1px dashed var(--line-2); }

/* ───────────────────────── полоса совместимости ───────────────────────── */
.strip { border-bottom: 1px solid var(--line-2); background: oklch(0.15 0.013 262 / 0.5); }
.strip__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.1rem; padding: 1.1rem 0; }
.strip__lead { font-size: var(--step--1); color: var(--muted); }
.strip__lead--mut { margin-left: auto; font-family: var(--mono); }
.chip {
  font-family: var(--mono); font-size: 0.82rem; color: var(--ink-2);
  padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 999px;
  background: oklch(0.18 0.014 262 / 0.6);
}

/* ───────────────────────── connect ───────────────────────── */
.installer { max-width: 880px; border: 1px solid var(--primary-dim); border-radius: var(--radius); background: linear-gradient(180deg, oklch(0.705 0.152 258 / 0.10), var(--bg-2)); padding: 1.3rem 1.4rem; margin-bottom: 1.3rem; }
.installer__head h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.installer__head p { font-size: var(--step--1); color: var(--ink-2); margin-bottom: 1rem; }
.installer__row { display: flex; align-items: center; gap: 0.9rem; padding: 0.55rem 0; border-top: 1px solid var(--line-2); }
.installer__row:first-child { border-top: 0; }
.installer__os { flex: none; width: 96px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.installer__row code { display: block; flex: 1 1 auto; min-width: 0; overflow-x: auto; font-family: var(--mono); font-size: 0.8rem; color: var(--ink); white-space: nowrap; }
.connect__or { max-width: 880px; font-size: var(--step--1); color: var(--muted); margin-bottom: 0.8rem; }
@media (max-width: 600px) {
  .installer__row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .installer__os { width: auto; }
  .installer__row code { white-space: pre-wrap; word-break: break-all; }
}

.connect { max-width: 880px; }
.connect__controls { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; margin-bottom: 1rem; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 11px; }
.seg--alt { margin-left: auto; }
.seg__btn {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 500;
  color: var(--ink-2); background: transparent; border: 0; cursor: pointer;
  padding: 0.45rem 0.8rem; border-radius: 8px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active { color: oklch(0.15 0.02 262); background: var(--primary); font-weight: 600; }
.seg--alt .seg__btn.is-active { background: var(--accent); }

.code { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: oklch(0.115 0.012 262); box-shadow: 0 24px 60px -34px oklch(0.04 0.02 262 / 0.95); }
.code__head { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0.7rem 0.55rem 1rem; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.code__file { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.code__copy {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--sans); font-size: 0.8rem; color: var(--ink-2);
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.35rem 0.65rem; cursor: pointer; transition: all 0.18s var(--ease);
}
.code__copy:hover { color: var(--ink); border-color: var(--primary-dim); }
.code__copy.is-done { color: var(--pass); border-color: var(--pass); }
.code__body { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; }
.code__body code { font-size: 0.86rem; line-height: 1.7; color: var(--ink); white-space: pre; }
.tok-key { color: var(--primary-bright); }
.tok-str { color: var(--accent); }
.tok-punc { color: var(--muted); }

.connect__hint { font-size: var(--step--1); color: var(--muted); margin: 0.85rem 0 0.4rem; min-height: 1.4em; }
.connect__hint b { color: var(--ink-2); font-weight: 600; }

.note { margin-top: 1.2rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); }
.note summary { cursor: pointer; padding: 0.8rem 1rem; font-weight: 600; color: var(--ink-2); font-size: var(--step--1); list-style: none; }
.note summary::-webkit-details-marker { display: none; }
.note summary::before { content: "＋"; color: var(--primary-bright); margin-right: 0.5rem; font-family: var(--mono); }
.note[open] summary::before { content: "－"; }
.note p { padding: 0 1rem 1rem; font-size: var(--step--1); color: var(--muted); line-height: 1.6; }
.note code { color: var(--ink-2); background: var(--bg-3); padding: 0.1em 0.35em; border-radius: 5px; font-size: 0.85em; }

/* что произойдёт после */
.afterconnect { list-style: none; padding: 0; margin: clamp(2.4rem, 1.8rem + 2vw, 3.6rem) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: ac; }
.afterconnect li { position: relative; padding-top: 1.2rem; border-top: 2px solid var(--line); }
.afterconnect li::before { content: ""; position: absolute; top: -2px; left: 0; width: 38px; height: 2px; background: var(--primary); }
.afterconnect__n { font-family: var(--mono); font-size: 0.8rem; color: var(--primary-bright); }
.afterconnect h3 { font-size: var(--step-1); margin: 0.4rem 0 0.5rem; }
.afterconnect p { font-size: var(--step--1); color: var(--ink-2); }
.afterconnect code { font-family: var(--mono); font-size: 0.85em; color: var(--ink); }
@media (max-width: 760px) { .afterconnect { grid-template-columns: 1fr; } .seg--alt { margin-left: 0; } }

/* ───────────────────────── pipeline ───────────────────────── */
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; counter-reset: p; }
.pipeline__step { position: relative; padding: 1.4rem 1.1rem; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); }
.pipeline__step::after { content: ""; position: absolute; right: -0.6rem; top: 50%; width: 0.6rem; height: 2px; background: var(--line); z-index: 1; }
.pipeline__step:last-child::after { display: none; }
.pipeline__ic { font-family: var(--mono); font-size: 1.4rem; color: var(--primary-bright); display: block; margin-bottom: 0.7rem; }
.pipeline__step--final { background: linear-gradient(180deg, oklch(0.705 0.152 258 / 0.14), var(--bg-2)); border-color: var(--primary-dim); }
.pipeline__step--final .pipeline__ic { color: var(--pass); }
.pipeline h3 { font-size: var(--step-0); margin-bottom: 0.4rem; }
.pipeline p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(2, 1fr); } .pipeline__step::after { display: none; } }
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr; } }

/* ───────────────────────── capabilities ───────────────────────── */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.cap { padding: 1.5rem; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.cap:hover { border-color: var(--primary-dim); transform: translateY(-3px); }
.cap header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; gap: 0.5rem; }
.cap h3 { font-size: var(--step-1); }
.cap__count { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); border: 1px solid oklch(0.825 0.130 78 / 0.4); border-radius: 999px; padding: 0.15rem 0.6rem; white-space: nowrap; }
.cap p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; }

/* ───────────────────────── why ───────────────────────── */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.why__item { padding: 1.6rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: oklch(0.15 0.013 262 / 0.5); }
.why__item h3 { font-size: var(--step-1); margin-bottom: 0.6rem; color: var(--ink); }
.why__item h3::before { content: "▸"; color: var(--primary-bright); margin-right: 0.5rem; }
.why__item p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; }
.why__item code, .afterconnect code, .langs__copy code, .path code { background: var(--bg-3); padding: 0.1em 0.35em; border-radius: 5px; font-size: 0.85em; color: var(--ink); }

/* ───────────────────────── languages ───────────────────────── */
.langs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.langs__copy h2 { font-size: var(--step-3); margin-bottom: 0.9rem; }
.langs__eco { margin-top: 1.2rem; font-size: var(--step--1); color: var(--muted); line-height: 1.7; font-family: var(--mono); }
.langs__eco b { font-family: var(--sans); color: var(--ink-2); }
.langs__chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.langs__chips li { font-family: var(--mono); font-size: 0.9rem; color: var(--ink); text-align: center; padding: 0.7rem 0.5rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); transition: all 0.18s var(--ease); }
.langs__chips li:hover { border-color: var(--primary-dim); color: var(--primary-bright); background: oklch(0.705 0.152 258 / 0.08); }
@media (max-width: 820px) { .langs__grid { grid-template-columns: 1fr; } }

/* ───────────────────────── paths ───────────────────────── */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); align-items: start; }
.path { padding: 1.7rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.path--lead { border-color: var(--primary-dim); background: linear-gradient(180deg, oklch(0.705 0.152 258 / 0.10), var(--bg-2)); box-shadow: 0 20px 50px -34px oklch(0.705 0.152 258 / 0.8); }
.path__tag { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.path--lead .path__tag { color: var(--accent); }
.path h3 { font-size: var(--step-2); margin: 0.5rem 0 0.6rem; font-family: var(--mono); font-weight: 700; }
.path p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; margin-bottom: 1rem; }
.path__code { background: oklch(0.115 0.012 262); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0.9rem 1rem; overflow-x: auto; }
.path__code code { font-size: 0.8rem; line-height: 1.7; color: var(--ink-2); white-space: pre; }

/* ───────────────────────── cta ───────────────────────── */
.cta { position: relative; padding: clamp(4rem, 3rem + 5vw, 7rem) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line-2); }
.cta__inner { max-width: 60ch; margin-inline: auto; }
.cta h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.cta p { font-size: var(--step-1); color: var(--ink-2); margin-bottom: 2rem; text-wrap: pretty; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta__contact { margin-top: 1.3rem; font-size: var(--step--1); color: var(--muted); }
.cta__contact a { color: var(--primary-bright); }
.cta__contact a:hover { text-decoration: underline; }
.cta__glow { position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 80% at 50% 120%, oklch(0.705 0.152 258 / 0.28), transparent 70%); pointer-events: none; }

/* ───────────────────────── footer ───────────────────────── */
.foot { border-top: 1px solid var(--line-2); background: oklch(0.12 0.012 262); padding-top: clamp(2.5rem, 4vw, 4rem); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 2fr; gap: var(--gap); padding-bottom: 2.4rem; }
.foot__brand .brand__name { font-size: 1.3rem; }
.foot__brand p { font-size: var(--step--1); color: var(--muted); margin-top: 0.7rem; max-width: 42ch; line-height: 1.6; }
.foot__lic { font-family: var(--mono); font-size: 0.78rem !important; color: var(--ink-2) !important; }
.foot__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--gap); }
.foot__nav h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.9rem; font-weight: 600; }
.foot__nav a { display: block; font-size: var(--step--1); color: var(--ink-2); padding: 0.3rem 0; transition: color 0.16s; }
.foot__nav a:hover { color: var(--primary-bright); }
.foot__bottom { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; padding: 1.4rem 0; border-top: 1px solid var(--line-2); font-size: 0.78rem; color: var(--muted); }
.foot__note { max-width: 60ch; }
@media (max-width: 720px) { .foot__grid { grid-template-columns: 1fr; } }

/* ───────────────────────── reveal-анимация ───────────────────────── */
/* Скрываем только при активном JS: без него содержимое остаётся видимым. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .cap, .langs__chips li { transition: none; }
}

/* ═══════════════════════ компоненты лендинга по брифу ═══════════════════════ */

.wrap--narrow { width: min(100% - 2.4rem, 820px); margin-inline: auto; }

/* балл качества и состояние в панели вердикта */
.verdict__out { justify-content: flex-start; gap: 0.7rem; }
.verdict__score { font-family: var(--mono); font-weight: 700; font-size: 1.45rem; color: var(--ink); line-height: 1; }
.verdict__score span { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.verdict__state { margin-left: auto; padding: 0.3rem 0.6rem; border-radius: 6px; font-size: 0.8rem; }
.verdict__out--hold .verdict__state { background: oklch(0.835 0.140 75 / 0.16); }
.verdict__out--fail { background: oklch(0.665 0.205 25 / 0.10); }
.verdict__out--fail .verdict__state { color: var(--fail); background: oklch(0.665 0.205 25 / 0.16); }
.verdict__axes .failrow .ax::before { content: "✕"; color: var(--fail); }
.verdict__axes .failrow .val { color: var(--fail); }
.verdict--demo { font-family: var(--mono); align-self: start; }

/* полоса доверия */
.trust { border-bottom: 1px solid var(--line-2); background: oklch(0.15 0.013 262 / 0.5); }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2.2rem; padding: 1.3rem 0; }
.trust__item { display: flex; flex-direction: column; line-height: 1.1; }
.trust__item b { font-family: var(--mono); font-size: 1.35rem; color: var(--ink); }
.trust__item span { font-size: 0.76rem; color: var(--muted); margin-top: 0.25rem; }
.trust__editors { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 720px) { .trust__editors { margin-left: 0; width: 100%; } }

/* проблема */
.relief__lead { margin: calc(var(--gap) + 0.6rem) 0 1.1rem; font-size: var(--step-1); color: var(--ink); font-weight: 600; }
.pains { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pain { padding: 1.7rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.pain p { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
@media (max-width: 760px) { .pains { grid-template-columns: 1fr; } }

/* демонстрация: конфиг + вердикт */
.connect__grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: var(--gap); align-items: start; }
.connect__grid .connect { max-width: none; }
.connect__after { max-width: 880px; margin-top: 1.2rem; font-size: var(--step--1); color: var(--muted); line-height: 1.6; }
.connect__after code { background: var(--bg-3); padding: 0.1em 0.35em; border-radius: 5px; font-size: 0.85em; color: var(--ink); }
@media (max-width: 900px) { .connect__grid { grid-template-columns: 1fr; } }

/* безопасность ИИ-кода */
.danger { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.danger__item { padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, oklch(0.665 0.205 25 / 0.07), var(--bg-2)); }
.danger__tag { font-family: var(--mono); font-size: 0.72rem; color: var(--fail); text-transform: uppercase; letter-spacing: 0.08em; }
.danger__item h3 { font-size: var(--step-1); margin: 0.5rem 0 0.6rem; }
.danger__item p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; }
.danger__foot { margin-top: 1.5rem; font-size: var(--step--1); color: var(--muted); max-width: 72ch; line-height: 1.6; }
@media (max-width: 760px) { .danger { grid-template-columns: 1fr; } }

/* что проверяет: примечание под плитками */
.caps__more { margin-top: 1.5rem; font-size: var(--step--1); color: var(--muted); max-width: 78ch; line-height: 1.6; }

/* доказательства */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
.proof__item { padding: 1.5rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.proof__item b { display: block; font-family: var(--mono); font-size: 1.25rem; color: var(--primary-bright); margin-bottom: 0.5rem; }
.proof__item span { font-size: var(--step--1); color: var(--ink-2); line-height: 1.55; }
.proof__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--gap); }

/* макет чата в редакторе */
.chat { max-width: 760px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: oklch(0.115 0.012 262); box-shadow: 0 30px 70px -34px oklch(0.04 0.02 262 / 0.95); }
.chat__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.chat__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.chat__title { margin-left: 0.5rem; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.chat__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 1.2rem; }
.msg { display: flex; flex-direction: column; gap: 0.45rem; }
.msg__who { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.msg--ai .msg__who { color: var(--primary-bright); }
.msg--you p { align-self: flex-start; max-width: 85%; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 11px; padding: 0.6rem 0.95rem; font-size: var(--step-0); color: var(--ink); }
.msg__bubble { border: 1px solid var(--primary-dim); border-radius: 11px; padding: 1rem 1.15rem; background: oklch(0.705 0.152 258 / 0.07); }
.msg__bubble p { font-size: var(--step-0); color: var(--ink-2); line-height: 1.55; }
.msg__list { list-style: none; padding: 0; margin: 0.8rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.msg__list li { font-family: var(--mono); font-size: 0.82rem; padding-left: 1.5em; position: relative; color: var(--ink-2); line-height: 1.4; }
.msg__list li::before { position: absolute; left: 0; top: 0; }
.msg__list li.bad::before { content: "\2715"; color: var(--fail); }
.msg__list li.warn::before { content: "\2022"; color: var(--warn); font-size: 1.1em; }
.msg__score { font-weight: 600; color: var(--ink) !important; margin-top: 0.6rem; }
.msg__act { margin-top: 0.7rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.msg__btn { font-size: 0.8rem; font-weight: 700; color: oklch(0.15 0.02 262); background: var(--primary); padding: 0.3rem 0.8rem; border-radius: 6px; }

/* лента языков под возможностями */
.langband { margin-top: var(--gap); display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); }
.langband__lead { font-size: var(--step--1); color: var(--muted); flex: none; }
.langband__row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.langband .chip { font-size: 0.78rem; padding: 0.3rem 0.65rem; }

/* блок для команд: политика как код */
.policy { display: grid; grid-template-columns: 1fr 0.92fr; gap: var(--gap); margin-top: calc(var(--gap) + 0.6rem); align-items: stretch; }
.policy__code { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: oklch(0.112 0.012 262); box-shadow: 0 24px 60px -38px oklch(0.04 0.02 262 / 0.95); }
.policy__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.policy__file { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.policy__tag { font-family: var(--mono); font-size: 0.68rem; color: var(--primary-bright); text-transform: uppercase; letter-spacing: 0.06em; }
.policy__code pre { margin: 0; padding: 1.1rem 1.25rem; overflow-x: auto; }
.policy__code code { font-family: var(--mono); font-size: 0.82rem; line-height: 1.75; color: var(--ink-2); white-space: pre; display: block; }
.policy__code .tc { color: var(--muted); }
.policy__note { display: flex; flex-direction: column; justify-content: center; }
.policy__note h3 { font-size: var(--step-1); margin-bottom: 0.7rem; }
.policy__note p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; }
.policy__free { margin-top: 1rem !important; color: var(--muted) !important; }
@media (max-width: 820px) { .policy { grid-template-columns: 1fr; } }

/* честный блок об ограничениях */
.honest { margin-top: var(--gap); padding: 1.1rem 1.3rem; border: 1px dashed var(--line); border-radius: var(--radius); font-size: var(--step--1); color: var(--muted); line-height: 1.6; max-width: 82ch; }

/* вопросы */
.faq { display: flex; flex-direction: column; gap: 0.7rem; }
.faq__item { border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); overflow: hidden; }
.faq__item summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--ink); font-size: var(--step-0); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--primary-bright); font-family: var(--mono); font-size: 1.25rem; flex: none; line-height: 1; }
.faq__item[open] summary::after { content: "\2013"; }
.faq__item p { padding: 0 1.2rem 1.15rem; font-size: var(--step--1); color: var(--ink-2); line-height: 1.65; }
.faq__item code { background: var(--bg-3); padding: 0.1em 0.35em; border-radius: 5px; font-size: 0.85em; color: var(--ink); }

/* таблица сравнения */
.cmp { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.cmp__table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--step--1); }
.cmp__table th, .cmp__table td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line-2); text-align: center; }
.cmp__table tr:last-child td { border-bottom: 0; }
.cmp__table thead th { font-weight: 600; color: var(--muted); background: var(--bg-2); }
.cmp__table thead th.cmp__col-me { color: var(--primary-bright); font-family: var(--mono); }
.cmp__table th:first-child, .cmp__table td:first-child { text-align: left; color: var(--ink-2); font-weight: 500; }
.cmp__table td { color: var(--ink-2); }
.cmp__table .cmp__col-me { background: oklch(0.705 0.152 258 / 0.07); }
.cmp__table tbody td.cmp__col-me { color: var(--ink); font-weight: 600; }
.cmp__table td.y { color: var(--pass); font-weight: 600; }
.cmp__table td.n { color: var(--fail); }
.cmp__table td.p { color: var(--muted); }
.cmp__table tbody tr:hover td { background: oklch(0.18 0.014 262 / 0.4); }
.cmp__table tbody tr:hover td.cmp__col-me { background: oklch(0.705 0.152 258 / 0.12); }

/* формула балла под пайплайном */
.formula { margin-top: var(--gap); display: flex; gap: 1.3rem; align-items: baseline; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, oklch(0.705 0.152 258 / 0.08), var(--bg-2)); }
.formula__lead { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary-bright); flex: none; }
.formula p { font-size: var(--step-0); color: var(--ink-2); line-height: 1.6; }
@media (max-width: 640px) { .formula { flex-direction: column; gap: 0.5rem; } }

/* кейсы: код от ИИ и ответ AILC */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: var(--gap); }
.case { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.case:hover { border-color: var(--line); transform: translateY(-3px); }
.case__top { display: flex; align-items: center; gap: 0.7rem; padding: 1.1rem 1.2rem 0.7rem; }
.case__tag { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.18rem 0.55rem; flex: none; }
.case__top h3 { font-size: var(--step-0); line-height: 1.25; }
.case__code { margin: 0; padding: 0.95rem 1.2rem; background: oklch(0.112 0.012 262); border-block: 1px solid var(--line-2); overflow-x: auto; }
.case__code code { font-family: var(--mono); font-size: 0.78rem; line-height: 1.7; color: var(--ink-2); white-space: pre; display: block; }
.case__bad { color: var(--ink); background: oklch(0.665 0.205 25 / 0.16); border-radius: 4px; padding: 0.05em 0.25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.case__find { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.2rem; margin-top: auto; }
.case__sev { font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.22rem 0.5rem; border-radius: 5px; flex: none; font-weight: 700; }
.case__where { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-2); }
.case__find--crit { background: oklch(0.665 0.205 25 / 0.07); }
.case__find--crit .case__sev { color: var(--fail); background: oklch(0.665 0.205 25 / 0.18); }
.case__find--high .case__sev { color: var(--warn); background: oklch(0.835 0.140 75 / 0.16); }
.case__find--block .case__sev { color: var(--primary-bright); background: oklch(0.705 0.152 258 / 0.18); }
.cases__foot { margin-top: 1.5rem; font-size: var(--step--1); color: var(--muted); max-width: 80ch; line-height: 1.6; }

/* мобильный: заголовок героя не должен переполнять экран */
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.85rem, 7.2vw, 2.35rem); }
}

/* липкая кнопка на мобильном, появляется после прокрутки мимо героя */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: block; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: var(--z-nav);
    text-align: center; background: var(--primary); color: oklch(0.15 0.02 262); font-weight: 700;
    padding: 0.9rem; border-radius: var(--radius-sm); box-shadow: 0 12px 30px -8px oklch(0.05 0.02 262 / 0.85);
    transform: translateY(170%); transition: transform 0.32s var(--ease);
  }
  .sticky-cta.show { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
