/* ============================================================
   Лендинг «Семантическая аналитика переговоров»
   Дизайн-система: белый фон, тёмный текст, один акцент #0F4C81
   Mobile-first. Без внешних шрифтов и CDN.
   ============================================================ */

:root {
  --accent: #0F4C81;
  --accent-dark: #0C3E6A;
  --accent-light: #EAF1F8;
  --ink: #111827;
  --ink-soft: #3F4A5A;
  --ink-mute: #6B7280;
  --line: #E5E7EB;
  --line-soft: #EEF0F3;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --ok: #15803D;
  --ok-bg: #ECF7F0;
  --bad: #B91C1C;
  --bad-bg: #FBEFEF;
  --warn: #B45309;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 4px 16px rgba(17, 24, 39, .06);
  --shadow-hover: 0 2px 4px rgba(17, 24, 39, .06), 0 10px 28px rgba(15, 76, 129, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

section { scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Типографика ---------- */

h1, h2, h3, h4 { line-height: 1.22; font-weight: 750; letter-spacing: -0.015em; }

.h1 { font-size: clamp(30px, 6.4vw, 46px); font-weight: 800; }
.h2 { font-size: clamp(25px, 4.6vw, 36px); }
.h3 { font-size: 19px; font-weight: 700; }

.lead-text {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--ink-soft);
  max-width: 720px;
}

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head { margin-bottom: 32px; }
.section-head .h2 { margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); max-width: 680px; }

.accent { color: var(--accent); }
.mono { font-family: var(--mono); }

.num-strong { font-family: var(--mono); font-weight: 700; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { font-size: 17px; padding: 17px 32px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow .arr { transition: transform .15s ease; }
.link-arrow:hover .arr { transform: translateX(3px); }

.note-under {
  font-size: 14px;
  color: var(--ink-mute);
  margin-top: 12px;
  max-width: 420px;
}

/* ---------- Хедер ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
  height: var(--header-h);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none !important;
}
.logo:hover { color: var(--ink); }
.logo-mark { flex: 0 0 auto; }

.nav {
  display: none;
  align-items: center;
  gap: 26px;
}
.nav a {
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); }

.header-cta { display: none; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 20px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn { margin-top: 14px; }

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 56px;
  background:
    linear-gradient(180deg, var(--accent-light) 0%, #fff 100%);
}

.hero-grid { display: grid; gap: 40px; }

.hero-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(15, 76, 129, .25);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, .6);
}

.hero .h1 { margin-bottom: 14px; }

.hero-sub {
  font-size: clamp(17px, 2.6vw, 20px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-desc { color: var(--ink-soft); max-width: 560px; margin-bottom: 28px; }

.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-actions .btn { width: 100%; }

.hero-secondary {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-mute);
}

/* Пайплайн «разговор → анализ → закономерность → решение» */

.pipeline { display: none; }

/* ---------- Карточки ---------- */

.grid { display: grid; gap: 14px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); border-color: rgba(15, 76, 129, .35); }

.card-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--ink-soft); }

.pain-list {
  list-style: none;
  margin-top: 10px;
  display: grid;
  gap: 7px;
}
.pain-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.pain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
}

/* ---------- Блок «Проблема»: что vs почему ---------- */

.vs-grid { display: grid; gap: 14px; }

