/* =====================================================================
 *  shared/site-kit/site-kit-v2.css — полотно продуктовых страниц (v2)
 * =====================================================================
 *  Крупнее типографика и воздух, карточки с цветными подложками (не только
 *  белые), блоки под скриншоты, шаги, таблица, FAQ и CTA-полоса. Ставится
 *  ПОВЕРХ site-kit.css и отвечает только за то, что между шапкой и футером.
 *
 *  Почему всё живёт внутри `.rx-v2`, а не в `:root`, как в v1.
 *
 *  Шапка («пилюля» + виджет site-nav.js) и футер на всех хостах остаются
 *  прежними — их рисует site-kit.css. Кит v2 переопределяет те же имена
 *  токенов (`--ink`, `--line`, `--bg`) и те же классы (`.rx-section`,
 *  `.rx-h2`), поэтому без обёртки он поменял бы заодно и шапку с футером.
 *  Обёртка — единственная страховка от этого: токены объявлены на `.rx-v2`
 *  и наследуются только вниз, селекторы начинаются с `.rx-v2` и за неё не
 *  достают. Переедут шапка и футер на v2 — обёртку можно будет снять
 *  одним движением, вместе с этим комментарием.
 *
 *  Разметка страницы:
 *
 *    <div class="rx-page">
 *      <nav class="rx-nav">…</nav>          <!-- v1, site-kit.css -->
 *      <main class="rx-v2">…</main>         <!-- всё остальное — здесь -->
 *      <footer class="rx-footer">…</footer> <!-- v1, site-kit.css -->
 *    </div>
 *
 *  Подключение (после site-kit.css; хост другой — адрес абсолютный):
 *    <link rel="stylesheet" href="https://robx.online/shared/site-kit/site-kit-v2.css?v=ГГГГММДД">
 *    <script defer src="https://robx.online/shared/site-kit/site-kit-v2.js?v=ГГГГММДД"></script>
 *
 *  Правило кита: страница не заводит своих цветов, теней и радиусов —
 *  только токены отсюда. Нужен новый блок — он добавляется сюда, а не в
 *  <style> страницы.
 *
 *  Шрифт. Начертания берутся настоящие (400;500;600;700;800) — страницы
 *  подключают Montserrat с весами. Синтетический жир на заголовке 800
 *  расплывается, а весь смысл v2 — в типографике. В ЛК (`lk/menu.php`)
 *  правило обратное и остаётся в силе: там подключён только вес 400.
 * ===================================================================== */

/* ── Токены ────────────────────────────────────────────────── */
.rx-v2 {
  --brand: #2563eb; --brand-2: #3b82f6; --brand-ink: #1d4ed8;
  --surface: #fff; --surface-2: #f8fafd;
  --ink: oklch(0.20 0.025 255); --ink-2: oklch(0.45 0.022 255); --ink-3: oklch(0.60 0.018 255);
  --line: oklch(0.92 0.012 255); --line-2: oklch(0.87 0.016 255);
  /* Подложки карточек. Низкая насыщенность: это фон под текст, а не акцент. */
  --tint-sky: #eaf2ff; --tint-mint: #e7f7ef; --tint-amber: #fdf2e3;
  --tint-violet: #f1ecfe; --tint-rose: #fdecef; --tint-slate: #eef1f6;
  --on-sky: #1d4ed8; --on-mint: #0f7a4e; --on-amber: #a45a08;
  --on-violet: #6d33d6; --on-rose: #c02b47; --on-slate: #4a5568;
  --ok: #15803d; --ok-bg: #e8f3ec; --warn: #a45a08; --warn-bg: #fdf2e3;
  --danger: #c02b47; --danger-bg: #fdecef;
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px; --r-sm: 11px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(20,35,80,.05), 0 6px 16px -10px rgba(20,35,80,.18);
  --sh-2: 0 2px 4px rgba(20,35,80,.05), 0 18px 40px -18px rgba(20,35,80,.28);
  --sh-3: 0 30px 60px -28px rgba(20,35,80,.38), 0 4px 10px rgba(20,35,80,.06);
  --sh-brand: 0 14px 28px -12px rgba(37,99,235,.55);
  --maxw: 1180px; --maxw-text: 66ch;
  /* Полотно той же ширины, что шапка (site-kit.css, --rx-edge). */
  --edge: 8px;
  /* Отступ секции сверху и снизу. Между двумя секциями он складывается,
     поэтому значение вдвое меньше, чем кажется по числу: 56 + 56 = 112px
     между блоками. Было 88 — страница разъезжалась, и на экран помещался
     один блок вместо двух. */
  --step: clamp(34px, 3.6vw, 56px);
  --ease: cubic-bezier(.22,.61,.36,1);
  line-height: 1.55;
  color: var(--ink);
  display: block;
}

