/* Контроп — стили лендинга controp.ru. Версия 1.0.0 · 03.12.2026.
   Основа — лендинг «Аудит роста прибыли» 0.2.2: те же токены, разделы и эффекты; окна выбора канала нет,
   заявка — форма «сайт + телефон» (раздел «заявка» ниже).
   Светлая тема основная, темная — по prefers-color-scheme на тех же токенах.
   Шрифт — локальный Inter из /fonts, внешних зависимостей нет. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ff: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --bg: #F6F8FB;
  --bg-white: #FFFFFF;
  --bg-tint: #EDF1F7;
  --surface: #FFFFFF;
  --surface-2: #F8FAFD;
  --line: rgba(15, 27, 61, .09);
  --line-2: rgba(15, 27, 61, .16);
  --grid: rgba(15, 27, 61, .055);

  --ink: #0F1B3D;
  --text: #2E3A57;
  --muted: #5B6783;

  --accent: #2E5BFF;
  --accent-hover: #2149E0;
  --accent-text: #2447D6;
  --accent-soft: #EAF0FF;
  --accent-line: rgba(46, 91, 255, .22);
  --accent-ring: rgba(46, 91, 255, .22);
  --focus: #2E5BFF;

  --win: #0F7A4E;
  --win-bar: #22A86B;
  --win-soft: #E5F6EE;
  --loss: #C23A2F;
  --loss-bar: #E8594C;
  --loss-soft: #FDEEEC;
  --loss-track: #F8D9D5;
  --warn-ink: #855600;
  --warn-soft: #FFF3D6;
  --track: #E7ECF3;
  --chip-bg: #EEF2F8;
  --tab-on: #FFFFFF;

  --head-bg: #0F1B3D;
  --head-line: rgba(255, 255, 255, .09);
  --head-link: rgba(255, 255, 255, .8);
  --dock-bg: rgba(255, 255, 255, .94);
  --final-bg: #0F1B3D;
  --ava-1: #0F1B3D;
  --ava-2: #2E5BFF;

  --shadow-sm: 0 1px 2px rgba(15, 27, 61, .05);
  --shadow: 0 1px 2px rgba(15, 27, 61, .04), 0 12px 32px -14px rgba(15, 27, 61, .18);
  --shadow-lg: 0 2px 4px rgba(15, 27, 61, .04), 0 28px 64px -24px rgba(15, 27, 61, .30);

  --head-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1020;
    --bg-white: #0D1528;
    --bg-tint: #0F1830;
    --surface: #121B31;
    --surface-2: #0F172B;
    --line: rgba(226, 232, 245, .09);
    --line-2: rgba(226, 232, 245, .16);
    --grid: rgba(226, 232, 245, .045);

    --ink: #F0F4FB;
    --text: #C9D2E3;
    --muted: #96A3BD;

    --accent: #3D66F7;
    --accent-hover: #5277FF;
    --accent-text: #9DB4FF;
    --accent-soft: rgba(61, 102, 247, .16);
    --accent-line: rgba(125, 155, 255, .28);
    --accent-ring: rgba(93, 130, 255, .35);
    --focus: #8FA9FF;

    --win: #52DB9C;
    --win-bar: #2FBF7F;
    --win-soft: rgba(47, 191, 127, .15);
    --loss: #FF8F82;
    --loss-bar: #F2685B;
    --loss-soft: rgba(242, 104, 91, .14);
    --loss-track: rgba(242, 104, 91, .22);
    --warn-ink: #FFD27A;
    --warn-soft: rgba(255, 196, 77, .14);
    --track: rgba(226, 232, 245, .10);
    --chip-bg: rgba(226, 232, 245, .08);
    --tab-on: #26345A;

    --head-bg: #0C1427;
    --head-line: rgba(255, 255, 255, .08);
    --dock-bg: rgba(13, 21, 40, .92);
    --final-bg: #13203F;
    --ava-1: #2A3B66;
    --ava-2: #3D66F7;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 64px -24px rgba(0, 0, 0, .75);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
b, strong { font-weight: 650; }
svg { display: block; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.nb { white-space: nowrap; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-fill { fill: currentColor; stroke: none; }

/* ── кнопки ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 16px/1 var(--ff); letter-spacing: -0.005em; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-lg { height: 56px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn-apply {
  background: var(--accent); color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15, 27, 61, .18), 0 10px 22px -10px rgba(46, 91, 255, .6);
}
.btn-apply:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-apply:active { transform: none; }
.btn-apply .i { width: 21px; height: 21px; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn-ghost .i { width: 19px; height: 19px; }

/* ── шапка ────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--head-bg); color: #FFFFFF;
  border-bottom: 1px solid var(--head-line);
  transition: box-shadow .2s ease;
}
.top.scrolled { box-shadow: 0 10px 30px -18px rgba(5, 10, 25, .7); }
.top-in { height: var(--head-h); display: flex; align-items: center; gap: 20px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: #FFFFFF; text-decoration: none; font-size: 17px; font-weight: 650;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand svg { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) {
  color: var(--head-link); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 9px; border-radius: 8px; white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:not(.btn):hover { color: #FFFFFF; background: rgba(255, 255, 255, .08); }
.nav .btn { margin-left: 12px; height: 42px; padding: 0 16px; font-size: 15px; border-radius: 11px; }
.nav .btn .i { width: 19px; height: 19px; }
.top :focus-visible { outline-color: #9DB4FF; }

.burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -6px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 11px;
  background: transparent; color: #FFFFFF; cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1199.98px) {
  .burger { display: inline-flex; }
  .nav {
    display: none; position: fixed; left: 0; right: 0; top: var(--head-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 16px 20px; background: var(--head-bg);
    border-bottom: 1px solid var(--head-line);
    box-shadow: 0 28px 48px -24px rgba(5, 10, 25, .6);
    max-height: calc(100vh - var(--head-h)); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) {
    font-size: 17px; padding: 14px 6px; border-radius: 0;
    border-bottom: 1px solid var(--head-line);
  }
  .nav .btn { margin: 18px 0 0; height: 54px; font-size: 17px; border-radius: 14px; }
  .nav .btn .i { width: 21px; height: 21px; }
}
@media (min-width: 720px) and (max-width: 1199.98px) {
  .nav { left: auto; width: 360px; border-left: 1px solid var(--head-line); border-radius: 0 0 0 16px; }
}

/* ── первый экран ─────────────────────────────────────── */
.hero { position: relative; overflow: hidden; overflow: clip; padding: 76px 0 96px; background: var(--bg); }
.hero::before {
  content: none; display: none; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 72% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 75% at 72% 35%, #000 25%, transparent 75%);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--accent-text);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 7px 14px 7px 12px; border-radius: 999px;
}
.kicker::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--win-bar); box-shadow: 0 0 0 4px var(--win-soft); }
.hero h1 {
  margin-top: 22px; font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4rem);
  line-height: 1.03; letter-spacing: -0.032em; font-weight: 750;
}
.hero-lead { margin-top: 20px; max-width: 32em; font-size: clamp(1.1875rem, 1.06rem + .45vw, 1.375rem); line-height: 1.5; color: var(--text); }
.hero-form { margin-top: 28px; max-width: 620px; }
.hero .fine { margin-top: 16px; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -12% -8% -12% -8%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(46, 91, 255, .16), transparent 72%);
}
.report-back {
  position: absolute; left: 7%; right: 7%; bottom: -14px; height: 60px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  opacity: .75; box-shadow: var(--shadow);
}
.report {
  position: relative; max-width: 470px; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 20px 24px 24px;
  animation: rise .7s .1s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.report-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.report-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--win-bar); box-shadow: 0 0 0 4px var(--win-soft); }
