/* 1IDM site — брендовые токены по «1IDM Guideline 2025» (site/brand/):
   красный #e32e16, чёрный/антрацит, белый; серые — нейтральные градации
   брендбука (#e6e6e6 #b3b3b3 #808080 #4d4d4d #1a1a1a). До 2026-11-19 палитра
   была снята с живого сайта (коралл #f74c3c, ink #1a2e39) — см. brand/README.md.
   Система B2 (2026-11-10): тёмный «продуктовый» первый экран, светлое тело,
   объёмные карточки, цифры-доказательства, аккордеон FAQ. Характер
   поколения задаётся темой в themes/<V>.css (радиусы, моно-подписи, нумерация). */
:root {
  --bg: #ffffff;
  --fg: #1a1a1a;              /* антрацит брендбука: основной текст */
  --muted: #5f5f5f;
  --accent: #e32e16;          /* красный брендбука (AA на белом) */
  --accent-hover: #b8230e;    /* затемнённый красный: ссылки и ховер */
  --accent-soft: #fdecea;
  --chart-2: #4d4d4d;         /* второй ряд графиков — графит, не синий */
  --border: #e6e6e6;
  --line: #e6e6e6;            /* хайрлайн: кнопки, таблицы, капсулы */
  --line-strong: #b3b3b3;
  --ok: #1a7f4b;              /* функциональный зелёный «есть/успех» */
  --warn-bg: #f4f4f4;         /* врезка «важно»: нейтральная плашка + красная линейка */
  --warn-border: #d9d9d9;
  --ink: #141414;
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Open Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05), 0 20px 44px -34px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
::selection { background: rgba(227, 46, 22, 0.22); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
/* Подчёркивание ссылки — сплошное. skip-ink выключаем: иначе линия
   рвётся под выносными элементами («у», «р», «д»). Offset в em уводит
   линию ниже выносных, чтобы она не пересекала их хвосты. */
a { color: var(--accent-hover); text-underline-offset: 0.22em; text-decoration-skip-ink: none; }
a:focus-visible, .cta:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }

