/* =========================================================
   Личный НЕ-ИИ ассистент — лендинг
   Дизайн: премиальная сдержанность, синие акценты, доверие.
   Без «техно-гик» эстетики: серифные заголовки, воздух, чистота.
   ========================================================= */

:root {
  /* Brand blue (из логотипа) */
  --blue-900: #122a63;
  --blue-800: #19387f;
  --blue-700: #1d3faf;   /* основной бренд */
  --blue-600: #2b54c9;
  --blue-500: #3a64e0;   /* интерактив */
  --blue-100: #e6edfb;
  --blue-050: #f3f7fd;

  /* Индиго/барвинок — акцент в стиле инфографики */
  --indigo:    #5b6ef5;
  --indigo-2:  #3f5fd6;
  --indigo-lt: #eef1fe;
  --grad-indigo: linear-gradient(140deg, #7b8bf9, #3f5fd6);

  --ink:      #131722;   /* основной текст */
  --ink-soft: #3a4252;
  --muted:    #6b7488;
  --line:     #e7ebf2;

  --bg:       #ffffff;
  --bg-tint:  #f4f5fd;   /* лёгкий барвинковый оттенок */
  --bg-dark:  #101733;

  --radius:   20px;
  --radius-sm:14px;
  --radius-lg:28px;
  --shadow:   0 1px 2px rgba(40,55,130,.05), 0 16px 40px -18px rgba(40,55,130,.20);
  --shadow-lg:0 30px 72px -26px rgba(40,55,130,.34);
  --ring:     0 0 0 4px rgba(91,110,245,.28);

  --maxw: 1160px;
  /* Кириллические гротески без засечек */
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { overflow-x: hidden; }

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

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

a { color: inherit; text-decoration: none; }

/* Доступность: видимый фокус с клавиатуры */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, .rt:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 8px;
}
.btn:focus-visible { outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; }

p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap; text-align: center;
}
.btn-primary {
  background: var(--blue-700); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(29,63,175,.55);
}
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(29,63,175,.6); }
.btn-ghost { background: #fff; color: var(--blue-700); border-color: var(--blue-100); }
.btn-ghost:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.kp-onepager { margin-top: 20px; font-size: .95rem; white-space: normal; max-width: 100%; text-align: center; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(19,38,99,.4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { color: #194590; width: 52px; height: 26px; display: block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -.02em; }
.brand-tag { font-size: .78rem; color: var(--muted); letter-spacing: 0; text-transform: none; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: .95rem; color: var(--ink-soft); font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--blue-700); }
.nav a.nav-business { color: var(--blue-700); font-weight: 600; border: 1.5px solid var(--blue-100); padding: 7px 15px; border-radius: 999px; }
.nav a.nav-business:hover { border-color: var(--blue-500); background: var(--blue-050); }

/* ---------- Страница «Для бизнеса» ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.biz-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-stat { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px; box-shadow: var(--shadow); }
.biz-stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--blue-700); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 8px; }
.biz-stat span { color: var(--muted); font-size: .98rem; }
.biz-pay { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.biz-pay-ico { width: 70px; height: 70px; border-radius: 18px; background: var(--blue-700); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 12px 26px -10px rgba(29,63,175,.6); }
.biz-pay-ico svg { width: 34px; height: 34px; stroke-width: 1.8; }
.biz-pay h2 { margin-bottom: 10px; }

/* ---------- Генератор КП ---------- */
.kp-wrap { max-width: 880px; margin: 0 auto; }
.call-wrap { max-width: 560px; margin: 0 auto; }
.kp-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field-hint { display: block; font-size: .82rem; color: #d64560; margin-top: 6px; min-height: 1.1em; }
.kp-legend { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin: 8px 0 10px; }
.kp-tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.kp-tariff { cursor: pointer; display: block; }
.kp-tariff input { position: absolute; opacity: 0; pointer-events: none; }
.kpt-card { position: relative; display: flex; flex-direction: column; gap: 3px; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.kpt-card b { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.kpt-card i { font-style: normal; color: var(--muted); font-size: .85rem; }
.kpt-card em { font-style: normal; font-family: var(--font-display); font-weight: 800; color: var(--ink); margin-top: 4px; letter-spacing: -.02em; }
.kpt-card em small { font-family: var(--font-sans); font-weight: 600; font-size: .72rem; color: var(--muted); }
.kpt-flag { position: absolute; top: -10px; right: 12px; background: var(--grad-indigo); color: #fff; font-size: .68rem; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.kp-tariff input:checked + .kpt-card { border-color: var(--indigo); background: var(--indigo-lt); box-shadow: var(--ring); }
.kp-tariff input:focus-visible + .kpt-card { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* документ КП */
.kp-output { margin-top: 26px; }
.kp-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 38px; }
.kp-doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--indigo); }
.kp-brand { display: flex; align-items: center; gap: 12px; color: #194590; }
.kp-brand img { width: 48px; height: 24px; }
.kp-brand b { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.kp-brand span { font-size: .8rem; color: var(--muted); }
.kp-meta { text-align: right; }
.kp-meta b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.kp-meta span { display: block; font-size: .85rem; color: var(--muted); }
.kp-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.kp-cap { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--indigo-2); margin-bottom: 6px; }
.kp-parties b { font-family: var(--font-display); font-weight: 700; display: block; }
.kp-parties span { color: var(--ink-soft); font-size: .92rem; }
.kp-table-wrap { overflow-x: auto; margin: 8px 0 24px; -webkit-overflow-scrolling: touch; }
.kp-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 360px; }
.kp-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 12px; background: var(--bg-tint); }
.kp-table th:first-child { border-radius: 8px 0 0 8px; }
.kp-table th:last-child { border-radius: 0 8px 8px 0; }
.kp-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.kp-table td:first-child { font-weight: 600; color: var(--ink); }
.kp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 24px; }
.kp-cols ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.kp-cols li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: .92rem; line-height: 1.4; }
.kp-cols li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); }
.kp-total { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--indigo-lt); border-radius: 14px; padding: 18px 24px; margin-bottom: 16px; }
.kp-total span { font-weight: 600; color: var(--ink-soft); }
.kp-total b { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--indigo-2); letter-spacing: -.02em; white-space: nowrap; }
.kp-valid { font-size: .86rem; color: var(--muted); margin-bottom: 22px; }
.kp-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 0 24px; overflow: hidden; max-height: 0; transition: max-height .35s ease, padding .35s ease; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-nav.open { max-height: 420px; padding: 12px 24px 24px; }
.mobile-nav a { padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { margin-top: 14px; border-bottom: 0; display: inline-flex; padding: 14px 22px; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 60% at 88% -8%, rgba(123,139,249,.30), transparent 60%),
    radial-gradient(40% 55% at 6% 4%, rgba(167,180,252,.28), transparent 62%),
    radial-gradient(60% 70% at 50% 120%, rgba(91,110,245,.10), transparent 60%),
    linear-gradient(180deg, #eef0fe, #fbfcff 72%);
}
/* мягкие летящие линии в стиле референса */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(60% 40% at 80% 18%, transparent 39%, rgba(255,255,255,.55) 40%, transparent 42%),
    radial-gradient(70% 50% at 75% 30%, transparent 48%, rgba(255,255,255,.4) 49%, transparent 51%);
  opacity: .7; pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-bottom: 90px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--blue-700); background: var(--blue-100);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { margin-bottom: 22px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-note { font-size: .9rem; color: var(--muted); }

/* Hero visual: фото специалиста + плавающая карточка диалога */
.hero-visual { position: relative; }
.hero-chip { position: absolute; left: -20px; top: 30px; z-index: 2; display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.7); border-radius: 16px; padding: 10px 16px 10px 11px; box-shadow: var(--shadow-lg); }
.hero-chip-ring { position: relative; width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.hero-chip-ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.hcr-bg { fill: none; stroke: #e3e8fb; stroke-width: 5; }
.hcr-fg { fill: none; stroke: var(--indigo); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 8; }
.hero-chip-ring b { position: absolute; font-family: var(--font-display); font-weight: 800; font-size: .64rem; color: var(--indigo-2); }
.hero-chip-text { font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.12; max-width: 92px; }
.hero-photo { display: block; }
.hero-photo img { width: 100%; height: 620px; object-fit: cover; object-position: center top; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-card { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px; position: absolute; right: -22px; bottom: -40px; width: min(300px, 76%); }
.hero-card .chat-body { padding: 14px 0; gap: 8px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; flex: none; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-name { display: block; font-weight: 600; font-size: .98rem; }
.chat-status { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: #2bbf6a; box-shadow: 0 0 0 3px rgba(43,191,106,.18); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; }
.bubble { padding: 12px 15px; border-radius: 14px; font-size: .93rem; max-width: 88%; line-height: 1.45; }
.bubble-you { align-self: flex-end; background: var(--blue-700); color: #fff; border-bottom-right-radius: 4px; }
.bubble-them { align-self: flex-start; background: var(--bg-tint); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-file { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.file-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-100); display: grid; place-items: center; color: var(--blue-700); flex: none; }
.file-ico svg { width: 18px; height: 18px; stroke-width: 1.9; }
.chat-foot { font-size: .85rem; color: var(--muted); text-align: center; padding-top: 14px; border-top: 1px solid var(--line); }

/* Wave divider */
.wave-divider { line-height: 0; }
.wave-divider svg { width: 100%; height: 70px; }
.wave-divider path { fill: #fff; }

/* ---------- Бегущая строка ---------- */
.marquee { background: var(--blue-700); overflow: hidden; padding: 15px 0; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--blue-700), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--blue-700), transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.m-item { color: #fff; font-weight: 600; font-size: 1rem; white-space: nowrap; letter-spacing: .01em; }
.m-sep { width: 7px; height: 7px; margin: 0 26px; flex: none; border-radius: 2px; background: rgba(255,255,255,.55); transform: rotate(45deg); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--bg-dark); }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 26px 24px; }
.tb-item { display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; gap: 2px; }
.tb-item strong { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: #fff; letter-spacing: -.02em; }
.tb-item span { font-size: .86rem; color: #aeb9d9; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.kicker { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px; }
.kicker.light { color: #9db4f4; }
h2 + p, .section-head h2 { margin-top: 6px; }

.big-text { font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.6; margin-top: 20px; }
.big-text.muted { color: var(--muted); }
#problem h2, #for-whom h2 { margin-bottom: 6px; }

/* ---------- Split (Решение) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text h2 { margin: 8px 0 18px; }
.split-text p { margin-bottom: 16px; }
.split-text .btn { margin-top: 12px; }

.equation { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.eq-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.eq-chip { font-size: .9rem; font-weight: 500; color: var(--muted); background: var(--bg-tint); border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px; position: relative; }
.eq-strike .eq-chip::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 1.5px; background: #c8344b; transform: rotate(-7deg); opacity: .7; }
.eq-arrow { display: grid; place-items: center; margin: 22px 0; }
.eq-arrow span { width: 2px; height: 34px; background: var(--blue-200, #c7d6f7); position: relative; }
.eq-arrow span::after { content: ""; position: absolute; bottom: -2px; left: 50%; width: 11px; height: 11px; border-right: 2px solid var(--blue-500); border-bottom: 2px solid var(--blue-500); transform: translateX(-50%) rotate(45deg); }
.eq-result { display: flex; align-items: center; gap: 16px; justify-content: center; background: var(--blue-050); border: 1px solid var(--blue-100); border-radius: var(--radius-sm); padding: 18px 22px; }
.eq-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex: none; }
.eq-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Фото-рамка (фото руководителя и т.п.) */
.photo-frame { display: block; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
#for-whom .split-visual { min-height: 360px; }
#for-whom .photo-frame, #for-whom .photo-frame img { height: 100%; }
.eq-result strong { display: block; font-size: 1.1rem; }
.eq-result span { color: var(--muted); font-size: .92rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--blue-100); font-weight: 800; display: block; margin-bottom: 12px; letter-spacing: -.02em; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: .98rem; }

/* ---------- Tasks grid ---------- */
.tasks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.task {
  display: flex; flex-direction: column; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 24px 22px; font-size: .98rem; font-weight: 500; color: var(--ink);
  line-height: 1.45; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.task:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.task-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-050); border: 1px solid var(--blue-100); display: grid; place-items: center; color: var(--blue-700); flex: none; }
.task-ico svg { width: 23px; height: 23px; stroke-width: 1.85; }

/* ---------- Why (dark) ---------- */
.section-dark { background: var(--bg-dark); position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 90% 0%, rgba(58,100,224,.20), transparent 55%),
              radial-gradient(40% 50% at 5% 100%, rgba(29,63,175,.18), transparent 55%);
  pointer-events: none;
}
.section-dark h2 { color: #fff; }
.section-dark .section-head { position: relative; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.why-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 30px 26px; backdrop-filter: blur(2px); transition: border-color .25s ease, transform .25s ease; }
.why-item:hover { border-color: rgba(120,160,255,.5); transform: translateY(-3px); }
.why-item h3 { color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.why-item h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(58,100,224,.25); flex: none; }
.why-item p { color: #b9c2dd; font-size: .97rem; }
.why-cta { background: linear-gradient(135deg, rgba(43,84,201,.22), rgba(29,63,175,.10)); border-color: rgba(120,160,255,.35); }

/* ---------- Trust section ---------- */
#trust { position: relative; overflow: hidden; }
.trust-wave { position: absolute; top: -40px; right: -120px; width: 620px; max-width: 70%; opacity: .10; pointer-events: none; user-select: none; }
#trust .container { position: relative; z-index: 1; }
.badge-secure { display: inline-flex; align-items: center; gap: 9px; font-size: .85rem; font-weight: 600; color: var(--blue-700); background: var(--blue-100); padding: 9px 16px; border-radius: 999px; margin-bottom: 20px; }
.badge-secure svg { width: 16px; height: 16px; stroke-width: 2; flex: none; }
.trust-points { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: center; margin-top: 34px; }
.trust-points span { display: inline-flex; align-items: center; gap: 11px; font-weight: 500; color: var(--ink); }
.trust-points svg { width: 18px; height: 18px; padding: 5px; box-sizing: content-box; border-radius: 50%; background: var(--blue-050); border: 1.5px solid var(--blue-100); color: var(--blue-700); stroke-width: 2; flex: none; }

/* ---------- Почему через человека ---------- */
.advantage-panel { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--blue-050), #fff 70%); border: 1px solid var(--blue-100); border-radius: 26px; padding: 56px; box-shadow: var(--shadow); }
.adv-wave { position: absolute; top: -60px; right: -90px; width: 480px; max-width: 60%; opacity: .12; pointer-events: none; user-select: none; }
.advantage-head { position: relative; max-width: 680px; margin-bottom: 40px; }
.advantage-head h2 { margin: 6px 0 14px; }
.advantage-head p { font-size: 1.12rem; color: var(--ink-soft); }
.advantage-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.adv-item { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px; transition: transform .25s ease, box-shadow .25s ease; }
.adv-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.adv-ico { grid-row: span 2; width: 50px; height: 50px; border-radius: 13px; background: var(--blue-700); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 8px 18px -8px rgba(29,63,175,.6); }
.adv-ico svg { width: 24px; height: 24px; stroke-width: 1.9; }
.adv-item h3 { align-self: center; }
.adv-item p { font-size: .98rem; }

/* ---------- Мессенджер (Telegram / MAX) ---------- */
.msg-modes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.msg-modes span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--blue-700); background: #fff; border: 1px solid var(--blue-100); padding: 9px 16px; border-radius: 999px; }
.msg-modes svg { width: 17px; height: 17px; stroke-width: 2; }
.msg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.msg-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.msg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.msg-card img { width: 56px; height: 56px; margin-bottom: 8px; }
.msg-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.msg-sub { font-size: .85rem; color: var(--muted); }

/* ---------- Нам доверяют (логотипы) ---------- */
.logos-band { padding: 56px 0 16px; background: #fff; }
.logos-title { text-align: center; color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; }
.logos-marquee { background: transparent; padding: 6px 0; }
.logos-marquee::before { background: linear-gradient(90deg, #fff, transparent); }
.logos-marquee::after { background: linear-gradient(270deg, #fff, transparent); }
.client-logo { display: inline-flex; align-items: center; gap: 11px; margin: 0 34px; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .01em; color: #aab2c2; transition: color .25s ease; }
.client-logo svg { width: 27px; height: 27px; stroke-width: 1.7; color: #b6bdcb; }
.logos-marquee:hover .client-logo { color: #8b94a6; }

/* ---------- Результат в цифрах (компактная инфографика) ---------- */
.results-section { background: linear-gradient(180deg, #f1f3fe, #f8f9fe 60%); }
.section-sub { color: var(--muted); font-size: 1.02rem; margin-top: 12px; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; max-width: 540px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); min-height: 188px; transition: transform .25s ease, box-shadow .25s ease; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.stat-num small { font-family: var(--font-sans); font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.stat-label { color: var(--ink-soft); font-size: .96rem; line-height: 1.4; margin-top: auto; }

/* мини-кольцо 92% */
.stat-ring { position: relative; width: 80px; height: 80px; display: grid; place-items: center; }
.stat-ring svg { width: 80px; height: 80px; }
.stat-ring .ring-bg { fill: none; stroke: #e3e8fb; stroke-width: 8; }
.stat-ring .ring-fg { fill: none; stroke: var(--indigo); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 207.3; stroke-dashoffset: 207.3;
  transform: rotate(-90deg); transform-origin: 40px 40px;
  transition: stroke-dashoffset 1.3s cubic-bezier(.2,.7,.2,1); }
.stat.in .ring-fg { stroke-dashoffset: 16.6; } /* 92% от 207.3 */
.stat-ring b { position: absolute; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--indigo-2); letter-spacing: -.02em; }

/* акцентная карточка с мини-графиком */
.stat-accent { background: var(--grad-indigo); border-color: transparent; color: #fff; box-shadow: 0 20px 44px -18px rgba(63,95,214,.55); }
.stat-accent .stat-num { color: #fff; }
.stat-accent .stat-num small { color: rgba(255,255,255,.82); }
.stat-accent .stat-label { color: rgba(255,255,255,.9); }
.stat-spark { width: 76px; height: 30px; }
.stat-spark path { stroke-dasharray: 240; stroke-dashoffset: 240; transition: stroke-dashoffset 1.4s ease .2s; }
.stat-accent.in .stat-spark path { stroke-dashoffset: 0; }

/* ---------- CTA-мостики по ходу страницы ---------- */
.cta-bridge { background: linear-gradient(135deg, #eaeefe, #f4f6fe); border-top: 1px solid var(--blue-100); border-bottom: 1px solid var(--blue-100); padding: 30px 0; }
.cta-bridge-alt { background: linear-gradient(135deg, #e9edfe, #eef1fe); }
.cta-bridge-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-bridge p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: -.01em; color: var(--ink); margin: 0; max-width: 720px; }
.cta-bridge .btn { white-space: nowrap; flex: none; }
@media (max-width: 640px) {
  .cta-bridge-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-bridge .btn { width: 100%; justify-content: center; }
}

/* ---------- Отзывы и кейсы ---------- */
/* карусель отзывов */
.cases-carousel { position: relative; overflow: hidden; padding: 8px 0; }
.cases-carousel::before, .cases-carousel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.cases-carousel::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.cases-carousel::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
.cases-track { display: flex; align-items: stretch; width: max-content; animation: cases-scroll 70s linear infinite; }
.cases-carousel:hover .cases-track { animation-play-state: paused; }
@keyframes cases-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cases-track .case-card { width: 360px; flex: none; margin-right: 22px; }

.case-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.case-avatar.mono { display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.mono-1 { background: linear-gradient(135deg, #7b8bf9, #3f5fd6); }
.mono-2 { background: linear-gradient(135deg, #2aabee, #229ed9); }
.mono-3 { background: linear-gradient(135deg, #5b6ef5, #19387f); }
.case-quote-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-050); border: 1px solid var(--blue-100); color: var(--blue-700); display: grid; place-items: center; margin-bottom: 18px; }
.case-quote-ico svg { width: 22px; height: 22px; }
.case-text { color: var(--ink); font-size: 1.04rem; line-height: 1.6; flex-grow: 1; margin-bottom: 18px; }
.case-tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .82rem; font-weight: 600; color: var(--blue-700); background: var(--blue-100); padding: 7px 13px; border-radius: 999px; margin-bottom: 22px; }
.case-tag svg { width: 14px; height: 14px; stroke-width: 2.4; flex: none; }
.case-author { display: flex; align-items: center; gap: 13px; padding-top: 20px; border-top: 1px solid var(--line); }
.case-avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none; background: var(--blue-050); }
.case-avatar img { width: 100%; height: 100%; object-fit: cover; }
.case-name { display: block; font-weight: 600; color: var(--ink); font-size: 1rem; }
.case-role { display: block; color: var(--muted); font-size: .88rem; }

/* ---------- Start steps ---------- */
.start-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.start-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.start-step::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 3px; background: var(--blue-700); border-radius: 0 3px 3px 0; }
.ss-num { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); }
.start-step h3 { margin: 12px 0 10px; }
.start-step p { font-size: .97rem; }

/* ---------- Pricing ---------- */
.pricing { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.pricing-note { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px 24px; text-align: center; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-anchor { border-color: var(--blue-500); border-width: 2px; box-shadow: 0 16px 40px -20px rgba(29,63,175,.5); }
.plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue-700); color: #fff; font-size: .74rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; letter-spacing: .02em; }
.plan-name { display: block; font-weight: 600; color: var(--muted); font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; }
.plan-price { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--ink); margin: 8px 0 6px; letter-spacing: -.02em; }
.plan-price small { font-family: var(--font-sans); font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan-hours { display: block; color: var(--ink-soft); font-size: .92rem; }
.pricing-action { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 32px; text-align: center; }
.pricing-action span { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 24px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: var(--blue-100); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 1.08rem; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600); transform: rotate(45deg); transition: transform .25s ease; flex: none; margin-top: -4px; }
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-item p { padding: 0 0 22px; color: var(--ink-soft); font-size: 1rem; max-width: 90%; }

/* ---------- Final CTA + form ---------- */
.final-cta { background: linear-gradient(160deg, var(--blue-800), var(--blue-900) 60%, #0c1d4a); position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 100% 0%, rgba(58,100,224,.30), transparent 55%); pointer-events: none; }
.final-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.final-copy h2 { color: #fff; margin: 6px 0 18px; }
.final-copy p { color: #c6d0ec; font-size: 1.1rem; }
.final-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.final-list li { color: #e7ecfa; display: flex; align-items: center; gap: 13px; font-weight: 500; }
.final-list li svg { width: 16px; height: 16px; padding: 4px; box-sizing: content-box; border-radius: 50%; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.32); color: #fff; stroke-width: 3; flex: none; }

.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 36px; }
.form-card h3 { margin-bottom: 20px; font-size: 1.3rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease; resize: vertical;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7488' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }
.field input.invalid, .field textarea.invalid { border-color: #d64560; box-shadow: 0 0 0 4px rgba(214,69,96,.12); }
.field-note { display: block; font-size: .82rem; color: var(--muted); margin-top: 6px; min-height: 1em; }
.field-note.ok { color: #1f9d63; }
/* ползунок количества сотрудников */
.field input.kp-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #e3e8fb; cursor: pointer; }
.field input.kp-range:focus { box-shadow: none; outline: none; }
.kp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--indigo); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(63,95,214,.5); cursor: pointer; }
.kp-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--indigo); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(63,95,214,.5); cursor: pointer; }
.kp-range-scale { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: .78rem; }
#kpPeopleVal { color: var(--indigo-2); }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin: 6px 0 20px; cursor: pointer; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue-700); flex: none; }
.link { color: var(--blue-700); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.form-foot { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 16px; }

/* выбор мессенджера вместо формы */
.contact-card h3 { margin-bottom: 6px; }
.contact-sub { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.contact-choices { display: flex; flex-direction: column; gap: 14px; }
.contact-btn { display: flex; align-items: center; gap: 15px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease; }
.contact-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-btn img { width: 46px; height: 46px; flex: none; }
.cb-text { display: flex; flex-direction: column; flex: 1; }
.cb-text b { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.cb-text small { color: var(--muted); font-size: .85rem; }
.contact-btn > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.contact-tg { background: #f0f7fe; border-color: #d8ebfb; }
.contact-tg:hover { border-color: #2aabee; }
.contact-max { background: var(--bg-tint); }
.contact-max:hover { border-color: var(--indigo); }
.contact-foot { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 18px; }

/* модалка выбора мессенджера */
.cm-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(16,23,51,.55); backdrop-filter: blur(4px); animation: cm-fade .2s ease; }
.cm-overlay[hidden] { display: none; }
.cm-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 30px; max-width: 430px; width: 100%; position: relative; animation: cm-pop .25s cubic-bezier(.2,.7,.2,1); }
.cm-card h3 { margin-bottom: 6px; padding-right: 30px; }
.cm-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.cm-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; background: var(--bg-tint); border-radius: 50%; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.cm-close:hover { background: var(--blue-100); color: var(--ink); }
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cm-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.form-success { text-align: center; padding: 30px 10px; }
.success-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue-050); border: 2px solid var(--blue-100); margin-bottom: 18px; color: var(--blue-700); }
.success-ico svg { width: 32px; height: 32px; stroke-width: 2.4; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #aeb9d9; padding: 60px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-brand { max-width: 320px; }
.footer-mark { color: #fff; width: 60px; height: 30px; margin-bottom: 16px; }
.footer-brand p { color: #8e9ac0; font-size: .92rem; line-height: 1.55; }
.footer-title { display: block; color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #aeb9d9; font-size: .94rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-cta { display: flex; align-items: flex-start; }
/* кнопка в футере не должна перебиваться правилами .footer-col a */
.footer-cta a.btn { display: inline-flex; padding: 14px 28px; color: #fff; font-size: 1rem; }
.footer-cta a.btn:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .84rem; color: #6f7aa0; }

/* ---------- Юридические страницы ---------- */
.legal-header { border-bottom: 1px solid var(--line); }
.legal-header .header-inner { justify-content: space-between; }
.legal-back { color: var(--blue-700); font-weight: 600; font-size: .95rem; }
.legal-back:hover { text-decoration: underline; }
.legal-hero { background: radial-gradient(80% 100% at 50% -20%, #eef0fe, #fff 70%); padding: 56px 0 24px; }
.legal-main { max-width: 820px; margin: 0 auto; padding: 8px 24px 70px; }
.legal-main h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.legal-updated { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.legal-intro { color: var(--ink-soft); font-size: 1.05rem; margin: 18px 0 30px; }
.legal-main h2 { font-size: 1.22rem; margin: 30px 0 10px; }
.legal-main h3 { font-size: 1.02rem; margin: 18px 0 6px; }
.legal-main p { color: var(--ink-soft); margin-bottom: 12px; line-height: 1.65; }
.legal-main ul { padding-left: 20px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 7px; }
.legal-main li { color: var(--ink-soft); line-height: 1.55; }
.legal-main strong { color: var(--ink); }
.legal-note { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Печать: только документ КП ---------- */
@media print {
  .site-header, .site-footer, .marquee, .nav-toggle, .mobile-nav { display: none !important; }
  main > section { display: none !important; }
  main > #kp { display: block !important; padding: 0 !important; background: #fff !important; }
  #kp .section-head, #kp .kp-form, .no-print { display: none !important; }
  .kp-output { margin: 0 !important; }
  .kp-doc { box-shadow: none !important; border: 1px solid #d7dbe6 !important; padding: 24px !important; }
  body { background: #fff !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 70px; }
  .hero-visual { max-width: 520px; }
  .hero-photo img { max-height: 480px; }
  .hero-card { position: static; width: 100%; right: auto; bottom: auto; margin-top: 14px; background: #fff; backdrop-filter: none; }
  #for-whom .split-visual { min-height: 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .final-grid { grid-template-columns: 1fr; gap: 36px; }
  .tasks-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Навигация сворачивается в «бургер» раньше — десктоп-меню + CTA не влезают на планшете */
@media (max-width: 900px) {
  .nav, .header-inner > .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .btn-lg { white-space: normal; text-align: center; }
  .kp-onepager { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-chip { left: 8px; top: 12px; padding: 8px 13px 8px 9px; }
  .hero-chip-text { font-size: .78rem; max-width: 84px; }
  .steps, .start-steps, .plans, .cases-grid, .advantage-grid, .biz-grid, .biz-stats, .stats-row { grid-template-columns: 1fr; }
  .kp-tariffs, .kp-parties, .kp-cols { grid-template-columns: 1fr; }
  .kp-form, .kp-doc { padding: 24px 20px; }
  .kp-doc-head { flex-direction: column; }
  .kp-meta { text-align: left; }
  .kp-total { flex-direction: column; align-items: flex-start; gap: 4px; }
  .biz-pay { grid-template-columns: 1fr; gap: 18px; text-align: center; justify-items: center; }
  .advantage-panel { padding: 30px 22px; border-radius: 20px; }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .marquee { padding: 13px 0; }
  .m-item { font-size: .92rem; }
  .cases-track .case-card { width: 300px; margin-right: 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .pricing { padding: 26px 20px; }
  .form-card { padding: 26px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 460px) {
  .tasks-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .marquee-track { animation: none; transform: none; }
  .marquee { white-space: nowrap; overflow-x: auto; }
  .cases-track { animation: none; }
  .cases-carousel { overflow-x: auto; }
  .cm-overlay, .cm-card { animation: none; }
}
