/* Лендинг CasePulse — статическая страница основного домена, без сборки. Цвета — токены на :root, тёмная тема —
   по prefers-color-scheme. Шрифт Onest лежит рядом (fonts/), чтобы не ходить к Google; лицензия SIL OFL 1.1 —
   fonts/OFL.txt, при обновлении файлов шрифта она остаётся рядом с ними.
   Шкалы: шрифт 13 / 15 / 16 / 17 / 18–19 / 20 (H3; у главной возможности 26) / 30–48 / 36–58 / 64, начертания
   400 / 600 / 700 / 800, отступы с шагом 4 (4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 96), скругления 8 / 12 / 20 / 28
   и «пилюля». Другие значения — только внутри нарисованных телефонов, макета панели и в значках.
   Градиент — только главные кнопки, акцент в H1 и финал. Цвета текста статусов — *-ink, AA на белом и на своих фонах. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f8fc;
  --bg-alt: #e9edf6;
  --surface: #ffffff;
  --surface-2: #f3f5fb;
  --text: #0d1324;
  --muted: #4f5874;
  --faint: #646c87;
  --line: #e1e5f0;
  --brand: #228be6;
  --brand-strong: #1971c2;
  --brand-ink: #1864ab;
  --brand-soft: #e3f0fd;
  --accent: #7048e8;
  --ok: #12b886;
  --ok-ink: #0b7254;
  --ok-soft: #e1f8f0;
  --warn: #f59f00;
  --warn-ink: #a35200;
  --warn-soft: #fff4dc;
  --danger: #fa5252;
  --danger-ink: #c92a2a;
  --danger-soft: #ffe8e8;
  --sec-bg: #0a0d17;
  /* Заливка под белый текст: 5,0–7,1 : 1, в обеих темах одна */
  --grad-fill: linear-gradient(135deg, #1971c2, #5f3dc4);
  --grad-text: linear-gradient(100deg, var(--brand) 10%, var(--accent) 90%);
  --shadow: 0 1px 2px rgb(13 19 36 / 0.04), 0 8px 28px rgb(13 19 36 / 0.07);
  --shadow-lg: 0 2px 6px rgb(13 19 36 / 0.05), 0 30px 60px -12px rgb(13 19 36 / 0.18);
  --glow: radial-gradient(60% 60% at 50% 40%, rgb(34 139 230 / 0.2), transparent 70%);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --wrap: 1180px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a0d17;
    --bg-alt: #121830;
    --surface: #141a2c;
    --surface-2: #1a2136;
    --text: #eef1fa;
    --muted: #a6aec6;
    --faint: #7a83a0;
    --line: #242c45;
    --brand: #4dabf7;
    --brand-ink: #74c0fc;
    --brand-soft: #13284a;
    --accent: #9775fa;
    --ok: #38d9a9;
    --ok-ink: #38d9a9;
    --ok-soft: #0f2e27;
    --warn: #fcc419;
    --warn-ink: #fcc419;
    --warn-soft: #2f2610;
    --danger: #ff8787;
    --danger-ink: #ff8787;
    --danger-soft: #3a1a1e;
    --sec-bg: #10162a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 28px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 30px 60px -12px rgb(0 0 0 / 0.6);
    --glow: radial-gradient(60% 60% at 50% 40%, rgb(77 171 247 / 0.18), transparent 70%);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: var(--r-md);
  background: var(--brand-strong);
  color: #fff;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--grad-fill);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgb(25 113 194 / 0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -8px rgb(25 113 194 / 0.65);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--brand);
}
.btn-lg {
  min-height: 56px;
  padding: 0 24px;
  font-size: 17px;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
/* На узком экране подпись переносится, а не режется */
@media (max-width: 400px) {
  .btn {
    white-space: normal;
    text-align: center;
    padding: 12px 20px;
  }
}

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.header.scrolled,
.header.menu-open {
  border-bottom-color: var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.logo {
  display: flex;
  flex-shrink: 0;
}
.logo img {
  display: block;
  width: auto;
  height: 28px;
}
/* Надпись логотипа стоит на одной линии с текстом меню: без сдвига её базовая линия на 2 px ниже */
.header .logo img {
  position: relative;
  top: -1px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.nav a {
  padding: 8px 12px;
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-cta .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}
.lbl-short {
  display: none;
}
.login-link {
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.login-link:hover {
  color: var(--text);
}
.menu-btn {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.menu-btn svg {
  width: 20px;
  height: 20px;
}
.menu-btn .i-shut,
.menu-btn[aria-expanded='true'] .i-open {
  display: none;
}
.menu-btn[aria-expanded='true'] .i-shut {
  display: block;
}
.menu {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.menu .wrap {
  display: grid;
  padding: 8px 0 16px;
}
.menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.menu a:last-child {
  border-bottom: 0;
  color: var(--brand-ink);
}

/* Навигация не помещается уже 1080 px — вместо неё меню */
@media (max-width: 1080px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-grid;
  }
}
@media (min-width: 1081px) {
  .menu {
    display: none;
  }
}
@media (max-width: 520px) {
  .login-link {
    display: none;
  }
  .logo img {
    height: 24px;
  }
  .header .logo img {
    top: -1px;
  }
  .header-in {
    gap: 12px;
  }
  .lbl-long {
    display: none;
  }
  .lbl-short {
    display: inline;
  }
}
/* Пока видна липкая кнопка, вторая в шапке не нужна */
@media (max-width: 720px) {
  .sticky-on .header-cta .btn {
    display: none;
  }
}

/* ---------- Общее для секций ---------- */

section {
  position: relative;
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 15px;
  font-weight: 600;
}
.eyebrow-mark {
  width: 16px;
  height: 16px;
  color: var(--brand);
}
/* Уже 360 px метка первого экрана в 15 px не помещается в строку */
@media (max-width: 359px) {
  .eyebrow {
    font-size: 13px;
  }
}
.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.section-head h2,
.h2 {
  margin-top: 16px;
  font-size: clamp(30px, 3.6vw, 44px);
}
.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (forced-colors: active) {
  .grad {
    color: CanvasText;
    background: none;
  }
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .section-head p {
    font-size: 17px;
  }
}

/* Карточки — один уровень: фон, рамка, скругление 20, поле 32 (на телефоне 24) */
.card,
.step,
.plan {
  position: relative;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
@media (max-width: 620px) {
  .card,
  .step,
  .plan {
    padding: 24px;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.6;
  white-space: nowrap;
}
.pill svg {
  width: 13px;
  height: 13px;
}
.pill.ok {
  background: var(--ok-soft);
  color: var(--ok-ink);
}
.pill.warn {
  background: var(--warn-soft);
  color: var(--warn-ink);
}
.pill.bad {
  background: var(--danger-soft);
  color: var(--danger-ink);
}
.pill.alert {
  background: var(--brand-soft);
  color: var(--brand-ink);
}

/* ---------- Первый экран ---------- */

.hero {
  padding: 40px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  background:
    radial-gradient(40% 50% at 78% 30%, rgb(112 72 232 / 0.14), transparent 70%),
    radial-gradient(45% 55% at 20% 10%, rgb(34 139 230 / 0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
}
.hero h1 {
  margin-top: 16px;
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero h1 .grad {
  display: block;
}
.hero-lead {
  margin-top: 20px;
  max-width: 580px;
  color: var(--muted);
  font-size: 19px;
}
.hero-lead b {
  color: var(--text);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust svg {
  width: 18px;
  height: 18px;
  color: var(--ok);
  flex: none;
}

/* ---------- Нарисованные телефоны ----------
   Корпус, рамка экрана, вырез камеры, кнопки и строка состояния — как у телефона посетителя: data-phone и data-os
   на <html> ставит phone.js, по умолчанию и без скрипта — iPhone. Размеры — доли ширины корпуса --pw по габаритам
   моделей: iPhone 17 Pro, Galaxy S25 Ultra, Pixel 10 Pro, Xiaomi 15, Honor Magic7 Pro. Экран всегда светлый или
   со своими обоями — цвета внутри заданы явно. */
.phone {
  --pw: 300px;
  --ratio: 2.086; /* высота корпуса к ширине */
  --round: 0.158; /* скругление корпуса к ширине */
  --rim: 3px; /* металлическая рамка, видная спереди */
  --bezel: 5px; /* чёрное поле вокруг экрана */
  --d: calc(var(--pw) - 2 * (var(--rim) + var(--bezel))); /* ширина экрана */
  /* Металл: блик, основной тон, тень. У iPhone 17 Pro — «глубокий синий» */
  --m-hi: #6d7fa1;
  --m-base: #2b3753;
  --m-lo: #111726;
  --btn: linear-gradient(90deg, var(--m-lo), var(--m-hi) 50%, var(--m-lo));
  /* Кнопки — слои фона полосок вдоль торцов: слева кнопка действия и громкость, справа боковая кнопка
     и сапфировое «Управление камерой» */
  --btns-l:
    var(--btn) 0 calc(var(--pw) * 0.375) / 100% calc(var(--pw) * 0.11) no-repeat,
    var(--btn) 0 calc(var(--pw) * 0.57) / 100% calc(var(--pw) * 0.19) no-repeat,
    var(--btn) 0 calc(var(--pw) * 0.81) / 100% calc(var(--pw) * 0.19) no-repeat;
  --btns-r:
    var(--btn) 0 calc(var(--pw) * 0.57) / 100% calc(var(--pw) * 0.25) no-repeat,
    linear-gradient(90deg, #0b0e14, #3b4456 50%, #0b0e14) 0 calc(var(--pw) * 1.32) / 100% calc(var(--pw) * 0.2) no-repeat;
  /* Вырез — Dynamic Island; середина строки состояния — на его уровне */
  --cam-w: calc(var(--d) * 0.31);
  --cam-h: calc(var(--d) * 0.092);
  --cam-top: calc(var(--d) * 0.027);
  --bar-h: calc(var(--d) * 0.146);
  position: relative;
  width: var(--pw);
  height: calc(var(--pw) * var(--ratio));
  padding: var(--rim);
  border-radius: calc(var(--pw) * var(--round));
  background: linear-gradient(
    150deg,
    var(--m-hi),
    var(--m-base) 10%,
    var(--m-lo) 28%,
    var(--m-base) 48%,
    var(--m-hi) 58%,
    var(--m-base) 70%,
    var(--m-lo) 88%,
    var(--m-hi)
  );
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.22),
    0 0 0 0.5px rgb(0 0 0 / 0.55),
    var(--shadow-lg);
}
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
}
.phone::before {
  left: -2px;
  background: var(--btns-l);
}
.phone::after {
  right: -2px;
  background: var(--btns-r);
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: var(--bezel) solid #040508;
  border-radius: calc(var(--pw) * var(--round) - var(--rim));
  background: #e9eef6;
  color: #0d1324;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 0.5px rgb(255 255 255 / 0.12);
}
/* Блик на стекле */
.phone-screen::after {
  content: '';
  position: absolute;
  z-index: 6;
  inset: 0;
  background: linear-gradient(115deg, rgb(255 255 255 / 0.12), transparent 35%);
  pointer-events: none;
}
.phone-cam {
  position: absolute;
  z-index: 5;
  top: var(--cam-top);
  left: 50%;
  width: var(--cam-w);
  height: var(--cam-h);
  translate: -50% 0;
  border-radius: 999px;
  /* Объектив фронтальной камеры — у правого края острова */
  background: radial-gradient(
    circle at calc(100% - var(--cam-h) / 2) 50%,
    #22304e 0,
    #0a0e18 calc(var(--cam-h) * 0.2),
    #000 calc(var(--cam-h) * 0.3)
  );
}
.phone-bar {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  height: var(--bar-h);
  display: grid;
  grid-template-columns: 1fr var(--cam-w) 1fr;
  align-items: center;
  justify-items: center;
  padding: 0 calc(var(--d) * 0.03);
  font: 600 calc(var(--d) * 0.044) / 1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.01em;
}
.phone-icons {
  grid-column: -2;
  display: flex;
  align-items: center;
  gap: calc(var(--d) * 0.014);
  font-size: calc(var(--d) * 0.031);
}
.phone-icons svg {
  width: 1.5em;
  height: 1em;
}
.phone-icons .sb-wifi {
  width: 1.34em;
}
.phone-icons .sb-batt {
  width: 2.25em;
  height: 1.08em;
}
:root:not([data-os='android']) .and-only,
[data-os='android'] .ios-only {
  display: none;
}

/* Android: время у левого края, значки у правого, вырез — точка */
[data-os='android'] .phone-bar {
  grid-template-columns: 1fr auto;
  justify-items: start;
  padding: 0 calc(var(--d) * 0.075);
  font-weight: 500;
  font-size: calc(var(--d) * 0.039);
  letter-spacing: 0;
}
[data-os='android'] .phone-icons {
  gap: calc(var(--d) * 0.006);
  font-size: calc(var(--d) * 0.045);
}
[data-os='android'] .phone-icons svg {
  width: 1em;
}
[data-os='android'] .phone-cam {
  --cam-h: var(--cam-w);
  background: radial-gradient(circle at 38% 36%, #2d3d62 0 10%, #0b0f18 36%, #000 62%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.04);
}
/* Galaxy S25 Ultra: углы почти прямые, «титановый серебристо-синий», справа громкость и питание */
[data-phone='galaxy'] .phone {
  --ratio: 2.098;
  --round: 0.11;
  --m-hi: #f1f4f8;
  --m-base: #aab4c4;
  --m-lo: #697485;
  --btns-l: none;
  --btns-r:
    var(--btn) 0 calc(var(--pw) * 0.43) / 100% calc(var(--pw) * 0.31) no-repeat,
    var(--btn) 0 calc(var(--pw) * 0.83) / 100% calc(var(--pw) * 0.15) no-repeat;
  --cam-w: calc(var(--d) * 0.042);
  --cam-top: calc(var(--d) * 0.03);
  --bar-h: calc(var(--d) * 0.102);
}
[data-phone='galaxy'] .phone-bar {
  padding-inline: calc(var(--d) * 0.065);
}
/* Pixel 10 Pro: скруглённый, поле экрана шире, «лунный камень», справа питание над громкостью */
[data-phone='pixel'] .phone {
  --ratio: 2.122;
  --round: 0.148;
  --bezel: 7px;
  --m-hi: #d3d9e1;
  --m-base: #7f8a98;
  --m-lo: #434b57;
  --btns-l: none;
  --btns-r:
    var(--btn) 0 calc(var(--pw) * 0.46) / 100% calc(var(--pw) * 0.17) no-repeat,
    var(--btn) 0 calc(var(--pw) * 0.7) / 100% calc(var(--pw) * 0.36) no-repeat;
  --cam-w: calc(var(--d) * 0.05);
  --cam-top: calc(var(--d) * 0.034);
  --bar-h: calc(var(--d) * 0.118);
}
[data-phone='pixel'] .phone-bar {
  padding-inline: calc(var(--d) * 0.09);
}
/* Xiaomi 15 — и другие Android: тонкое поле, графитовая рамка, справа громкость над питанием */
[data-phone='xiaomi'] .phone {
  --ratio: 2.12;
  --round: 0.137;
  --bezel: 6px;
  --m-hi: #7a7d85;
  --m-base: #2d2f34;
  --m-lo: #101113;
  --btns-l: none;
  --btns-r:
    var(--btn) 0 calc(var(--pw) * 0.45) / 100% calc(var(--pw) * 0.3) no-repeat,
    var(--btn) 0 calc(var(--pw) * 0.86) / 100% calc(var(--pw) * 0.15) no-repeat;
  --cam-w: calc(var(--d) * 0.04);
  --cam-top: calc(var(--d) * 0.03);
  --bar-h: calc(var(--d) * 0.1);
}
/* Honor Magic7 Pro и Huawei: экран изогнут к краям, вырез — «таблетка» с камерой и датчиком лица */
[data-phone='honor'] .phone {
  --ratio: 2.11;
  --round: 0.14;
  --rim: 2px;
  --m-hi: #8d929b;
  --m-base: #3c4047;
  --m-lo: #17191c;
  --btns-l: none;
  --btns-r:
    var(--btn) 0 calc(var(--pw) * 0.42) / 100% calc(var(--pw) * 0.3) no-repeat,
    var(--btn) 0 calc(var(--pw) * 0.82) / 100% calc(var(--pw) * 0.15) no-repeat;
  --cam-w: calc(var(--d) * 0.19);
  --cam-top: calc(var(--d) * 0.03);
  --bar-h: calc(var(--d) * 0.124);
}
[data-phone='honor'] .phone-cam {
  --cam-h: calc(var(--d) * 0.062);
  background:
    radial-gradient(circle at 24% 50%, #2d3d62 0 6%, #0b0f18 11%, transparent 15%),
    radial-gradient(circle at 78% 50%, #1a2131 0 4%, transparent 8%),
    #000;
}
/* Изогнутое стекло темнеет у боковых краёв */
[data-phone='honor'] .phone-screen::after {
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.16), transparent 4%, transparent 96%, rgb(0 0 0 / 0.16)),
    linear-gradient(115deg, rgb(255 255 255 / 0.12), transparent 35%);
}

/* Телефон первого экрана с чатом клиента выходит снизу, из-под ленты каналов: сцена тянется до нижнего края
   первого экрана, над ним видна часть телефона высотой --vis, низ корпуса срезан краем секции */
.stage {
  --vis: 560px;
  position: relative;
  align-self: stretch;
  min-height: 600px;
  margin-bottom: -96px;
}
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glow);
}
.stage .phone {
  --pw: 340px;
  position: absolute;
  top: calc(100% - var(--vis));
  left: calc(50% - var(--pw) / 2);
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--bar-h) + 2px) 14px 10px 10px;
  background: #fff;
  border-bottom: 1px solid #e1e5f0;
}
.chat-back {
  flex: none;
  width: 22px;
  height: 22px;
  margin-right: -2px;
  color: #1971c2;
}
[data-os='android'] .chat-back {
  color: #0d1324;
}
.chat-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.chat-ava img {
  width: 100%;
  height: 100%;
}
.chat-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}
.chat-sub {
  font-size: 13px;
  color: #0b7254;
}
.chat-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px 8px;
}
.msg {
  max-width: 90%;
  padding: 9px 12px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgb(13 19 36 / 0.06);
}
.msg b {
  font-weight: 700;
}
.msg small {
  display: block;
  margin-top: 4px;
  color: #5f6782;
  font-size: 11px;
  text-align: right;
}
.msg.me {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: #d0ebff;
}
.msg-btns {
  display: grid;
  margin-top: 8px;
}
.msg-btns span {
  padding: 8px;
  border-radius: var(--r-md);
  background: #e7f5ff;
  color: #1864ab;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
}
.chat-anim .msg {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.chat-anim .msg:nth-child(1) {
  animation-delay: 0.3s;
}
.chat-anim .msg:nth-child(2) {
  animation-delay: 1.4s;
}
.chat-anim .msg:nth-child(3) {
  animation-delay: 2.3s;
}
@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Плавающие карточки появляются один раз и стоят на месте */
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  animation: float-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.float-card b {
  display: block;
  font-size: 15px;
}
.float-card span {
  color: var(--muted);
}
.float-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
}
.float-ic svg {
  width: 20px;
  height: 20px;
}
/* Над верхом телефона */
.fc-1 {
  top: calc(100% - var(--vis) - 56px);
  left: 0;
  animation-delay: 0.9s;
}
.fc-1 .float-ic {
  background: var(--ok-soft);
  color: var(--ok-ink);
}
/* Внизу сцены, над пустым местом чата: сообщения не закрывает */
.fc-2 {
  bottom: 56px;
  right: 0;
  animation-delay: 2.8s;
}
.fc-2 .float-ic {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  /* Сцена не растягивается на всю ширину: карточки держатся у телефона */
  .stage {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
    min-height: 0;
    height: 620px;
  }
}
@media (max-width: 520px) {
  .hero {
    padding: 32px 0 64px;
  }
  /* Цитата «как там моё дело?» — одной строкой и на 320 px: она шириной почти в 10 кеглей */
  .hero h1 {
    font-size: min(36px, (100vw - 32px) / 10);
  }
  .hero-lead {
    font-size: 17px;
  }
  .hero-actions .btn-primary {
    width: 100%;
  }
  /* Вторая кнопка — текстовая ссылка */
  .hero-actions .btn-ghost {
    min-height: 0;
    padding: 8px 0;
    border: 0;
    background: none;
    color: var(--brand-ink);
    font-size: 16px;
  }
  .hero-actions .btn-ghost::after {
    content: '→';
  }
  .float-card {
    padding: 8px 12px;
  }
  .stage {
    --vis: 476px;
    height: 520px;
    margin-bottom: -64px;
  }
  /* Почти во всю ширину: так в узком экране чата меньше строк и ответ бота виден над краем */
  .stage .phone {
    --pw: min(300px, 100vw - 40px);
  }
  .fc-1 {
    top: calc(100% - var(--vis) - 44px);
  }
  .fc-2 {
    bottom: 12px;
  }
}

/* ---------- Каналы ---------- */

.channels {
  padding: 32px 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.channels-label {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.chip-ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
}
.chip-ic svg {
  width: 16px;
  height: 16px;
}
.chip-vk,
.note-vk {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
@media (max-width: 520px) {
  .chips {
    gap: 8px;
  }
  .chip {
    padding-right: 12px;
  }
}

/* ---------- Знакомо? ---------- */

.pain-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}
.lock {
  display: grid;
  place-items: center;
}
.phone-lock {
  --pw: 290px;
}
.lock-screen {
  padding: var(--bar-h) calc(var(--d) * 0.04) 0;
  background:
    radial-gradient(80% 60% at 20% 0%, rgb(77 171 247 / 0.45), transparent 70%),
    linear-gradient(170deg, #1c2747, #2d2160);
  color: #fff;
}
.lock-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: calc(var(--d) * 0.04) 0 calc(var(--d) * 0.06);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.lock-time {
  font-size: calc(var(--d) * 0.22);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.lock-date {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.9;
}
/* В iOS дата над часами, часы крупные и жирные, уведомления — внизу, над кнопками */
:root:not([data-os='android']) .lock-date {
  order: -1;
  margin: 0 0 2px;
  font-size: calc(var(--d) * 0.056);
  font-weight: 600;
}
:root:not([data-os='android']) .lock-time {
  font-size: calc(var(--d) * 0.27);
  font-weight: 700;
}
:root:not([data-os='android']) .lock-notes {
  margin-top: auto;
}
.lock-dock {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: calc(var(--d) * 0.06) calc(var(--d) * 0.06) calc(var(--d) * 0.1);
}
:root:not([data-os='android']) .lock-dock {
  margin-top: 0;
}
.lock-dock span {
  display: grid;
  place-items: center;
  width: calc(var(--d) * 0.16);
  height: calc(var(--d) * 0.16);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
}
.lock-dock svg {
  width: 44%;
  height: 44%;
}
/* Полоска жестов внизу экрана */
.phone-home {
  position: absolute;
  bottom: calc(var(--d) * 0.025);
  left: 50%;
  width: calc(var(--d) * 0.36);
  height: 5px;
  translate: -50% 0;
  border-radius: 3px;
  background: #fff;
}
[data-os='android'] .phone-home {
  width: calc(var(--d) * 0.3);
  height: 4px;
  opacity: 0.75;
}
[data-os='android'] .note-ic {
  border-radius: 50%;
}
.note {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.88);
  color: #0d1324;
  font-size: 13px;
  line-height: 1.35;
}
.note-h {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.note-h small {
  color: #4f5874;
  font-size: 12px;
}
.note-ic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--c);
  color: #fff;
}
.note-ic svg {
  width: 16px;
  height: 16px;
}
.pain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pain-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.pain-list li:first-child {
  padding-top: 0;
}
.pain-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.pain-list h3 {
  font-size: 20px;
}
.pain-list p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}
/* Значки нейтральные: эмоцию несёт текст, а не цвет ошибки */
.pain-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}
.pain-ic svg {
  width: 22px;
  height: 22px;
}
.pain-result {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding: 24px 32px;
  border-radius: var(--r-lg);
  background: var(--brand-strong);
  color: #fff;
}
.pain-result p {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}
.pain-result svg {
  --mark-dot: #38d9a9;
  width: 40px;
  height: 40px;
  flex: none;
  color: #fff;
}
@media (max-width: 860px) {
  .pain-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}
@media (max-width: 520px) {
  .phone-lock {
    --pw: 272px;
  }
  /* В iOS уведомления стоят над кнопками, и четыре в узком экране прижимают кнопки к полоске жестов */
  :root:not([data-os='android']) .note:last-child {
    display: none;
  }
  .pain-result {
    align-items: flex-start;
    padding: 20px 24px;
  }
  .pain-result p {
    font-size: 17px;
  }
  .pain-result svg {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Как это работает ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
/* Номер шага с бегунком, как у знака */
.step-n {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-strong);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.step-n::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ok);
  border: 3px solid var(--surface);
}
.step h3 {
  margin-top: 20px;
  font-size: 20px;
}
.step p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 16px;
}
.step-time {
  margin-top: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok-ink);
  font-weight: 600;
  font-size: 13px;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Номер слева от текста — шаг ниже на ~60 px */
  .step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    justify-items: start;
  }
  .step > :not(.step-n) {
    grid-column: 2;
  }
  .step-n {
    grid-row: 1 / span 3;
  }
  .step h3 {
    margin-top: 8px;
  }
}

/* Панель юриста — страница «Дела» вёрсткой, 1 : 1 с web/ (Layout, CasesPage, CaseCard, panel.css): размеры шрифта
   и отступов — панели, а не шкал лендинга, цвета — токены лендинга. Уже 1000 px дела — столбиком, как в панели уже
   992 px; на телефоне — мобильная раскладка шириной до 390 px, обрезанная по высоте, с нижней панелью разделов */
.panel-wrap {
  margin-top: 64px;
}
.panel-title {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: 20px;
}
.panel-mock {
  --pm-field: #8a93a6;
  --pm-seg: var(--surface);
  --pm-rail-warn: #e67700;
  --pm-orange-soft: #fff0e0;
  --pm-orange-ink: #a63c06;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.45;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .panel-mock {
    --pm-field: #5a6587;
    --pm-seg: var(--line);
    --pm-rail-warn: var(--warn);
    --pm-orange-soft: #3a2410;
    --pm-orange-ink: #ffa94d;
  }
  :root:not([data-theme='light']) .pm-logo svg {
    color: #fff;
    --mark-dot: #38d9a9;
  }
}
.panel-mock svg {
  flex: none;
}