/* Шапка: тёмная, липкая, с мягкой подложкой */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.tagline { color: #808080; font-size: 12px; letter-spacing: 0.02em; }
.site-header nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.site-header nav a { color: #d9d9d9; text-decoration: none; padding: 8px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; transition: background 0.15s, color 0.15s; }
.site-header nav a:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.site-header nav a.active { background: var(--accent); color: #fff; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; padding: 9px 16px; border-radius: 10px; background: var(--accent); color: #fff !important; text-decoration: none; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; box-shadow: 0 12px 26px -14px rgba(227, 46, 22, 0.9); transition: background 0.15s, transform 0.15s; }
.header-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.site-header .wrap:has(.header-cta) .tagline { display: none; }

main { padding: 0 24px 80px; max-width: 1120px; margin: 0 auto; }

/* Хлебные крошки */
.breadcrumbs { margin: 18px 0 -6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; margin: 0; max-width: none; }
.breadcrumbs li + li::before { content: "/"; color: #b3b3b3; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-hover); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--fg); font-weight: 600; }

/* Типографика */
h1 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin: 10px 0 16px; }
h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.025em; margin: 78px 0 18px; }
h2::before { content: ""; display: block; width: 34px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 16px; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; margin: 26px 0 8px; }
p { margin: 12px 0; max-width: 68ch; text-wrap: pretty; }
ul, ol { padding-left: 22px; }
li { margin: 8px 0; max-width: 68ch; }
li::marker { color: var(--accent); }
strong { font-weight: 700; }
hr { border: none; border-top: 1px solid var(--border); margin: 56px 0; }
code { background: #efefef; padding: 2px 6px; border-radius: 5px; font-size: 90%; }

/* Первый экран */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4.2vw, 64px) clamp(38px, 4.6vw, 64px);
  margin: 26px 0 52px; color: #fff;
  background:
    radial-gradient(1000px 520px at 84% -12%, rgba(227, 46, 22, 0.32), transparent 60%),
    radial-gradient(900px 500px at -12% 112%, rgba(255, 255, 255, 0.10), transparent 62%),
    linear-gradient(160deg, #262626 0%, #191919 46%, #0d0d0d 100%);
  box-shadow: 0 44px 88px -46px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 110% at 90% -20%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 110% at 90% -20%, #000 0%, transparent 68%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.06; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.04; letter-spacing: -0.035em; margin: 0; max-width: 19ch; text-wrap: balance; }
.hero p { color: #d4d4d4; max-width: 64ch; }
.hero p.lead { color: #b3b3b3; font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.62; margin: 22px 0 0; }
.hero blockquote { background: rgba(255, 255, 255, 0.06); border-left: 3px solid var(--accent); color: #ededed; }
.hero .cta { margin-top: 16px; box-shadow: 0 16px 36px -14px rgba(227, 46, 22, 0.9); }
.hero .cta.secondary { background: rgba(255, 255, 255, 0.05); color: #fff !important; border-color: rgba(255, 255, 255, 0.42); box-shadow: none; }
.hero .cta.secondary:hover { background: rgba(255, 255, 255, 0.13); border-color: #fff; }

/* Статья библиотеки */
.article-hero { margin-bottom: 30px; }
.article-hero h1 { max-width: 26ch; }
.article-meta { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: #808080; max-width: none; }
.article-cover { display: block; width: min(100%, 560px); height: auto; margin: 0 auto 38px; border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* Галерея скриншотов продукта (страница «Возможности») */
.shots { margin: 8px 0 42px; }
.shots-title { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.shots-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.shots figure { flex: 1 1 420px; max-width: 527px; margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); }
.shots img { display: block; width: 100%; height: auto; background: #f4f4f4; border-bottom: 1px solid var(--border); }
.shots figcaption { padding: 12px 16px 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 24px 0 34px; }
.article-item { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; text-decoration: none; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.article-item:hover { border-color: rgba(227, 46, 22, 0.4); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.article-item-date { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.article-item strong { display: block; color: var(--fg); font-size: 15.5px; line-height: 1.38; }

/* Первый экран в две колонки: текст + смысловая панель */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.68fr); gap: clamp(26px, 4vw, 56px); align-items: stretch; }
.hero-split h1 { max-width: none; }
.hero-main, .hero-flow { display: flex; flex-direction: column; justify-content: center; }

/* Первый экран без лида (только заголовок) — компактная полоса, а не пустой блок */
.hero:has(> h1:only-child) { padding-top: clamp(30px, 3.2vw, 46px); padding-bottom: clamp(30px, 3.2vw, 46px); }
.hero:has(> h1:only-child) h1 { max-width: 26ch; }
.hero-flow { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; background: rgba(255, 255, 255, 0.045); padding: 24px; }
.flow-label { margin: 0 0 14px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: #808080; max-width: none; }
.hero-flow ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.hero-flow li { position: relative; padding: 0 0 18px 26px; max-width: none; margin: 0; }
.hero-flow li:last-child { padding-bottom: 0; }
.hero-flow li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); background: #1a1a1a; }
.hero-flow li:last-child::before { background: var(--accent); }
.hero-flow li::after { content: ""; position: absolute; left: 7px; top: 20px; bottom: -2px; width: 1px; background: linear-gradient(rgba(227, 46, 22, 0.5), rgba(255, 255, 255, 0.12)); }
.hero-flow li:last-child::after { display: none; }
.hero-flow b { display: block; color: #fff; font-size: 15px; }
.hero-flow li span { color: #a6a6a6; font-size: 13px; line-height: 1.4; }
.hero-flow li::marker { content: none; }

/* Цифры-доказательства */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 30px 0 10px; border-top: 1px solid var(--border); }
.stats > div { padding: 22px 20px 6px 24px; border-right: 1px solid var(--border); }
.stats > div:first-child { padding-left: 0; }
.stats > div:last-child { border-right: 0; }
.stats strong { display: block; font-size: 44px; line-height: 1; letter-spacing: -0.035em; font-weight: 800; color: var(--fg); font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 26px 0 36px; }
.case-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards > div, .cards > section { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px; box-shadow: var(--shadow-card); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.cards > div::before, .cards > section::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.cards > div:hover, .cards > section:hover { transform: translateY(-4px); border-color: rgba(227, 46, 22, 0.35); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05), 0 34px 64px -34px rgba(227, 46, 22, 0.45); }
.cards > div:hover::before, .cards > section:hover::before { transform: scaleX(1); }
.cards h3 { margin-top: 0; }

/* Кнопки */
.cta { display: inline-block; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 700; padding: 15px 30px; border-radius: 11px; margin: 6px 8px 6px 0; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; box-shadow: 0 14px 30px -16px rgba(227, 46, 22, 0.85); transition: background 0.15s, transform 0.15s; }
.cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.cta.secondary { background: #fff; color: var(--accent) !important; border: 1.5px solid var(--accent); box-shadow: none; }
.cta.secondary:hover { background: var(--accent-soft); }

/* Цитаты, таблицы, врезки */
blockquote { margin: 24px 0; padding: 12px 20px; border-left: 4px solid var(--accent); background: #f6f6f6; border-radius: 0 14px 14px 0; color: var(--fg); }
blockquote p { margin: 4px 0; max-width: none; }
.table-scroll { margin: 22px 0; overflow-x: auto; }
table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0; font-size: 15.5px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
th, td { border: 0; border-bottom: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; }
th { background: #f4f4f4; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: #5f5f5f; font-weight: 700; }
tbody tr:nth-child(even) td { background: #fafafa; }
tr:last-child td { border-bottom: 0; }

/* Статусы в таблицах — иконки вместо повторяющегося текста (2026-11-18).
   Смысл дублируется aria-label и легендой под таблицей: иконка не единственный
   носитель смысла (render.md → «Иконки»). */
.cell-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12.5px; font-weight: 700; line-height: 1; vertical-align: middle; }
.cell-mark.yes { color: #1a7f4b; background: rgba(26, 127, 75, 0.1); }
.cell-mark.no { color: #808080; background: #f0f0f0; }
.table-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: -10px 0 18px; font-size: 13px; color: var(--muted); }
.table-legend span { display: inline-flex; align-items: center; gap: 6px; }
.note { background: var(--warn-bg); color: var(--fg); border: 1px solid var(--warn-border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 18px; margin: 18px 0; font-size: 15px; }
.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }
.persona-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #4d4d4d; background: #f0f0f0; border: 1px solid var(--border); border-radius: 6px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.04em; }

/* FAQ-аккордеон (нативный <details>, без JS) */
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
details summary { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

/* Футер */
.site-footer { background: var(--ink); color: #b3b3b3; padding: 40px 0 44px; margin-top: 76px; }
.site-footer p { max-width: none; margin: 4px 0; color: #b3b3b3; }
.site-footer a { color: #d4d4d4; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; font-size: 14px; hyphens: none; }
.footer-grid strong { display: block; color: #fff; margin-bottom: 8px; font-size: 15px; }
.footer-nav { display: grid; gap: 7px; }
.footer-nav a { color: #d4d4d4; text-decoration: none; }
.footer-nav a:hover { color: #fff; }

/* Подвал: CTA-полоса, четыре зоны, аккордеоны на мобильном */
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #1f1f1f; color: #fff; border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 28px 32px; margin-bottom: 34px;
}
.footer-cta h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin: 0; max-width: 640px; }
.footer-cta h2::before { display: none; }
.footer-cta-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; flex: 0 0 auto; }
.footer-cta .cta { margin: 0; white-space: nowrap; }
.footer-cta-contacts { display: grid; gap: 2px; font-size: 15px; }
.footer-cta-contacts a { color: #fff; text-decoration: none; white-space: nowrap; }
.footer-cta-contacts a:hover { text-decoration: underline; }
.footer-grid { align-items: start; }
.footer-group, .footer-group[open] {
  background: transparent; border: 0; border-radius: 0; padding: 0;
  margin: 0; box-shadow: none;
}
.footer-group summary {
  display: block; color: #fff; font-size: 15px; font-weight: 700;
  margin-bottom: 8px; list-style: none; pointer-events: none; cursor: default;
}
.footer-group summary::-webkit-details-marker { display: none; }
.footer-group summary::after, .footer-group[open] summary::after { content: none; }
.footer-contact-list { display: grid; gap: 7px; }
.footer-contact-list p { margin: 0; color: #b3b3b3; }
.footer-contact-list a { color: #d4d4d4; text-decoration: none; }
.footer-contact-list a:hover { color: #fff; text-decoration: underline; }
.footer-contact-list .footer-socials { margin-top: 4px; }
.footer-legal {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px;
  flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 30px; padding-top: 18px; font-size: 12.5px; color: #b3b3b3;
}
.footer-legal p { margin: 0; color: #b3b3b3; }
.footer-legal a { color: #d4d4d4; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .site-header .wrap { position: relative; flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-header nav { width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { white-space: nowrap; }
  .header-cta { position: absolute; top: 13px; right: 0; margin-left: 0; padding: 8px 13px; font-size: 11.5px; }
}

@media (max-width: 760px) {
  .footer-cta { flex-direction: column; align-items: flex-start; padding: 24px 22px; gap: 18px; }
  .footer-cta-actions { width: 100%; justify-content: space-between; }
  .footer-cta-contacts { text-align: right; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-group { border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding: 8px 0; }
  .footer-group summary {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 44px; margin: 0; pointer-events: auto; cursor: pointer;
  }
  .footer-group summary::after { content: "+"; font-size: 22px; line-height: 1; color: #b3b3b3; }
  .footer-group[open] summary::after { content: "−"; }
  .footer-group .footer-nav { padding-top: 10px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-header nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; margin-left: 0; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a { white-space: nowrap; }
  main { padding-bottom: 64px; }
  h1 { font-size: 30px; }
  .hero { padding: 28px 20px; margin-top: 16px; border-radius: 14px; }
  .hero h1 { max-width: none; }
  .hero-flow { display: none; }
  h2 { margin-top: 54px; }
  .cards { grid-template-columns: 1fr; }
  .article-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 16px 14px 10px 20px; border-bottom: 1px solid var(--border); }
  .stats > div:nth-child(2n+1) { padding-left: 0; }
  .stats > div:nth-child(2n) { border-right: 0; padding-right: 0; padding-left: 20px; }
  .stats > div:nth-last-child(-n+2) { border-bottom: 0; }
  .stats strong { font-size: 34px; }
  table { min-width: 480px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .cta { flex: 1 1 auto; text-align: center; }
}

/* --- Служебные блоки и перенесённые разделы (2026-11-11) --- */
h2[id], h3[id], details[id], div[id], [id].anchor { scroll-margin-top: 96px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff !important; padding: 10px 16px; border-radius: 0 0 10px 10px; text-decoration: none; font-weight: 700; transition: top 0.15s; }
.skip-link:focus { top: 0; }

.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55); max-width: 880px; margin: 0 auto; }
.cookie-banner p { margin: 0; font-size: 14px; max-width: 62ch; }
.cookie-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cookie-actions .cta { border: 0; font-family: inherit; cursor: pointer; }
.cookie-actions .cta.secondary { border: 1px solid var(--line, var(--border)); }
.cookie-banner .cta { margin: 0; padding: 10px 20px; }

.glossary-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 28px; }
.glossary-nav a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 9px; text-decoration: none; font-weight: 700; font-size: 13px; color: var(--fg); }
.glossary-nav a:hover { border-color: var(--accent); color: var(--accent); }
.glossary-empty { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.glossary { margin: 0 0 28px; }
.glossary dt { font-weight: 700; margin-top: 18px; }
.glossary dt .en { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.glossary dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--border); color: #4d4d4d; font-size: 15.5px; max-width: 76ch; }

.reviews { display: grid; gap: 16px; margin: 22px 0 32px; }
.review { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow-card); font-size: 15.5px; }
.review p { margin: 6px 0 0; }
.review strong { display: inline; }

.form-embed { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 22px 0; box-shadow: var(--shadow-card); }
.form-embed[id] { scroll-margin-top: 96px; }
.form-embed p { margin-top: 0; }
.form-legal { font-size: 12.5px; color: var(--muted); margin-bottom: 0 !important; }
.form-embed .b24-form { margin-top: 16px; }
.form-embed .b24-form-header { display: none; }

.footer-socials { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-footer .footer-socials a { color: #d4d4d4; text-decoration: none; }
.site-footer .footer-socials a:hover { color: #fff; }
.cookie-banner[hidden] { display: none; }

/* --- Логотипы клиентов и партнёров, путь работы (2026-11-12) --- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 22px 0 30px; }
.logo-grid > div, .logo-grid > a { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; min-height: 104px; text-decoration: none; }
.logo-grid > a:hover { border-color: rgba(227, 46, 22, 0.35); }
.logo-grid img { width: 100%; height: 48px; object-fit: contain; mix-blend-mode: multiply; }

/* Клиентские логотипы читаются крупнее, чем партнёрские: на главной их немного */
.logo-grid.clients-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.logo-grid.clients-grid > div { min-height: 152px; padding: 24px; }
.logo-grid.clients-grid img { height: 96px; }

/* --- Карусель логотипов заказчиков (главная) -----------------------------
   Полный список — на /cases/; на главной одна строка с прокруткой.
   Кнопки включаются JS (data-logo-carousel); без JS остаётся нативный
   горизонтальный скролл. Автопрокрутки нет: движение запускает человек. */
.logo-carousel { position: relative; margin: 20px 0 8px; }
.logo-carousel__viewport {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0;
  outline-offset: 4px;
}
.logo-carousel__viewport::-webkit-scrollbar { display: none; }
.logo-carousel__item {
  flex: 0 0 calc((100% - 12px) / 2);
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.logo-carousel__item img { width: 100%; height: 56px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: 0.72; transition: opacity 0.15s, filter 0.15s; }
.logo-carousel__item:hover img { filter: none; opacity: 1; }
.logo-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}
.logo-carousel__prev { left: -14px; }
.logo-carousel__next { right: -14px; }
.logo-carousel__nav:hover { border-color: var(--accent); color: var(--accent); }
.logo-carousel__nav[hidden] { display: none; }
.logo-carousel__nav:disabled { opacity: 0.35; cursor: default; }
@media (min-width: 700px) { .logo-carousel__item { flex-basis: calc((100% - 24px) / 3); } }
@media (min-width: 1000px) { .logo-carousel__item { flex-basis: calc((100% - 36px) / 4); } }
@media (min-width: 1200px) { .logo-carousel__item { flex-basis: calc((100% - 48px) / 5); } }
@media (max-width: 700px) { .logo-carousel__nav { display: none; } .logo-carousel__item { flex-basis: 42%; } }

.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 22px 0 34px; }
.partner { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-card); }
.partner-logo { height: 56px; display: flex; align-items: center; }
.partner-logo img { width: 100%; height: 48px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.partner h3 { margin: 0; font-size: 17px; }
.partner p { margin: 0; font-size: 14px; color: var(--muted); max-width: none; }
.partner .partner-link { font-size: 13px; margin-top: auto; }
.status { align-self: flex-start; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 6px; background: #f0f0f0; color: #4d4d4d; }
.status.expert { background: var(--accent-soft); color: var(--accent-hover); }
.status.pro { background: rgba(26, 127, 75, 0.08); color: var(--ok); }
.status.tech { background: #1a1a1a; color: #fff; }

.steps { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.steps li { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 16px 16px; box-shadow: var(--shadow-card); }
.steps li::before { counter-increment: step; content: counter(step); display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; font-size: 18px; background: var(--bg); padding: 0 3px; z-index: 1; }
.steps strong { display: block; margin-bottom: 4px; font-size: 15px; }
.steps span { font-size: 12.5px; color: var(--muted); display: block; line-height: 1.45; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps li:not(:last-child)::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.official { background: #f6f6f6; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 22px; margin: 18px 0; }
.official h3 { margin: 18px 0 6px; }
.official h3:first-child { margin-top: 0; }
.official p { font-size: 15px; }
.official .req { font-size: 13.5px; color: var(--muted); }

@media (min-width: 900px) {
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .logo-grid.clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Два действия на странице «Партнёрам» (2026-11-12) --- */
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 26px 0 8px; }
.action-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-card); color: var(--ink); }
.action-card strong { font-size: 17px; line-height: 1.3; color: var(--ink); }
.action-card p { margin: 0; font-size: 14px; color: var(--muted); }
.action-card .cta { margin-top: auto; align-self: flex-start; }
.action-card.secondary-action { background: #f6f6f6; }
.hero .action-card .cta.secondary { background: #fff; color: var(--accent) !important; border-color: rgba(227, 46, 22, 0.45); box-shadow: none; }
.hero .action-card .cta.secondary:hover { background: var(--accent-soft); border-color: var(--accent); }

/* --- Иконки интерфейса ----------------------------------------------------
   Линейные 24×24 из Lucide (ISC), вставляются inline через {{icon:...}}.
   Иконка — визуальный якорь, не единственный носитель смысла: текст рядом
   обязателен, поэтому SVG декоративный (aria-hidden). */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.14em;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border: 1px solid rgba(227, 46, 22, 0.14);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.card-icon .icon { width: 22px; height: 22px; }
.cards > div:hover .card-icon,
.cards > section:hover .card-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  vertical-align: -0.1em;
  color: var(--accent);
}
.section-icon .icon { width: 25px; height: 25px; }

/* Маркеры списков: одинаковый ритм в длинных перечислениях. */
.list-check,
.list-arrow,
.list-dot { list-style: none; padding-left: 0; }
.list-check ul,
.list-arrow ul,
.list-dot ul { list-style: none; margin: 0; padding-left: 0; }
.list-check li,
.list-arrow li,
.list-dot li { position: relative; padding-left: 30px; }
.list-check li::before,
.list-arrow li::before,
.list-dot li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 17px;
  height: 17px;
  background: var(--accent);
  -webkit-mask: var(--marker) center / contain no-repeat;
  mask: var(--marker) center / contain no-repeat;
}
.list-check li::before {
  --marker: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.list-arrow li::before {
  --marker: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
}
.list-dot li::before {
  top: 0.62em;
  width: 7px;
  height: 7px;
  left: 6px;
  border-radius: 50%;
  background: var(--muted);
  -webkit-mask: none;
  mask: none;
}

/* --- График --------------------------------------------------------------- */
.chart {
  margin: 30px 0 38px;
  padding: 22px 24px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-swatch { display: inline-block; width: 22px; height: 3px; border-radius: 2px; }
.chart-swatch--license { background: var(--accent); }
.chart-swatch--subscription { background: var(--chart-2); }
.chart-scroll { overflow-x: auto; }
.chart svg { display: block; width: 100%; height: auto; min-width: 560px; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-axis { stroke: #b3b3b3; stroke-width: 1; }
.chart-tick { fill: var(--muted); font-size: 14px; }
.chart-axis-title { fill: var(--muted); font-size: 13px; letter-spacing: 0.02em; }
.chart-line { fill: none; stroke-width: 2.6; }
.chart-line--license { stroke: var(--accent); }
.chart-line--subscription { stroke: var(--chart-2); stroke-width: 2; }
.chart-dot--license { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.chart-dot--subscription { fill: var(--chart-2); stroke: #fff; stroke-width: 1.5; }
.chart-crossover { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 5; opacity: 0.55; }
.chart-annotation { fill: var(--accent-hover); font-size: 14px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.chart-value { font-size: 15px; font-weight: 700; }
.chart-value--license { fill: var(--accent-hover); }
.chart-value--subscription { fill: #4d4d4d; }
.chart figcaption {
  max-width: 82ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.chart figcaption strong { color: var(--fg); }

@media (max-width: 640px) {
  .chart { padding: 16px 14px 14px; }
  .chart svg { min-width: 520px; }
  .chart-legend { font-size: 13px; gap: 6px 16px; }
}

@media print {
  .chart { break-inside: avoid; box-shadow: none; }
  .chart-scroll { overflow: visible; }
  .chart svg { min-width: 0; }
  .card-icon { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
