/* ==========================================================================
   Агенты порядка — компоненты сайта (mobile-first)
   Блоки названы по BEM и 1:1 соответствуют будущим компонентам (React/Next).
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--signal-text); outline-offset: 2px; border-radius: 2px; }
.section--ink :focus-visible, .footer :focus-visible { outline-color: var(--signal-text-on-ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--brand-ink); color: var(--on-ink); padding: 12px 16px; border-radius: var(--radius-md);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--page-margin));
  margin-inline: auto;
  padding-inline: var(--page-margin);
}
.section { padding-block: var(--section-gap); }
.section--sunken { background: var(--surface-sunken); }
.section--ink { background: var(--brand-ink); color: var(--on-ink); }

.section__head { display: grid; gap: var(--space-16); max-width: 840px; margin-bottom: var(--space-48); }
.section__lead { font-size: var(--fs-body-l); line-height: var(--lh-body-l); color: var(--text-muted); max-width: var(--container-text); }
.section--ink .section__lead { color: var(--on-ink-muted); }

/* ---------- Typography ---------- */
.t-display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 500; letter-spacing: -0.015em; }
.t-h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 600; letter-spacing: -0.01em; }
.t-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; letter-spacing: -0.005em; }
.t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.t-h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; }
.t-lead { font-size: var(--fs-lead); line-height: var(--lh-lead); }
.t-body-s { font-size: var(--fs-body-s); line-height: var(--lh-body-s); }
.t-muted { color: var(--text-muted); }
.t-quote { font-family: var(--font-serif); font-size: var(--fs-quote); line-height: var(--lh-quote); font-weight: 400; }

/* «01 · Название» — нумерация разделов */
.eyebrow {
  display: inline-flex; gap: 8px; align-items: baseline;
  font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; letter-spacing: 0.02em;
  color: var(--text-muted);
}
.eyebrow__num { color: var(--signal-text); font-variant-numeric: tabular-nums; }
.section--ink .eyebrow { color: var(--on-ink-muted); }
.section--ink .eyebrow__num { color: var(--signal-text-on-ink); }

.link {
  color: var(--signal-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.link:hover { text-decoration-thickness: 2px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 8px; border-radius: var(--radius-xs);
  background: var(--fog); color: var(--text-muted);
  font-size: var(--fs-caption); line-height: 1; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap;
}
.tag--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

/* Сигнальная точка: одна на экран */
.dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--brand-signal); }
.dot--8 { width: 8px; height: 8px; }

/* Маркер списка: квадрат 6×6 r1 */
.list { display: grid; gap: var(--space-12); padding: 0; list-style: none; }
.list > li { position: relative; padding-left: 22px; }
.list > li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 1px; background: currentColor;
}
.list > li.is-key::before { width: 8px; height: 8px; left: 1px; top: 8px; border-radius: 50%; background: var(--brand-signal); }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--16 { width: 16px; height: 16px; stroke-width: 1.5; }
.icon--20 { width: 20px; height: 20px; }
.agent-mark { width: 32px; height: 32px; flex: none; color: var(--brand-ink); }
/* Мини-знаки агентов в сетке карточек — одноцветная версия (круг формой, не цветом):
   иначе 7 сигнальных кругов на одном экране нарушают правило «один сигнал». */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--control-h); padding: 0 24px;
  border: 0; border-radius: var(--radius-md);
  font-size: var(--fs-button); line-height: var(--lh-button); font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--brand-ink); color: var(--on-ink); }