/* Плавная прокрутка к якорям («Скачать» в кнопках и ссылках разделов).
   Правило глобальное — на вид шапки и футера не влияет. */
html { scroll-behavior: smooth; }

.rx-v2 * { box-sizing: border-box; }
.rx-v2 button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
.rx-v2 a { color: inherit; text-decoration: none; }
.rx-v2 img, .rx-v2 svg { display: block; max-width: 100%; }
.rx-v2 :focus-visible { outline: 3px solid rgba(37,99,235,.45); outline-offset: 2px; border-radius: 6px; }
.rx-v2 ::selection { background: rgba(37,99,235,.18); }

/* ── Типографика ───────────────────────────────────────────── */
.rx-v2 .rx-h1 { font-size: clamp(36px,5vw,60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 16px; text-wrap: balance; }
.rx-v2 .rx-h2 { font-size: clamp(26px,3vw,38px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin: 0 0 8px; text-wrap: balance; }
.rx-v2 .rx-h3 { font-size: clamp(20px,1.9vw,25px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0 0 8px; }
.rx-v2 .rx-h1-accent { color: var(--brand); }
.rx-v2 .rx-lead { font-size: clamp(17px,1.5vw,20px); line-height: 1.6; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.rx-v2 .rx-eyebrow { font-size: 14px; font-weight: 600; color: var(--ink-3); margin: 0 0 10px; }
.rx-v2 .rx-muted { color: var(--ink-3); }
.rx-v2 .rx-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* ── Полотно ───────────────────────────────────────────────── */
.rx-v2 .rx-section { width: calc(100% - var(--edge) * 2); margin: 0 auto; padding: var(--step) 32px; }
.rx-v2 .rx-wrap { max-width: var(--maxw); margin: 0 auto; }
.rx-v2 .rx-section-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.rx-v2 .rx-section-head .rx-lead { max-width: 60ch; margin: 0 auto; }
.rx-v2 .rx-section-head--left { margin-left: 0; text-align: left; }
.rx-v2 .rx-section-head--left .rx-lead { margin-left: 0; }
/* Сетки: одна система на все блоки кита. */
.rx-v2 .rx-grid { display: grid; gap: 18px; }
.rx-v2 .rx-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.rx-v2 .rx-grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.rx-v2 .rx-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rx-v2 .rx-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px,4vw,56px); align-items: center; }

/* ── Кнопки ────────────────────────────────────────────────── */
.rx-v2 .rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: var(--r-pill); font-size: 15px; font-weight: 700; letter-spacing: -.005em; transition: transform .16s var(--ease), background .16s, border-color .16s, box-shadow .16s; white-space: nowrap; }
.rx-v2 .rx-btn .rx-i { width: 18px; height: 18px; }
.rx-v2 .rx-btn-primary { color: #fff; background: linear-gradient(135deg,#3b82f6,#2563eb); box-shadow: var(--sh-brand); }
.rx-v2 .rx-btn-primary:hover { background: linear-gradient(135deg,#2f7bf0,#1d4ed8); transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(37,99,235,.62); }
.rx-v2 .rx-btn-ghost { color: var(--ink); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.rx-v2 .rx-btn-ghost:hover { border-color: rgba(37,99,235,.42); color: var(--brand); transform: translateY(-2px); }
.rx-v2 .rx-btn-quiet { color: var(--ink-2); padding: 10px 16px; }
.rx-v2 .rx-btn-quiet:hover { background: rgba(15,23,42,.05); color: var(--ink); }
.rx-v2 .rx-btn-lg { padding: 16px 30px; font-size: 16px; }
.rx-v2 .rx-btn-sm { padding: 9px 16px; font-size: 13.5px; }
/* Кнопка без сборки: пунктир и никакого нажатия — по ней нечего скачивать. */
.rx-v2 .rx-btn[aria-disabled="true"], .rx-v2 .rx-btn.is-off { color: var(--ink-3); background: #fff; border: 1px dashed var(--line-2); box-shadow: none; pointer-events: none; }
.rx-v2 .rx-btn:active { transform: translateY(0); }
/* Стрелка в кнопке чуть уезжает вправо на hover — единственная «живость»,
   которую кит разрешает кнопкам. */
.rx-v2 .rx-btn .rx-i-arrow { transition: transform .18s var(--ease); }
.rx-v2 .rx-btn:hover .rx-i-arrow { transform: translateX(3px); }

/* ── Чипы, бейджи, пилюли ──────────────────────────────────── */
.rx-v2 .rx-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 17px 8px 13px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.rx-v2 .rx-pulse { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg,#93c5fd,#2563eb); box-shadow: 0 0 0 4px rgba(37,99,235,.18); animation: rx-pulse 2.4s infinite; }
@keyframes rx-pulse { 50% { box-shadow: 0 0 0 9px rgba(37,99,235,0); } }
.rx-v2 .rx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rx-v2 .rx-chips-center { justify-content: center; }
.rx-v2 .rx-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.rx-v2 .rx-chip .rx-i { width: 15px; height: 15px; opacity: .85; }
.rx-v2 a.rx-chip { transition: border-color .15s, color .15s, transform .15s; }
.rx-v2 a.rx-chip:hover { border-color: rgba(37,99,235,.45); color: var(--brand); transform: translateY(-1px); }
.rx-v2 .rx-chip-ok { background: var(--ok-bg); border-color: rgba(21,163,74,.26); color: var(--ok); font-weight: 700; }
/* Флаг рисуем сами: эмодзи-флаг на Windows показывается как «RU». */
.rx-v2 .rx-flag { width: 19px; height: 13px; flex: none; }
.rx-v2 .rx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rx-v2 .rx-badge-ok { color: var(--ok); background: var(--ok-bg); }
.rx-v2 .rx-badge-warn { color: var(--warn); background: var(--warn-bg); }
.rx-v2 .rx-badge-danger { color: var(--danger); background: var(--danger-bg); }
.rx-v2 .rx-badge-brand { color: var(--brand); background: var(--tint-sky); }
.rx-v2 .rx-badge-quiet { color: var(--ink-3); background: var(--tint-slate); }

/* ── Карточки ──────────────────────────────────────────────── */
.rx-v2 .rx-card { position: relative; background: var(--surface); border: 1px solid rgba(15,23,42,.07); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 26px 26px 24px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.rx-v2 .rx-card-lift:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(37,99,235,.2); }
.rx-v2 .rx-card-plain { padding: 0; box-shadow: var(--sh-2); }
.rx-v2 .rx-card-pad { padding: clamp(22px,3vw,34px); }
/* Цветные подложки: не «бренд-цвет», а спокойный фон, чтобы четыре
   карточки подряд не читались таблицей. Текст на них — тот же тёмный. */
.rx-v2 .rx-card-sky { background: var(--tint-sky); border-color: rgba(37,99,235,.14); }
.rx-v2 .rx-card-mint { background: var(--tint-mint); border-color: rgba(16,122,78,.14); }
.rx-v2 .rx-card-amber { background: var(--tint-amber); border-color: rgba(164,90,8,.14); }
.rx-v2 .rx-card-violet { background: var(--tint-violet); border-color: rgba(109,51,214,.14); }
.rx-v2 .rx-card-rose { background: var(--tint-rose); border-color: rgba(192,43,71,.13); }
.rx-v2 .rx-card-slate { background: var(--tint-slate); border-color: rgba(74,85,104,.14); }
.rx-v2 .rx-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.rx-v2 .rx-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.rx-v2 .rx-card p + p { margin-top: 10px; }
.rx-v2 .rx-card p a { color: var(--brand); font-weight: 600; }
.rx-v2 .rx-card p a:hover { text-decoration: underline; }

/* Иконка карточки: белый квадрат поверх цветной подложки. */
.rx-v2 .rx-card-ic { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; background: #fff; color: var(--brand); box-shadow: var(--sh-1); margin-bottom: 16px; }
.rx-v2 .rx-card-ic .rx-i { width: 23px; height: 23px; }
.rx-v2 .rx-card-sky .rx-card-ic { color: var(--on-sky); }
.rx-v2 .rx-card-mint .rx-card-ic { color: var(--on-mint); }
.rx-v2 .rx-card-amber .rx-card-ic { color: var(--on-amber); }
.rx-v2 .rx-card-violet .rx-card-ic { color: var(--on-violet); }
.rx-v2 .rx-card-rose .rx-card-ic { color: var(--on-rose); }
.rx-v2 .rx-card-slate .rx-card-ic { color: var(--on-slate); }

.rx-v2 .rx-card-photo { padding: 0; overflow: hidden; }
.rx-v2 .rx-card-photo img { width: 100%; height: auto; display: block; background: #fff; border-bottom: 1px solid var(--line); }
.rx-v2 .rx-card-photo .rx-card-body { padding: 22px 24px 24px; }

/* ── Иконки ────────────────────────────────────────────────── */
.rx-v2 .rx-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rx-v2 .rx-i-solid { fill: currentColor; stroke: none; }

/* ── Герой ─────────────────────────────────────────────────── */
.rx-v2 .rx-hero { position: relative; width: calc(100% - var(--edge) * 2); margin: 0 auto; padding: clamp(36px,5vw,64px) 32px clamp(22px,3vw,36px); text-align: center; }
.rx-v2 .rx-hero-narrow { max-width: 900px; margin: 0 auto; }
.rx-v2 .rx-hero .rx-lead { max-width: 640px; margin: 0 auto 26px; }
.rx-v2 .rx-hero .rx-pill { margin-bottom: 20px; }
.rx-v2 .rx-hero-chips { margin: 0 auto 26px; max-width: 880px; }
/* Подложка героя: мягкое синее свечение и сетка точек. Рисуется фоном, а не
   элементами, — ничего не ломает и не мешает выделению текста. */
.rx-v2 .rx-hero::before { content: ""; position: absolute; inset: -10% -20% auto; height: 560px; z-index: -2; background: radial-gradient(60% 70% at 50% 0%, rgba(59,130,246,.18), transparent 70%); }
.rx-v2 .rx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(37,99,235,.14) 1.1px, transparent 1.1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%); opacity: .7; }
/* Герой с иллюстрацией справа. */
.rx-v2 .rx-hero-split { text-align: left; }
.rx-v2 .rx-hero-split .rx-lead, .rx-v2 .rx-hero-split .rx-hero-chips { margin-left: 0; }
.rx-v2 .rx-hero-split .rx-chips { justify-content: flex-start; }
.rx-v2 .rx-hero-art { position: relative; }

/* ── Кнопки скачивания под ОС ──────────────────────────────── */
.rx-v2 .rx-dl { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.rx-v2 .rx-dl a, .rx-v2 .rx-dl span.rx-btn { display: inline-flex; align-items: center; gap: 13px; min-width: 250px; padding: 14px 22px; border-radius: var(--r-md); text-align: left; text-decoration: none; transition: transform .16s var(--ease), box-shadow .16s, border-color .16s; }
.rx-v2 .rx-dl b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.rx-v2 .rx-dl-sub { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.rx-v2 .rx-dl .rx-btn-primary .rx-dl-sub { color: #dbe8ff; }
.rx-v2 .rx-dl-ic { flex: none; width: 26px; height: 26px; }
.rx-v2 .rx-dl-ic svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.rx-v2 .rx-dl a.is-mine { box-shadow: var(--sh-brand), 0 0 0 3px rgba(37,99,235,.22); }
.rx-v2 .rx-dl-note { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-3); text-align: center; }

/* ── Шаги ──────────────────────────────────────────────────── */
.rx-v2 .rx-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); gap: 18px; }
.rx-v2 .rx-step { position: relative; padding-top: 30px; }
.rx-v2 .rx-step-n { position: absolute; top: -16px; left: 24px; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; background: linear-gradient(135deg,#3b82f6,#2563eb); box-shadow: var(--sh-brand); }
.rx-v2 .rx-step h3 { margin: 0 0 6px; font-size: 17.5px; font-weight: 700; }
.rx-v2 .rx-step p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.rx-v2 .rx-step p a { color: var(--brand); font-weight: 600; }
.rx-v2 .rx-step p a:hover { text-decoration: underline; }

/* ── Скриншот продукта ─────────────────────────────────────── */
.rx-v2 .rx-shot { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0d1526; border: 1px solid rgba(15,23,42,.14); box-shadow: var(--sh-3); }
.rx-v2 .rx-shot-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: linear-gradient(180deg,#1b2740,#141d31); }
.rx-v2 .rx-shot-dot { width: 11px; height: 11px; border-radius: 50%; background: #3d4a66; }
.rx-v2 .rx-shot-dot:nth-child(1) { background: #ff5f57; }
.rx-v2 .rx-shot-dot:nth-child(2) { background: #febc2e; }
.rx-v2 .rx-shot-dot:nth-child(3) { background: #28c840; }
.rx-v2 .rx-shot-title { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: #93a1bd; }
.rx-v2 .rx-shot-body { position: relative; display: block; }
.rx-v2 .rx-shot-body img { width: 100%; height: auto; display: block; }
.rx-v2 .rx-shot-cap { margin: 12px 2px 0; font-size: 13px; color: var(--ink-3); text-align: center; }
/* Светлая рамка — для скриншотов светлых интерфейсов. */
.rx-v2 .rx-shot-light { background: #fff; }
.rx-v2 .rx-shot-light .rx-shot-bar { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.rx-v2 .rx-shot-light .rx-shot-title { color: var(--ink-3); }
/* Без рамки окна — когда окно программы нарисовано на самом скриншоте. */
.rx-v2 .rx-shot-bare { background: transparent; border: 0; box-shadow: var(--sh-3); }

/* ── Таблица ───────────────────────────────────────────────── */
/* Прокрутка включается только на телефоне (см. медиазапрос): на десктопе
   overflow обрезал бы всплывающую подсказку «?» у заголовка колонки. */
.rx-v2 .rx-table-card { padding: 6px 24px; overflow: visible; }
.rx-v2 .rx-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 680px; }
.rx-v2 .rx-table th, .rx-v2 .rx-table td { text-align: left; padding: 15px 14px; vertical-align: top; }
.rx-v2 .rx-table thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.rx-v2 .rx-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.rx-v2 .rx-table tbody td { color: var(--ink-2); }
.rx-v2 .rx-table tbody tr + tr th, .rx-v2 .rx-table tbody tr + tr td { border-top: 1px solid var(--line); }
.rx-v2 .rx-table tbody tr { transition: background .15s; }
.rx-v2 .rx-table tbody tr:hover { background: var(--tint-sky); }
.rx-v2 .rx-table .rx-num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }

/* ── Подсказка «?» ─────────────────────────────────────────── */
/* Тот же приём, что в формах портала (static/modal.css, .field-hint*):
   пояснение прячется за кружком у подписи, а не забирает треть экрана
   плашкой под ней. */
.rx-v2 .rx-hint { position: relative; display: inline-block; margin-left: 8px; vertical-align: baseline; white-space: nowrap; }
.rx-v2 .rx-hint-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border-radius: 50%; cursor: help; border: 1px solid rgba(15,23,42,.18); background: #fff; color: var(--ink-3); font-family: inherit; font-weight: 700; font-size: 11.5px; line-height: 1; transform: translateY(1px); }
.rx-v2 .rx-hint-btn:hover, .rx-v2 .rx-hint-btn:focus-visible { border-color: var(--brand); color: var(--brand); }
.rx-v2 .rx-hint-pop { position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%) translateY(3px); width: 290px; padding: 12px 15px; border-radius: var(--r-sm); z-index: 30; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); color: var(--ink-2); font-family: inherit; font-weight: 400; font-size: 13px; line-height: 1.6; text-transform: none; letter-spacing: 0; white-space: normal; opacity: 0; visibility: hidden; transition: opacity .14s, transform .14s var(--ease); }
.rx-v2 .rx-hint:hover .rx-hint-pop, .rx-v2 .rx-hint-btn:focus-visible + .rx-hint-pop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Подсказка в заголовке раздела: окно выравнивается по левому краю, иначе
   у заголовка, прижатого влево, оно уезжает за экран. */
.rx-v2 .rx-h2 .rx-hint-pop { left: -8px; transform: translateY(3px); }
.rx-v2 .rx-h2 .rx-hint:hover .rx-hint-pop, .rx-v2 .rx-h2 .rx-hint-btn:focus-visible + .rx-hint-pop { transform: translateY(0); }

/* ── FAQ ───────────────────────────────────────────────────── */
.rx-v2 .rx-faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.rx-v2 .rx-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); transition: border-color .16s, box-shadow .16s; }
.rx-v2 .rx-faq details[open] { border-color: rgba(37,99,235,.28); box-shadow: var(--sh-2); }
.rx-v2 .rx-faq summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; list-style: none; }
.rx-v2 .rx-faq summary::-webkit-details-marker { display: none; }
.rx-v2 .rx-faq summary::after { content: ""; flex: none; margin-left: auto; width: 11px; height: 11px; border-right: 2.2px solid var(--ink-3); border-bottom: 2.2px solid var(--ink-3); transform: rotate(45deg) translate(-3px,-3px); transition: transform .2s var(--ease); }
.rx-v2 .rx-faq details[open] summary::after { transform: rotate(225deg) translate(-2px,-2px); border-color: var(--brand); }
.rx-v2 .rx-faq summary:hover { color: var(--brand); }
.rx-v2 .rx-faq-a { padding: 0 22px 20px; margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: var(--maxw-text); }
.rx-v2 .rx-faq-a a { color: var(--brand); font-weight: 600; }

/* ── Список с галочками ────────────────────────────────────── */
.rx-v2 .rx-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.rx-v2 .rx-list li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.rx-v2 .rx-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--tint-sky); }
.rx-v2 .rx-list li::after { content: ""; position: absolute; left: 5.5px; top: 7.5px; width: 8px; height: 4.5px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.rx-v2 .rx-list b { color: var(--ink); }

/* ── CTA-полоса ────────────────────────────────────────────── */
.rx-v2 .rx-cta { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(28px,3.6vw,44px); text-align: center; color: #fff; background: linear-gradient(135deg,#1d4ed8,#2563eb 45%,#3b82f6); }
.rx-v2 .rx-cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.2px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(80% 80% at 70% 20%, #000, transparent); mask-image: radial-gradient(80% 80% at 70% 20%, #000, transparent); pointer-events: none; }
.rx-v2 .rx-cta h2 { position: relative; margin: 0 0 10px; font-size: clamp(24px,2.8vw,36px); font-weight: 800; letter-spacing: -.03em; }
.rx-v2 .rx-cta p { position: relative; margin: 0 auto 22px; max-width: 56ch; font-size: 16px; color: #dbe8ff; }
.rx-v2 .rx-cta .rx-btn { position: relative; }
.rx-v2 .rx-cta .rx-btn-primary { background: #fff; color: var(--brand-ink); box-shadow: 0 16px 30px -14px rgba(5,20,60,.6); }
.rx-v2 .rx-cta .rx-btn-primary:hover { background: #eff5ff; color: var(--brand-ink); }
.rx-v2 .rx-cta .rx-btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; box-shadow: none; }
.rx-v2 .rx-cta .rx-btn-ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }
.rx-v2 .rx-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── Пустое состояние ──────────────────────────────────────── */
.rx-v2 .rx-empty { max-width: 620px; margin: 0 auto; padding: clamp(30px,5vw,52px); text-align: center; }
.rx-v2 .rx-empty h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; }
.rx-v2 .rx-empty p { margin: 0 auto; max-width: 46ch; font-size: 15px; color: var(--ink-2); }
.rx-v2 .rx-empty code { background: var(--tint-sky); color: var(--brand-ink); padding: 2px 8px; border-radius: 7px; font-size: 13px; font-family: ui-monospace, Menlo, monospace; }

/* Модификаторы параграфов внутри карточки: `.rx-card p` (0,2,1 со скоупом)
   перебивает одноклассовые правила, поэтому усиливаем селектором-парой. */
.rx-v2 .rx-card .rx-lead { font-size: clamp(17px,1.5vw,20px); line-height: 1.6; color: var(--ink-2); }
.rx-v2 .rx-card .rx-faq-a { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.rx-v2 .rx-card .rx-eyebrow { font-size: 14px; color: var(--ink-3); }

/* ── Появление блоков при прокрутке ────────────────────────── */
/* Класс is-in ставит site-kit-v2.js; без JS всё видно сразу. */
.rx-v2 .rx-reveal { opacity: 0; transform: translateY(18px); }
.rx-v2 .rx-reveal.is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .rx-v2 *, .rx-v2 *::before, .rx-v2 *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rx-v2 .rx-reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Адаптив ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .rx-v2 .rx-split { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  .rx-v2 .rx-section { padding: clamp(26px,5vw,36px) 16px; }
  .rx-v2 .rx-hero { padding: 30px 16px 18px; }
  .rx-v2 .rx-card { padding: 22px 20px; }
  .rx-v2 .rx-dl a, .rx-v2 .rx-dl span.rx-btn { width: 100%; }
  /* Таблица не сжимается до четырёх колонок — оставляем ей горизонтальную
     прокрутку внутри своей карточки, страница при этом не едет. */
  .rx-v2 .rx-table-wrap { overflow-x: auto; }
  .rx-v2 .rx-table-card { padding: 6px 14px; }
  .rx-v2 .rx-table { font-size: 13.5px; }
  .rx-v2 .rx-table th, .rx-v2 .rx-table td { padding: 12px 10px; }
  .rx-v2 .rx-faq summary { font-size: 15.5px; padding: 16px 18px; }
  .rx-v2 .rx-faq-a { padding: 0 18px 18px; }
}