.report-title { font-weight: 650; font-size: 17px; color: var(--ink); }
.report-head .chip { margin-left: auto; }
.rr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 16px; }
.rr-l { color: var(--muted); }
.rr-v { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.rr-win .rr-v { color: var(--win); }
.rr-loss .rr-v b { color: var(--loss); font-weight: 700; }
.split { flex-basis: 100%; height: 8px; margin-top: 6px; border-radius: 4px; background: var(--loss-track); overflow: hidden; }
.split i { display: block; height: 100%; width: var(--w); background: var(--win-bar); border-radius: 4px; }
.report-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-top: 18px; }
.report-total span { font-weight: 650; color: var(--ink); }
.report-total strong { font-size: 40px; line-height: 1.05; letter-spacing: -0.025em; color: var(--loss); font-weight: 750; font-variant-numeric: tabular-nums; }

/* ── общие части разделов ─────────────────────────────── */
.sec { padding: 96px 0; --card: var(--surface); --card-shadow: var(--shadow); }
.sec-white { background: var(--bg-white); --card: var(--surface-2); --card-shadow: none; }
.sec-tint { background: var(--bg-tint); }
.sec-head { max-width: 760px; }
.sec h2 { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.75rem); line-height: 1.1; letter-spacing: -0.026em; }
.sec-lead { margin-top: 16px; font-size: 19px; line-height: 1.55; color: var(--text); max-width: 44em; }
.fine { font-size: 15px; line-height: 1.5; color: var(--muted); }
.fine-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; }
.fine-row .i { width: 19px; height: 19px; margin-top: 1px; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 14px; font-weight: 600; line-height: 1; padding: 7px 11px; border-radius: 999px;
}
.chip-demo { background: var(--warn-soft); color: var(--warn-ink); }
.chip-demo .i { width: 15px; height: 15px; }

/* ── что вы получите ──────────────────────────────────── */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px 28px; box-shadow: var(--card-shadow);
}
.feat-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); margin-bottom: 20px;
}
.feat-ico.ico-loss { background: var(--loss-soft); color: var(--loss); }
.feat-ico.ico-win { background: var(--win-soft); color: var(--win); }
.feat h3 { font-size: 20px; letter-spacing: -0.015em; }
.feat p { margin-top: 10px; font-size: 16px; line-height: 1.55; }

/* ── из чего состоит аудит ────────────────────────────── */
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 44px; }
.col {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: 30px 30px 28px; box-shadow: var(--card-shadow);
  border-top: 4px solid var(--win-bar);
}
.col-in { border-top-color: var(--accent); }
.col-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; }
.col-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--win-soft); color: var(--win); }
.col-in .col-ico { background: var(--accent-soft); color: var(--accent-text); }
.col-head h3 { font-size: 23px; letter-spacing: -0.02em; }
.badge { display: inline-flex; font-size: 14px; font-weight: 600; line-height: 1.3; padding: 6px 11px; border-radius: 999px; background: var(--win-soft); color: var(--win); }
.col-in .badge { background: var(--accent-soft); color: var(--accent-text); }
.olist { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: 14px; }
.olist li { counter-increment: n; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 16.5px; line-height: 1.5; }
.olist li::before {
  content: counter(n); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--ink); background: var(--chip-bg); font-variant-numeric: tabular-nums;
}
.olist b { color: var(--ink); }
.funnel { display: inline; }
.funnel span {
  display: inline-block; padding: 1px 8px; margin: 2px 0; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent-text); font-weight: 600; font-size: 15px;
}
.col-sum {
  margin-top: auto; padding: 16px 18px; border-radius: 14px; font-size: 16px; line-height: 1.5;
  background: var(--win-soft); color: var(--ink);
}
.col .olist { margin-bottom: 24px; }
.col-in .col-sum { background: var(--accent-soft); }

/* ── пример отчета ────────────────────────────────────── */
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-top: 32px;
  border-radius: 15px; background: var(--chip-bg); border: 1px solid var(--line);
}
.tab {
  appearance: none; -webkit-appearance: none; border: 0; margin: 0; cursor: pointer;
  min-height: 46px; padding: 11px 18px; border-radius: 11px;
  background: transparent; color: var(--muted); font: 600 16px/1.2 var(--ff);
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--tab-on); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 27, 61, .08), 0 4px 12px -4px rgba(15, 27, 61, .18); }
.tab:focus-visible { outline-offset: 1px; }
.panel { margin-top: 18px; }
.panel[hidden] { display: none; }
html:not(.js) .panel[hidden] { display: block; }
html:not(.js) .tabs { display: none; }
.panel:focus-visible { outline-offset: 4px; border-radius: 20px; }

.dash { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.dash-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.dash-head h3 { font-size: 19px; letter-spacing: -0.015em; }
.dash-head .chip { margin-left: auto; }
.dash-body { display: grid; gap: 20px; padding: 24px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpi {
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 108px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface);
}
.kpi-l { font-size: 15px; line-height: 1.3; color: var(--muted); }
.kpi-v {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  font-size: 36px; font-weight: 750; line-height: 1; letter-spacing: -0.025em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi-win { background: var(--win-soft); border-color: transparent; }
.kpi-win .kpi-v { color: var(--win); }
.kpi-pct { font-size: 17px; font-weight: 700; letter-spacing: 0; }
.dash-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.blk { border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 22px; background: var(--surface); min-width: 0; }
.blk h4 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 14px; }
.blk h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .6; }
.blk-loss { border-color: var(--loss-track); }
.blk-loss h4::before, .blk-why h4::before { background: var(--loss-bar); opacity: 1; }
.blk-shift h4::before { background: var(--win-bar); opacity: 1; }
.blk-todo h4::before { background: var(--accent); opacity: 1; }