/* Шапка: знак, практика за чертой, разделы с чертой у выбранного, колокольчик, пользователь */
.pm-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.pm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pm-logo svg {
  width: 28px;
  height: 28px;
  color: #228be6;
  --mark-dot: #12b886;
}
.pm-practice {
  margin-inline-start: 8px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--line);
  font-weight: 500;
  white-space: nowrap;
}
.pm-nav {
  display: flex;
  align-self: stretch;
  margin-inline-start: 16px;
}
.pm-nav > * {
  position: relative;
  display: flex;
  align-items: center;
  padding-inline: 12px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.pm-nav b {
  color: var(--text);
  font-weight: 600;
}
.pm-nav b::after {
  content: '';
  position: absolute;
  inset: auto 12px -1px;
  border-bottom: 2px solid var(--brand-strong);
}
.pm-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-inline-start: auto;
}
.pm-bell svg {
  width: 20px;
  height: 20px;
}
.pm-bell i {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 16px;
  padding-inline: 4px;
  border-radius: 8px;
  background: #e03131;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.pm-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  white-space: nowrap;
}
.pm-user i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}
.pm-user svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

/* Страница: заголовок с кнопками, вкладки и фильтры, дела */
.pm-page {
  display: grid;
  gap: 24px;
  padding: 24px 32px 32px;
}
.pm-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-title {
  margin-inline-end: auto;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pm-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-inline: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-weight: 600;
  white-space: nowrap;
}
.pm-btn-main {
  border-color: transparent;
  background: var(--brand-strong);
  color: #fff;
}
.pm-filters {
  display: grid;
  justify-items: start;
  gap: 8px;
}
.pm-tabs {
  display: flex;
  padding: 4px;
  border-radius: var(--r-sm);
  background: var(--bg-alt);
  font-weight: 500;
}
.pm-tabs > * {
  padding: 4px 14px;
  border-radius: 6px;
  color: var(--muted);
}
.pm-tabs b {
  background: var(--pm-seg);
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 1px 2px rgb(13 19 36 / 0.08);
}
.pm-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-self: stretch;
}
.pm-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1 1 180px;
  min-width: 0;
  height: 36px;
  padding-inline: 12px;
  border: 1px solid var(--pm-field);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
}
.pm-search {
  flex: 2 1 240px;
}
.pm-field svg {
  width: 16px;
  height: 16px;
}
.pm-chip {
  flex: none;
  padding-inline: 16px;
  color: var(--text);
}
.pm-tabbar {
  display: none;
}