.btn--primary:hover { background: var(--btn-primary-hover); }
.btn--primary:active { background: var(--btn-primary-active); }
.btn--accent { background: var(--brand-signal); color: var(--on-signal); }
.btn--accent:hover { background: var(--btn-accent-hover); }
.btn--accent:active { background: var(--btn-accent-active); color: var(--on-ink); }
.btn--secondary { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--secondary:hover { background: var(--fog); }
.btn--on-ink { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1.5px var(--on-ink-muted); }
.btn--on-ink:hover { background: var(--graphite-2); }
.btn--compact { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: var(--opacity-disabled); cursor: not-allowed; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn__spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-12); }
@media (max-width: 767px) { .cta-row .btn { width: 100%; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-header);
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-24); height: var(--header-h); }
.header__logo { display: block; flex: none; line-height: 0; }
.header__logo svg { height: 22px; width: auto; }
.nav { display: none; }
.nav__list { display: flex; gap: var(--space-32); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding-block: 8px;
  font-size: var(--fs-nav); line-height: var(--lh-nav); font-weight: 500; text-decoration: none; color: var(--text);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand-ink);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.header__cta { display: none; }
.header__burger {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; border-radius: var(--radius-md); cursor: pointer; color: var(--text);
}
.header__burger:hover { background: var(--fog); }

@media (min-width: 1100px) {
  .header__logo svg { height: 28px; }
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .header__burger { display: none; }
}
@media (min-width: 1100px) and (max-width: 1239px) { .nav__list { gap: var(--space-24); } }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--surface);
  padding: calc(env(safe-area-inset-top, 0px)) 0 calc(env(safe-area-inset-bottom, 0px) + 20px);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); border-bottom: 1px solid var(--line); }
.menu__list { list-style: none; margin: 0; padding: var(--space-24) 0; display: grid; }
.menu__link {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  font-size: 22px; line-height: 28px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line);
}
.menu__foot { margin-top: auto; display: grid; gap: var(--space-12); }
.menu__note { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--text-muted); text-align: center; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-40) var(--space-64); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-48); align-items: center; }
.hero__text { display: grid; gap: var(--space-24); }
.hero__title { max-width: 680px; }
.hero__lead { color: var(--text-muted); max-width: 600px; }
.hero__micro { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--text-muted); list-style: none; padding: 0; margin: 0; }
.hero__micro li { display: inline-flex; gap: 8px; align-items: center; }
.hero__micro .icon { width: 16px; height: 16px; stroke-width: 1.5; }

@media (min-width: 768px) { .hero { padding-block: var(--space-64) var(--space-80); } }
@media (min-width: 1100px) {
  .hero { padding-block: var(--space-96) var(--space-96); }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--space-64); }
}

/* «Карта порядка» — модульная схема процессов в hero */
.order-map { display: grid; gap: var(--space-12); align-content: start; }
.order-map__grid > li { min-width: 0; }
.order-map__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.order-map__cell {
  position: relative; aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--fs-body-s); line-height: 18px; font-weight: 500;
}
.order-map__cell .icon { width: 20px; height: 20px; color: var(--text-muted); }
.order-map__cell--quiet { background: var(--stone); box-shadow: none; }
.order-map__cell--agent { background: transparent; box-shadow: none; padding: 0; align-items: center; justify-content: center; }
.order-map__agent {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-full); transform: scale(1.04);
  background: var(--brand-ink); color: var(--on-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px;
  font-size: var(--fs-body-s); line-height: 18px; font-weight: 600;
}
.order-map__agent small { font-weight: 400; font-size: 12px; line-height: 16px; color: var(--on-ink-muted); }
.order-map__caption { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-muted); letter-spacing: .02em; }
@media (max-width: 1099px) { .order-map { max-width: 440px; } }
@media (max-width: 380px) { .order-map__cell { padding: 8px; font-size: 13px; line-height: 16px; } }