.lt { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.lt th, .lt td { padding: 11px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lt thead th { padding-top: 0; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lt thead th + th, .lt td { text-align: right; padding-left: 14px; }
.lt td { white-space: nowrap; color: var(--ink); font-weight: 600; }
.lt td.sum { color: var(--loss); font-weight: 700; }
.lt tbody th { font-weight: 500; color: var(--ink); }
.lt .bar { display: block; width: var(--w); height: 5px; margin-top: 8px; border-radius: 3px; background: var(--loss-bar); transform-origin: left center; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.total {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px;
  margin-top: 16px; padding: 16px 18px; border-radius: 13px; background: var(--loss-soft);
}
.total span { font-weight: 650; color: var(--ink); }
.total strong { font-size: clamp(32px, 2rem + 1vw, 42px); font-weight: 750; line-height: 1; letter-spacing: -0.025em; color: var(--loss); font-variant-numeric: tabular-nums; }

.bars-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 7px 14px; }
.bars .bl { font-size: 16px; line-height: 1.35; color: var(--ink); }
.bars .bn { font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.bars .bt { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.bars .bt i { display: block; height: 100%; width: var(--w); border-radius: 5px; background: var(--loss-bar); transform-origin: left center; transition: transform .75s cubic-bezier(.2, .7, .2, 1); }
.bars-win .bt i { background: var(--win-bar); }
.bars-win .bn { font-weight: 500; color: var(--muted); }
.bars-win .bn b { color: var(--ink); font-weight: 700; }
.bars-win .bl { font-weight: 600; }
.who { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--chip-bg); color: var(--ink); font-weight: 700; font-size: 15px; }

.todo { list-style: none; counter-reset: t; margin: 0; padding: 0; display: grid; gap: 13px; }
.todo li { counter-increment: t; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.todo li::before {
  content: counter(t); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; background: var(--accent-soft); color: var(--accent-text);
}
.todo a { color: var(--accent-text); text-underline-offset: 3px; }
.dash-note { padding-top: 2px; }

.panel.prep .bar, .panel.prep .bt i { transform: scaleX(0); transition: none; }

/* ── разбор звонка ────────────────────────────────────── */
.call { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.call-top { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.call-ava { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.call-ava .i { width: 20px; height: 20px; }
.call-meta { font-weight: 600; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.wave { margin-left: auto; width: 230px; height: 30px; color: var(--accent); opacity: .5; flex: none; }
.call-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.facts { margin: 0; padding: 24px; display: grid; gap: 18px; align-content: start; border-right: 1px solid var(--line); }
.facts dt { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.facts .lost { color: var(--loss); font-weight: 650; }
.score { padding: 24px; display: grid; gap: 22px; align-content: start; }
.ring { display: flex; align-items: center; gap: 18px; }
.ring-box { position: relative; width: 88px; height: 88px; flex: none; }
.ring-box svg { width: 88px; height: 88px; transform: rotate(-90deg); }
.ring-box .track { stroke: var(--track); }
.ring-box .arc { stroke: var(--loss-bar); }
.ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring-n { font-size: 30px; font-weight: 750; color: var(--loss); letter-spacing: -0.02em; }
.ring-of { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; color: var(--muted); }
.score-l { font-size: 16px; font-weight: 650; color: var(--ink); }
.score-v { font-size: 16px; font-weight: 700; color: var(--loss); font-variant-numeric: tabular-nums; }
.seg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.facts > div { min-width: 0; }
.segs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 10px; }
.segs i { height: 10px; border-radius: 3px; background: var(--loss-track); }
.segs i.on { background: var(--win-bar); }
.checks-wrap { padding: 22px 24px 24px; border-top: 1px solid var(--line); }
.checks-wrap h4, .next h4 { font-size: 15px; font-weight: 650; color: var(--muted); letter-spacing: 0; margin-bottom: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 28px; }
.checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 11px; align-items: start; font-size: 16px; line-height: 1.45; color: var(--ink); }
.ck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-top: -1px; }
.ck .i { width: 15px; height: 15px; stroke-width: 2.6; }
.ck-ok { background: var(--win-soft); color: var(--win); }
.ck-no { background: var(--loss-soft); color: var(--loss); }
.next { padding: 22px 24px 26px; border-top: 1px solid var(--line); background: var(--surface-2); }
.next h4 { color: var(--accent-text); }
.next blockquote { margin: 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent); font-size: 19px; line-height: 1.55; font-weight: 500; color: var(--ink); max-width: 46em; }

/* ── калькулятор ──────────────────────────────────────── */
.calc {
  margin-top: 40px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.calc-fields { display: grid; gap: 20px; align-content: start; padding: 30px; background: var(--surface-2); border-right: 1px solid var(--line); }
/* ползунки калькулятора: крупное значение, дорожка 8 px с заливкой до ручки, ручка 30 px, зона касания 44 px */
.presets { display: grid; gap: 8px; }
.presets-l { font-size: 14px; font-weight: 600; color: var(--muted); }
.presets-row { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
  appearance: none; -webkit-appearance: none; margin: 0; min-height: 40px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 15px/1.2 var(--ff);
  white-space: nowrap; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.preset:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.preset[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.sl { display: grid; gap: 2px; }
.sl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.sl-l { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.sl-v {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0 -8px 0 0; padding: 4px 8px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font: 750 26px/1.15 var(--ff); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  white-space: nowrap; cursor: text; text-decoration: underline dotted var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.sl-v:hover { background: var(--accent-soft); }
.sl-edit {
  flex: none; width: 6.2em; margin: 0; padding: 6px 10px; border: 2px solid var(--accent); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 750 22px/1.15 var(--ff); text-align: right; font-variant-numeric: tabular-nums;
}
.sl-edit[hidden] { display: none; }
.sl-edit:focus { outline: none; box-shadow: 0 0 0 4px var(--accent-ring); }
.sl-edit::-webkit-outer-spin-button, .sl-edit::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sl-range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; padding: 0;
  background: transparent; cursor: pointer; touch-action: pan-y; --fill: 50%;
}
.sl-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) 0 var(--fill), var(--track) var(--fill) 100%); }
.sl-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%;
  background: #FFFFFF; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(15, 27, 61, .28); transition: transform .15s ease, box-shadow .15s ease;
}
.sl-range:active::-webkit-slider-thumb { transform: scale(1.08); }
.sl-range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--track); }
.sl-range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--accent); }
.sl-range::-moz-range-thumb {
  box-sizing: border-box; width: 30px; height: 30px; border-radius: 50%; background: #FFFFFF; border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(15, 27, 61, .28);
}
.sl-range:focus { outline: none; }
.sl-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--accent-ring), 0 2px 8px rgba(15, 27, 61, .28); }
.sl-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px var(--accent-ring), 0 2px 8px rgba(15, 27, 61, .28); }
.sl-mm { display: flex; justify-content: space-between; margin-top: -6px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc-res { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px 36px; min-width: 0; }
.calc-cap { font-size: 18px; font-weight: 600; color: var(--ink); }
.calc-sum {
  display: block; font-size: clamp(42px, 1.6rem + 3vw, 64px); font-weight: 750; line-height: 1;
  letter-spacing: -0.035em; color: var(--loss); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.calc-sum.long { font-size: clamp(32px, 1.2rem + 2.2vw, 50px); }
.calc-sum.xlong { font-size: clamp(26px, 1rem + 1.6vw, 40px); }
.calc-line { font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--text); }

/* ── как проходит ─────────────────────────────────────── */
.tl-list { position: relative; list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.tl-list::before {
  content: ""; position: absolute; top: 21px; left: 22px; right: calc((100% - 96px) / 5 - 22px); height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--win-bar)); opacity: .35;
}
.tl { position: relative; min-width: 0; }
.tl-n {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--accent); color: var(--accent-text); font-weight: 750; font-size: 17px;
  box-shadow: 0 0 0 6px var(--bg-white);
}
.tl:last-child .tl-n { background: var(--win-bar); border-color: var(--win-bar); color: #FFFFFF; }
.tl h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 20px; font-size: 20px; letter-spacing: -0.015em; }
.tl-time { font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.3; padding: 4px 9px; border-radius: 999px; background: var(--chip-bg); color: var(--text); }
.tl p { margin-top: 10px; font-size: 16px; line-height: 1.55; }