.vs-card {
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}
.vs-card .vs-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.vs-what .vs-tag { color: var(--ink-mute); }
.vs-why .vs-tag { color: var(--accent); }
.vs-why { background: var(--accent-light); border-color: rgba(15, 76, 129, .3); }
.vs-card p { font-size: 17px; font-weight: 600; }
.vs-card .vs-note { font-size: 14.5px; font-weight: 400; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Сравнение А/Б ---------- */

.compare-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.compare-trigger .quote { font-style: italic; font-weight: 600; color: var(--ink); }
.compare-note { font-size: 15px; line-height: 1.55; color: var(--ink-soft); max-width: 760px; margin: 0 0 24px; }

.compare-grid { display: grid; gap: 14px; }

.talk-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.talk-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.talk-card-header h3 { font-size: 17px; }
.talk-b { border-color: rgba(21, 128, 61, .35); }
.talk-b .talk-card-header { background: var(--ok-bg); border-bottom-color: rgba(21, 128, 61, .2); }

.talk-rows { padding: 8px 22px 18px; display: grid; }
.talk-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.talk-row:last-of-type { border-bottom: none; }
.talk-row .k { color: var(--ink-soft); }
.talk-row .v { font-family: var(--mono); font-weight: 650; white-space: nowrap; }
.v-bad { color: var(--bad); }
.v-ok { color: var(--ok); }

.rapport {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.rapport .k { font-size: 15px; color: var(--ink-soft); flex: 0 0 auto; }
.rapport-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--line-soft);
  overflow: hidden;
}
.rapport-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--line);
  width: 0;
  transition: width 1s cubic-bezier(.22,.7,.3,1);
}
.talk-a .rapport-fill { background: #C9A227; }
.talk-b .rapport-fill { background: var(--ok); }
.rapport .v { font-family: var(--mono); font-weight: 700; font-size: 15px; flex: 0 0 auto; }

.talk-result {
  margin-top: auto;
  padding: 15px 22px;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.talk-a .talk-result { background: var(--bad-bg); color: var(--bad); border-top: 1px solid rgba(185, 28, 28, .15); }
.talk-b .talk-result { background: var(--ok-bg); color: var(--ok); border-top: 1px solid rgba(21, 128, 61, .18); }

/* ---------- Кейс: цифры ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}
.stat-card .stat-num {
  font-family: var(--mono);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}
.stat-card .stat-label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-mute);
}

.conversion {
  border: 1px solid rgba(15, 76, 129, .3);
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.conversion .conv-nums {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(40px, 10vw, 64px);
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.conversion .conv-nums .arrow { color: var(--ink-mute); font-size: .55em; vertical-align: middle; padding: 0 6px; }
.conversion .conv-caption {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.conv-bars { margin: 22px auto 0; max-width: 460px; display: grid; gap: 12px; }
.conv-bar-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.conv-bar-row .lbl {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: right;
}
.conv-bar-track { height: 14px; border-radius: 7px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.conv-bar-fill { height: 100%; width: 0; border-radius: 7px; transition: width 1.1s cubic-bezier(.22,.7,.3,1); }
.conv-bar-fill.before { background: #A8B4C2; }
.conv-bar-fill.after { background: var(--accent); }

/* ---------- Типы клиентов ---------- */

.types-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.type-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 14px 16px;
}
.type-chip .t-name { font-weight: 700; font-size: 15px; }
.type-chip .t-desc { font-size: 13.5px; color: var(--ink-mute); margin-top: 3px; }

.insight-quote {
  margin-top: 26px;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  font-size: clamp(16px, 2.4vw, 18px);
  font-weight: 600;
  color: var(--ink);
  max-width: 680px;
}

/* ---------- Вопросы руководителя ---------- */

.q-grid { display: grid; gap: 12px; }

.q-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: #fff;
}
.q-card .q-idx {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 3px;
}
.q-card p { font-weight: 650; font-size: 16px; }

/* ---------- Матрица ---------- */

.matrix-wrap { margin-top: 40px; }
.matrix-wrap .h3 { text-align: center; }

.matrix-table-wrap { display: none; }

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.matrix-table th, .matrix-table td {
  padding: 13px 14px;
  font-size: 14.5px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.matrix-table th {
  background: var(--bg-alt);
  font-weight: 650;
  color: var(--ink-soft);
  white-space: nowrap;
}
.matrix-table th:first-child, .matrix-table td:first-child { text-align: left; }
.matrix-table tr:last-child th, .matrix-table tr:last-child td { border-bottom: none; }

.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
}
.dot-g { background: #2E9E5B; }
.dot-y { background: #E3B341; }
.dot-r { background: #D2554B; }

.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-mute);
}
.matrix-legend span { display: inline-flex; align-items: center; gap: 7px; }

.matrix-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Мобильные карточки матрицы */
.matrix-cards { display: grid; gap: 12px; }
.mx-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #fff;
}
.mx-card .mx-name { font-weight: 700; margin-bottom: 10px; }
.mx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.mx-row:last-child { border-bottom: none; }