/* ---------- Problems ---------- */
.problems { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.problem {
  display: grid; grid-template-columns: 24px 1fr; gap: 4px 16px; align-items: start;
  padding: var(--space-24) 0; border-bottom: 1px solid var(--line);
}
.problem .icon { color: var(--text); margin-top: 2px; }
.problem__title { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; }
.problem__text { grid-column: 2; color: var(--text-muted); }
.problems__summary { display: flex; gap: 12px; align-items: baseline; margin-top: var(--space-32); font-size: var(--fs-body-l); line-height: var(--lh-body-l); max-width: var(--container-text); }
.problems__summary .dot { transform: translateY(-1px); }
@media (min-width: 768px) {
  .problems { grid-template-columns: repeat(2, 1fr); column-gap: var(--gutter); }
}
@media (min-width: 1100px) {
  .problems { grid-template-columns: repeat(3, 1fr); }
  .problem { padding-right: var(--space-24); }
}

/* ---------- Agents (Что можно передать AI) ---------- */
.agents { display: grid; gap: var(--gutter); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .agents { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .agents { grid-template-columns: repeat(3, 1fr); } }
.agents__legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: var(--space-24); font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--text-muted); list-style: none; padding: 0; }
.agents__legend li { display: inline-flex; align-items: center; gap: 8px; }
.agents__legend .agent-mark { width: 20px; height: 20px; }

.agent {
  display: flex; flex-direction: column; gap: var(--space-16);
  padding: var(--space-24); border-radius: var(--radius-md);
  background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line);
}
.agent__head { display: flex; gap: 16px; align-items: flex-start; }
.agent__title { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; }
.agent__family { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-muted); letter-spacing: .02em; font-weight: 500; margin-top: 2px; }
.agent__rows { display: grid; gap: 0; }
.agent__row { display: grid; gap: 2px; padding-block: 12px; border-top: 1px solid var(--line); }
.agent__row dt { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; letter-spacing: .02em; color: var(--text-muted); }
.agent__row dd { font-size: 15px; line-height: 22px; }
.agent__row--human dt { color: var(--text); }
.agent__row--human dt::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 1px; background: var(--brand-ink); margin-right: 8px; transform: translateY(-1px); }
.agent__row--result dd { font-weight: 600; }
.agent__more > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-block: 12px; border-top: 1px solid var(--line);
  font-size: var(--fs-body-s); font-weight: 600; cursor: pointer; list-style: none;
}
.agent__more > summary::-webkit-details-marker { display: none; }
.agent__more > summary .icon { width: 20px; height: 20px; transition: transform var(--dur) var(--ease); }
.agent__more[open] > summary .icon { transform: rotate(180deg); }
@media (min-width: 768px) { .agent__more > summary { display: none; } }

.agent--cta { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); justify-content: space-between; }
.agent--cta p { color: var(--text-muted); }