/* ── кто делает ───────────────────────────────────────── */
.people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 40px; }
.person {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "ava head" "ava text"; gap: 12px 20px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--card-shadow);
}
.ava {
  position: relative; overflow: hidden; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  color: #FFFFFF; font-weight: 700; font-size: 24px; letter-spacing: .02em; background: var(--ava-1);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-2);
}
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: transform .25s ease; }
button.ava { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; font: inherit; cursor: pointer; }
button.ava:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 50%; }
@media (hover: hover) and (pointer: fine) {
  button.ava { cursor: zoom-in; }
  button.ava:hover img { transform: scale(1.05); }
}

/* фото крупно — тот же вид, что у окна каналов */
html.zoom-open { overflow: hidden; }
html.zoom-open .cookie { display: none; }
dialog.zoom {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; background: transparent; color: var(--text);
  width: min(90vw, 560px); max-width: 560px; height: fit-content; max-height: calc(100vh - 24px); overflow: visible;
}
dialog.zoom::backdrop { background: rgba(8, 14, 30, .8); }
.zoom-box { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 12px 12px 16px; }
.zoom-x {
  position: absolute; top: 20px; right: 20px; z-index: 1; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(15, 27, 61, .16);
  background: rgba(255, 255, 255, .92); color: #0F1B3D; cursor: pointer;
}
.zoom-x:hover { background: #FFFFFF; }
.zoom-x .i { width: 20px; height: 20px; }
.zoom-fig { margin: 0; }
.zoom-img {
  display: block; width: min(100%, calc(100vh - 150px)); height: auto; aspect-ratio: 1 / 1; margin: 0 auto;
  object-fit: cover; border-radius: 16px; background: var(--chip-bg) center / cover no-repeat;
}
.zoom-fig figcaption { display: grid; gap: 2px; padding: 12px 6px 0; }
.zoom-fig figcaption b { font-size: 19px; font-weight: 650; color: var(--ink); }
.zoom-fig figcaption span { font-size: 15px; font-weight: 600; color: var(--accent-text); }
.fx dialog.zoom[open] { animation: fxLeadIn .26s cubic-bezier(.2, .8, .2, 1); }
.fx dialog.zoom[open]::backdrop { animation: fxFade .26s ease; }
.fx dialog.zoom.closing { animation: fxLeadOut .2s ease-in both; }
.fx dialog.zoom.closing::backdrop { animation: fxFade .2s ease reverse both; }

.person:nth-child(2) .ava { background: var(--ava-2); }
.person .ava { grid-area: ava; }
.person-head { grid-area: head; }
.person-text { grid-area: text; font-size: 16.5px; line-height: 1.55; }
.person h3 { font-size: 22px; letter-spacing: -0.02em; }
.role { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--accent-text); }