/* Дело: полоса цвета состояния; столбиком — дело, этап и срок, под ними метки одной строкой, состояние первым */
.pm-cases {
  display: grid;
  gap: 12px;
}
.pm-case {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  padding: 16px 16px 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.pm-case::before {
  content: '';
  position: absolute;
  inset: 12px auto 12px 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--pm-rail);
}
.pm-case[data-health='ok'] {
  --pm-rail: var(--ok);
}
.pm-case[data-health='warn'] {
  --pm-rail: var(--pm-rail-warn);
}
.pm-case[data-health='bad'] {
  --pm-rail: var(--danger);
}
.pm-main,
.pm-stage {
  display: grid;
  flex: 1 0 100%;
  gap: 4px;
  min-width: 0;
}
.pm-main b {
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}
.pm-sub {
  color: var(--muted);
}
/* Срок не обрезается, как в панели: «просрочен на 12 дней» важнее названия этапа — переносится */
.pm-main .pm-sub,
.pm-stage-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-due {
  font-weight: 600;
}
.pm-due.soon {
  color: var(--warn-ink);
}
.pm-due.late {
  color: var(--danger-ink);
}
.pm-marks,
.pm-health {
  display: contents;
}
.pm-health > * {
  order: 1;
}
.pm-marks > * {
  order: 2;
}
.pm-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pm-badge.ok {
  background: var(--ok-soft);
  color: var(--ok-ink);
}
.pm-badge.warn {
  background: var(--warn-soft);
  color: var(--warn-ink);
}
.pm-badge.bad {
  background: var(--danger-soft);
  color: var(--danger-ink);
}
.pm-badge.new {
  background: var(--brand-strong);
  color: #fff;
}
.pm-badge.anxious {
  background: var(--pm-orange-soft);
  color: var(--pm-orange-ink);
}
@media (min-width: 1000px) {
  .pm-case {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 164px 136px;
    grid-template-areas: 'main stage marks health';
    column-gap: 24px;
  }
  .pm-main {
    grid-area: main;
  }
  .pm-stage {
    grid-area: stage;
  }
  .pm-marks,
  .pm-health {
    display: flex;
  }
  .pm-marks {
    grid-area: marks;
    flex-wrap: wrap;
    gap: 6px;
  }
  .pm-health {
    grid-area: health;
    justify-self: end;
  }
  .pm-main b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (min-width: 1200px) {
  .pm-case {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 180px 136px;
    column-gap: 32px;
  }
}
/* Уже — без практики и имени пользователя, ещё уже — три первых раздела */
@media (max-width: 1080px) {
  .pm-practice,
  .pm-user span {
    display: none;
  }
}
@media (max-width: 900px) {
  .pm-nav > :nth-child(n + 4) {
    display: none;
  }
  .pm-page {
    padding-inline: 24px;
  }
}

/* Телефон: в шапке знак и колокольчик, список прокручен до дел, разделы — в нижней панели; высота — до третьего дела */
@media (max-width: 620px) {
  .panel-mock {
    max-width: 390px;
    max-height: 680px;
    border-radius: var(--r-lg);
  }
  .pm-practice,
  .pm-nav,
  .pm-user,
  .pm-head,
  .pm-filters {
    display: none;
  }
  .pm-page {
    padding: 16px 16px 72px;
  }
  .pm-tabbar {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 12px;
  }
  .pm-tabbar > * {
    display: grid;
    justify-items: center;
    gap: 2px;
    color: var(--muted);
    font-weight: 500;
  }
  .pm-tabbar b {
    color: var(--brand-ink);
    font-weight: 600;
  }
  .pm-tabbar svg {
    width: 22px;
    height: 22px;
  }
}

/* ---------- Глазами клиента ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.checks {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
}
.checks svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok-ink);
}
.checks b {
  display: block;
  font-size: 18px;
}
.checks span {
  color: var(--muted);
  font-size: 16px;
}
.client-page {
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.cp-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cp-head b {
  font-size: 18px;
}
.cp-head span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.cp-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
}
/* Кольцо хода дела — мотив знака: дорожка, дуга, бегунок */
.ring {
  width: 64px;
  height: 64px;
}
.ring circle {
  fill: none;
  stroke-width: 7;
}
.ring-track {
  stroke: color-mix(in srgb, var(--brand) 20%, transparent);
}
.ring-bar {
  stroke: var(--brand);
  stroke-linecap: round;
}
.ring .ring-dot {
  fill: var(--ok);
  stroke: var(--brand-soft);
  stroke-width: 2.5;
}
.cp-step small {
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 13px;
}
.cp-step p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
}
.cp-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.cp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  font-size: 15px;
}
.cp-item svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex: none;
}
.cp-item em {
  margin-left: auto;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.cp-btn {
  display: block;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--brand-strong);
  color: #fff;
  font-weight: 700;
  text-align: center;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}