/* ---------- Process (тёмная секция, единственная на странице) ---------- */
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.route__step { position: relative; display: grid; gap: 8px; padding: 0 0 var(--space-32) 40px; }
.route__step::before { /* вертикальная линия маршрута, mobile */
  content: ""; position: absolute; left: 3px; top: 12px; bottom: -4px; width: 2px; background: var(--on-ink-muted);
}
.route__step:last-child::before { display: none; }
.route__node { position: absolute; left: 0; top: 4px; width: 8px; height: 8px; background: var(--on-ink); border-radius: 1px; }
.route__step:last-child .route__node { left: -4px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-signal); }
.route__num { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; letter-spacing: .02em; color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.route__title { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; color: var(--on-ink); }
.route__text { color: var(--on-ink-muted); font-size: 15px; line-height: 22px; max-width: 440px; }

@media (min-width: 1100px) {
  .route { grid-template-columns: repeat(5, 1fr); gap: var(--gutter); }
  .route__step { padding: 40px 0 0 0; }
  .route__step::before { left: 4px; right: calc(-1 * var(--gutter)); top: 3px; bottom: auto; width: auto; height: 2px; }
  .route__step:last-child::before { display: none; }
  .route__node { top: 0; }
  .route__step:last-child .route__node { left: -4px; top: -4px; }
}
.principle {
  display: grid; gap: var(--space-16); margin-top: var(--space-48); padding-top: var(--space-32);
  border-top: 1px solid var(--line-on-ink);
}
.principle .t-quote { color: var(--on-ink); max-width: 760px; }

/* ---------- Before / After ---------- */
.ba__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: var(--space-24); }
.ba { display: grid; gap: var(--space-16); align-items: stretch; }
.ba__col { border-radius: var(--radius-md); padding: var(--space-24); display: grid; gap: var(--space-16); align-content: start; }
.ba__col--before { background: var(--surface-sunken); }
.ba__col--after { background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--brand-ink); }
.ba__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ba__label h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.ba__who { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; letter-spacing: .02em; color: var(--text-muted); }
.ba__steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.ba__steps li {
  counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 8px;
  padding-block: 10px; border-top: 1px solid var(--line);
}
.ba__col--before .ba__steps li { border-top-color: var(--stone); color: var(--text-muted); }
.ba__steps li::before { content: counter(s, decimal-leading-zero); font-size: var(--fs-caption); line-height: 24px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ba__split { display: grid; gap: var(--space-24); }
.ba__arrow { display: flex; align-items: center; justify-content: center; color: var(--text); }
.ba__arrow svg { width: 32px; height: 32px; transform: rotate(90deg); }
.ba__effect { display: flex; gap: 12px; align-items: baseline; padding-top: var(--space-16); border-top: 1px solid var(--line); color: var(--signal-text); font-weight: 600; }
.ba__quote { margin-top: var(--space-48); display: grid; gap: var(--space-12); max-width: 860px; }
.ba__quote figcaption { color: var(--text-muted); font-size: var(--fs-body-s); }
@media (min-width: 768px) { .ba__split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .ba { grid-template-columns: 4fr 56px 7fr; }
  .ba__arrow svg { transform: none; }
}

/* ---------- Services ---------- */
.services { display: grid; gap: var(--gutter); list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  position: relative; display: flex; flex-direction: column; gap: var(--space-12);
  padding: var(--space-24); border-radius: var(--radius-md);
  background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.service:hover { box-shadow: inset 0 0 0 1px var(--brand-ink); }
.service--entry { box-shadow: inset 0 0 0 2px var(--brand-ink); }
.service__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px; }
.service__num { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; letter-spacing: .02em; color: var(--signal-text); font-variant-numeric: tabular-nums; }
.service__title { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.service__brand { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--text-muted); margin-top: -8px; }
.service__text { color: var(--text-muted); }
.service__result { margin-top: auto; padding-top: var(--space-12); border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.service__result b { font-weight: 600; }
.service__link { align-self: flex-start; font-size: var(--fs-body-s); }
.services__note { margin-top: var(--space-24); color: var(--text-muted); font-size: var(--fs-body-s); line-height: var(--lh-body-s); max-width: var(--container-text); }

/* ---------- Audience ---------- */
.audience { display: grid; gap: var(--space-40); }
@media (min-width: 900px) { .audience { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }
.audience__col { display: grid; gap: var(--space-16); align-content: start; padding-top: var(--space-16); border-top: 2px solid var(--brand-ink); }
.audience__col--muted { border-top-color: var(--stone); }
.audience__col h3 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; }
.audience__col .list { color: var(--text); }
.audience__col--muted .list { color: var(--text-muted); }
.audience__signs { margin-top: var(--space-48); padding: var(--space-24); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: var(--space-16); }
.audience__signs ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

/* ---------- Founder ---------- */
.founder { display: grid; gap: var(--space-48); }
@media (min-width: 1100px) { .founder { grid-template-columns: 6fr 5fr; gap: var(--space-64); align-items: start; } }
.founder__text { display: grid; gap: var(--space-24); }
.founder__text p { font-size: var(--fs-body-l); line-height: var(--lh-body-l); max-width: 640px; }
.founder__quote { display: grid; gap: var(--space-12); padding-top: var(--space-24); border-top: 1px solid var(--line); }
.founder__quote figcaption { font-size: var(--fs-body-s); color: var(--text-muted); }
.founder__edu { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--text-muted); font-size: 15px; line-height: 22px; }
.founder__edu .icon { color: var(--text); margin-top: -1px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; }
.kpi {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-16);
  min-height: 168px; padding: var(--space-16); border-radius: var(--radius-sm);
  background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line);
}
.kpi--ink { background: var(--brand-ink); color: var(--on-ink); box-shadow: none; }
.kpi__value { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-kpi); line-height: var(--lh-kpi); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi__value small { font-size: var(--fs-body-s); line-height: var(--lh-body-s); font-weight: 600; letter-spacing: 0; align-self: flex-end; margin-bottom: 4px; }
.kpi__label { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--text-muted); }
.kpi--ink .kpi__label { color: var(--on-ink-muted); }
@media (min-width: 768px) { .kpi { padding: var(--space-24); min-height: 200px; } }
.founder__exp { margin-top: var(--space-24); display: grid; gap: var(--space-12); }
.founder__exp h3 { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; letter-spacing: .02em; color: var(--text-muted); }
.founder__exp ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.founder__exp .tag { height: 32px; padding: 0 12px; font-size: 14px; color: var(--text); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Scenarios (архитектура будущих кейсов) ---------- */
.notice {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start;
  padding: var(--space-16); border-radius: var(--radius-md); background: var(--info-bg); color: var(--info);
  font-size: var(--fs-body-s); line-height: var(--lh-body-s); max-width: var(--container-text); margin-bottom: var(--space-32);
}
.notice .icon { width: 20px; height: 20px; }
.notice b { font-weight: 600; }
.scenarios { display: grid; gap: var(--gutter); list-style: none; margin: 0; padding: 0; }
@media (min-width: 1100px) { .scenarios { grid-template-columns: repeat(3, 1fr); } }
.scenario {
  display: flex; flex-direction: column; gap: var(--space-16);
  padding: var(--space-24); border-radius: var(--radius-md);
  background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line);
}
.scenario__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.scenario__title { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; }
.scenario__flow { list-style: none; margin: 0; padding: 0; display: grid; }
.scenario__flow li { position: relative; padding: 0 0 16px 24px; font-size: 15px; line-height: 22px; }
.scenario__flow li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 1px; background: var(--brand-ink); }
.scenario__flow li::after { content: ""; position: absolute; left: 3px; top: 17px; bottom: 2px; width: 2px; background: var(--stone); }
.scenario__flow li:last-child { padding-bottom: 0; }
.scenario__flow li:last-child::after { display: none; }
.scenario__flow b { display: block; font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; letter-spacing: .02em; color: var(--text-muted); }
.scenario__metrics { margin-top: auto; padding-top: var(--space-16); border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: var(--fs-body-s); line-height: var(--lh-body-s); }
.scenario__metrics dt { font-weight: 600; }
.scenario__metrics dd { color: var(--text-muted); }

