/* ==========================================================================
   Идеальный таксопарк - itaxopark.ru
   Палитра и мотив воронки унаследованы от structure.html.
   Семантика цвета: teal = доверие/система, ЯНТАРЬ ТОЛЬКО = утечка денег.
   ========================================================================== */

:root {
  --paper: #F3F5F6;
  --surface: #FFFFFF;
  --surface-2: #FAFBFC;

  --ink: #16242B;
  --ink-soft: #566169;
  --ink-faint: #8B969C;

  --line: #E3E8EB;
  --line-soft: #EEF1F3;

  --teal: #0E756A;
  --teal-strong: #0B5A52;
  --teal-soft: #E2EFEC;

  --amber: #C6741E;
  --amber-soft: #F8EAD7;

  --shadow: 0 1px 2px rgba(22, 36, 43, .04), 0 8px 24px -12px rgba(22, 36, 43, .10);
  --shadow-lg: 0 2px 4px rgba(22, 36, 43, .05), 0 24px 48px -20px rgba(22, 36, 43, .18);
  --radius: 14px;
  --radius-sm: 9px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 64px;
  --container: 1180px;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: var(--teal); text-decoration-color: color-mix(in srgb, var(--teal) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--teal-strong); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(30px, 5.2vw, 56px); letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 23px); letter-spacing: -.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 800px; }

/* Секции ------------------------------------------------------------------ */
section { padding-block: clamp(56px, 8vw, 104px); }
section.tight { padding-block: clamp(40px, 5vw, 64px); }
.surface { background: var(--surface); border-block: 1px solid var(--line); }
.deep { background: #10201F; color: #E9F0F1; border-block: 0; }
.deep h2, .deep h3 { color: #FFFFFF; }
.deep .lead, .deep .muted { color: #A9BCB8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.deep .eyebrow { color: #4FC0B0; }

.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 68ch; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); font-size: 14.5px; }
.money { color: var(--amber); font-variant-numeric: tabular-nums; font-weight: 700; }

/* Кнопки ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-strong); color: #fff; box-shadow: 0 6px 18px -8px rgba(11, 90, 82, .7); }
.btn-primary:hover { background: #0a4d46; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); background: var(--surface); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-sm { padding: 9px 15px; font-size: 14.5px; }
.deep .btn-ghost { color: #E9F0F1; border-color: rgba(233, 240, 241, .28); }
.deep .btn-ghost:hover { background: rgba(233, 240, 241, .07); color: #fff; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Микро-CTA в конце смыслового блока */
.micro-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15.5px; text-decoration: none;
  color: var(--teal); padding: 8px 0;
}
.micro-cta::after { content: "→"; transition: transform .16s ease; }
.micro-cta:hover::after { transform: translateX(4px); }

/* Шапка ------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.header[data-scrolled="true"] { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }
.header .container { height: 100%; display: flex; align-items: center; gap: 18px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.02em; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-text { font-size: 16px; white-space: nowrap; }
.brand-text span { color: var(--ink-faint); font-weight: 500; }

/* Переключатель по разделам */
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 11px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--line-soft); }
.nav a[aria-current="true"] { color: var(--teal); background: var(--teal-soft); font-weight: 600; }
.nav .sep { width: 1px; height: 20px; background: var(--line); margin-inline: 8px; }

.header-cta { display: none; margin-left: 12px; flex: none; }