/* ── вопросы ──────────────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.faq { border-top: 1px solid var(--line-2); }
@media (min-width: 961px) { .faq-wrap > .sec-head { position: sticky; top: calc(var(--head-h) + 20px); } }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 650; line-height: 1.4; color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa-ico { border-color: var(--accent-line); background: var(--accent-soft); }
.qa-ico {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--ink); transition: transform .2s ease, background-color .2s ease;
}
.qa-ico::before, .qa-ico::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; border-radius: 2px;
  background: currentColor; transform: translate(-50%, -50%);
}
.qa-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa-ico { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.qa-a { padding: 0 52px 22px 2px; font-size: 17px; line-height: 1.6; color: var(--text); }

/* ── заявка и подвал ──────────────────────────────────── */
.final { padding: 24px 0 96px; }
.final-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center;
  padding: 60px 56px; border-radius: 26px; background: var(--final-bg); color: #D6DEEE;
  border: 1px solid rgba(255, 255, 255, .06); box-shadow: var(--shadow-lg);
}
.final-card::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 70%; height: 180%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(61, 102, 247, .35), transparent 70%);
}
.final-card > * { position: relative; }
.final-card h2 { color: #FFFFFF; font-size: clamp(1.875rem, 1.2rem + 2.3vw, 3rem); line-height: 1.08; letter-spacing: -0.028em; }
.final-text p { margin-top: 18px; font-size: 18px; line-height: 1.55; color: #C9D3E8; max-width: 32em; }
.final-text :focus-visible { outline-color: #9DB4FF; }

.foot { padding: 28px 0 44px; border-top: 1px solid var(--line); background: var(--bg); }
.foot p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.foot p + p { margin-top: 4px; }
.foot a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.foot a:hover { text-decoration-color: currentColor; }

/* ── закрепленная кнопка заявки ───────────────────────── */
.dock {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.dock.show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.dock .btn { box-shadow: 0 2px 6px rgba(15, 27, 61, .2), 0 18px 36px -14px rgba(46, 91, 255, .7); }

/* ── адаптив ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .tl-list::before { display: none; }
}
@media (max-width: 960px) {
  .hero { padding: 40px 0 64px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .report { margin: 0 auto; }
  .dash-row, .call-grid, .calc, .people, .faq-wrap, .final-card { grid-template-columns: minmax(0, 1fr); }
  .facts { border-right: 0; border-bottom: 1px solid var(--line); }
  .calc-fields { border-right: 0; border-bottom: 1px solid var(--line); }
  .faq-wrap { gap: 28px; }
  .final-card { gap: 32px; padding: 44px 32px; }
  .tl-list { grid-template-columns: minmax(0, 1fr); gap: 0; row-gap: 0; }
  .tl-list::before {
    display: block; top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--accent), var(--win-bar));
  }
  .tl { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: 30px; }
  .tl:last-child { padding-bottom: 0; }
  .tl h3 { margin-top: 8px; }
}
@media (max-width: 719.98px) {
  .dock {
    left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--dock-bg); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 -12px 30px -20px rgba(15, 27, 61, .45); transform: translateY(100%);
  }
  .dock .btn { width: 100%; height: 54px; box-shadow: none; }
  .dock.show { transform: none; }
}
@media (max-width: 420px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-win { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 640px) {
  :root { --head-h: 60px; }
  .wrap { padding: 0 16px; }
  .brand { font-size: 16px; }
  .brand svg { width: 28px; height: 28px; }
  .sec { padding: 64px 0; }
  .sec-lead { font-size: 17.5px; }
  .hero { padding: 18px 0 56px; }
  .hero h1 { margin-top: 14px; }
  .hero-lead { margin-top: 12px; }
  .hero-form { margin-top: 20px; }
  .hero .fine { margin-top: 12px; }
  .kicker { font-size: 14px; border-radius: 16px; align-items: flex-start; }
  .kicker::before { margin-top: 6px; }
  .report { padding: 18px 18px 20px; border-radius: 18px; }
  .rr { font-size: 15.5px; }
  .report-total strong { font-size: 36px; }
  .grid4 { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 30px; }
  .feat { padding: 20px 18px 22px; }
  .feat-ico { width: 44px; height: 44px; }
  .feat-top { margin-bottom: 16px; }
  .cols2 { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 30px; }
  .col { padding: 24px 18px 20px; border-radius: 18px; }
  .col-head h3 { font-size: 21px; }
  .olist li { font-size: 16px; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; }
  .tab { min-height: 54px; padding: 8px 6px; font-size: 15px; line-height: 1.2; text-wrap: balance; }
  .dash { border-radius: 18px; }
  .dash-head { padding: 16px; }
  .dash-head .chip { margin-left: 0; }
  .dash-body { padding: 16px; gap: 16px; }
  .kpis { gap: 8px; }
  .kpi { padding: 12px 10px; min-height: 96px; border-radius: 13px; }
  .kpi-l { font-size: 14px; }
  .kpi-v { font-size: 28px; }
  .kpi-pct { font-size: 15px; }
  .blk { padding: 16px 14px 18px; border-radius: 14px; }
  .lt { font-size: 15px; }
  .lt thead th + th, .lt td { padding-left: 10px; }
  .total { padding: 14px; }
  .bars .bl, .bars .bn { font-size: 15px; }
  .call { margin-top: 30px; border-radius: 18px; }
  .call-top { padding: 16px; }
  .wave { display: none; }
  .facts, .score { padding: 18px 16px; }
  .facts dd { font-size: 16px; }
  .checks-wrap { padding: 18px 16px 20px; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .next { padding: 18px 16px 22px; }
  .next blockquote { font-size: 17.5px; padding-left: 14px; }
  .calc { margin-top: 30px; border-radius: 18px; }
  .calc-fields { padding: 20px 16px; gap: 14px; }
  .presets-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .presets-row::-webkit-scrollbar { display: none; }
  .sl-v { font-size: 23px; }
  .sl-l { font-size: 14.5px; }
  .calc-res { padding: 24px 16px 26px; }
  .calc-cap { font-size: 17px; }
  .calc-sum { font-size: clamp(36px, 10.5vw, 44px); }
  .calc-sum.long { font-size: clamp(28px, 8vw, 36px); }
  .calc-sum.xlong { font-size: clamp(22px, 6.4vw, 30px); }
  .tl-list { margin-top: 32px; }
  .people { gap: 16px; margin-top: 30px; }
  .person { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 22px 18px; }
  .ava { width: 64px; height: 64px; font-size: 21px; }
  .person h3 { font-size: 20px; }
  .person { grid-template-areas: "ava head" "text text"; align-items: center; row-gap: 16px; }
  .person-text { font-size: 16px; }
  .qa summary { font-size: 17px; padding: 18px 0; }
  .qa-a { padding: 0 0 20px; font-size: 16.5px; }
  .final { padding: 8px 0 64px; }
  .final-card { padding: 32px 20px; border-radius: 22px; }
  .final-text p { font-size: 17px; }
  .foot { padding: 24px 0 36px; }
}

/* ── узнаете себя ─────────────────────────────────────── */
.pains-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: start; margin-top: 36px; }
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pain {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 64px;
  padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 15px; background: var(--surface);
  font-size: 17px; line-height: 1.4; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.pain:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.pain input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pain .box {
  flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  border: 2px solid var(--line-2); background: var(--surface); color: transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pain .box .i { width: 17px; height: 17px; stroke-width: 3; }
.pain.is-on, .pain:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pain.is-on .box, .pain:has(input:checked) .box { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pain:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pains-sum {
  display: grid; gap: 14px; padding: 24px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s ease, background-color .2s ease;
}
.pains-sum.hit { border-color: var(--accent-line); background: var(--accent-soft); }
.pains-count { font-size: 16px; font-weight: 600; color: var(--muted); }
.pains-count b { font-size: 26px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; margin: 0 2px; }
.pains-segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.pains-segs i { position: relative; overflow: hidden; height: 8px; border-radius: 4px; background: var(--track); }
.pains-segs i::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.pains-segs i.on::after { transform: scaleX(1); }
.pains-note { font-size: 17px; line-height: 1.5; color: var(--ink); }
.pains-sum .btn { width: 100%; margin-top: 4px; }

/* ── расшифровка звонка ───────────────────────────────── */
.chat-wrap { padding: 22px 24px 24px; border-top: 1px solid var(--line); }
.chat-wrap h4 { font-size: 15px; font-weight: 650; color: var(--muted); letter-spacing: 0; margin-bottom: 14px; }
.chat { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chat li { display: grid; gap: 4px; max-width: min(72%, 560px); }
.chat .say-r { justify-self: end; text-align: right; }
.chat .who-l { font-size: 14px; font-weight: 600; color: var(--muted); }
.chat p { padding: 11px 15px; border-radius: 16px 16px 16px 5px; background: var(--chip-bg); color: var(--ink); font-size: 16px; line-height: 1.45; text-align: left; }
.chat .say-r p { border-radius: 16px 16px 5px 16px; background: var(--accent-soft); }
.tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px;
  background: var(--loss-soft); color: var(--loss); font-size: 14px; font-weight: 600; line-height: 1.3;
}
.tags .i { width: 15px; height: 15px; stroke-width: 2.6; }

/* ── калькулятор: подпись и источник ──────────────────── */
.calc-sum-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.chip-est { background: var(--chip-bg); color: var(--muted); white-space: normal; line-height: 1.25; }
.calc-notes { display: grid; gap: 10px; margin-top: 22px; }
.calc-notes .fine-row { margin-top: 0; }
.src { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; white-space: nowrap; }
.src:hover { text-decoration-color: currentColor; }
.src .i { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-left: 2px; }

@media (max-width: 960px) {
  .pains-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; }
}
@media (max-width: 640px) {
  .pain { font-size: 16px; padding: 12px 14px; gap: 14px; min-height: 60px; }
  .pains-sum { padding: 20px 16px; }
  .chat-wrap { padding: 18px 16px 20px; }
  .chat li { max-width: 92%; }
  .chat p { font-size: 15.5px; }
  .tags li { border-radius: 12px; }
}

/* ── 0.2: метки карточек, пример бесплатного разбора, строка под карточкой отчета ── */
.feat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.feat-top .feat-ico { margin-bottom: 0; }
.feat-tag { font-size: 14px; font-weight: 600; line-height: 1.2; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.feat-tag.tag-free { background: var(--win-soft); color: var(--win); }
.feat-tag.tag-res { background: var(--chip-bg); color: var(--text); }
.note-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.note-row .i { width: 21px; height: 21px; margin-top: 2px; color: var(--accent-text); }
.report-wrap { position: relative; max-width: 470px; margin-left: auto; }
.report-note { max-width: 470px; margin: 30px 0 0 auto; }
.rr-l { flex: 1 1 0; min-width: min-content; }
/* не помещается рядом с подписью — значение уходит строкой ниже, к правому краю, а не наезжает на подпись */
.rr-v { flex: 0 0 auto; margin-left: auto; }
.report-head { align-items: flex-start; }
.report-hl { display: grid; gap: 5px; min-width: 0; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--muted); }
.live-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--win-bar); }
.free { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 28px 30px 30px; }
.free-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.free-head h3 { font-size: 22px; letter-spacing: -0.02em; }
.free-demo { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.free-demo .i { width: 17px; height: 17px; }
.free-sub { margin-top: 18px; font-size: 17px; font-weight: 650; color: var(--ink); }
.finds { list-style: none; counter-reset: f; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.finds li {
  counter-increment: f; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2);
  font-size: 16px; line-height: 1.5; color: var(--text);
}
.finds li::before { content: counter(f); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: var(--chip-bg); color: var(--ink); }
.finds li.hot { border-color: var(--loss-track); background: var(--loss-soft); }
.finds li.hot::before { background: var(--loss-bar); color: #FFFFFF; }
.finds b { color: var(--ink); }
.star { color: #E8A317; }
.free-start { margin-top: 18px; padding: 14px 16px; border-radius: 13px; background: var(--accent-soft); color: var(--ink); font-size: 16.5px; line-height: 1.5; }
.calc-cta { margin-top: 12px; }
.call-foot { padding: 0 24px 24px; background: var(--surface-2); }
.call-foot[hidden], .replay[hidden] { display: none; }
.replay .i { width: 18px; height: 18px; }

/* шкала масштаба суммы в калькуляторе */
.meter { margin-top: 4px; }
.meter-track { position: relative; height: 8px; border-radius: 4px; background: var(--track); container-type: inline-size; }
.meter-fill { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--loss-track), var(--loss-bar)); transform-origin: left center; transform: scaleX(var(--m, .525)); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.meter-dot { position: absolute; left: -8px; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--loss-bar); box-shadow: var(--shadow-sm); transform: translateX(calc(var(--m, .525) * 100cqw)); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.meter-ticks { position: relative; height: 22px; margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.meter-ticks span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.meter-ticks span:nth-child(1) { left: 0; transform: none; }
.meter-ticks span:nth-child(2) { left: 25%; }
.meter-ticks span:nth-child(3) { left: 50%; }
.meter-ticks span:nth-child(4) { left: 75%; }
.meter-ticks span:nth-child(5) { left: 100%; transform: translateX(-100%); }

@media (max-width: 960px) {
  .report-wrap { margin: 0 auto; }
  .report-note { margin: 30px auto 0; }
}
@media (max-width: 640px) {
  .finds { grid-template-columns: minmax(0, 1fr); }
  .free { padding: 22px 16px; border-radius: 18px; margin-top: 30px; }
  .free-head h3 { font-size: 20px; }
  .note-row { font-size: 16px; }
  .calc-cta .btn { width: 100%; }
  .call-foot { padding: 0 16px 20px; }
  .call-foot .btn { width: 100%; }
}
@media (max-width: 420px) {
  .meter-ticks span:nth-child(2), .meter-ticks span:nth-child(4) { display: none; }
}

/* ── эффекты 0.2 ──────────────────────────────────────────────────────────
   html.fx — движение не выключено (ставит скрипт в <head>), html.fx-on — скрипт страницы
   запустился. Скрытые начальные состояния — только под fx-on: без скрипта и при
   «уменьшить движение» страница сразу полная. Все числа и тексты стоят в разметке;
   счетчик рисует промежуточное значение поверх (::after из data-fx), textContent
   не меняется. Двигаются transform, translate и opacity. */

/* первый экран: сетка медленно плывет, свет за карточкой дышит */
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 72% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 75% at 72% 35%, #000 25%, transparent 75%);
}
.hero-bg i {
  position: absolute; inset: -44px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
}
.fx .hero-bg i { animation: fxDrift 30s linear infinite; will-change: transform; }
@keyframes fxDrift { to { transform: translate3d(44px, 44px, 0); } }
.fx .hero-visual::before { animation: fxBreathe 9s ease-in-out infinite alternate; }
@keyframes fxBreathe { from { opacity: .55; } to { opacity: 1; } }
.fx .live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--win-bar); animation: fxPulse 2.2s ease-out infinite; }
@keyframes fxPulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }

/* счетчик поверх настоящего значения */
.cnt { position: relative; }
.cnt.is-run { -webkit-text-fill-color: transparent; }
.cnt.is-run::after {
  content: attr(data-fx); content: attr(data-fx) / "";
  position: absolute; left: 0; right: 0; top: 0; white-space: nowrap; -webkit-text-fill-color: currentColor;
}

/* карточка отчета собирается: строки по очереди, полоса заполняется, итог — последним */
.report > :nth-child(2) { --d: .12s; }
.report > :nth-child(3) { --d: .2s; }
.report > :nth-child(4) { --d: .28s; }
.report > :nth-child(5) { --d: .36s; }
.report > :nth-child(6) { --d: .44s; }
.report > :nth-child(7) { --d: .56s; }
.fx .report.play > .rr, .fx .report.play > .report-total { animation: fxRow .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
/* до проигрыша строки скрыты с первой отрисовки (класс fx ставит boot.js в <head>, встроенного скрипта у карточки нет:
   CSP); скрипт страницы не запустился — строки проявятся сами через 2,5 с. Карточка ниже первого экрана — скрипт
   ставит hold и держит строки скрытыми, пока до нее не докрутят */
.fx .report:not(.play):not(.hold) > .rr, .fx .report:not(.play):not(.hold) > .report-total { animation: fxRowLate .5s 2.5s both; }
.fx .report.hold:not(.play) > .rr, .fx .report.hold:not(.play) > .report-total { opacity: 0; }
@keyframes fxRowLate { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fxRow { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fx .report.play .split i { transform-origin: left center; animation: fxBar .95s .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fxBar { from { transform: scaleX(0); } }
.report-total { position: relative; isolation: isolate; }
.report-total.flash::before {
  content: ""; position: absolute; z-index: -1; inset: 6px -12px -10px; border-radius: 12px;
  background: var(--loss-soft); animation: fxFlash 1.3s ease-out both;
}
@keyframes fxFlash { 0% { opacity: 0; transform: scale(.97); } 30% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* вкладки отчета: панели в одной клетке сетки — высота не прыгает, смена плавная */
.js .panels { display: grid; }
.js .panels > .panel { grid-area: 1 / 1; transition: opacity .35s ease, visibility 0s linear .35s; }
.js .panels > .panel:not(.is-active) { visibility: hidden; opacity: 0; pointer-events: none; }
.js .panels > .panel.is-active { transition: opacity .35s ease, visibility 0s; }
.bars li:nth-child(2) .bt i, .lt tr:nth-child(2) .bar { transition-delay: .06s; }
.bars li:nth-child(3) .bt i, .lt tr:nth-child(3) .bar { transition-delay: .12s; }
.bars li:nth-child(4) .bt i { transition-delay: .18s; }

/* «Узнаете себя?»: галочка рисуется, с двух отметок кнопка мягко светится */
.fx .pain .box .i { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .32s ease .04s; }
.fx .pain.is-on .box .i, .fx .pain:has(input:checked) .box .i { stroke-dashoffset: 0; }
.pains-sum.hit .btn-apply { box-shadow: 0 0 0 4px rgba(46, 91, 255, .14), 0 12px 28px -10px rgba(46, 91, 255, .7); }
.fx .pains-sum.hit .btn-apply { animation: fxCta 1.8s ease-in-out 2; }
@keyframes fxCta {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46, 91, 255, .14), 0 12px 28px -10px rgba(46, 91, 255, .7); }
  50% { box-shadow: 0 0 0 9px rgba(46, 91, 255, .16), 0 16px 36px -8px rgba(46, 91, 255, .8); }
}

/* разбор звонка проигрывается: «печатает…», реплики по одной, метки, кольцо, подсказка */
.chat li { position: relative; }
.chat li, .tags li { transition: opacity .38s ease, translate .38s cubic-bezier(.2, .7, .2, 1); }
.call.armed .chat li:not(.on), .call.armed .tags li:not(.on) { opacity: 0; translate: 0 10px; }
.call.armed .chat li.typing { opacity: 1; translate: 0 0; }
.chat li.typing p { opacity: 0; }
.chat li.typing::after {
  content: "печатает…"; content: "печатает…" / "";
  position: absolute; top: 26px; left: 0; padding: 9px 14px; border-radius: 14px;
  background: var(--chip-bg); color: var(--muted); font-size: 14px; line-height: 1.2;
  animation: fxType 1s ease-in-out infinite;
}
.chat li.say-r.typing::after { left: auto; right: 0; background: var(--accent-soft); }
@keyframes fxType { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.tags li.on { animation: fxPop .42s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes fxPop { from { transform: scale(.85); } to { transform: none; } }
.ring-box .arc { transition: stroke-dashoffset 1.2s cubic-bezier(.2, .7, .2, 1), opacity .2s ease; }
.fx-on .call:not(.ring-on) .ring-box .arc { stroke-dashoffset: 40; opacity: 0; transition: none; }
.next { position: relative; }
.next > * { position: relative; }
.next.glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--accent-soft), transparent 80%); animation: fxGlow 1.8s ease-out both;
}
@keyframes fxGlow { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.next.glow blockquote { animation: fxQuote 1.8s ease-out both; }
@keyframes fxQuote { 0% { border-left-color: var(--accent); } 30% { border-left-color: var(--win-bar); } 100% { border-left-color: var(--accent); } }

/* шкала «Как проходит» прорисовывается по прокрутке, шаги загораются */
.tl-n { transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.fx-on .tl-list::before { transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform .25s linear; opacity: .5; }
.fx-on .tl:not(.lit) .tl-n { border-color: var(--line-2); color: var(--muted); }
.fx-on .tl.lit .tl-n { background: var(--accent); border-color: var(--accent); color: #FFFFFF; transform: scale(1.06); }
.fx-on .tl.lit:last-child .tl-n { background: var(--win-bar); border-color: var(--win-bar); }
@media (max-width: 960px) {
  .fx-on .tl-list::before { transform-origin: center top; transform: scaleY(var(--p, 0)); }
}

/* разделы проявляются при прокрутке — лесенкой у карточек (translate, не transform: его берет наклон) */
.fx-on .rv:not(.in) { opacity: 0; translate: 0 18px; }
.fx-on .rv.in { transition: opacity .6s ease, translate .65s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--k, 0) * 70ms); }
.fx-on .rv.in.done { transition-delay: 0s; }

/* кнопка заявки: редкий блик, у каждой своя очередь */
.btn-apply { position: relative; overflow: hidden; isolation: isolate; }
.fx .btn-apply::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -45%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .34), transparent);
  transform: translateX(0) skewX(-14deg); animation: fxShine 7.5s ease-in-out infinite; animation-delay: var(--sh, 2.5s);
}
@keyframes fxShine { 0% { transform: translateX(0) skewX(-14deg); } 13%, 100% { transform: translateX(420%) skewX(-14deg); } }
[data-place="form-top"] { --sh: 1.6s; }
[data-place="header"] { --sh: 4.4s; }
[data-place="pains"] { --sh: 3s; }
[data-place="calc"] { --sh: 2.2s; }
[data-place="form-final"] { --sh: 1.2s; }
[data-place="sticky"] { --sh: 5.2s; }

/* компьютер: легкий наклон и тень карточек при наведении */
@media (hover: hover) and (pointer: fine) {
  .fx .tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); }
  .fx .tilt, .fx-on .tilt.rv.in.done {
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, opacity .6s ease, translate .65s cubic-bezier(.2, .7, .2, 1);
    transition-delay: 0s;
  }
  .fx-on .tilt.rv.in:not(.done) {
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, opacity .6s ease, translate .65s cubic-bezier(.2, .7, .2, 1);
    transition-delay: 0s, 0s, calc(var(--k, 0) * 70ms), calc(var(--k, 0) * 70ms);
  }
  .fx .tilt:hover { --ty: -4px; box-shadow: var(--shadow-lg); }
}