/* ---------- Diagnostics + Form ---------- */
.diag { display: grid; gap: var(--space-48); }
@media (min-width: 1100px) { .diag { grid-template-columns: 5fr 6fr; gap: var(--space-64); align-items: start; } }
.diag__text { display: grid; gap: var(--space-24); }
.diag__result { display: grid; gap: var(--space-16); padding: var(--space-24); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); }
.diag__result h3 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; }
.diag__facts { display: grid; gap: var(--space-12); list-style: none; margin: 0; padding: 0; }
.diag__facts li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-muted); }
.diag__facts .icon { color: var(--text); }
.diag__facts b { color: var(--text); font-weight: 600; }

.form-card { padding: var(--space-24); border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 768px) { .form-card { padding: var(--space-32); } }
.form { display: grid; gap: var(--space-24); }
.form__head { display: grid; gap: 8px; }
.form__head h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }
.form__head p { color: var(--text-muted); }
.form__row { display: grid; gap: var(--space-24); }
@media (min-width: 768px) { .form__row--2 { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; letter-spacing: .02em; color: var(--text); }
.field__opt { color: var(--text-muted); font-weight: 400; }
.field__input {
  width: 100%; min-height: var(--control-h); padding: 10px 14px;
  border: var(--border-control) solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--surface-raised); color: var(--text);
  font-size: 16px; line-height: 24px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field__input::placeholder { color: var(--text-disabled); }
.field__input:hover { border-color: var(--brand-ink); }
.field__input:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 2px var(--surface-raised), 0 0 0 4px var(--signal-text); }
textarea.field__input { min-height: 120px; resize: vertical; }
.field__hint { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-muted); }
.field__error { display: none; align-items: center; gap: 6px; font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; color: var(--error); }
.field__error .icon { width: 16px; height: 16px; stroke-width: 1.5; }
.field.is-invalid .field__input { border-color: var(--error); }
.field.is-invalid .field__error { display: flex; }
.field.is-invalid .field__hint { display: none; }
.form__foot { display: grid; gap: var(--space-12); }
.form__legal { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-muted); }
.form__legal a { color: inherit; }
.form__alt { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--text-muted); }
.alert { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: var(--space-16); border-radius: var(--radius-md); font-size: 15px; line-height: 22px; }
.alert b { display: block; font-weight: 600; margin-bottom: 2px; }
.alert--success { background: var(--success-bg); color: var(--success); }
.alert--error { background: var(--error-bg); color: var(--error); }
.form-success { display: grid; gap: var(--space-24); }
.form-success h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; }