@media (max-width: 520px) {
  .cp-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .cp-step {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }
  .ring {
    width: 52px;
    height: 52px;
  }
  .client-page {
    padding: 16px;
  }
}

/* ---------- Возможности: 4 главные + 6 списком ---------- */

.feat-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feat-main .card-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.feat-main .card-feature h3 {
  font-size: 26px;
}
.card-feature .cf-text > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.card {
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-size: 20px;
}
.card > p {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 16px;
}
.card-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
}
.card-ic svg {
  width: 24px;
  height: 24px;
}
.card-feature {
  background: linear-gradient(150deg, var(--surface) 45%, var(--brand-soft));
}
/* Демо прижато к низу карточки, чтобы в ряду низ совпадал */
.status-demo,
.bot-demo,
.health,
.stages {
  margin-top: auto;
}
.status-demo {
  display: grid;
  gap: 12px;
}
.sd {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}
.sd-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sd-h i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sd.ok .sd-h {
  color: var(--ok-ink);
}
.sd.ok .sd-h i {
  background: var(--ok);
}
.sd.esc .sd-h {
  color: var(--warn-ink);
}
.sd.esc .sd-h i {
  background: var(--warn);
}
.bot-demo {
  padding: 16px;
  border-radius: var(--r-md);
  font-size: 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.bot-reply {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ok-ink);
  font-weight: 600;
}
.bot-reply svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
}
.bot-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.bot-btns span {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 13px;
}
.health {
  display: grid;
  gap: 8px;
}
.health-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 12px 8px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 15px;
  font-weight: 600;
}
/* Этапы — лесенка: пройденный — галочка, текущий — бегунок, будущий — пустой круг */
.stages {
  position: relative;
  display: grid;
  gap: 4px;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}
