/* ==========================================================
   ДИЗАЙН САЙТА NEUROX
   Здесь цвета, шрифты, размеры и вид всех блоков.
   Главные цвета — в самом начале (:root): поменяли там — поменялось везде.
   ========================================================== */

:root {
  --bg: #eef2f6;          /* фон страницы: холодный светло-серый */
  --surface: #ffffff;     /* фон карточек: белый */
  --ink: #14202e;         /* основной текст: тёмно-синий */
  --muted: #5b6878;       /* второстепенный текст */
  --line: #dde3ea;        /* тонкие линии и рамки */
  --accent: #17905a;      /* фирменный цвет: зелёный «ответили, записали» (кнопки, ссылки) */
  --accent-hover: #10744a;
  --accent-soft: #e2f3ea; /* бледно-зелёный для подложек */
  --glow: #5fd39a;        /* светло-зелёный для акцентов на тёмном фоне */
  --dark: #14202e;        /* тёмные блоки: тот же тёмно-синий */
  --dark-2: #1c2b3d;
  --dark-ink: #f2f5f8;
  --dark-muted: #a9b6c6;
  --ok: #17905a;
  --bad: #d23a3a;

  /* Один шрифт Golos — российский, сделан для интерфейсов */
  --font-head: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --font-text: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 12px;         /* скругление карточек: строже, чем раньше */
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 32, 46, .04), 0 6px 18px rgba(20, 32, 46, .06);
  --container: 1200px;
  --gutter: 16px;
}

@media (min-width: 768px) { :root { --gutter: 24px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.03em; }
h1 { font-size: clamp(32px, 5.4vw, 60px); }
h2 { font-size: clamp(27px, 3.8vw, 44px); }
h3 { font-size: clamp(18px, 2vw, 21px); }
p { margin: 0 0 1em; }
section[id], div[id] { scroll-margin-top: 96px; } /* чтобы шапка не закрывала заголовок при переходе по ссылке */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--accent-soft); }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 5px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 10px; border: 0;
  font: 700 16px/1 var(--font-text); cursor: pointer; text-decoration: none !important;
  transition: background .2s, transform .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff;  }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #24364a; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.header-bar {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 20px/1 var(--font-head); text-decoration: none !important; letter-spacing: -.02em; }
.logo svg { width: 32px; height: 32px; }
.nav { display: none; margin-left: auto; align-items: center; gap: 2px; }
.nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); font: 600 15px/1 var(--font-text); background: none; border: 0; cursor: pointer; text-decoration: none;
}
.nav > a:hover, .nav-drop > button:hover { background: var(--bg); text-decoration: none; }
.nav > a.active, .nav-drop.active > button { background: var(--ink); color: #fff; }
.nav-drop { position: relative; }
.nav-drop svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 520px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 50px rgba(13,14,26,.14);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transition: .18s;
}
.nav-drop:hover .nav-menu, .nav-drop.open .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop:hover > button svg, .nav-drop.open > button svg { transform: rotate(180deg); }
.nav-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.nav-menu a:hover { background: var(--bg); }
.nav-menu a .ico { flex: none; width: 38px; height: 38px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.nav-menu a .ico svg { width: 20px; height: 20px; transform: none; }
.nav-menu b { display: block; font-size: 15px; line-height: 1.3; }
.nav-menu small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.header-cta { display: none; }
.burger { margin-left: auto; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.burger svg { width: 22px; height: 22px; }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; margin-left: 8px; }
  .burger { display: none; }
}