/* ---------- Процесс ---------- */

.steps { display: grid; gap: 14px; counter-reset: step; }

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 22px 20px 22px;
}
.step .step-num {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 8px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-soft); }

.start-small {
  margin-top: 34px;
  border: 1px solid rgba(15, 76, 129, .3);
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.start-small h3 { font-size: clamp(20px, 3.6vw, 26px); margin-bottom: 12px; }
.start-small p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 20px; }
.start-small p strong { color: var(--ink); }

/* ---------- Почему мы ---------- */

.why-grid { display: grid; gap: 12px; }
.why-card { border-top: 2px solid var(--accent); }

/* ---------- Стоимость ---------- */

.price-grid { display: grid; gap: 20px; }

.price-card {
  border: 1px solid rgba(15, 76, 129, .3);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px 24px;
}
.price-formula {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(26px, 5.4vw, 38px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-formula .plus { color: var(--ink-mute); font-size: .7em; padding: 0 4px; }

.price-example {
  margin-top: 20px;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.price-example .ex-label { font-size: 15px; color: var(--ink-soft); }
.price-example .ex-num { font-family: var(--mono); font-weight: 700; }
.price-example .ex-total { font-family: var(--mono); font-weight: 800; font-size: 22px; color: var(--accent); }

.price-lists { display: grid; gap: 18px; }
.price-list h4 {
  font-size: 13px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.price-list ul { list-style: none; display: grid; gap: 8px; }
.price-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-soft);
}
.price-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 800;
}
.price-excludes li::before {
  content: "+";
  position: absolute;
  left: 4px;
  color: var(--ink-mute);
  font-weight: 800;
}

.price-cta {
  margin-top: 26px;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}
.price-cta p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.price-cta p strong { color: var(--ink); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; max-width: 780px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 650;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details .faq-body {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.faq details[open] { border-color: rgba(15, 76, 129, .35); }

/* ---------- Финальный CTA + форма ---------- */

.lead-section {
  background: var(--accent);
  color: #fff;
  padding: 64px 0 72px;
}
.lead-section .section-label { color: rgba(255, 255, 255, .75); }
.lead-section .h2 { color: #fff; }
.lead-head { text-align: center; margin-bottom: 36px; }
.lead-head p {
  color: rgba(255, 255, 255, .85);
  font-size: clamp(16px, 2.6vw, 19px);
  font-weight: 550;
  margin-top: 10px;
}

.lead-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  color: var(--ink);
}

.form-grid { display: grid; gap: 16px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 7px;
}
.field label .req { color: var(--bad); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, .12);
}
.field input.invalid { border-color: var(--bad); }

.field-hint { font-size: 13px; color: var(--ink-mute); margin-top: 5px; }

.chips-fieldset { border: none; }
.chips-fieldset legend {
  font-size: 14px;
  font-weight: 650;
  padding: 0;
  margin-bottom: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.chip span {
  display: inline-block;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.chip input:checked + span {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 650;
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(15, 76, 129, .15); }

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-mute);
}
.consent input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent.invalid .consent-text { color: var(--bad); }

.form-error {
  display: none;
  font-size: 14px;
  color: var(--bad);
  background: var(--bad-bg);
  border: 1px solid rgba(185, 28, 28, .2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.form-error.show { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 26px 10px;
}
.form-success.show { display: block; }
.form-success .fs-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  margin: 0 auto 16px;
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); font-size: 15px; }

.lead-note {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
}

/* ---------- Футер ---------- */

.footer {
  background: #0D1B2A;
  color: rgba(255, 255, 255, .78);
  padding: 48px 0 90px; /* снизу запас под мобильную кнопку */
}
.footer-grid { display: grid; gap: 30px; }
.footer .logo { color: #fff; }
.footer-desc { font-size: 14.5px; margin-top: 14px; max-width: 320px; color: rgba(255, 255, 255, .6); }

.footer h4 {
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: 15px;
  padding: 5px 0;
}
.footer-col a:hover { color: #fff; }
.footer-contacts .fc-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 5px 0;
  font-size: 15px;
}
.footer-contacts .fc-row a { display: inline; padding: 0; }

.footer-bottom a {
  color: rgba(255, 255, 255, .65);
}
.footer-bottom a:hover { color: #fff; }

.footer-bottom {
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  display: grid;
  gap: 8px;
}

/* ---------- Фиксированная мобильная кнопка ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; padding: 14px 20px; }

/* ---------- Появление при скролле ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rapport-fill, .conv-bar-fill { transition: none; }
}

/* ---------- Страница кейса ---------- */

.case-hero {
  padding: 44px 0 40px;
  background: linear-gradient(180deg, var(--accent-light) 0%, #fff 100%);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.case-meta span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(15, 76, 129, .25);
  border-radius: 999px;
  padding: 6px 13px;
  background: #fff;
}

.case-body .section { padding: 44px 0; }
.case-section-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.case-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.case-body h2 { font-size: clamp(22px, 4vw, 30px); margin-bottom: 16px; }
.case-body p { color: var(--ink-soft); max-width: 720px; margin-bottom: 14px; font-size: 16.5px; }
.case-body p strong { color: var(--ink); }

.case-quote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 18px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  max-width: 680px;
  margin: 20px 0;
}

.case-cta {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.case-cta h2 { color: #fff; margin-bottom: 12px; }
.case-cta p { color: rgba(255, 255, 255, .85); margin-bottom: 26px; }

/* ---------- Юрстраницы ---------- */

.legal { padding: 44px 0 72px; }
.legal h1 { font-size: clamp(26px, 5vw, 34px); margin-bottom: 22px; }
.legal h2 { font-size: 20px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 10px; max-width: 760px; }
.legal ul { padding-left: 22px; }
.legal .updated { font-size: 13.5px; color: var(--ink-mute); margin-bottom: 26px; }

/* ============================================================
   Планшет и desktop
   ============================================================ */

@media (min-width: 640px) {
  .section { padding: 72px 0; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .types-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-actions { flex-direction: row; align-items: center; gap: 22px; }
  .hero-actions .btn { width: auto; }
}

@media (min-width: 720px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .burger, .mobile-nav { display: none; }

  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .pipeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow);
  }
  .pipeline-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .pipeline-title:hover { text-decoration: underline; }
  .pipeline-title .pipeline-title-arrow { transition: transform .2s ease; }
  .pipeline-title:hover .pipeline-title-arrow { transform: translateX(3px); }
  .pipeline-node {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    background: #fff;
  }
  .pipeline-node .pn-num {
    font-family: var(--mono);
    font-size: 19px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
  }
  .pipeline-node .pn-label { font-size: 13.5px; color: var(--ink-mute); margin-top: 2px; }
  .pipeline-node.accent {
    background: var(--accent);
    border-color: var(--accent);
  }
  .pipeline-node.accent .pn-num { color: #fff; font-size: 16px; font-weight: 700; }
  .pipeline-node.accent .pn-label { color: rgba(255, 255, 255, .8); }
  .pipeline-arrow {
    align-self: center;
    color: var(--ink-mute);
    font-size: 17px;
    line-height: 1;
    padding: 5px 0;
  }

  .vs-grid { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }

  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { min-height: 190px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .price-grid { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .price-lists { grid-template-columns: 1fr; }

  .matrix-cards { display: none; }
  .matrix-table-wrap { display: block; }

  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field-full { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer { padding-bottom: 48px; }
  .sticky-cta { display: none; }
  .case-body .section { padding: 56px 0; }
}

@media (min-width: 1024px) {
  .types-grid { grid-template-columns: repeat(4, 1fr); }
  .types-grid .type-chip:last-child { grid-column: span 1; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