.stages li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.stages li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 28px;
  width: 2px;
  height: 14px;
  background: var(--line);
}
.stages i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  flex: none;
}
.stages .done {
  color: var(--text);
}
.stages .done i {
  border-color: var(--ok);
  background: var(--ok);
}
.stages .done i::before {
  content: '';
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.stages .cur {
  color: var(--brand-ink);
}
.stages .cur i {
  position: relative;
  border: 5px solid var(--brand);
}
.stages .cur i::after {
  content: '';
  position: absolute;
  top: -7px;
  right: -7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--surface);
}
.stages em {
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-soft);
}
.feat-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.feat-more li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
}
.fm-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand);
}
.fm-ic svg {
  width: 20px;
  height: 20px;
}
.feat-more h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.feat-more p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 1100px) {
  .feat-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* В две колонки четвёртая карточка осталась бы в ряду одна — она во всю ширину, этапы справа от текста */
@media (min-width: 861px) and (max-width: 1100px) {
  .feat-main > .card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 32px;
  }
  .feat-main > .card:last-child .stages {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    margin-top: 0;
  }
}
@media (max-width: 960px) {
  .feat-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (max-width: 860px) {
  .feat-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .feat-main .card-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
@media (max-width: 620px) {
  .feat-more {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
  }
}

/* ---------- Калькулятор ---------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.calc-in {
  padding: 32px;
  display: grid;
  gap: 32px;
}
.field label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
}
.field output {
  color: var(--brand-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.field small {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 13px;
}
/* Свой ползунок: трек 6 px, бегунок 26 px, пройденная часть — цветом бренда (--p ставит main.js) */
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 28px;
  margin: 8px 0 0;
  background: transparent;
  cursor: pointer;
  --p: 50%;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) var(--p), var(--line) var(--p));
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--brand-strong);
  border: 4px solid #fff;
  box-shadow: 0 1px 4px rgb(13 19 36 / 0.35);
}
input[type='range']::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}
input[type='range']::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
}
input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-strong);
  border: 4px solid #fff;
  box-shadow: 0 1px 4px rgb(13 19 36 / 0.35);
}
input[type='range']:focus-visible {
  outline-offset: 4px;
}
.calc-out {
  padding: 32px;
  background: var(--grad-fill);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-out .big {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: proportional-nums;
}
.calc-out .lbl {
  margin-top: 8px;
  opacity: 0.9;
  font-size: 16px;
}
.calc-out hr {
  width: 100%;
  margin: 24px 0;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 0.25);
}
.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}
.calc-row + .calc-row {
  margin-top: 8px;
}
.calc-row b {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc-note {
  margin-top: 24px;
  font-size: 13px;
  opacity: 0.9;
}
.calc-out .btn {
  margin-top: 24px;
  background: #fff;
  color: var(--brand-ink);
}
@media (prefers-color-scheme: dark) {
  .calc-out .btn {
    color: #1864ab;
  }
}
@media (max-width: 860px) {
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .calc-in,
  .calc-out {
    padding: 24px;
  }
  .calc-out .big {
    font-size: 48px;
  }
}

/* ---------- Безопасность ---------- */

.sec {
  background: var(--sec-bg);
  color: #eef1fa;
  --line: #242c45;
  --muted: #a6aec6;
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .sec {
    border-block: 1px solid #242c45;
  }
}
.sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 50% at 85% 0%, rgb(112 72 232 / 0.25), transparent 70%),
    radial-gradient(35% 45% at 0% 100%, rgb(34 139 230 / 0.22), transparent 70%);
  pointer-events: none;
}
.sec .wrap {
  position: relative;
}
.sec .eyebrow {
  background: rgb(77 171 247 / 0.14);
  color: #74c0fc;
}
.sec .section-head p {
  color: #a6aec6;
}
.sec-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sec-group {
  padding: 32px;
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.08);
}
.sec-group h3 {
  font-size: 20px;
}
.sec-group ul {
  display: grid;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.sec-group li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
}
.sec-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgb(77 171 247 / 0.14);
  color: #74c0fc;
}
.sec-ic svg {
  width: 20px;
  height: 20px;
}
.sec-group b {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}
.sec-group p {
  margin-top: 4px;
  color: #a6aec6;
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 960px) {
  .sec-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  .sec-group {
    padding: 24px;
  }
}

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

