/* Tolemflow — сайт и документация. Бренд: тёмно-синий #0E1A36, синий #1D5BFF. */
:root {
  --navy: #0e1a36;
  --navy-2: #16244a;
  --blue: #1d5bff;
  --blue-ink: #0b3fd1;
  --blue-soft: #e5edff;
  --ink: #0e1a36;
  --ink-2: #36415c;
  --muted: #69738d;
  --line: #dce2ed;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ok: #0c8a5e;
  --ok-soft: #e1f4ec;
  --warn: #a86300;
  --warn-soft: #fff1da;
  --bad: #cc3129;
  --bad-soft: #fce7e5;
  --paper: #fffdf7;
  --code-bg: #0b1224;
  --code-ink: #dce4f5;
  --display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font: 600 clamp(32px, 5.2vw, 58px)/1.06 var(--display); letter-spacing: -0.025em; }
h2 { font: 600 clamp(26px, 3.4vw, 38px)/1.15 var(--display); letter-spacing: -0.02em; }
h3 { font: 600 19px/1.35 var(--body); }
p { margin: 0; }
code, pre { font-family: var(--mono); }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); }
.muted { color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 10px;
  font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: #b9c3d6; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); }
.btn-outline-light { color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: rgba(255,255,255,.6); }

/* ── Шапка ── */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(246, 248, 251, .85); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.header .actions { margin-left: auto; display: flex; gap: 10px; }
.header .btn { height: 40px; padding: 0 16px; font-size: 14px; }

/* ── Подвал ── */
.footer { background: var(--navy); color: #aeb9d2; padding-block: 48px; margin-top: 96px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.footer a { color: #dfe6f5; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.footer .col { display: grid; gap: 8px; font-size: 15px; }
.footer .col b { color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer .logo img { filter: brightness(0) invert(1); }
.footer small { display: block; margin-top: 16px; color: #7f8bab; font-size: 13px; }

/* ── Код ── */
.code {
  background: var(--code-bg); color: var(--code-ink);
  border-radius: 12px; padding: 18px 20px; overflow-x: auto;
  font: 13.5px/1.65 var(--mono); margin: 0;
}
.code .k { color: #8fb0ff; }
.code .s { color: #9be3b8; }
.code .c { color: #6f7c99; }
.code .n { color: #f5c078; }

/* ── Чипы вердиктов ── */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--ok); background: var(--ok-soft); }
.chip.warn { color: var(--warn); background: var(--warn-soft); }
.chip.bad { color: var(--bad); background: var(--bad-soft); }

@media (max-width: 860px) {
  .nav { display: none; }
  .header .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ══ Страницы сайта: первый экран, блоки, телефон с чатом ══ */
/* ── Первый экран ── */
.hero { background: var(--navy); color: #c9d3ea; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 420px at 82% 30%, rgba(29, 91, 255, .45), transparent 70%),
    radial-gradient(520px 360px at 8% 110%, rgba(12, 138, 94, .22), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; padding-block: 64px 80px; }
.hero .pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.05); font: 500 13.5px/1.2 var(--body); color: #dbe4ff; }
.hero .pill i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #3ddc97; animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(61,220,151,0); } }
.hero h1 { color: #fff; margin-top: 22px; font-size: clamp(32px, 4.3vw, 50px); }
.hero h1 em { font-style: normal; color: #8fb0ff; }
.hero .lead { font-size: clamp(17px, 1.8vw, 19px); line-height: 1.55; margin-top: 20px; max-width: 34em; }
.audience { margin-top: 30px; }
.audience .label { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8e9bbb; }
.aud-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; max-width: 600px; }
.aud-tabs button {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  padding: 12px 12px 13px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
  color: #dbe4ff; font: 500 14.5px/1.2 var(--body); transition: background-color .15s, color .15s, border-color .15s;
}
.aud-tabs button:hover { border-color: rgba(255,255,255,.34); }
.aud-tabs button[aria-selected="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.aud-tabs button .ico { font-size: 22px; line-height: 1; }
/* Полоска автопрокрутки кейсов */
.aud-tabs.auto button[aria-selected="true"]::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--blue); transform-origin: left; animation: tabprogress var(--case-ms, 8s) linear forwards;
}
@keyframes tabprogress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.case-line { margin-top: 16px; min-height: 3.2em; font-size: 16px; color: #dbe4ff; max-width: 32em; }
.case-line b { color: #fff; font-weight: 600; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .note { margin-top: 14px; font-size: 14px; color: #8e9bbb; }

/* ── Смартфон с Telegram ── */
.stage { position: relative; display: flex; justify-content: center; padding: 8px 0; }
.phone {
  position: relative; width: 316px; height: 640px; border-radius: 50px; padding: 11px; flex: none;
  background: linear-gradient(145deg, #2a3350, #0a0f1d 40%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 100px -20px rgba(0,0,0,.65), inset 0 0 0 2px #0a0f1d;
}
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #05070d; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; display: flex; flex-direction: column; background: #d5e3f2; font-family: -apple-system, 'SF Pro Text', var(--body); }
.sbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 6px; font: 600 14px/1 var(--body); color: #0e1a36; background: #f7f8fa; }
.sbar .icons { display: flex; gap: 5px; align-items: center; }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; background: #f7f8fa; border-bottom: 1px solid #e3e6ec; }
.tg-head .back { color: #2a8bf2; font-size: 15px; display: flex; align-items: center; gap: 4px; }
.tg-head .who { flex: 1; text-align: center; line-height: 1.2; }
.tg-head .who b { display: block; font-size: 15px; color: #0e1a36; }
.tg-head .who span { font-size: 12.5px; color: #8a93a6; }
.ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 600 13px/1 var(--body); flex: none; }
.chat {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 10px; overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 2px, transparent 3px) 0 0 / 38px 38px,
    linear-gradient(170deg, #cfe0f2, #b9d0ea);
}
.msg { max-width: 84%; padding: 7px 10px 6px; border-radius: 17px; font-size: 14px; line-height: 1.38; color: #0e1a36; box-shadow: 0 1px 1px rgba(14,26,54,.12); animation: pop .32s ease-out both; }
.msg.in { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: #e3fbd3; border-bottom-right-radius: 6px; }
.msg .t { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: #8a93a6; }
.msg.out .t { color: #4fae4e; }
.msg code { font: 12.5px var(--mono); background: #eef2f8; padding: 1px 4px; border-radius: 4px; }
.file { display: flex; gap: 10px; align-items: center; padding-right: 6px; }
.file .dot { width: 42px; height: 42px; border-radius: 50%; background: #5fb85e; display: grid; place-items: center; flex: none; }
.file b { display: block; font-size: 14px; }
.file small { font-size: 12px; color: #6f9a63; }
.kb { align-self: flex-start; width: 84%; display: grid; gap: 4px; margin-top: -2px; animation: pop .32s ease-out both; }
.kb span { display: block; text-align: center; padding: 8px; border-radius: 10px; background: rgba(40, 70, 110, .32); color: #fff; font-size: 13.5px; font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6bb; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.tg-input { display: flex; align-items: center; gap: 10px; padding: 8px 12px 22px; background: #f7f8fa; border-top: 1px solid #e3e6ec; color: #8a93a6; }
.tg-input .field { flex: 1; border: 1px solid #e0e4eb; background: #fff; border-radius: 18px; padding: 7px 12px; font-size: 14px; }

/* Карточки поверх телефона */
.float { position: absolute; z-index: 4; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.5); opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s; }
.float.show { opacity: 1; transform: none; }
.notice { left: calc(50% - 158px - 104px); bottom: -6px; width: 264px; padding: 12px 14px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.notice .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; }
.notice .ic.bad { background: var(--bad-soft); }
.notice .ic.ok { background: var(--ok-soft); }
.notice .from { font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.notice b { display: block; margin-top: 5px; font-size: 14px; line-height: 1.25; }
.notice p { margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.speed { right: calc(50% - 158px - 30px); top: 132px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; font: 600 13.5px/1 var(--body); }
.speed i { width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.speed span { font-family: var(--mono); font-weight: 500; color: var(--ok); }

/* ── Цифры ── */
.proof { border-bottom: 1px solid var(--line); background: var(--surface); }
.proof .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof .item { padding: 30px 24px; border-left: 1px solid var(--line); }
.proof .item:first-child { border-left: 0; padding-left: 0; }
.proof .big { font: 600 34px/1.1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.proof p { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 26em; }

section.block { padding-top: 96px; }
.section-head { max-width: 720px; display: grid; gap: 14px; margin-bottom: 40px; }
.section-head p { font-size: 18px; }

/* ── Как это работает ── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .n { font: 500 13px var(--mono); color: var(--blue-ink); }
.step h3 { margin-top: 12px; }
.step p { margin-top: 8px; font-size: 16px; }

/* ── Что проверяем ── */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.check p { margin-top: 6px; font-size: 16px; }
.check .chip { margin-top: 2px; }

.extras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.extra { border-top: 2px solid var(--ink); padding-top: 16px; }
.extra p { margin-top: 6px; font-size: 15.5px; }

/* ── API ── */
.api { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.api ul { margin: 20px 0 0; padding-left: 20px; display: grid; gap: 8px; }

/* ── Цены ── */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; }
.plan.pick { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.plan .tag { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); height: 14px; }
.plan h3 { font: 600 20px var(--display); margin-top: 8px; }
.plan .price { margin-top: 14px; font: 600 30px var(--display); color: var(--ink); letter-spacing: -0.02em; }
.plan .price small { font: 400 15px var(--body); color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 18px 0 24px; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15.5px; flex: 1; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan li::before { content: '✓'; color: var(--ok); font-weight: 700; }
.plans-note { margin-top: 18px; font-size: 15px; }

/* ── Вопросы ── */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 20px/1 var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; font-size: 16px; }

/* ── Финальный призыв ── */
.final { margin-top: 96px; }
.final .box { background: var(--navy); color: #c9d3ea; border-radius: 20px; padding: 56px 48px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.final .box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(520px 300px at 90% 0%, rgba(29,91,255,.4), transparent 70%); pointer-events: none; }
.final h2 { color: #fff; position: relative; max-width: 16em; }
.final p { position: relative; margin-top: 10px; }
.final .cta { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero .wrap, .api { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 48px 64px; gap: 0; }
  /* На узком экране демо сразу после выбора аудитории, кнопки — под ним */
  .hero .copy { display: contents; }
  .hero .stage { order: 1; margin-top: 12px; }
  .hero .cta, .hero .note { order: 2; }
  .plans, .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero .wrap { padding-block: 36px 56px; }
  .aud-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { height: 560px; }
  .phone { transform: scale(.86); transform-origin: top center; }
  .notice { left: 12px; right: 12px; width: auto; bottom: -10px; }
  .speed { right: 12px; top: 100px; }
  .proof .wrap, .steps, .checks, .plans, .extras { grid-template-columns: minmax(0, 1fr); }
  .proof .item { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .proof .item:first-child { border-top: 0; }
  section.block { padding-top: 72px; }
  .final .box { padding: 40px 24px; }
}

/* ══ Шапка: меню «Решения» и язык ══ */
.nav { align-items: center; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 15px var(--body); color: var(--ink-2); }
.dd-btn:hover { color: var(--ink); }
.dd::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.dd-menu {
  position: absolute; top: calc(100% + 14px); left: -14px; z-index: 30; min-width: 270px; display: grid; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 44px rgba(14, 26, 54, .14);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { padding: 9px 12px; border-radius: 8px; }
.dd-menu a:hover { background: var(--bg); }
.lang { align-self: center; padding: 6px 8px; border-radius: 8px; font: 600 13px/1 var(--mono); color: var(--ink-2); text-decoration: none; }
.lang:hover { background: #eaeef6; color: var(--ink); }

/* ══ Внутренние страницы ══ */
.hero.sub .wrap { padding-block: 56px 72px; }
.hero.sub h1 { font-size: clamp(30px, 4vw, 46px); margin-top: 16px; }
.hero .eyebrow { color: #8fb0ff; }
.crumbs { font-size: 13.5px; color: #8e9bbb; margin-bottom: 18px; }
.crumbs a { color: #b9c6e6; text-decoration: none; }
.crumbs a:hover { color: #fff; }

.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pain .em { font-size: 26px; line-height: 1; }
.pain h3 { margin-top: 14px; }
.pain p { margin-top: 8px; font-size: 16px; }
.pain .more { margin-top: 12px; font-size: 15px; }
.pain .more a { color: var(--blue-ink); font-weight: 500; text-decoration: none; }
.pain .more a:hover { text-decoration: underline; }

.hint { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 26px 28px; }
.hint p + p { margin-top: 8px; }
.hint b { color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16.5px; }
.ticks li::before { content: '✓'; color: var(--ok); font-weight: 700; }
.ticks b { color: var(--ink); }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tbl table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 500 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #f2f5fa; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num { white-space: nowrap; }

.callout { border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 18px 0; font-size: 16px; }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }
.callout.ok { border-color: var(--ok); background: var(--ok-soft); }

/* Партнёрская программа */
.partner { background: var(--navy); color: #c9d3ea; border-radius: 20px; padding: 48px; position: relative; overflow: hidden; }
.partner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(520px 320px at 100% 0%, rgba(12,138,94,.35), transparent 70%); pointer-events: none; }
.partner > * { position: relative; }
.partner h2 { color: #fff; max-width: 18em; }
.partner .big { font: 600 64px/1 var(--display); color: #3ddc97; letter-spacing: -0.03em; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.pgrid div { border-top: 1px solid rgba(255,255,255,.16); padding-top: 16px; }
.pgrid b { display: block; color: #fff; font-size: 17px; }
.pgrid p { margin-top: 6px; font-size: 15.5px; }

/* Статья */
.article { padding-top: 48px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); }
.prose .lead { font-size: 19px; margin-top: 18px; }
.prose .meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.prose h2 { font-size: clamp(23px, 2.6vw, 28px); margin: 52px 0 14px; }
.prose h3 { margin: 30px 0 8px; }
.prose p, .prose li { font-size: 17.5px; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; margin: 14px 0; }
.prose .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-top: 28px; }
.prose .toc b { color: var(--ink); }
.prose .toc ol { margin: 10px 0 0; }
.prose .toc a { text-decoration: none; }

/* Кейсы */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.case .kind { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); }
.case h3 { margin-top: 12px; }
.case .nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.case .nums b { display: block; font: 600 24px/1.1 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.case .nums span { font-size: 13.5px; color: var(--muted); }
.case p { margin-top: 14px; font-size: 15.5px; }

@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .pains, .cases, .pgrid { grid-template-columns: minmax(0, 1fr); }
  .hint { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .partner { padding: 32px 22px; }
  .partner .big { font-size: 48px; }
}