/* ---------- FAQ (accordion) ---------- */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 880px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-24);
  min-height: 64px; padding-block: 16px; cursor: pointer; list-style: none;
  font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--btn-primary-hover); }
.faq__toggle { position: relative; flex: none; width: 24px; height: 24px; }
.faq__toggle::before, .faq__toggle::after {
  content: ""; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px; border-radius: 1px; background: currentColor;
  transition: transform var(--dur) var(--ease);
}
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open] .faq__toggle::after { transform: rotate(0deg); }
.faq__a { padding: 0 48px var(--space-24) 0; color: var(--text-muted); font-size: var(--fs-body-l); line-height: var(--lh-body-l); max-width: var(--container-text); display: grid; gap: 12px; }
@media (max-width: 767px) { .faq__a { padding-right: 0; } }

/* ---------- Final CTA ---------- */
.final { display: grid; gap: var(--space-32); align-items: end; padding-block: var(--space-48); border-top: 2px solid var(--brand-ink); }
.final__text { display: grid; gap: var(--space-16); max-width: 720px; }
.final__text p { color: var(--text-muted); font-size: var(--fs-body-l); line-height: var(--lh-body-l); }
@media (min-width: 1100px) { .final { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.footer { background: var(--graphite-2); color: var(--on-ink); padding-block: var(--space-64) calc(var(--space-32) + env(safe-area-inset-bottom, 0px)); }
.footer__grid { display: grid; gap: var(--space-40); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 5fr 3fr 4fr; gap: var(--gutter); } }
.footer__brand { display: grid; gap: var(--space-16); align-content: start; }
.footer__brand svg { height: 28px; width: auto; }
.footer__brand p { color: var(--on-ink-muted); font-size: var(--fs-body-s); line-height: var(--lh-body-s); max-width: 340px; }
.footer__title { font-size: var(--fs-caption); line-height: var(--lh-caption); font-weight: 500; letter-spacing: .02em; color: var(--on-ink-muted); margin-bottom: var(--space-12); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer__list a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; text-decoration: none; color: var(--on-ink); }
.footer__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__list .icon { width: 20px; height: 20px; color: var(--on-ink-muted); }
.footer__pattern { margin-block: var(--space-48) var(--space-24); display: flex; gap: 8px; overflow: hidden; height: 16px; }
.footer__pattern span { flex: none; width: 16px; height: 16px; border-radius: 2px; background: rgba(243, 241, 236, .08); }
.footer__pattern span.c { border-radius: 50%; background: rgba(243, 241, 236, .24); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--on-ink-muted); font-size: var(--fs-body-s); line-height: var(--lh-body-s); }
.footer__bottom a { color: inherit; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky-cta);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform var(--dur) var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 1100px) { .sticky-cta { display: none; } }