.burger {
  margin-left: auto; width: 42px; height: 42px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--ink);
}
.burger span { display: block; width: 17px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .2s ease; }
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 55;
  background: var(--paper); padding: 12px var(--gutter) 32px;
  overflow-y: auto; display: none;
}
.drawer[data-open="true"] { display: block; }
.drawer ul { list-style: none; margin: 0 0 20px; padding: 0; }
.drawer a { display: block; padding: 15px 4px; font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer a[aria-current="true"] { color: var(--teal); }
.drawer .btn { width: 100%; }
body[data-drawer="open"] { overflow: hidden; }

@media (min-width: 1000px) {
  .nav, .header-cta { display: flex; }
  .burger, .drawer { display: none !important; }
}

/* Мобильный sticky-CTA ----------------------------------------------------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: flex; gap: 8px;
  padding: 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.mobile-cta[data-show="true"] { transform: none; }
.mobile-cta .btn { flex: 1; }
.mobile-cta .btn-ghost { flex: 0 0 auto; }
@media (min-width: 1000px) { .mobile-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

/* HERO --------------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(32px, 4vw, 56px); }
.hero h1 { max-width: 19ch; }
.hero h1 .leak { color: var(--amber); }
.hero .lead { margin-top: 22px; }
.hero .cta-row { margin-top: 32px; }

.trust-bar {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px;
}
@media (min-width: 760px) { .trust-bar { grid-template-columns: repeat(4, 1fr); } }
.trust-bar dt { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.trust-bar dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.4; }

/* Воронка (сквозной визуальный мотив) -------------------------------------- */
.funnel-wrap { margin-top: 44px; overflow-x: auto; overscroll-behavior-x: contain; }
.funnel { display: block; min-width: 680px; width: 100%; height: auto; }

.funnel .body { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.5; }
.funnel .divider { stroke: var(--teal); stroke-width: 1; opacity: .28; }
.funnel .stage-label { font: 600 14px var(--sans); fill: var(--teal-strong); }
.funnel .stage-num { font: 700 11px var(--mono); fill: var(--teal); opacity: .55; }
.funnel .leak-label { font: 500 12.5px var(--sans); fill: var(--ink-soft); }
.funnel .leak-sum { font: 700 12.5px var(--mono); fill: var(--amber); }
.funnel .drop { fill: var(--amber); }
.funnel .tick { stroke: var(--amber); stroke-width: 1; opacity: .45; stroke-dasharray: 2 3; }
.funnel .cap { font: 600 13px var(--sans); fill: var(--ink-faint); }

@keyframes drip {
  0%   { transform: translateY(0); opacity: 0; }
  18%  { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}
.funnel .drop { animation: drip 2.6s cubic-bezier(.5, 0, .8, .5) infinite; }
@media (prefers-reduced-motion: reduce) { .funnel .drop { animation: none; opacity: .85; } }

/* Блок болей «Узнай себя» --------------------------------------------------- */
.pain-grid { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 700px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pain-grid { grid-template-columns: repeat(4, 1fr); } }

.pain {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.pain q {
  font-size: 16.5px; font-weight: 600; line-height: 1.45; quotes: "«" "»";
  letter-spacing: -.01em;
}
.pain .note { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin-top: auto; }
.pain .tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--amber); background: var(--amber-soft); padding: 4px 9px; border-radius: 999px;
}

/* Рефрейм ------------------------------------------------------------------ */
.reframe-strike { color: var(--ink-faint); text-decoration: line-through; text-decoration-thickness: 2px; }

.metric-card {
  margin-top: 36px; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--amber); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow); max-width: 780px;
}
.metric-card .formula { font-family: var(--mono); font-size: 15px; color: var(--ink); margin-top: 12px; line-height: 1.9; }
.metric-card .formula b { color: var(--amber); }

/* Этапы решений ------------------------------------------------------------ */
.stages { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 860px) { .stages { grid-template-columns: repeat(2, 1fr); } }

.stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.stage-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.stage-idx { font: 700 12px var(--mono); color: var(--teal); background: var(--teal-soft); padding: 4px 8px; border-radius: 6px; flex: none; }
.stage-accent { margin-left: auto; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.stage h3 { margin: 0; }
.stage .job { font-size: 13.5px; color: var(--ink-faint); margin: 2px 0 16px; }

.stage dl { margin: 0; display: grid; gap: 14px; }
.stage dt { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; }
.stage dd { margin: 0; font-size: 15.5px; line-height: 1.55; }
.stage dd.pain-line { color: var(--ink-soft); }
.stage dd.pain-line b { color: var(--amber); font-weight: 600; }
.stage dd.gain-line b { color: var(--teal); font-weight: 600; }
.stage .micro-cta { margin-top: 20px; align-self: flex-start; }

/* Контроль звонков ---------------------------------------------------------- */
.calls-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 940px) { .calls-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.feature-list .ico { flex: none; width: 22px; height: 22px; margin-top: 2px; color: #4FC0B0; }
.feature-list b { display: block; font-weight: 600; }
.feature-list span { color: #A9BCB8; font-size: 15px; }

.score-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(233, 240, 241, .14);
  border-radius: var(--radius); padding: 22px; backdrop-filter: blur(4px);
}
.score-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(233, 240, 241, .1); }
.score-row:last-child { border-bottom: 0; }
.score-row .who { font-size: 14.5px; font-weight: 600; flex: none; width: 96px; }
.score-bar { flex: 1; height: 7px; border-radius: 999px; background: rgba(233, 240, 241, .12); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 999px; background: #4FC0B0; }
.score-bar i.bad { background: #E0975A; }
.score-val { font: 700 14px var(--mono); width: 44px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.score-card .cap { margin-top: 16px; font-size: 13px; color: #8FA5A1; line-height: 1.5; }

/* Доказательства ----------------------------------------------------------- */
.proof-nums { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 700px) { .proof-nums { grid-template-columns: repeat(3, 1fr); } }
.proof-num {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); text-align: left;
}
.proof-num .big { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.proof-num .big .was { color: var(--ink-faint); text-decoration: line-through; text-decoration-thickness: 2px; font-size: .72em; margin-right: 6px; }
.proof-num .big .now { color: var(--teal); }
.proof-num p { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

.cases { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 860px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.case h3 { font-size: 17px; margin-bottom: 8px; margin-top: 10px; }
.case p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.case .result { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--teal); }

/* Маркер незаполненного контента - снять, когда придут реальные цифры */
.draft-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); background: var(--line-soft); padding: 3px 9px; border-radius: 999px;
}

/* Основатель и команда ----------------------------------------------------- */
.founder { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .founder { grid-template-columns: 340px 1fr; gap: 56px; } }

.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--teal-soft), var(--surface-2));
  border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; padding: 24px;
}
.portrait .ph { color: var(--ink-faint); font-size: 13.5px; line-height: 1.6; }

.principles { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.principles li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.principles .ico { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--teal); }

.team { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.team-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.team-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* FAQ ---------------------------------------------------------------------- */
.faq { margin-top: 36px; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-size: clamp(16.5px, 1.8vw, 19px); font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] summary { color: var(--teal); }
.faq .answer { padding: 0 0 22px; color: var(--ink-soft); max-width: 72ch; }

/* Форма аудита ------------------------------------------------------------- */
.audit-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 980px) { .audit-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }

.gets { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.gets li { display: flex; gap: 13px; align-items: flex-start; }
.gets .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-strong); display: grid; place-items: center; font: 700 13px var(--mono); }
.gets b { display: block; font-weight: 600; }
.gets span { color: var(--ink-soft); font-size: 15px; }

/* Плашка-гарантия J8 «безопасная смена подрядчика» */
.guarantee {
  margin-top: 32px; background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 22%, transparent);
  border-radius: var(--radius); padding: 22px 24px;
}
.guarantee h3 { font-size: 16.5px; color: var(--teal-strong); display: flex; align-items: center; gap: 9px; }
.guarantee .ico { width: 19px; height: 19px; flex: none; }
.guarantee ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft);
}
.field input[aria-invalid="true"] { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.field .err { display: none; margin-top: 6px; font-size: 13.5px; color: var(--amber); font-weight: 500; }
.field input[aria-invalid="true"] ~ .err { display: block; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-card .btn { width: 100%; margin-top: 6px; }
.form-card .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--ink-faint); text-align: center; line-height: 1.5; }
.form-error {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  color: #7A4310; font-size: 14.5px; line-height: 1.5;
}

/* Honeypot: убираем из потока, но не через display:none - часть ботов её распознаёт */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Telegram-прогрев --------------------------------------------------------- */
.magnets { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 700px) { .magnets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .magnets { grid-template-columns: repeat(4, 1fr); } }
.magnet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.magnet .step { font: 700 11px var(--mono); color: var(--teal); letter-spacing: .08em; }
.magnet h3 { font-size: 16.5px; margin: 10px 0 8px; }
.magnet p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* Точки входа: блог и калькулятор ------------------------------------------ */
.entries { display: grid; gap: 16px; }
@media (min-width: 800px) { .entries { grid-template-columns: repeat(2, 1fr); } }
.entry {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.entry:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--teal) 30%, var(--line)); color: inherit; }
.entry h3 { display: flex; align-items: center; gap: 10px; }
.entry h3::after { content: "→"; color: var(--teal); transition: transform .16s ease; }
.entry:hover h3::after { transform: translateX(4px); }
.entry p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Финальный CTA и футер ---------------------------------------------------- */
.final { text-align: center; }
.final h2 { max-width: 18ch; margin-inline: auto; }
.final .lead { margin-inline: auto; }
.final .cta-row { justify-content: center; margin-top: 30px; }