.compare {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
}
.compare .c-first {
  width: 28%;
}
.compare th,
.compare td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}
.compare tbody th {
  font-weight: 600;
}
.compare tbody tr:last-child > * {
  border-bottom: 0;
}
.compare .us {
  background: color-mix(in srgb, var(--brand-soft) 70%, transparent);
  font-weight: 600;
}
.compare thead .us {
  color: var(--brand-ink);
}
/* Значок по первой строке текста, а не по центру ячейки */
.yes,
.no,
.mid {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.yes::before,
.no::before,
.mid::before {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.yes::before {
  content: '✓';
  background: var(--ok-soft);
  color: var(--ok-ink);
}
.no::before {
  content: '✕';
  background: var(--danger-soft);
  color: var(--danger-ink);
}
/* «Частично» — полукруг */
.mid::before {
  content: '';
  width: 16px;
  height: 16px;
  margin: 4px 2px 0;
  border: 2px solid var(--warn-ink);
  background: linear-gradient(90deg, var(--warn-ink) 50%, transparent 50%);
}
.compare-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
/* На телефоне — по карточке на строку сравнения */
@media (max-width: 760px) {
  .compare {
    border: 0;
    background: none;
    border-radius: 0;
    overflow: visible;
  }
  .compare table,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: auto;
  }
  .compare colgroup,
  .compare thead {
    display: none;
  }
  .compare tr {
    margin-bottom: 8px;
    padding: 12px 16px;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .compare tbody tr:last-child > * {
    border-bottom: 1px solid var(--line);
  }
  .compare tbody th {
    padding: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
  }
  .compare td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }
  .compare tr > td:last-child {
    border-bottom: 0;
  }
  .compare td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 400;
    text-align: left;
  }
  .compare td.us {
    margin-bottom: 4px;
    padding: 6px 12px;
    border-radius: var(--r-md);
    border-bottom: 0;
  }
  .compare td.us::before {
    color: var(--brand-ink);
    font-weight: 700;
  }
  .compare-legend {
    justify-content: flex-start;
  }
}