/* ---------- Photos (фотостиль бренда: прямоугольник r 8, без эффектов) ---------- */
.principle { grid-template-columns: 1fr; align-items: center; }
.principle__photo img, .founder__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); background: var(--graphite-2); }
.principle__photo { max-width: 380px; }
.principle__text { display: grid; gap: var(--space-24); align-content: center; }
.principle__note { color: var(--on-ink-muted); max-width: 560px; font-size: var(--fs-body-l); line-height: var(--lh-body-l); }
@media (min-width: 768px) { .principle { grid-template-columns: 320px 1fr; gap: var(--space-48); } }
@media (min-width: 1100px) { .principle { grid-template-columns: 380px 1fr; gap: var(--space-64); } }

.founder__side { display: grid; gap: 8px; align-content: start; }
.founder__photo img { background: var(--fog); aspect-ratio: 4 / 5; }
@media (min-width: 768px) and (max-width: 1099px) { .founder__side { grid-template-columns: 1fr 1fr; } .founder__photo { grid-row: span 2; } .founder__side .kpis { align-self: stretch; } .founder__exp { grid-column: 1 / -1; } }

.diag__host { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; }
.diag__host img { width: 64px; height: 64px; border-radius: var(--radius-full); object-fit: cover; background: var(--fog); }
.diag__host p { color: var(--text-muted); font-size: 15px; line-height: 22px; }
.diag__host b { color: var(--text); font-weight: 600; }

/* ---------- Consent checkbox ---------- */
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--text-muted); cursor: pointer; }
.consent a { color: var(--text); }
.consent input {
  appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--surface-raised); display: grid; place-items: center; cursor: pointer;
}
.consent input:checked { background: var(--brand-ink); border-color: var(--brand-ink); }
.consent input:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid var(--on-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.consent input:focus-visible { outline: 2px solid var(--signal-text); outline-offset: 2px; }
.field--check.is-invalid .consent input { border-color: var(--error); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 70; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 16px; padding: 20px; max-width: 560px;
  background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-overlay), inset 0 0 0 1px var(--line);
}
.cookie__text { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--text-muted); }
.cookie__text a { color: var(--text); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) { .cookie__actions .btn { flex: 1 1 auto; } }
@media (min-width: 768px) { .cookie { left: 24px; right: auto; bottom: 24px; } }

/* ---------- Footer legal ---------- */
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a, .footer__cookie-btn { color: inherit; font: inherit; }
.footer__cookie-btn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* ---------- Legal pages ---------- */
.legal { padding-block: var(--space-48) var(--section-gap); }
.legal__inner { max-width: var(--container-text); display: grid; gap: 16px; }
.legal__back { font-size: var(--fs-body-s); color: var(--text-muted); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.legal__back:hover { color: var(--text); }
.legal h1 { margin: 16px 0 8px; }
.legal h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; margin-top: 32px; }
.legal h3 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; margin-top: 16px; }
.legal h4 { font-size: var(--fs-body); font-weight: 600; margin-top: 8px; }
.legal p, .legal li { font-size: var(--fs-body); line-height: 26px; color: var(--text); }
.legal ul { display: grid; gap: 6px; padding-left: 0; list-style: none; margin: 0; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 1px; background: var(--brand-ink); }
.legal__meta { font-size: var(--fs-body-s); color: var(--text-muted); }
.legal__draft { padding: 16px; border-radius: var(--radius-md); background: var(--warning-bg); color: var(--warning); font-size: var(--fs-body-s); line-height: var(--lh-body-s); }

.alert--info { background: var(--info-bg); color: var(--info); }
.alert--info a { color: inherit; }