/* окно фото: появление и уход */
@keyframes fxLeadIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes fxLeadOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fxFade { from { opacity: 0; } }

/* ── заявка: форма «сайт + телефон» ───────────────────────────────────────
   Классы — по договору страницы и приемника: .lead-form, .field, .is-invalid, .field-err, .lead-submit,
   .lead-msg[data-state], .is-closed и .lead-closed, .is-sent и .lead-ok. Обе формы — одна карточка; поля
   встают в ряд, когда форма шире 520 px (запрос контейнера), иначе — столбиком. */
.lead-form {
  position: relative; container-type: inline-size;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 22px 22px 20px; color: var(--text);
}
.lead-title { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.lead-body { margin-top: 16px; }
.lead-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@container (min-width: 520px) {
  .lead-fields { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field-l { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.field-in {
  display: block; width: 100%; height: 52px; margin: 0; padding: 0 14px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: 500 17px/1.2 var(--ff); -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.field-in::placeholder { color: var(--muted); opacity: 1; }
.field-in:hover { border-color: var(--accent-line); }
.field-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.field.is-invalid .field-in { border-color: var(--loss); }
.field.is-invalid .field-in:focus { box-shadow: 0 0 0 4px var(--loss-soft); }
.field-err { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--loss); }
.field-err:empty { display: none; }
.field-check { margin-top: 14px; }
.check {
  position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  font-size: 14.5px; line-height: 1.45; color: var(--text); -webkit-tap-highlight-color: transparent;
}
.check input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.check-box {
  flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  border: 2px solid var(--line-2); background: var(--surface); color: transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.check-box .i { width: 15px; height: 15px; stroke-width: 3; }
.check:hover .check-box { border-color: var(--accent-line); }
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.check input:focus-visible + .check-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.field-check.is-invalid .check-box { border-color: var(--loss); }
.check-t { padding-top: 1px; }
.check a { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.check a:hover { text-decoration-color: currentColor; }
.lead-submit { width: 100%; margin-top: 16px; }
.lead-msg { margin-top: 10px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.lead-msg:empty { margin-top: 0; }
.lead-msg[data-state="error"] { color: var(--loss); }
.lead-msg[data-state="closed"] { color: var(--warn-ink); }
.lead-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.lead-note .i { width: 16px; height: 16px; }
/* поле-ловушка: людям не видно и чтецу экрана тоже (aria-hidden в разметке, tabindex=-1) */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* прием закрыт: поля видны, но заблокированы; сверху — строка о запуске */
.lead-closed {
  display: none; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--warn-soft); color: var(--warn-ink); font-size: 15px; font-weight: 600; line-height: 1.4;
}
.lead-closed .i { width: 19px; height: 19px; margin-top: 1px; }
.lead-form.is-closed .lead-closed { display: flex; }
.lead-form.is-closed .field-l, .lead-form.is-closed .field-in, .lead-form.is-closed .check { opacity: .55; }
.lead-form.is-closed .field-in, .lead-form.is-closed .check, .lead-form.is-closed .check input { cursor: not-allowed; }
.lead-form.is-closed .lead-note { display: none; }
.lead-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.lead-submit:disabled::before { content: none; }
.lead-form.is-sending .lead-submit:disabled { opacity: .8; cursor: progress; }

/* принято: вместо полей — строка «Заявка принята» */
.lead-ok { display: none; gap: 6px; margin-top: 16px; padding: 18px 18px 16px; border-radius: 14px; background: var(--win-soft); color: var(--ink); }
.lead-form.is-sent .lead-body, .lead-form.is-sent .lead-closed { display: none; }
.lead-form.is-sent .lead-ok { display: grid; }
.lead-ok:focus { outline: none; }
.lead-ok-t { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--win); }
.lead-ok-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--win-bar); color: #FFFFFF; }
.lead-ok-ico .i { width: 17px; height: 17px; stroke-width: 3; }
.lead-ok-p { font-size: 17px; line-height: 1.5; color: var(--ink); }
.lead-again {
  justify-self: start; min-height: 24px; margin: 2px 0 0; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--accent-text); font: 600 15px/1.5 var(--ff);
  text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px;
}
.lead-again:hover { text-decoration-color: currentColor; }
.fx .lead-form.is-sent .lead-ok { animation: fxRow .4s cubic-bezier(.2, .7, .2, 1) both; }

/* форма на темной карточке заявки */
.final-form .lead-form { border-color: rgba(255, 255, 255, .08); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }

/* строка cookie — канон студии (PIPELINE_SITE.md, «Плашка cookie»); видна, только когда есть счетчик */
.cookie {
  position: fixed; left: 8px; bottom: 8px; z-index: 45; display: flex; align-items: center; gap: 6px;
  padding: 2px 3px 2px 10px; background: rgba(255, 255, 255, .9); color: #2F3437;
  font: 400 12px/24px var(--ff); border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.cookie[hidden] { display: none; }
.cookie a { color: inherit; }
.cookie button { font: 600 12px/22px var(--ff); min-width: 32px; padding: 0 9px; border: 1px solid #2F3437; border-radius: 4px; background: #2F3437; color: #FFFFFF; cursor: pointer; }
.foot { padding-bottom: 64px; }

@media (max-width: 719.98px) {
  /* полоса заявки внизу видна — строка cookie над ней с зазором 8 px (полоса — 75 px) */
  html.dock-on .cookie { bottom: calc(83px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .lead-form { padding: 18px 16px 16px; border-radius: 18px; }
  .lead-title { font-size: 18px; }
  .lead-body { margin-top: 14px; }
  .field-in { height: 50px; }
}
@media (max-width: 400px) {
  .final-card { padding: 28px 14px; }
  .final-form .lead-form { padding: 16px 14px 14px; }
}
@media (min-width: 961px) and (max-height: 860px) {
  /* невысокий экран ноутбука: поля и кнопка формы первого экрана поднимаются */
  .hero { padding-top: 44px; }
  .hero-form { margin-top: 24px; }
}
@media (max-width: 380px) {
  .hero-lead { font-size: 17px; }
}
@media (max-width: 360px) {
  /* узкий телефон: подсказка поля сайта помещается целиком; 16 px — меньше нельзя, iPhone приблизит поле */
  .field-in { font-size: 16px; padding: 0 12px; }
  .final-card { padding: 28px 10px; }
  .final-text { padding: 0 4px; }
}
@media (max-width: 359.98px) {
  /* 320–359 px: строки отчета первого экрана и таблица «Ушло вчера» помещаются в карточки целиком */
  .rr { font-size: 14.5px; gap: 2px 12px; }
  .dash-head { padding: 14px 12px; }
  .dash-head .chip { white-space: normal; }
  .dash-body { padding: 12px 8px; }
  .blk { padding: 14px 10px 16px; }
  .lt tbody th { font-size: 14px; }
  .lt thead th { font-size: 13px; }
  .lt thead th + th, .lt td { padding-left: 8px; }
  .lt td.sum { font-size: 14px; }
  .lead-form .lead-submit { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 640px) and (max-height: 640px) {
  /* невысокий телефон (320×568): форма первого экрана поднимается — строка «для кого» уходит */
  .kicker { display: none; }
  .hero h1 { margin-top: 0; }
}

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