/* ---------- Тарифы ---------- */

.pricing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: -16px 0 32px;
}
.period {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.period button {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.period button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgb(13 19 36 / 0.15);
}
.period em {
  margin-left: 8px;
  font-style: normal;
  color: var(--ok-ink);
}
.trial-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}
.trial-line svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  color: var(--ok-ink);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
}
.plan.hot {
  padding: 31px;
  border: 2px solid var(--brand-strong);
  box-shadow: var(--shadow-lg);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 31px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--brand-strong);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}
.plan h3 {
  font-size: 20px;
}
.plan-for {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 24px;
}
.price b {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: proportional-nums;
}
.price span {
  color: var(--muted);
  font-size: 16px;
}
.price-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.price-sub.save {
  color: var(--ok-ink);
  font-weight: 600;
}
.plan ul {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15px;
}
.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
}
.plan li svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--ok);
}
.plan .btn {
  margin-top: auto;
  width: 100%;
}
.free-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 960px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
  .plans {
    row-gap: 24px;
  }
}
@media (max-width: 620px) {
  .plan.hot {
    padding: 23px;
  }
  .plan-badge {
    left: 23px;
  }
}

/* ---------- Вопросы ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq-side {
  position: sticky;
  top: 100px;
}
.faq-side p {
  margin-top: 16px;
  color: var(--muted);
}
.faq-side .btn {
  margin-top: 24px;
}
.faq-contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.faq-contact b {
  font-size: 18px;
}
.faq-contact p {
  margin-top: 4px;
  font-size: 16px;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
/* Контакты — из CONTACTS в main.js: незаполненный контакт скрыт атрибутом hidden, блок без контактов — тоже.
   «Почта» — кнопка: она копирует адрес, а не показывает его */
