/* ==========================================================================
   Полиметрика — стили лендинга
   1. Токены   2. База   3. Раскладка   4. Компоненты   5. Секции   6. Адаптив
   ========================================================================== */

/* 1. ТОКЕНЫ ------------------------------------------------------------------ */
:root {
  /* Фирменные цвета (из логотипа) */
  --brand-navy: #023661;
  --brand-navy-deep: #01274A;
  --brand-orange: #DB5227;
  --brand-ink: #0A0C12;

  /* Семантика */
  --color-bg: #FFFFFF;
  --color-bg-muted: #F4F7FA;
  --color-surface: #FFFFFF;
  --color-surface-muted: #EEF2F7;
  --color-border: #D2DCE7;
  --color-border-soft: #E3E9F0;
  --color-border-input: #B3C0CF;
  --color-text: var(--brand-ink);
  --color-text-heading: var(--brand-navy);
  --color-text-muted: #4B5B70;          /* 7:1 на белом */
  --color-text-on-dark: #FFFFFF;
  --color-text-on-dark-muted: #C2D0DF;
  --color-accent: var(--brand-orange);  /* крупные элементы, графика */
  --color-accent-text: #B8401A;         /* мелкий оранжевый текст на светлом (AA) */
  --color-accent-on-dark: #F2875F;      /* оранжевый текст на синем (AA) */
  --color-action: #C4441B;              /* заливка кнопок под белым текстом (AA) */
  --color-action-hover: #A93A16;
  --color-danger: #B42318;
  --color-success: #1E7A50;
  --color-success-bg: #E7F4EE;
  --color-warning-bg: #FBEAE3;
  --color-warning-text: #8F3012;
  --focus-ring: 0 0 0 3px #FFFFFF, 0 0 0 5px #DB5227;

  /* Типографика */
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --fs-display: clamp(2.5rem, 1.6rem + 3.2vw, 4.125rem); /* 40 → 66 */
  --fs-h2: clamp(2rem, 1.5rem + 1.8vw, 3rem);           /* 32 → 48 */
  --fs-h3: 1.4375rem;                                     /* 23 */
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);      /* 17 → 20 */
  --fs-body: 1.0625rem;                                   /* 17 */
  --fs-small: .9375rem;                                   /* 15 */
  --fs-caption: .8125rem;                                 /* 13 */

  /* Раскладка */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 120px);
  --section-y: clamp(64px, 7vw, 104px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-float: 0 30px 60px rgba(1, 20, 40, .35);
  --shadow-card: 0 20px 50px rgba(2, 54, 97, .10);
  --header-h: 80px;
}