/* Мобильное меню */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: rgba(20,32,46,.45); display: none; }
.mobile-menu.open { display: block; }
.mobile-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: #fff; padding: 18px var(--gutter) 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.mobile-panel .mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mobile-panel a.mp-link { display: block; padding: 12px 4px; font-weight: 700; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.mobile-panel .mp-sub a { display: block; padding: 9px 4px 9px 14px; color: var(--muted); font-weight: 600; text-decoration: none; }
.mobile-panel .mp-label { margin-top: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.mobile-panel .btn { margin-top: 18px; }

/* ---------- Тёмный главный экран ---------- */
.hero { padding: 0 0 8px; }
.hero-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 0%, #24405f 0%, var(--dark) 60%);
  color: var(--dark-ink); border-radius: 16px; padding: 56px 22px 48px;
}
@media (min-width: 900px) { .hero-card { padding: 96px 64px 88px; } }
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .9; }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,32,46,.94) 0%, rgba(20,32,46,.6) 55%, rgba(20,32,46,.15) 100%); }
.hero-inner { max-width: 760px; }
.hero .eyebrow { color: var(--glow); }
.hero .eyebrow::before { box-shadow: 0 0 0 4px rgba(95,211,154,.18); }
.hero h1 { color: #fff; }
.hero h1 .grad { color: var(--glow); }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: var(--dark-muted); max-width: 640px; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: var(--dark-muted); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--glow); }
.hero-price { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 16px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 15px; color: var(--dark-ink); }
.hero-price b { color: #fff; }

/* Хлебные крошки (путь по сайту) */
.crumbs { font-size: 14px; color: var(--dark-muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--dark-muted); }
.crumbs a:hover { color: #fff; }
.crumbs.light, .crumbs.light a { color: var(--muted); }

/* Простой светлый заголовок страницы */
.page-head { padding: 28px 0 8px; }
.page-head-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 44px 22px; }
@media (min-width: 900px) { .page-head-card { padding: 64px; } }
.page-head p { color: var(--muted); font-size: 19px; max-width: 720px; margin: 0; }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .ico, .ico-box { width: 48px; height: 48px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg, .ico-box svg { width: 24px; height: 24px; }

.service-card { position: relative; display: flex; flex-direction: column; color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(13,14,26,.09); border-color: #cfd2e2; }
.service-card .price { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--ink); }
.service-card .price span { color: var(--muted); font-weight: 600; font-size: 14px; }
.service-card .arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; transition: background .2s, color .2s; }
.service-card .arrow svg { width: 18px; height: 18px; }
.service-card:hover .arrow { background: var(--accent); color: #fff; }
.service-card.featured { background: var(--ink); border-color: var(--ink); color: #fff; }
.service-card.featured p, .service-card.featured .price span { color: var(--dark-muted); }
.service-card.featured .price { color: #fff; }
.service-card.featured .ico { background: rgba(255,255,255,.1); color: var(--glow); }
.service-card.featured .arrow { background: rgba(255,255,255,.1); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; align-self: flex-start; }
.service-card.featured .tag { background: rgba(95,211,154,.14); color: var(--glow); }

/* Боли клиента */
.pain { display: flex; gap: 16px; align-items: flex-start; }
.pain .ico-box { flex: none; margin: 0; background: #fff0f2; color: var(--bad); }
.pain h3 { font-size: 18px; margin-bottom: 4px; }

/* Шаги работы */
.steps { counter-reset: step; }
.step { position: relative; }
.step .num { font: 600 15px/1 var(--font-head); color: var(--accent); background: var(--accent-soft); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.step .time { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--bg); padding: 4px 12px; border-radius: 10px; }

/* Тёмная полоса (призыв к действию) */
.cta-band { background: var(--ink); color: #fff; border-radius: 16px; padding: 44px 22px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .cta-band { padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; } }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(23,144,90,.35), transparent 65%); pointer-events: none; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: var(--dark-muted); position: relative; }
.cta-band .btn-row { position: relative; }

/* Почему мы */
.why { display: grid; gap: 16px; }
@media (min-width: 900px) { .why { grid-template-columns: repeat(2, 1fr); } }
.why .card { display: flex; gap: 18px; }
.why .card .ico { flex: none; margin: 0; }

/* Блок «для кого» — компактные плашки */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; }

/* Список с галочками */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }

/* ---------- Цены ---------- */
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 800px) { .plans { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan .plan-name { font: 600 18px/1.2 var(--font-head); margin-bottom: 14px; }
.plan .plan-price { font: 600 30px/1.1 var(--font-head); margin-bottom: 4px; letter-spacing: -.02em; }
.plan .plan-period { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.plan .checks { margin-bottom: 24px; font-size: 16px; }
.plan .btn { margin-top: auto; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 14px 40px rgba(23,144,90,.12); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 26px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 10px; letter-spacing: .03em; }
.price-note { margin-top: 18px; color: var(--muted); font-size: 15px; }

.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.price-group { margin-bottom: 40px; }
.price-group h2 { font-size: clamp(21px, 2.6vw, 28px); display: flex; align-items: center; gap: 14px; }
.price-group h2 .ico-box { margin: 0; }
.price-row { display: grid; gap: 6px 20px; padding: 18px 22px; border-top: 1px solid var(--line); background: #fff; }
.price-row:first-child { border-top: 0; }
@media (min-width: 700px) { .price-row { grid-template-columns: 1fr auto; align-items: center; } }
.price-row b { font-size: 17px; }
.price-row .muted { font-size: 15px; }
.price-row .val { font: 600 19px/1.2 var(--font-head); white-space: nowrap; }
.price-row .val small { font: 600 14px var(--font-text); color: var(--muted); }
.price-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---------- Вопросы и ответы ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--font-text); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Формы ---------- */
.form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px; display: grid; gap: 32px; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1fr 1.1fr; padding: 56px; gap: 56px; } }
.form-wrap .checks { margin-top: 22px; }
.lead-form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field label span { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg);
  font: 500 16px/1.4 var(--font-text); color: var(--ink); transition: border-color .2s, background .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; }
.field.invalid input { border-color: var(--bad); background: #fff6f7; }
.field .err { display: none; color: var(--bad); font-size: 14px; margin-top: 4px; }
.field.invalid .err { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.consent.invalid { color: var(--bad); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.form-status.ok { display: block; background: #e9f9ef; color: #0c6b31; }
.form-status.fail { display: block; background: #fff0f2; color: #a1172a; }
.lead-form.sent .field, .lead-form.sent .consent, .lead-form.sent button { display: none; }

/* Всплывающее окно с формой */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20,32,46,.55); }
.modal.open { display: flex; }
.modal-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 14px; padding: 30px 22px 24px; }
@media (min-width: 600px) { .modal-box { padding: 40px; } }
.modal-box h3 { font-size: 24px; padding-right: 40px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.modal-close svg { width: 20px; height: 20px; }

/* ---------- Витрины на страницах услуг ---------- */
.showcase { display: grid; gap: 28px; align-items: center; }
@media (min-width: 950px) { .showcase { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.showcase-visual { min-width: 0; }

/* Демо-чат */
.chat { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(13,14,26,.1); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; }
.chat-ava svg { width: 22px; height: 22px; }
.chat-head b { display: block; font-size: 15px; }
.chat-head small { color: var(--ok); font-weight: 600; font-size: 13px; }
.chat-body { height: 360px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #f8f8fc; }
.msg { max-width: 85%; padding: 11px 15px; border-radius: 10px; font-size: 15px; line-height: 1.5; white-space: pre-line; animation: pop .25s ease; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.user { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg.typing { color: var(--muted); }
.msg.typing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin: 0 2px; animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.chat-chips button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; font: 600 14px var(--font-text); cursor: pointer; color: var(--ink); }
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); }
.chat-chips button:disabled { opacity: .45; cursor: default; }
.chat-note { font-size: 13px; color: var(--muted); padding: 0 18px 16px; margin: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Оценка звонка */
.score { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(13,14,26,.1); padding: 24px; }
.score-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.score-top b { display: block; }
.score-top small { color: var(--muted); }
.score-num { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font: 600 22px var(--font-head); color: var(--accent); background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--accent-soft) 0); position: relative; }
.score-num::before { content: ""; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.score-num span { position: relative; }
.score-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; }
.score-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; }
.score-list li svg { flex: none; width: 20px; height: 20px; }
.score-list li.ok svg { color: var(--ok); }
.score-list li.no svg { color: var(--bad); }
.score-tip { background: var(--accent-soft); border-radius: 8px; padding: 14px 16px; font-size: 15px; }
.score-tip b { color: var(--accent); }

/* Программа обучения */
.modules { display: grid; gap: 12px; counter-reset: mod; }
.module { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.module::before { counter-increment: mod; content: counter(mod, decimal-leading-zero); font: 600 15px/1 var(--font-head); color: var(--accent); background: var(--accent-soft); flex: none; width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; }
.module b { display: block; margin-bottom: 2px; }
.module span { color: var(--muted); font-size: 15px; }

/* Схема автоматизации */
.flow { display: grid; gap: 10px; }
.flow-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; position: relative; }
.flow-item .ico-box { margin: 0; flex: none; }
.flow-item b { display: block; }
.flow-item span { color: var(--muted); font-size: 15px; }
.flow-arrow { display: grid; place-items: center; color: var(--accent); height: 22px; }
.flow-arrow svg { width: 20px; height: 20px; transform: rotate(90deg); }
.flow-item.final { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow-item.final span { color: var(--dark-muted); }
.flow-item.final .ico-box { background: rgba(255,255,255,.1); color: var(--glow); }

/* Воронка CRM */
.pipeline { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.pipe-col { background: #e9ebf3; border-radius: 10px; padding: 12px; }
.pipe-col h4 { font: 700 13px var(--font-text); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 4px 12px; display: flex; justify-content: space-between; }
.pipe-card { background: #fff; border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(13,14,26,.06); font-size: 14px; }
.pipe-card b { display: block; font-size: 15px; }
.pipe-card .src { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }

/* Макет браузера */
.browser { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px rgba(13,14,26,.1); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafafd; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e4ee; }
.browser-bar span { margin-left: 10px; flex: 1; background: var(--bg); border-radius: 10px; padding: 5px 14px; font-size: 13px; color: var(--muted); }
.browser-body { padding: 22px; display: grid; gap: 14px; }
.sk { background: var(--bg); border-radius: 6px; height: 14px; }
.sk.hero-sk { height: 120px; border-radius: 8px; background: linear-gradient(120deg, var(--dark), #24405f); }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sk-row .sk { height: 70px; border-radius: 8px; }
.sk.w60 { width: 60%; } .sk.w40 { width: 40%; } .sk.btn-sk { width: 140px; height: 36px; border-radius: 10px; background: var(--accent); }

/* ---------- Статьи ---------- */
.article-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(13,14,26,.09); }
.article-card .date { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.article-card .more { margin-top: auto; padding-top: 18px; color: var(--accent); font-weight: 700; }
.prose { max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 22px; }
@media (min-width: 900px) { .prose { padding: 56px 64px; } }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.prose .lead { font-size: 19px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.legal { font-size: 16px; }
.legal h2 { font-size: 21px; }

/* Реквизиты на странице «Контакты» */
.rekv { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.rekv b { color: var(--ink); font-weight: 600; }

/* Карточка статьи: рубрика и время чтения */
.article-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.article-meta .cat { color: var(--accent); font-weight: 700; }

/* Фильтр по рубрикам на странице «Статьи» */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 9px 14px; font: 600 15px var(--font-text); cursor: pointer; }
.filter span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter.active span { color: var(--dark-muted); }

/* Автор и дата под заголовком статьи */
.author { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.author .avatar { width: 46px; height: 46px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.author b { display: block; font-size: 16px; }
.author small { color: var(--muted); font-size: 14px; }
.author .meta { margin-left: auto; text-align: right; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 560px) { .author .meta { margin-left: 0; text-align: left; width: 100%; } }

/* Статья + оглавление сбоку */
.article-layout { display: grid; gap: 20px; align-items: start; }
.article-layout .prose { max-width: none; }
.article-layout > * { min-width: 0; } /* чтобы широкая таблица не растягивала страницу на телефоне */
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
  .toc { position: sticky; top: 100px; }
}
.toc details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.toc summary { font-weight: 700; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.4; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent); }
.prose h2[id] { scroll-margin-top: 100px; }
.prose .faq { margin-top: 12px; }
.prose .faq details { background: var(--bg); border-color: transparent; }

/* Врезка в тексте статьи: «Коротко», «Важно», «Пример» */
.callout { margin: 1.5em 0; padding: 18px 22px; border-radius: var(--radius); background: var(--accent-soft); }
.callout b:first-child { display: block; margin-bottom: 4px; color: var(--accent-hover); }
.callout.warn { background: #fff4e0; }
.callout.warn b:first-child { color: #8a5a00; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* «Остались вопросы?» после статьи */
.ask-card { margin-top: 16px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.ask-card b { display: block; font-size: 18px; }
.ask-card span { color: var(--dark-muted); font-size: 15px; }

/* О компании */
.about-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; } }
.photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 32, 46, .12); }
.photo-ph { aspect-ratio: 4 / 5; border-radius: 14px; background: linear-gradient(160deg, #e2f3ea, #e3eaf2); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px; font-weight: 600; border: 1px dashed #9fc9b2; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.stat b { display: block; font: 600 22px var(--font-head); }
.stat span { color: var(--muted); font-size: 14px; }

/* Кейс */
.case { display: grid; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; }
@media (min-width: 900px) { .case { grid-template-columns: 1fr 1fr; padding: 48px; gap: 48px; } }
.case h3 { font-size: clamp(21px, 2.4vw, 26px); }
.case dl { margin: 0; display: grid; gap: 14px; }
.case dt { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.case dd { margin: 2px 0 0; color: var(--muted); }

/* Плашка «данные скоро появятся» (видна, пока не заполнены настройки) */
.ph { background: #fff4d6; color: #7a5300; padding: 0 6px; border-radius: 4px; font-weight: 700; }

/* ---------- Подвал ---------- */
.footer { margin-top: 40px; background: var(--dark); color: var(--dark-muted); padding: 56px 0 28px; border-radius: 16px 16px 0 0; }
.footer a { color: var(--dark-ink); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo svg rect { fill: #2a3d55; } /* на тёмном подвале значок чуть светлее, чтобы не сливался */
.footer h4 { font: 700 13px var(--font-text); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 14px; }
.footer-bottom a { color: var(--dark-muted); }

/* Выбор при печати и для тех, кто отключил анимации */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Плашка о cookie (появляется, только если подключена Яндекс Метрика) */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(20,32,46,.18); padding: 18px 20px; }
.cookie p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