.contact-links a,
.contact-links button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.contact-links a:hover,
.contact-links button:hover {
  border-color: var(--brand);
}
.contact-links button.copied {
  border-color: var(--ok);
  color: var(--ok-ink);
}
[data-contact][hidden],
.faq-contact[hidden],
.footer-contacts[hidden] {
  display: none;
}
.contact-links svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}
.qa {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.qa:first-child summary {
  padding-top: 0;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: '';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 2px 12px no-repeat,
    var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s ease;
}
.qa[open] summary::after {
  transform: rotate(45deg);
}
.qa-body {
  padding: 0 48px 24px 0;
  color: var(--muted);
}
.qa-body p + p {
  margin-top: 8px;
}
.qa-body b {
  color: var(--text);
}
@media (max-width: 900px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .faq-side {
    position: static;
  }
  .qa summary {
    font-size: 17px;
  }
  .qa-body {
    padding-right: 0;
  }
}

/* ---------- Финальный призыв ---------- */

.final {
  padding: 96px 0;
}
.final-card {
  position: relative;
  overflow: hidden;
  padding: 64px 40px;
  border-radius: var(--r-xl);
  background: var(--grad-fill);
  color: #fff;
  text-align: center;
}
.final-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(35% 60% at 100% 100%, rgb(255 255 255 / 0.1), transparent 70%);
}
.final-card > * {
  position: relative;
}
.final-card h2 {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
}
.final-card p {
  max-width: 620px;
  margin: 16px auto 0;
  font-size: 18px;
  opacity: 0.92;
}
.final-card .btn {
  margin-top: 32px;
  background: #fff;
  color: #1864ab;
  box-shadow: 0 16px 40px -10px rgb(0 0 0 / 0.4);
}
.final-card small {
  display: block;
  margin-top: 16px;
  opacity: 0.9;
  font-size: 13px;
}
@media (max-width: 560px) {
  .final {
    padding: 64px 0;
  }
  .final-card {
    padding: 48px 24px;
  }
  .final-card .btn {
    width: 100%;
  }
}

/* ---------- Подвал ---------- */

.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 32px;
}
.footer-brand p {
  margin-top: 12px;
  max-width: 260px;
}
.footer nav,
.footer-contacts {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}
.footer-contacts button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.footer-contacts button.copied {
  color: var(--ok-ink);
}
.footer b {
  color: var(--text);
  font-size: 15px;
}
.footer a {
  text-decoration: none;
}
.footer nav a:hover,
.footer-contacts a:hover,
.footer-contacts button:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    gap: 24px 16px;
  }
  .footer nav,
  .footer-contacts {
    gap: 0;
  }
  .footer nav a,
  .footer-contacts a,
  .footer-contacts button {
    padding: 10px 0;
  }
  .footer-contacts {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
  }
  .footer-contacts b {
    width: 100%;
  }
  .footer b {
    margin-bottom: 4px;
  }
  .footer-bottom {
    margin-top: 24px;
  }
}

/* ---------- Этапы дела по шагам (.tl) — /bankrotstvo/, /teksty/ ---------- */

/* Шаг: номер слева (.step-n), справа — заголовок со сроком, описание и карточки сообщений (.sd); номера соединяет
   линия */
.tl {
  display: grid;
  gap: 40px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 24px;
}
.tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: -32px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.tl-item .step-n {
  grid-row: 1 / span 3;
  align-self: start;
}
.tl-item > :not(.step-n) {
  grid-column: 2;
}
.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 44px;
}
.tl-head h3 {
  font-size: 20px;
}
.tl-head .step-time {
  margin-top: 0;
}
.tl-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}
.tl-msgs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 16px;
}
.tl-msgs.situations {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.tl-note {
  margin-top: 32px;
  color: var(--muted);
  font-size: 16px;
}
.tl-note a {
  color: var(--brand-ink);
}
@media (max-width: 720px) {
  .tl {
    gap: 32px;
    margin-top: 32px;
  }
  .tl-item {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 16px;
  }
  .tl-item .step-n {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .tl-item:not(:last-child)::before {
    left: 17px;
    top: 44px;
    bottom: -24px;
  }
  .tl-head {
    min-height: 36px;
  }
  .tl-msgs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Карточка «Сообщение клиенту» — синяя, как уведомление в боте */
.sd.info .sd-h {
  color: var(--brand-ink);
}
.sd.info .sd-h i {
  background: var(--brand);
}

/* «Скопировать» под текстом сообщения (/teksty/). Без скрипта кнопка скрыта атрибутом hidden — main.js показывает её,
   если браузер даёт доступ к буферу обмена */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.copy-btn[hidden] {
  display: none;
}
.copy-btn:hover {
  border-color: var(--brand);
}
.copy-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.copy-btn.copied {
  border-color: var(--ok);
  color: var(--ok-ink);
}

/* ---------- Уведомление о cookie (ymetrika.js, ADR 0052, ADR 0064) ---------- */

/* Пока уведомление на экране, ymetrika.js пишет его высоту в --cookie-notice: странице добавляется отступ снизу, чтобы
   уведомление не закрывало подвал, а липкая кнопка встаёт над уведомлением */
body {
  padding-bottom: var(--cookie-notice, 0px);
}
.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  max-width: 720px;
  margin-inline: auto;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  animation: cookie-in 0.3s ease;
}
.cookie-notice-text {
  flex: 1 1 320px;
}
.cookie-notice-text a {
  color: var(--brand-ink);
}
.cookie-notice .btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
}
@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@media (max-width: 520px) {
  .cookie-notice {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 16px;
  }
  .cookie-notice .btn {
    flex: 1 1 auto;
  }
}
@media print {
  .cookie-notice {
    display: none;
  }
}

/* ---------- Липкая кнопка на телефоне ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--cookie-notice, 0px);
  z-index: 40;
  display: none;
  padding: 24px 16px 16px;
  background: linear-gradient(to top, var(--bg) 55%, transparent);
  pointer-events: none;
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.sticky-cta .btn {
  width: 100%;
  pointer-events: auto;
}
.sticky-cta.show {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease, visibility 0s;
}
@media (max-width: 720px) {
  .sticky-cta {
    display: block;
  }
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .chat-anim .msg,
  .float-card {
    opacity: 1;
    transform: none;
  }
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Страница 404 (404.html) ---------- */

.not-found {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  min-height: calc(100dvh - 68px);
  padding-block: 48px 96px;
}
.not-found h1 {
  font-size: clamp(32px, 6vw, 52px);
}
.not-found p {
  max-width: 34em;
  margin-bottom: 8px;
  color: var(--muted);
}