/* 2. БАЗА -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: var(--color-accent-text); }
a:hover { color: var(--color-action-hover); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.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: -60px; z-index: 100;
  padding: 12px 16px; background: #fff; color: var(--brand-navy); border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* 3. РАСКЛАДКА --------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--muted { background: var(--color-bg-muted); }
.section--navy { background: var(--brand-navy); color: var(--color-text-on-dark); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: end; gap: 20px 64px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head__titles { display: flex; flex-direction: column; gap: 14px; max-width: 760px; grid-column: 1; }
.section-head:not(:has(> :nth-child(2))) { grid-template-columns: minmax(0, 1fr); }
.section-head:not(:has(> :nth-child(2))) .section-head__titles { max-width: 900px; }
.section-head__aside { grid-column: 2; font-size: 1.0625rem; line-height: 1.5; color: var(--color-text-muted); }
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* 4. КОМПОНЕНТЫ -------------------------------------------------------------- */
.eyebrow { font-family: var(--font-sans); font-size: .9375rem; font-weight: 700; color: var(--color-accent-text); }
.section--navy .eyebrow, .contacts .eyebrow { color: var(--color-accent-on-dark); }
.h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; color: var(--color-text-heading); }
.section--navy .h2 { color: inherit; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; }
.muted { color: var(--color-text-muted); }
.mono { font-family: var(--font-mono); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font: 700 1.0625rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--lg { min-height: 58px; padding: 0 28px; }
.btn--primary { background: var(--color-action); color: #fff; }
.btn--primary:hover { background: var(--color-action-hover); color: #fff; }
.btn--light { background: #fff; color: var(--brand-navy); }
.btn--light:hover { background: var(--color-surface-muted); color: var(--brand-navy); }
.btn--ghost-dark { border-color: rgba(255,255,255,.5); color: #fff; font-weight: 600; }
.btn--ghost-dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn--outline { border-color: var(--brand-navy); color: var(--brand-navy); background: #fff; }
.btn--outline:hover { background: var(--color-surface-muted); color: var(--brand-navy); }
.btn[disabled] { opacity: .6; cursor: progress; }

.card { background: var(--color-surface); border-radius: var(--radius-lg); padding: 32px; }
.card--muted { background: var(--color-bg-muted); }
.chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 6px; background: var(--color-surface-muted); color: var(--brand-navy); font: 500 .75rem/1.2 var(--font-mono); }
.chip--warning { background: var(--color-warning-bg); color: var(--color-warning-text); }
.pill { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: #fff; font-size: var(--fs-small); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-caption); color: var(--color-text-muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 18px; height: 3px; background: currentColor; }
.legend i.sq { width: 12px; height: 12px; border-radius: 2px; }
.legend .c-navy { color: var(--brand-navy); }
.legend .c-orange { color: var(--brand-orange); }

/* 5. СЕКЦИИ ------------------------------------------------------------------ */

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--brand-navy); border-bottom: 1px solid rgba(255,255,255,.14); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo img { height: 32px; width: auto; }
.site-nav ul { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; padding: 8px 0; }
.site-nav a:hover { color: var(--color-accent-on-dark); }
.site-nav .site-nav__cta a.btn, .site-nav .site-nav__cta a.btn:hover { color: var(--brand-navy); justify-content: center; }
.site-header__cta { min-height: 46px; padding: 0 20px; font-size: 1rem; }
.site-nav__cta { display: none; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: var(--radius-sm); border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }

/* Первый экран */
.hero { position: relative; overflow: hidden; background: var(--brand-navy); color: #fff; }
.hero__mark { display: none; position: absolute; right: -260px; top: -200px; width: 900px; opacity: .07; pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 88px); }
.hero__head { display: flex; flex-direction: column; gap: 24px; }
.hero__side { display: flex; flex-direction: column; gap: 24px; padding-bottom: 6px; }
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__badge { align-self: flex-start; max-width: 100%; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; font: 600 .875rem/1.3 var(--font-sans); color: #D3DEEA; }
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-on-dark); }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.625rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--color-accent-on-dark); }
.hero__lead { font-size: var(--fs-lead); color: #D3DEEA; max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn--lg { padding: 0 22px; }

.hero__art { margin: 0 0 clamp(24px, 3vw, 40px); }
.hero__art img { width: 100%; height: auto; }
.chart-card { background: #fff; color: var(--color-text); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: 18px; }
.chart-card__head { display: flex; justify-content: space-between; align-items: center; }
.chart-card__title { font: 500 .75rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.chart-card__tag { font: 400 .6875rem/1 var(--font-mono); padding: 4px 8px; border-radius: 4px; background: var(--color-surface-muted); color: var(--color-text-muted); }
.chart-card hr { border: 0; border-top: 1px solid var(--color-border-soft); margin: 0; }
.chart-card svg { width: 100%; height: auto; }
.bars { display: flex; flex-direction: column; gap: 12px; font-size: .875rem; font-weight: 500; }
.bar { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; align-items: center; }
.bar__track { display: flex; gap: 2px; height: 12px; }
.bar__track span { border-radius: 2px; }
.bar__track .base { background: var(--brand-navy); }
.bar__track .idle { background: var(--brand-orange); }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.18); }
.stat { padding: 32px 28px 44px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.stat dd { margin: 0; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.18); }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat__value { font-size: clamp(1.75rem, 1.3rem + 1vw, 2.375rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.stat__value--accent { color: var(--color-accent-on-dark); }
.stat__label { font-size: var(--fs-small); color: var(--color-text-on-dark-muted); }

/* Две колонки: текст + иллюстрация */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split--wide-img { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.split__img { width: 100%; height: auto; border-radius: var(--radius-lg); background: #E6ECF3; }

/* Нумерованный список (проблема, эксплуатация) */
.numbered { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.numbered li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--color-border-soft); }
.numbered li:first-child { padding-top: 0; }
.numbered li:last-child { border-bottom: 0; }
.numbered__n { font-size: 2.25rem; line-height: 1; font-weight: 800; color: var(--color-accent-text); }
.numbered .h3 { margin-bottom: 6px; }
.numbered--compact li { padding: 16px 0; }
.numbered--compact .numbered__n { font-size: 1.75rem; }
.numbered--compact .h3 { font-size: 1.1875rem; margin-bottom: 4px; }
.numbered--compact p { font-size: 1rem; }
.neq { color: var(--brand-orange); }
.punchline { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--brand-navy); font-size: 1.1875rem; font-weight: 700; color: var(--color-text-heading); }

/* Подход */
.note { grid-column: 2; max-width: none; display: flex; align-items: center; gap: 14px; max-width: 400px; padding: 18px 20px; background: #fff; border-radius: var(--radius-md); font-size: var(--fs-small); font-weight: 600; line-height: 1.45; color: var(--color-text); }
.note svg { flex-shrink: 0; }
.step-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.step-card__icon { display: block; margin-bottom: 8px; }
.step-card--dark { background: var(--brand-navy); color: #fff; }
.step-card--dark h3 { color: #fff !important; }
.step-card--dark p { color: #D3DEEA; }
.step-card--accent { border-top-color: var(--brand-orange); }
.step-card__label { font: 400 .875rem/1.3 var(--font-mono); color: var(--color-text-muted); }
.step-card--accent .step-card__label { color: var(--color-accent-text); }
.step-card h3 { font-size: 1.875rem; font-weight: 800; color: var(--color-text-heading); }

/* На объекте */
.illus { display: flex; flex-direction: column; gap: 20px; }
.illus img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: #E6ECF3; }
.illus figcaption { display: flex; flex-direction: column; gap: 8px; }
.illus figcaption strong { font-size: 1.3125rem; font-weight: 700; }

/* Кейс */
.case__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.case__body { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; }
.case__summary { background: var(--brand-navy); color: #fff; border-radius: 14px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.case__summary p { font-size: 1.5rem; line-height: 1.35; font-weight: 700; }
.case__total { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 6px; }
.case__total strong { font-size: 2.5rem; font-weight: 800; color: var(--color-accent-on-dark); line-height: 1.1; }
.case__total span, .case__label { color: var(--color-text-on-dark-muted); font-size: var(--fs-small); }
.findings { background: #fff; border-radius: 14px; padding: 12px 36px 24px; }
.findings table { width: 100%; border-collapse: collapse; }
.findings caption { text-align: left; }
.findings th { font: 500 .75rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); text-align: left; padding: 20px 0 14px; border-bottom: 2px solid var(--brand-navy); }
.findings th:last-child, .findings td:last-child { text-align: right; white-space: nowrap; }
.findings td { padding: 20px 0; border-bottom: 1px solid var(--color-border-soft); font-size: 1.125rem; line-height: 1.4; vertical-align: middle; }
.findings td:last-child { font: 500 1.25rem/1.2 var(--font-mono); color: var(--brand-navy); padding-left: 24px; }
.findings tr:last-child td { border-bottom: 0; }
.findings .chip--warning { margin-left: 6px; font-family: var(--font-sans); font-size: .8125rem; font-weight: 600; }
.findings__note { margin-top: 8px; font-size: .875rem; color: var(--color-text-muted); }

/* Энергомодель */
.model { background: var(--color-bg-muted); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 28px; }
.model__legend { justify-content: flex-end; }
.model__group { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: center; }
.model__process { display: flex; flex-direction: column; gap: 18px; }
.model__flow { display: flex; align-items: center; gap: 10px; }
.model__input, .model__node { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 10px; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; }
.model__input { border: 1.5px dashed var(--color-border-input); color: var(--color-text); background: #fff; }
.model__node { background: var(--brand-navy); color: #fff; min-width: 150px; }
.model__input small, .model__node small { font-size: .75rem; font-weight: 500; opacity: .8; }
.model__ref { display: flex; flex-direction: column; gap: 8px; }
.model__ref-label { font: 500 .6875rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.model__ref-text { font-size: .875rem; font-weight: 700; }
.model__rows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.model__row { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(140px, 1.3fr) 150px 120px; gap: 20px; align-items: center; background: #fff; border-radius: 10px; padding: 14px 20px; }
.model__sys { display: flex; flex-direction: column; gap: 2px; }
.model__sys strong { font-size: 1.0625rem; }
.model__sys span { font-size: .8125rem; color: var(--color-text-muted); }
.model__share { display: flex; flex-direction: column; gap: 0; }
.model__share strong { font-size: 1.625rem; line-height: 1.1; font-weight: 800; color: var(--color-accent-text); }
.model__share span { font-size: .75rem; color: var(--color-text-muted); }
.model__price { text-align: right; font-size: 1.125rem; font-weight: 800; white-space: nowrap; color: var(--brand-navy); }
.model__price--none { color: var(--color-border-input); }
.split-bar { display: flex; gap: 2px; height: 14px; }
.split-bar > span { background: var(--brand-navy); border-radius: 2px; }
.split-bar > span.idle { background: var(--brand-orange); }
.pair-bars { display: flex; flex-direction: column; gap: 6px; }
.pair-bars > span { position: relative; height: 8px; border-radius: 2px; }
.pair-bars__a { background: var(--brand-navy); }
.pair-bars__b { background: var(--brand-orange); }
.pair-bars em { position: absolute; left: calc(100% + 8px); top: -4px; font: 400 .6875rem/1 var(--font-mono); font-style: normal; color: var(--color-text-muted); white-space: nowrap; }
.pair-bars__b em { color: var(--color-accent-text); font-weight: 500; }
.timer-tag { justify-self: stretch; text-align: center; padding: 6px 10px; border: 1.5px dashed var(--brand-orange); border-radius: 6px; color: var(--color-accent-text); font-size: .8125rem; font-weight: 700; }

/* Доказательство */
.evidence { display: grid; grid-template-columns: minmax(0, 1fr) 540px; gap: 72px; align-items: center; }
.evidence__text { display: flex; flex-direction: column; gap: 28px; }
.evidence__text .h2 { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.14; }
.evidence__text p { font-size: 1.125rem; color: #D3DEEA; }
.evidence__nums { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.evidence__nums div { display: flex; flex-direction: column; gap: 6px; }
.evidence__nums strong { font-size: clamp(2rem, 1.6rem + 1vw, 2.75rem); font-weight: 800; line-height: 1.1; }
.evidence__nums strong.accent { color: var(--color-accent-on-dark); }
.evidence__nums span { font-size: var(--fs-small); color: var(--color-text-on-dark-muted); }
.exp-card { background: #fff; color: var(--color-text); border-radius: 14px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.exp-card__phases { display: grid; grid-template-columns: 156fr 168fr 156fr; font-size: var(--fs-caption); color: var(--color-text-muted); line-height: 1.4; }
.exp-card__phases span + span { padding-left: 8px; }
.exp-card__phases .accent { color: var(--color-accent-text); font-weight: 600; }
.exp-card__foot { padding-top: 14px; border-top: 1px solid var(--color-border-soft); font-size: var(--fs-small); font-weight: 600; }

/* ИИ-ассистент */
.ai { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 64px; align-items: start; }
.ai__text { display: flex; flex-direction: column; gap: 16px; }
.ai__kicker { font: 700 .9375rem/1.2 var(--font-sans); color: var(--color-text-muted); }
.load-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--color-border); }
.load-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.load-list strong { display: block; font-size: 1.1875rem; margin-bottom: 2px; }
.load-list span:not(.icon-tile) { font-size: .9375rem; color: var(--color-text-muted); }
.ai__rules { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ai__rules li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brand-navy); }
.ai__rules li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-orange); }
.ai__points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ai__points .card { padding: 22px; border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 8px; }
.ai__points strong { font-size: 1.125rem; }
.ai__points span { font-size: var(--fs-small); color: var(--color-text-muted); line-height: 1.5; }
.chat { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 18px; background: #fff; }
.chat__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--color-border-soft); }
.chat__head img { height: 20px; width: auto; }
.chat__status { display: inline-flex; align-items: center; gap: 8px; font: 400 .75rem/1 var(--font-mono); color: var(--color-text-muted); }
.chat__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2E9E6A; }
.chat__log { min-height: 250px; display: flex; flex-direction: column; gap: 14px; }
.msg { padding: 14px 18px; font-size: 1rem; line-height: 1.55; border-radius: 14px; }
.msg--user { align-self: flex-end; max-width: 85%; background: var(--brand-navy); color: #fff; border-bottom-right-radius: 4px; font-size: 1.0625rem; }
.msg--bot { max-width: 92%; background: var(--color-bg-muted); border-bottom-left-radius: 4px; }
.chat__sources { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__sources .chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-orange); margin-right: 6px; }
.msg--bot { border-left: 3px solid var(--brand-orange); }
.chat__suggest { padding-top: 16px; border-top: 1px solid var(--color-border-soft); display: flex; flex-direction: column; gap: 10px; }
.chat__suggest p { font-size: var(--fs-caption); font-weight: 600; color: var(--color-text-muted); }
.chat__suggest div { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--color-border-input);
  background: #fff; color: var(--brand-navy); font: 600 .875rem/1.3 var(--font-sans); cursor: pointer; text-align: left;
}
.suggest:hover { border-color: var(--brand-navy); }
.suggest[aria-pressed="true"] { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.msg--bot.is-typing { opacity: .55; }

/* Объекты */
.object-card { display: flex; flex-direction: column; gap: 12px; }
.object-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 14px; background: #E6ECF3; margin-bottom: 8px; }
.icon-tile { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--color-surface-muted); display: grid; place-items: center; }
.object-card h3 { font-size: 1.3125rem; }
.object-card p { font-size: 1rem; color: var(--color-text-muted); line-height: 1.5; }

/* Жизненный цикл */
.lifecycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; counter-reset: lc; }
.lifecycle li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.lifecycle li + li::before { content: "→"; position: absolute; left: -24px; top: 72px; color: var(--brand-orange); font-weight: 800; font-size: 1.125rem; }
.lifecycle img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 14px; background: #E6ECF3; margin-bottom: 6px; }
.lifecycle h3 { font-size: 1.1875rem; line-height: 1.25; }
.lifecycle p { font-size: .9375rem; line-height: 1.5; color: var(--color-text-muted); }
.lifecycle__who { margin-top: auto; padding-top: 6px; font-size: .875rem; font-weight: 700; color: var(--color-accent-text); }

/* Этапы */
.timeline { position: relative; list-style: none; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--color-border); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 18px; }
.timeline__head { display: flex; align-items: center; gap: 12px; }
.badge-free { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 4px; background: var(--color-action); color: #fff; font: 700 .75rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.timeline__num { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-navy); color: #fff; display: grid; place-items: center; font-size: 1.375rem; font-weight: 800; }
.timeline li:first-child .timeline__num { background: var(--brand-orange); }
.timeline h3 { font-size: 1.375rem; }
.timeline p { font-size: 1rem; color: var(--color-text-muted); }

/* Данные */
.data-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.data-min { background: var(--brand-navy); color: #fff; border-radius: var(--radius-lg); padding: 36px 40px; display: flex; flex-direction: column; gap: 22px; }
.data-min__label, .data-more__label { font: 700 .9375rem/1.2 var(--font-sans); }
.data-min__label { color: var(--color-accent-on-dark); }
.data-min strong { display: block; font-size: 1.5rem; line-height: 1.25; }
.data-min div span { color: var(--color-text-on-dark-muted); }
.data-min__free { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.data-min__free em { font-style: normal; color: var(--color-accent-on-dark); }
.data-min .btn { align-self: flex-start; }
.data-more__label { color: var(--color-text-muted); display: block; margin-bottom: 8px; }
.data-more ul { list-style: none; padding: 0; margin: 0; }
.data-more li { padding: 16px 0; border-top: 1px solid var(--color-border); font-size: 1.0625rem; line-height: 1.45; }
.data-more li:last-child { border-bottom: 1px solid var(--color-border); }

/* Контакты и форма */
.contacts { background: var(--brand-navy-deep); color: #fff; }
.contacts__inner { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 80px; align-items: start; }
.contacts__text { display: flex; flex-direction: column; gap: 28px; }
.contacts__text .h2 { color: #fff; font-size: clamp(2.125rem, 1.6rem + 2vw, 3.375rem); }
.contacts__text > p { font-size: 1.1875rem; color: #D3DEEA; max-width: 520px; }
.contact-lines { list-style: none; padding: 0; border-top: 1px solid rgba(255,255,255,.16); margin-top: 12px; }
.contact-lines li { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; gap: 6px; }
.contact-lines__label { font-size: var(--fs-small); color: var(--color-text-on-dark-muted); }
.contact-lines a { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.contact-lines a:hover { color: var(--color-accent-on-dark); }

.lead-form { background: #fff; color: var(--color-text); border-radius: var(--radius-lg); padding: 36px; min-height: 640px; }
.lead-form form { display: flex; flex-direction: column; gap: 20px; }
.lead-form__title { display: flex; flex-direction: column; gap: 6px; }
.lead-form__title h3 { font-size: 1.5rem; font-weight: 800; color: var(--color-text-heading); }
.lead-form__title p { font-size: var(--fs-small); color: var(--color-text-muted); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .875rem; font-weight: 700; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--color-border-input); border-radius: var(--radius-sm);
  font: 400 1rem/1.4 var(--font-sans); color: var(--color-text); background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgba(2,54,97,.18); border-radius: var(--radius-sm); }
.field__error { font-size: var(--fs-caption); font-weight: 500; color: var(--color-danger); }
.field.is-invalid input { border-color: var(--color-danger); }
.form-alert { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--color-warning-bg); color: var(--color-warning-text); font-size: .875rem; font-weight: 600; }
.lead-form__legal { font-size: var(--fs-caption); color: var(--color-text-muted); line-height: 1.45; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { min-height: 568px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.form-success h3 { font-size: 1.875rem; font-weight: 800; color: var(--color-text-heading); line-height: 1.15; }
.form-success__hint { padding: 18px 20px; background: var(--color-bg-muted); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 8px; }
.form-success__hint strong { font-size: .875rem; }
.form-success__hint span { font-size: var(--fs-small); color: var(--color-text-muted); }
.form-success .btn { align-self: flex-start; }

/* Подвал */
.site-footer { background: var(--brand-ink); color: #A9B8CA; font-size: var(--fs-small); }
.site-footer__inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 24px; }
.site-footer img { height: 26px; width: auto; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #D3DEEA; }

/* Политика ПД */
.doc { display: grid; grid-template-columns: 280px minmax(0, 800px); gap: 80px; align-items: start; }
.doc__toc { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 14px; font-size: var(--fs-small); font-weight: 600; }
.doc__toc a { color: var(--brand-navy); text-decoration: none; }
.doc__toc a:hover { text-decoration: underline; }
.doc__body { background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 56px) clamp(22px, 4.5vw, 64px); display: flex; flex-direction: column; gap: 32px; }
.doc__body h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.1; font-weight: 800; color: var(--color-text-heading); letter-spacing: -.02em; }
.doc__body h2 { font-size: 1.375rem; margin-bottom: 10px; }
.doc__body p { color: var(--color-text-muted); }

/* 6. АДАПТИВ ----------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero__inner, .evidence, .ai, .contacts__inner, .split, .split--wide-img, .data-split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split__img { max-width: 640px; }
  .model__group { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .model__process { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
  .model__ref { min-width: 260px; }
  .lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .lifecycle li + li::before { display: none; }
  .chart-card, .exp-card, .chat, .lead-form { max-width: 640px; }
  .case__body { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline::before { display: none; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .doc__toc { position: static; }
}
@media (max-width: 1024px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head__aside, .note { grid-column: 1; }
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.is-open .site-nav {
    display: block; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--brand-navy); border-bottom: 1px solid rgba(255,255,255,.14); padding: 8px var(--gutter) 24px;
  }
  .site-header.is-open .site-nav ul { flex-direction: column; gap: 0; }
  .site-header.is-open .site-nav a { display: block; padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-header.is-open .site-nav__cta { display: block; padding-top: 20px; }
  .site-header.is-open .site-nav__cta .btn { display: flex; width: 100%; border-bottom: 0; padding: 0 24px; font-size: 1.0625rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .ai__points { grid-template-columns: minmax(0, 1fr); }
  .model__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'sys price' 'bar bar' 'share share'; gap: 10px 16px; }
  .model__sys { grid-area: sys; }
  .model__row > .split-bar, .model__row > .pair-bars, .model__row > .timer-tag { grid-area: bar; }
  .model__share { grid-area: share; flex-direction: row; align-items: baseline; gap: 8px; }
  .model__price { grid-area: price; }
  .pair-bars > span { max-width: 80%; }
  .lifecycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .site-header__logo img { height: 26px; }
  .hero__mark { width: 520px; right: -200px; top: -80px; }
  .hero__actions .btn { width: 100%; }
  .chart-card, .exp-card, .chat, .lead-form, .card, .case__summary { padding: 22px; }
  .findings { padding: 4px 18px 16px; }
  .findings td { font-size: 1rem; }
  .findings td:last-child { font-size: 1rem; padding-left: 12px; }
  .bar { grid-template-columns: 104px minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 22px 0 !important; border-left: 0 !important; }
  .stat + .stat { border-top: 1px solid rgba(255,255,255,.18); }
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .model { padding: 16px; }
  .model__row { padding: 14px; }
  .lifecycle { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lifecycle li { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; }
  .lifecycle img { grid-row: span 3; margin: 0; }
  .lifecycle__who { margin-top: 0; }
  .object-card img { aspect-ratio: 2 / 1; object-fit: cover; }
  .data-min { padding: 24px; }
  .numbered li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .numbered__n { font-size: 1.75rem; }
  .timeline__head .badge-free { height: 26px; }
  .lead-form { min-height: 0; }
  .form-success { min-height: 0; }
  .exp-card__phases { font-size: .6875rem; }
}

/* Согласие на обработку ПД */
.field .check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); font-weight: 500; line-height: 1.5; cursor: pointer; }
.field .check input { flex: none; width: 20px; min-height: 0; height: 20px; padding: 0; margin-top: 2px; accent-color: var(--brand-navy); }
.field .check a { color: var(--brand-navy); text-decoration: underline; }
.field--check.is-invalid .check { color: var(--color-danger); }
.doc__body section { display: flex; flex-direction: column; gap: 10px; }
.doc__body ul { color: var(--color-text-muted); padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px; list-style: disc; }
.doc__body a { color: var(--brand-navy); }