.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 52px 32px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--teal); }
.footer .about p { font-size: 14.5px; color: var(--ink-soft); max-width: 40ch; margin-top: 12px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer-bottom p { margin: 0; font-size: 13.5px; color: var(--ink-faint); }

/* Появление секций при скролле --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal[data-visible="true"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Калькулятор потерь -------------------------------------------------------- */
.page-head { padding-block: clamp(40px, 5vw, 68px) 0; }
.page-head h1 { max-width: 20ch; }
.crumbs { font-size: 14px; color: var(--ink-faint); margin-bottom: 18px; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }

.calc-grid { display: grid; gap: 28px; align-items: start; margin-top: 44px; }
@media (min-width: 980px) { .calc-grid { grid-template-columns: 1fr 1fr; gap: 44px; } }
@media (min-width: 980px) { .calc-out { position: sticky; top: calc(var(--header-h) + 24px); } }

.calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }

.calc-field { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.calc-field:last-child { border-bottom: 0; padding-bottom: 0; }
.calc-field > label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.calc-field .hint { font-size: 13px; color: var(--ink-faint); margin-bottom: 12px; line-height: 1.45; }
.calc-controls { display: flex; align-items: center; gap: 14px; }
.calc-controls input[type="range"] { flex: 1; accent-color: var(--teal); min-width: 0; }
.calc-controls .num { display: flex; align-items: center; gap: 6px; flex: none; }
.calc-controls input[type="number"] {
  width: 92px; padding: 9px 10px; font: 600 15px var(--mono); text-align: right;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}
.calc-controls input[type="number"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.calc-controls .unit { font-size: 13.5px; color: var(--ink-faint); width: 46px; }

.result-hero { background: #10201F; color: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.result-hero .lbl { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8FA5A1; }
.result-hero .big { font-size: clamp(34px, 5.4vw, 54px); font-weight: 700; letter-spacing: -.03em; color: #E0975A; font-variant-numeric: tabular-nums; margin-top: 8px; line-height: 1.05; }
.result-hero .big small { font-size: .42em; font-weight: 600; letter-spacing: -.01em; color: #A9BCB8; margin-left: 6px; }
.result-hero .sub { margin-top: 12px; font-size: 15px; color: #A9BCB8; }
.result-hero .sub b { color: #fff; font-variant-numeric: tabular-nums; }

.bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin-top: 24px; background: rgba(255, 255, 255, .1); }
.bar i { display: block; height: 100%; transition: width .28s ease; }
.bar .i-idle { background: #E0975A; }
.bar .i-churn { background: #4FC0B0; }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }
.bar-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 13.5px; color: #A9BCB8; }
.bar-legend span { display: flex; align-items: center; gap: 7px; }
.bar-legend .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.bar-legend b { color: #fff; font-variant-numeric: tabular-nums; }

.result-rows { margin-top: 22px; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.result-row:last-child { border-bottom: 0; }
.result-row .k { font-size: 15px; color: var(--ink-soft); }
.result-row .v { font: 700 17px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-row.hi .k { color: var(--ink); font-weight: 600; }
.result-row.hi .v { color: var(--amber); font-size: 19px; }

.formula-box { margin-top: 24px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.formula-box h3 { font-size: 15px; }
.formula-box code { display: block; font-family: var(--mono); font-size: 13.5px; line-height: 2; color: var(--ink-soft); white-space: pre-wrap; }
.formula-box code b { color: var(--amber); font-weight: 600; }

/* Блог ---------------------------------------------------------------------- */
.post-list { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 860px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.post:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--teal) 30%, var(--line)); color: inherit; }
.post .cluster { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); }
.post h3 { margin: 0; font-size: 19px; }
.post p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.post .soon { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--ink-faint); }
.post[aria-disabled="true"] { opacity: .72; pointer-events: none; }

/* Служебные страницы -------------------------------------------------------- */
.centered { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.centered .inner { max-width: 620px; }
.centered .icon { width: 64px; height: 64px; margin: 0 auto 24px; color: var(--teal); }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 40px; font-size: clamp(21px, 2.2vw, 26px); }
.prose ul { color: var(--ink-soft); padding-left: 22px; line-height: 1.8; }

/* Доступность -------------------------------------------------------------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal-strong); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 10px;
  text-decoration: none; font-weight: 600; transition: top .18s ease;
}
.skip:focus { top: 0; color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
