/* Стили сайта. Токены → база → компоненты → страницы. */

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

:root {
  --ink: #0E1F3B;
  --graphite: #0E1F3B;
  --graphite-2: #17305a;
  --text: #24324a;
  --muted: #56627a;
  --line: #e1e7f0;
  --bg: #ffffff;
  --bg-muted: #f2f6fb;
  --accent: #1E63F0;
  --accent-dark: #164fc4;
  --accent-soft: #e5eefe;
  --accent-bright: #2BD49A;
  --green: #2BD49A;
  --brand-grad: linear-gradient(90deg, #1E63F0, #2BD49A);
  --ok: #138a62;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14,31,59,.04), 0 8px 24px rgba(14,31,59,.07);
  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- база */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(32px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 20px; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.i { width: 20px; height: 20px; flex: none; }
.container { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.accent { color: var(--accent); }
h1 .accent { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }

/* ---------- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.icon-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.link-more { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; white-space: nowrap; }

/* ---------- шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.header__nav { margin-left: auto; }
.header__nav ul { display: flex; gap: 20px; }
.header__nav a { font-weight: 600; font-size: 15px; white-space: nowrap; }
.header__nav a[aria-current] { color: var(--accent); }
.header__mobile-contacts { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__phone { font-weight: 700; white-space: nowrap; }
/* Ссылка на наш Telegram: плашка в цвете Telegram со значком-самолётиком, чтобы читалась как «написать нам» */
.header__tg { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px 0 12px; border-radius: 999px;
  background: #e7f4fc; color: #1a85bd; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.header__tg .i { width: 18px; height: 18px; }
.header__tg:hover { background: #229ED9; color: #fff; }
.header__login { font-weight: 700; white-space: nowrap; color: var(--accent); }
.nav__login { display: none; }
.header__burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.header__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) { .header__phone, .header__tg { display: none; } }
@media (max-width: 1100px) {
  .header__burger { display: block; }
  .header__nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 24px var(--gutter); overflow-y: auto; margin: 0;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
  .header__nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .header__nav ul { flex-direction: column; gap: 0; }
  .header__nav li a { display: block; padding: 16px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .header__mobile-contacts { display: grid; gap: 12px; margin-top: 28px; font-weight: 700; font-size: 18px; }
  .header__actions { margin-left: auto; gap: 8px; }
}
@media (max-width: 420px) { .header__actions .btn { display: none; } .header__logo img { width: 132px; } }

/* ---------- секции */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--graphite); color: #d7d8db; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { margin-bottom: 12px; }
.section__sub { color: var(--muted); font-size: 18px; margin: 0; }
.section__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section__row .section__head { margin-bottom: 0; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 360px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ---------- hero (главная) */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 6vw, 72px); background:
  radial-gradient(900px 400px at 100% 0, rgba(43,212,154,.14), transparent 60%), var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 600px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 32px; } }

/* пример панели отдела продаж в hero: режим «как обычно» размывает цифры */
.demo { margin: 0; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.demo__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.demo__title { margin: 0; font-weight: 800; font-size: 15px; color: var(--ink); }
.demo__title small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.demo__switch { display: inline-flex; background: var(--bg-muted); border-radius: 999px; padding: 3px; }
.demo__switch button { font: 600 13px var(--font); border: 0; background: transparent; color: var(--muted); padding: 10px 14px; border-radius: 999px; cursor: pointer; }
.demo__switch button[aria-pressed="true"] { background: var(--graphite); color: #fff; }
.demo__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.demo__kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.demo__kpi span { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
.demo__kpi b { display: block; margin-top: 6px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.demo__kpi em { font-style: normal; font-size: 12px; color: var(--muted); }
.demo__kpi .up { color: var(--ok); }
.demo__kpi .down { color: var(--accent); }
.demo__funnel { display: grid; gap: 8px; }
.demo__row { display: grid; grid-template-columns: 112px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.demo__bar { height: 22px; background: var(--bg-muted); border-radius: 6px; overflow: hidden; }
.demo__bar i { display: block; height: 100%; background: var(--graphite); border-radius: 6px; transition: width .6s ease; }
.demo__bar i.leak { background: var(--accent); }
.demo__v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.demo__insight { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; line-height: 1.45; color: var(--ink); }
.demo__fog { display: none; margin: 16px 0 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; font-size: 14px; color: var(--muted); }
.demo__foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.demo__kpi b, .demo__kpi em, .demo__v { transition: filter .4s ease, opacity .4s ease; }
.demo.is-fog .demo__kpi b, .demo.is-fog .demo__kpi em, .demo.is-fog .demo__v { filter: blur(6px); opacity: .6; }
.demo.is-fog .demo__bar i { width: 100% !important; background: var(--line) !important; }
.demo.is-fog .demo__insight { display: none; }
.demo.is-fog .demo__fog { display: block; }
@media (max-width: 420px) { .demo { padding: 16px; } .demo__row { grid-template-columns: 92px 1fr 36px; } .demo__kpi { padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .demo__bar i, .demo__kpi b, .demo__kpi em, .demo__v { transition: none; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(40px, 6vw, 64px); }
.stats li { background: var(--bg); padding: 24px; display: grid; gap: 4px; }
.stats b { font-size: clamp(28px, 3vw, 36px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 14px; line-height: 1.4; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- карточки услуг */
.svc-card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s; }
.svc-card:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; }
.svc-card p { color: var(--muted); flex: 1; }
.svc-extra { margin: 24px 0 0; color: var(--muted); }
.svc-extra a { color: var(--ink); font-weight: 700; }
.svc-card__badge { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.svc-card__more { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }

/* ---------- карточки кейсов */
.case-card { position: relative; height: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.case-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.case-card__ind { font-size: 13px; color: var(--muted); text-align: right; }
.case-card__num { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; margin: 0 0 6px; letter-spacing: -.03em; }
.case-card__label { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.case-card__title { font-size: 18px; flex: 1; }
.case-card__title a::after { content: ""; position: absolute; inset: 0; }
.case-card__more { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; }
.case-card__more .i { width: 16px; height: 16px; }

/* ---------- почему мы */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why__item .i { width: 40px; height: 40px; color: var(--accent); margin-bottom: 18px; }
.why__item p { color: var(--muted); }
@media (max-width: 800px) { .why { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- шаги */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: s; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step__n { display: block; font-weight: 800; color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.step p { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- отзывы / слайдер */
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 85%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider-nav { display: flex; gap: 8px; }
.review { scroll-snap-align: start; background: var(--bg); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.review__head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.review__ava { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--graphite); color: #fff; font-weight: 700; }
.review__name { font-weight: 700; color: var(--ink); margin: 0; }
.review__role { font-size: 14px; color: var(--muted); margin: 0; }
.review__body { font-size: 15px; overflow: hidden; }
.review__body[data-clamp]:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; }
.review__body p { margin-bottom: .75em; }
.review__toggle { margin-top: auto; padding-top: 8px; align-self: flex-start; border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; padding-left: 0; }

/* ---------- FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 18px; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { transition: transform .2s; color: var(--accent); margin-top: 3px; }
.faq__item[open] summary .i { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 680px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 0; } }

/* ---------- CTA + форма */
.cta__grid { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center; }
.cta__text { font-size: 18px; max-width: 520px; }
.cta__contacts { display: grid; gap: 12px; margin-top: 28px; }
.cta__contacts li { display: flex; gap: 12px; align-items: center; font-weight: 700; color: #fff; font-size: 18px; }
.cta__contacts .i { color: var(--accent); }
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; gap: 32px; } }

.lead-form { background: var(--bg); border-radius: 20px; padding: 28px; display: grid; gap: 14px; color: var(--text); box-shadow: var(--shadow); }
.lead-form__title { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0; }
.lead-form__sub { color: var(--muted); font-size: 14px; margin: -6px 0 4px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field em { font-style: normal; font-weight: 400; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; font-size: 16px; color: var(--ink); background: #fff; transition: border-color .2s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
.check a { text-decoration: underline; }
.check.is-invalid { color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__status { margin: 0; font-size: 14px; min-height: 1px; }
.lead-form__status.is-ok { color: var(--ok); font-weight: 700; }
.lead-form__status.is-err { color: var(--accent); }
.lead-form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- модалка */
.modal { border: 0; padding: 0; background: transparent; max-width: 460px; width: calc(100% - 32px); overflow: visible; }
.modal::backdrop { background: rgba(20,20,22,.6); backdrop-filter: blur(3px); }
.modal .lead-form { box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal__close { position: absolute; top: 10px; right: 12px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-muted); font-size: 24px; line-height: 1; cursor: pointer; }
.modal__close:hover { background: var(--line); }

/* ---------- внутренние страницы */
.page-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); background: var(--bg-muted); }
.page-hero--compact { padding-bottom: clamp(36px, 5vw, 56px); }
.page-hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 50px); max-width: 900px; }
.page-hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 720px; margin-bottom: 28px; }
.page-hero__benefits { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.page-hero__benefits li { background: var(--bg); padding: 18px 20px; display: grid; gap: 2px; }
.page-hero__benefits b { color: var(--ink); }
.page-hero__benefits span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; gap: 28px; } }

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.crumbs [aria-current] { color: var(--ink); }

.ps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ps__col { border-radius: 20px; padding: clamp(24px, 4vw, 40px); }
.ps__col h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 24px; }
.ps__col ul { display: grid; gap: 16px; }
.ps__col li { display: flex; gap: 12px; font-size: 17px; font-weight: 600; }
.ps__col li .i { margin-top: 3px; }
.ps__col--problem { background: var(--accent-soft); }
.ps__col--problem .i { color: var(--accent); }
.ps__col--solution { background: var(--graphite); color: #e6e7ea; }
.ps__col--solution h2 { color: #fff; }
.ps__col--solution .i { color: var(--accent); }
@media (max-width: 800px) { .ps { grid-template-columns: 1fr; } }

.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.feat { background: var(--bg); border-radius: var(--radius); padding: 28px; border-left: 3px solid var(--accent); }
.feat p { color: var(--muted); margin: 0; }

.auds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.aud p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .auds { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { background: var(--bg-muted); color: var(--ink); font-weight: 800; }
.cmp thead th:last-child { color: var(--accent); }
.cmp tbody th { font-weight: 700; color: var(--ink); width: 24%; }
.cmp td { color: var(--muted); }
.cmp td:last-child { color: var(--text); font-weight: 600; }
.cmp--prices td:nth-child(3), .cmp--prices tr > td:nth-last-child(2) { color: var(--ink); font-weight: 800; white-space: nowrap; }
.cmp--prices td:last-child { color: var(--muted); font-weight: 400; }
.cmp--prices tbody th a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.prices { max-width: 860px; }
.price { background: var(--bg); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.price:last-child { border: 2px solid var(--accent); }
.price__name { font-weight: 800; font-size: 22px; color: var(--ink); margin: 0; }
.price__for { color: var(--muted); font-size: 14px; }
.price__val { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-bottom: 20px; }
.price ul { display: grid; gap: 10px; margin-bottom: 28px; flex: 1; }
.price li { display: flex; gap: 10px; }
.price li .i { color: var(--ok); margin-top: 2px; }

.svc-list { display: grid; gap: 20px; }
.svc-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); }
.svc-row h2 { font-size: clamp(24px, 2.6vw, 32px); }
.svc-row p { color: var(--muted); margin: 0; }
.svc-row ul { display: grid; gap: 10px; }
.svc-row li { display: flex; gap: 10px; font-weight: 600; }
.svc-row li .i { color: var(--accent); }
@media (max-width: 960px) { .svc-row { grid-template-columns: 1fr; gap: 24px; } .svc-row .btn { justify-self: start; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { border: 1.5px solid var(--line); background: var(--bg); padding: 9px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
[data-cat][hidden] { display: none; }

.case-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 8px; }
.case-meta li { display: grid; font-size: 15px; }
.case-meta b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.case-meta a { text-decoration: underline; text-underline-offset: 3px; }
.page-hero .tag { margin-bottom: 14px; }
.case { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.case__main h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 8px; }
.case__main h2 + .list { margin-bottom: 40px; }
.case__side { position: sticky; top: calc(var(--header-h) + 24px); background: var(--graphite); color: #cfd0d4; border-radius: 20px; padding: 28px; }
.case__num { font-size: 52px; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 8px; letter-spacing: -.03em; }
.case__label { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #22385e; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; gap: 32px; } .case__side { position: static; } }
.list { display: grid; gap: 14px; }
.list li { display: flex; gap: 12px; font-size: 17px; }
.list .i { color: var(--muted); margin-top: 4px; }
.list--ok .i { color: var(--ok); }

.prose-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; gap: 32px; } }
.prose { max-width: 780px; font-size: 17px; }
.prose--legal { font-size: 15px; }
.post { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
@media (max-width: 960px) { .post { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.post__side { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.post__side p { color: var(--muted); font-size: 15px; }
.post__side-title { font-size: 20px; font-weight: 800; color: var(--ink) !important; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0; }
.post-card__lead { color: var(--muted); font-size: 15px; flex: 1; }
.post-card .case-card__title { flex: none; }
.prose--post h2 { font-size: clamp(24px, 3vw, 30px); margin: 1.6em 0 .6em; }
.prose--post h3 { margin: 1.4em 0 .5em; }
.prose--post ul, .prose--post ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose--post ul { list-style: disc; }
.prose--post ol { list-style: decimal; }
.prose--post li { margin-bottom: .4em; }
.prose--post li::marker { color: var(--accent); }
.prose--post a { color: var(--accent); text-decoration: underline; }
.prose--post .answer { background: var(--bg-muted); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 1.4em; }
.prose--post .answer p:last-child { margin: 0; }
.prose--post .table-wrap { margin: 0 0 1.4em; }

.prose--legal h2 { font-size: 22px; margin-top: 1.6em; }
.prose--legal a { color: var(--accent); text-decoration: underline; word-break: break-word; }
.stats--light li { background: var(--bg-muted); }
.sitemap { display: grid; gap: 12px; }
.sitemap > li > a { font-weight: 700; font-size: 18px; }
.sitemap ul { display: grid; gap: 6px; margin: 8px 0 8px 20px; list-style: disc; }
.sitemap a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

.contacts { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.contacts__list { display: grid; gap: 28px; }
.contacts__list li { display: flex; gap: 16px; }
.contacts__list .i { width: 28px; height: 28px; color: var(--accent); }
.contacts__list div { display: grid; }
.contacts__list b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contacts__list a, .contacts__list span { font-size: 20px; font-weight: 700; color: var(--ink); }
.contacts .lead-form { border: 1px solid var(--line); }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }

.page-404 { text-align: center; padding: 96px 0 120px; }
.page-404__code { font-size: clamp(96px, 18vw, 180px); font-weight: 800; color: var(--accent); line-height: 1; margin: 0 0 8px; letter-spacing: -.05em; }
.page-404 .page-hero__lead { margin-inline: auto; }
.page-404 .hero__actions { justify-content: center; }

/* ---------- подвал */
.footer { background: var(--ink); color: #a4a6ab; padding: 64px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { width: 160px; height: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 300px; }
.footer__h { color: #fff; font-weight: 700; margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; margin-bottom: 18px; }
.footer a:hover { color: #fff; }
.footer__phone { color: #fff; font-weight: 700; font-size: 18px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #1f3456; margin-top: 48px; padding-top: 24px; font-size: 13px; }
.footer__note { flex-basis: 100%; color: #8b8c91; font-size: 12px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-left: auto; background: var(--graphite); color: #d7d8db; border-radius: 16px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; box-shadow: 0 10px 40px rgba(0,0,0,.25); font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { text-decoration: underline; color: #fff; }
.cookie__actions { display: flex; gap: 8px; flex: none; }
.btn--cookie-reject { border-color: #4a5a78; color: #d7d8db; background: transparent; }
.btn--cookie-reject:hover { border-color: #fff; color: #fff; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; } .cookie__actions > * { flex: 1; } }
@media (max-width: 480px) { .cookie { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px; gap: 12px; font-size: 12px; line-height: 1.45; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- дополнения сайта аналитиков */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.02em; margin: 0; }
.logo__img { width: 124px; height: auto; }
.logo--light .logo__img { width: 136px; }
.logo--light { color: #fff; margin-bottom: 16px; font-size: 22px; }
/* на тёмном фоне — светлый акцент, чтобы иконки и ссылки читались */
.section--dark .kicker, .cta__contacts .i, .ps__col--solution .i, .fit__col--dark .i, .section--dark .step__n { color: var(--accent-bright); }
.cta__contacts a:hover { color: var(--accent-bright); }
.footer .i { display: none; }
.footer ul li { display: flex; gap: 8px; }
.svc-card__price { font-weight: 800; color: var(--ink); font-size: 18px; margin: 0 0 14px; flex: none !important; }
.svc-row__end { display: grid; gap: 12px; justify-items: start; }
.note { margin: 28px 0 0; color: var(--muted); }
.note--accent { background: var(--accent-soft); color: var(--ink); border-radius: var(--radius-sm); padding: 16px 20px; }
.note--accent a { color: var(--accent-dark); text-decoration: underline; font-weight: 700; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-weight: 400; color: var(--muted); }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit__col { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 36px); }
.fit__col--no { background: transparent; border-style: dashed; }
.fit__col--no h3 { color: var(--muted); }
.fit__col--dark { background: var(--graphite); border-color: var(--graphite); color: #dfe3ea; }
.fit__col--dark h3 { color: #fff; }
.fit__col ul, .checks, .group ul { display: grid; gap: 12px; }
.fit__col li, .checks li, .group li { display: flex; gap: 12px; }
.fit__col li .i, .checks li .i, .group li .i { margin-top: 3px; color: var(--ok); }
.fit__col--no li .i { color: var(--muted); }
.checks { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px 32px; font-size: 17px; }
@media (max-width: 800px) { .fit { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .checks { grid-template-columns: 1fr; } }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.group { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; border-top: 3px solid var(--accent); }
.price-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.price-band__val { font-size: clamp(36px, 5vw, 52px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1; margin: 0 0 8px; }
.price-band p:last-child { margin: 0; color: var(--muted); }
.price-band .note { margin: 0 0 16px; max-width: 460px; }
.price:last-child { border: 1px solid var(--line); }
.price__cost { margin: auto 0 0; padding-top: 12px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price__cost s { color: var(--muted); }
.price__cost b { font-size: 26px; font-weight: 800; color: var(--accent); }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.person { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: var(--bg); }
.person__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.person__photo--empty { display: grid; place-items: center; background: var(--graphite); color: var(--accent-bright); font-size: 36px; font-weight: 800; }
.person h3 { margin-bottom: 4px; }
.person__role { color: var(--accent); font-weight: 700; font-size: 15px; }
.person p { color: var(--muted); }
.person__skills { display: flex; flex-wrap: wrap; gap: 8px; }
.person__skills li { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--bg-muted); color: var(--ink); }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; } .person__photo { width: 96px; height: 96px; } }

/* ---------- главная по структуре макета Vidno */
/* «Что сейчас не видно»: вопрос слева, ответ справа */
.qs { border-top: 1px solid var(--line); }
.q { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.q h3 { margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.3; }
.q p { margin: 0; color: var(--muted); }
.q b { color: var(--ink); font-weight: 700; }
@media (max-width: 720px) { .q { grid-template-columns: 1fr; gap: 8px; } }
/* тёмные секции: подзаголовки, тройка и этапы */
.section--dark .section__sub, .section--dark .why__item p, .section--dark .step p, .section--dark .note { color: #a9b0bd; }
.why--lines .why__item { border-top: 2px solid var(--accent-bright); padding-top: 20px; }
.section--dark .step { border-top-color: #2a4570; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps--4 { grid-template-columns: 1fr; } }
/* «Как работаем» */
.group .tag { margin-bottom: 14px; }
.group h3 { margin-bottom: 8px; }
.group > p { color: var(--muted); margin: 0; }
/* вкладки решений */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs button { font: 700 15px var(--font); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.tabpanel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tabpanel[hidden] { display: none; }
.tabpanel > .link-more { grid-column: 1 / -1; justify-self: start; white-space: normal; }
.sol { min-width: 0; border-top: 2px solid var(--ink); padding-top: 18px; }
.sol h3 { font-size: 19px; margin-bottom: 12px; }
.sol ul { display: grid; gap: 10px; color: var(--muted); }
.sol li { display: flex; gap: 10px; }
.sol li .i { margin-top: 4px; color: var(--accent); flex: none; }
@media (max-width: 860px) { .tabpanel { grid-template-columns: 1fr; } }
/* пилот на главной */
.zero { margin-top: 20px; background: var(--graphite); color: #dfe3ea; border-radius: 20px; padding: 24px 28px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.zero b { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--accent-bright); white-space: nowrap; }
.zero p { flex: 1 1 320px; min-width: 0; margin: 0; }
.fit--top { margin-top: 20px; grid-template-columns: 3fr 2fr; }
@media (max-width: 800px) { .fit--top { grid-template-columns: 1fr; } }

/* ---------- ссылка в кабинет ИИ-администратора */
@media (max-width: 1100px) { .header__login { display: none; } .nav__login { display: block; } }
.price .price__val { font-size: 28px; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .steps--3 { grid-template-columns: 1fr; } }
