/* Раздел «Для бизнеса» (/b2b/*) — каталоги и продуктовые страницы.
   Тот же язык, что у ocr.css / imgedit.css / api.css (Material 3 + Apple HIG).
   Тёмная тема — переопределение --b2b-* в static/theme.css.

   Иерархия внимания (важно при правках): на странице ровно одна «тяжёлая» зона —
   витрина каталога (.b2b-showcase) на цветной подложке с белыми карточками.
   Остальные блоки намеренно лёгкие: списки и текстовые пары без рамок, чтобы
   не спорить с витриной и не сливаться в однообразную сетку карточек. */

:root {
    --b2b-accent: #0d6efd;
    --b2b-accent-hover: #0b5ed7;
    --b2b-accent-soft: rgba(13, 110, 253, 0.09);
    --b2b-accent-soft-2: rgba(13, 110, 253, 0.18);
    --b2b-accent-text: #0b5ed7;

    --b2b-surface: rgba(255, 255, 255, 0.78);
    --b2b-surface-strong: #ffffff;
    --b2b-surface-muted: #f5f7fa;
    --b2b-border: rgba(18, 38, 63, 0.10);
    --b2b-border-strong: rgba(18, 38, 63, 0.16);

    --b2b-text: #16202c;
    --b2b-text-2: #4a5566;
    --b2b-muted: #7b8698;
    --b2b-icon-neutral: #8794a8;      /* иконки вне витрины — приглушённые */

    --b2b-showcase-bg: linear-gradient(150deg, #eaf1ff 0%, #f4f7fd 55%, #eef4ff 100%);
    --b2b-showcase-border: rgba(13, 110, 253, 0.16);

    --b2b-shadow: 0 18px 44px rgba(18, 38, 63, 0.10);
    --b2b-shadow-soft: 0 6px 20px rgba(18, 38, 63, 0.07);
    --b2b-shadow-card: 0 10px 30px rgba(18, 38, 63, 0.09);
    --b2b-radius: 18px;
    --b2b-radius-sm: 12px;

    --b2b-success: #0a7d33;
    --b2b-danger: #d64550;
}

/* ─── Каркас ─────────────────────────────────────────────────────────────── */

.b2b-page {
    display: flex;
    flex-direction: column;
    gap: 100px;                /* заголовок блока не должен примыкать к соседнему блоку */
    padding-bottom: 32px;
    color: var(--b2b-text);
}

.b2b-crumbs {
    margin-bottom: -40px;
    font-size: 14px;
}

.b2b-block {
    display: flex;
    flex-direction: column;
    gap: 40px;   /* заголовок не должен прилипать к контенту блока */
}

.b2b-block__head {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 28px;   /* место под акцентный маркер */
}

/* Маркер перед заголовком: короткий акцентный штрих, растворяющийся вправо.
   Даёт блоку точку входа для глаза, не превращая страницу в набор карточек. */
.b2b-block__head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--b2b-accent) 0%, var(--b2b-accent-soft-2) 100%);
}

.b2b-block__title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--b2b-text);
}

.b2b-block__lead {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--b2b-text-2);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.b2b-hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 32px;
}

.b2b-hero__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.b2b-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--b2b-accent-soft);
    color: var(--b2b-accent-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.b2b-page .b2b-title {
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--b2b-text);
}

.b2b-page .b2b-subtitle {
    margin: 0;
    font-size: 19px;
    line-height: 1.6;
    color: var(--b2b-text-2);
}

.b2b-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.b2b-hero__media {
    display: flex;
    justify-content: center;
}

.b2b-hero__media img {
    width: 100%;
    max-width: 260px;
    height: auto;
}

/* Кадр занятия (обучение): колонка под картинку шире, чем под плашку */
.b2b-hero--photo { grid-template-columns: 1fr 1fr; gap: 40px; }

.b2b-hero__media img.b2b-hero__photo {
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid var(--b2b-showcase-border);
    box-shadow: 0 18px 44px rgba(18, 38, 63, 0.18);
}

/* Плашка под будущую иллюстрацию раздела */
.b2b-hero__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: var(--b2b-showcase-bg);
    border: 1px solid var(--b2b-showcase-border);
    color: var(--b2b-accent);
    font-size: 64px;
}

.b2b-hero-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: -28px 0 0;
    padding: 16px 20px;
    border-radius: var(--b2b-radius-sm);
    background: var(--b2b-surface-muted);
    border: 1px solid var(--b2b-border);
    font-size: 15px;
    line-height: 1.55;
    color: var(--b2b-text-2);
}

.b2b-hero-note i {
    margin-top: 3px;
    color: var(--b2b-accent);
    flex-shrink: 0;
}

/* ─── Кнопки ─────────────────────────────────────────────────────────────── */

.b2b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .25s ease;
}

.b2b-btn--primary {
    background: var(--b2b-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.22);
}

.b2b-btn--primary:hover,
.b2b-btn--primary:focus-visible {
    background: var(--b2b-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.b2b-btn--ghost {
    background: var(--b2b-surface-strong);
    border-color: var(--b2b-border-strong);
    color: var(--b2b-text);
}

.b2b-btn--ghost:hover,
.b2b-btn--ghost:focus-visible {
    border-color: var(--b2b-accent);
    color: var(--b2b-accent-text);
}

.b2b-btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.b2b-btn--lg { min-height: 58px; padding: 0 34px; font-size: 18px; }
.b2b-btn--wide { flex: 1; }
.b2b-btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ─── Метрики: лёгкая полоса, без «карточности» ──────────────────────────── */

.b2b-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 26px 0;
    border-top: 1px solid var(--b2b-border);
    border-bottom: 1px solid var(--b2b-border);
}

.b2b-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.b2b-metric__value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--b2b-text);
}

.b2b-metric__label {
    font-size: 14px;
    line-height: 1.45;
    color: var(--b2b-muted);
}

/* ─── Витрина каталога: единственная «тяжёлая» зона страницы ─────────────── */

.b2b-showcase {
    padding: 36px;
    border-radius: 26px;
    background: var(--b2b-showcase-bg);
    border: 1px solid var(--b2b-showcase-border);
    scroll-margin-top: 90px;
}

.b2b-showcase__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.b2b-showcase__title {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--b2b-text);
}

.b2b-showcase__lead {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--b2b-text-2);
}

.b2b-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 18px;
}

/* Ровно четыре карточки раскладываем 2x2 — иначе последняя висит одна в ряду */
.b2b-cards:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* Карточки вертикальные: иконка сверху, текст на всю ширину колонки —
   в горизонтальной раскладке описание сжималось в узкий столбец */
.b2b-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 24px 22px;
    border-radius: var(--b2b-radius);
    background: var(--b2b-surface-strong);
    border: 1px solid transparent;
    box-shadow: var(--b2b-shadow-card);
    color: var(--b2b-text);
    text-decoration: none;
    transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, border-color .25s ease;
}

a.b2b-card:hover,
a.b2b-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(18, 38, 63, 0.16);
    border-color: var(--b2b-accent-soft-2);
    color: var(--b2b-text);
}

.b2b-card--static {
    background: rgba(255, 255, 255, 0.55);
    box-shadow: none;
    border-color: var(--b2b-border);
}

.b2b-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--b2b-accent);
    color: #fff;
    font-size: 20px;
}

.b2b-card--static .b2b-card__icon {
    background: var(--b2b-accent-soft-2);
    color: var(--b2b-accent-text);
}

.b2b-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.b2b-card__name {
    padding-right: 28px;   /* место под стрелку в углу */
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.b2b-card__lead {
    font-size: 15px;
    line-height: 1.55;
    color: var(--b2b-text-2);
}

.b2b-card__note {
    margin-top: auto;
    padding-top: 12px;
    width: 100%;
    border-top: 1px solid var(--b2b-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--b2b-accent-text);
}

.b2b-card__arrow {
    position: absolute;
    top: 28px;
    right: 24px;
    color: var(--b2b-accent);
    opacity: .5;
    transition: opacity .2s ease, transform .2s ease;
}

a.b2b-card:hover .b2b-card__arrow { opacity: 1; transform: translateX(3px); }

/* строка CTA внутри витрины */
.b2b-inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--b2b-showcase-border);
}

.b2b-inline-cta__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--b2b-text-2);
}

/* ─── Боли: текстовые пары без карточек ──────────────────────────────────── */

.b2b-pains {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 44px;
}

.b2b-pain {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 18px;
    border-left: 2px solid var(--b2b-accent-soft-2);
}

.b2b-pain__situation {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--b2b-text);
}

.b2b-pain__answer {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--b2b-text-2);
}

/* ─── Шаги: лента с номерами, без рамок ──────────────────────────────────── */

.b2b-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b2b-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 44px;
}

/* соединительная линия между шагами */
.b2b-step::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 40px;
    right: -28px;
    height: 2px;
    background: var(--b2b-accent-soft-2);
}

.b2b-step:last-child::before { display: none; }

.b2b-step__num {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--b2b-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.b2b-step__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.b2b-step__term {
    font-size: 13px;
    font-weight: 600;
    color: var(--b2b-accent-text);
}

.b2b-step__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--b2b-text-2);
}

/* ─── «Почему»: список с иконками, без рамок ─────────────────────────────── */

.b2b-why {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 44px;
}

.b2b-why__item {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 6px;
    align-items: start;
}

.b2b-why__icon {
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--b2b-surface-muted);
    border: 1px solid var(--b2b-border);
    color: var(--b2b-icon-neutral);
    font-size: 18px;
}

.b2b-why__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--b2b-text);
}

.b2b-why__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--b2b-text-2);
}

/* ─── Сценарии: приглушённые карточки, отличные от витрины ───────────────── */

.b2b-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.b2b-case {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: var(--b2b-radius);
    background: var(--b2b-surface-muted);
    border: 1px solid var(--b2b-border);
}

.b2b-case__company {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--b2b-muted);
}

.b2b-case__task {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--b2b-text-2);
}

.b2b-case__result {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--b2b-border);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--b2b-text);
}

.b2b-case__result i {
    margin-top: 3px;
    color: var(--b2b-success);
    flex-shrink: 0;
}

.b2b-cases__note {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--b2b-muted);
}

/* ─── FAQ ────────────────────────────────────────────────────────────────── */

.b2b-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.b2b-faq__item {
    border-bottom: 1px solid var(--b2b-border);
}

.b2b-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--b2b-text);
    cursor: pointer;
    list-style: none;
}

.b2b-faq__q::-webkit-details-marker { display: none; }

.b2b-faq__q i {
    color: var(--b2b-icon-neutral);
    transition: transform .2s ease;
    flex-shrink: 0;
}

.b2b-faq__item[open] .b2b-faq__q { color: var(--b2b-accent-text); }
.b2b-faq__item[open] .b2b-faq__q i { transform: rotate(180deg); color: var(--b2b-accent); }

.b2b-faq__a {
    padding: 0 4px 20px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--b2b-text-2);
}

/* ─── Финальный блок ─────────────────────────────────────────────────────── */

.b2b-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 48px 32px;
    border-radius: 26px;
    background: var(--b2b-showcase-bg);
    border: 1px solid var(--b2b-showcase-border);
}

.b2b-final__title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--b2b-text);
}

.b2b-final__text {
    margin: 0;
    max-width: 660px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--b2b-text-2);
}

.b2b-final .b2b-btn { margin-top: 6px; }

.b2b-final__sla {
    margin: 0;
    font-size: 14px;
    color: var(--b2b-muted);
}

.b2b-final__contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--b2b-showcase-border);
    width: 100%;
    max-width: 660px;
    font-size: 15px;
}

.b2b-final__contacts-label { color: var(--b2b-text-2); }

.b2b-final__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--b2b-accent-text);
    text-decoration: none;
    font-weight: 600;
}

.b2b-final__contacts a:hover { text-decoration: underline; }

/* иконка MAX — инлайн-SVG (в наборе fa-icons её нет) */
.b2b-ico-max {
    width: .95em;
    height: .95em;
    display: inline-block;
    vertical-align: -0.13em;
}

/* ─── Sticky CTA (мобильный) ─────────────────────────────────────────────── */

.b2b-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--b2b-surface-strong);
    border-top: 1px solid var(--b2b-border);
    box-shadow: 0 -8px 24px rgba(18, 38, 63, 0.10);
    transform: translateY(120%);
    transition: transform .25s ease;
}

.b2b-sticky.is-visible { transform: translateY(0); }

.b2b-sticky__text {
    font-size: 14px;
    line-height: 1.35;
    color: var(--b2b-text-2);
}

/* ─── Попап заявки ───────────────────────────────────────────────────────── */

.b2b-modal__dialog { max-width: 620px; }

.b2b-modal__content {
    border: 1px solid var(--b2b-border);
    border-radius: 22px;
    background: var(--b2b-surface-strong);
    box-shadow: 0 30px 70px rgba(18, 38, 63, 0.24);
    padding: 26px;
    color: var(--b2b-text);
}

.b2b-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.b2b-modal__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.b2b-modal__sla {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--b2b-text-2);
}

.b2b-modal__close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--b2b-border);
    border-radius: 10px;
    background: transparent;
    color: var(--b2b-text-2);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.b2b-modal__close:hover { background: var(--b2b-accent-soft); color: var(--b2b-accent); }

.b2b-form { display: flex; flex-direction: column; }

.b2b-form__step { display: flex; flex-direction: column; gap: 18px; }

.b2b-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.b2b-field { display: flex; flex-direction: column; gap: 8px; }

.b2b-field__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--b2b-text);
}

.b2b-field__opt {
    font-weight: 500;
    color: var(--b2b-muted);
}

.b2b-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--b2b-border-strong);
    border-radius: 10px;
    background: var(--b2b-surface-strong);
    color: var(--b2b-text);
    font-size: 16px;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.b2b-input:focus {
    outline: none;
    border-color: var(--b2b-accent);
    box-shadow: 0 0 0 3px var(--b2b-accent-soft);
}

.b2b-input--area { min-height: 92px; resize: vertical; }

.b2b-input--invalid { border-color: var(--b2b-danger); }

.b2b-field__error {
    font-size: 13px;
    color: var(--b2b-danger);
}

.b2b-field__error:empty { display: none; }

.b2b-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.b2b-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.b2b-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--b2b-border-strong);
    border-radius: 999px;
    background: var(--b2b-surface-strong);
    font-size: 15px;
    color: var(--b2b-text-2);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.b2b-chip input:checked + span {
    background: var(--b2b-accent-soft);
    border-color: var(--b2b-accent);
    color: var(--b2b-accent-text);
    font-weight: 600;
}

.b2b-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--b2b-accent-soft); }

.b2b-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--b2b-text-2);
    cursor: pointer;
}

.b2b-consent input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--b2b-accent);
}

.b2b-consent a { color: var(--b2b-accent-text); }

.b2b-form__actions { display: flex; gap: 12px; }

.b2b-form__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--b2b-muted);
}

#b2bLeadFormError { color: var(--b2b-danger); }

/* honeypot */
.b2b-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.b2b-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 12px 0 6px;
}

.b2b-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(10, 125, 51, 0.10);
    color: var(--b2b-success);
    font-size: 24px;
}

.b2b-success__title { margin: 0; font-size: 22px; font-weight: 700; }

.b2b-success__text,
.b2b-success__contacts {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--b2b-text-2);
}

.b2b-success__contacts a { color: var(--b2b-accent-text); font-weight: 600; }

/* ─── Адаптив ────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .b2b-steps { grid-template-columns: repeat(2, 1fr); gap: 26px 32px; }
    .b2b-step:nth-child(2)::before { display: none; }
}

@media (max-width: 992px) {
    .b2b-page { gap: 48px; }
    .b2b-page .b2b-title { font-size: 38px; }
    .b2b-metrics { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .b2b-pains,
    .b2b-why,
    .b2b-cards:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; }
    .b2b-showcase { padding: 28px; }
    .b2b-showcase__title { font-size: 29px; }
}

@media (max-width: 768px) {
    /* Единая линия слева и справа: .container даёт 12px, добавляем 8px — итого 20px
       у любого текста. Витрина и финальный блок тянутся до края экрана, но их
       внутренний отступ тоже 20px, поэтому весь контент стоит на одной линии. */
    .b2b-page {
        gap: 52px;
        padding-inline: 8px;
        padding-bottom: 96px;
    }
    .b2b-block { gap: 24px; }
    .b2b-crumbs { margin-bottom: -20px; font-size: 13px; }

    /* Заголовки и вводные — по центру: на узком экране левое выравнивание
       вперемешку с центрированными кнопками смотрелось рвано */
    .b2b-hero { grid-template-columns: 1fr; gap: 20px; }
    .b2b-hero__text { align-items: center; text-align: center; }
    .b2b-hero__media { order: -1; }
    .b2b-hero__media img { max-width: 150px; }
    .b2b-hero__media img.b2b-hero__photo { max-width: 100%; border-radius: 14px; }
    .b2b-hero__placeholder { max-width: 100%; aspect-ratio: 24 / 7; border-radius: 18px; font-size: 34px; }
    .b2b-page .b2b-title { font-size: 31px; }
    .b2b-page .b2b-subtitle { font-size: 17px; }
    .b2b-hero-actions { width: 100%; }
    .b2b-hero-actions .b2b-btn { flex: 1 1 100%; }

    .b2b-block__head { align-items: center; text-align: center; padding-top: 24px; }
    .b2b-block__head::before { left: 50%; transform: translateX(-50%); }
    .b2b-block__title { font-size: 25px; }
    .b2b-block__lead { font-size: 16px; }

    .b2b-metrics { padding: 22px 0; gap: 20px; }
    .b2b-metric { align-items: center; text-align: center; }
    .b2b-metric__value { font-size: 27px; }

    .b2b-showcase {
        margin-inline: -20px;
        padding: 28px 20px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .b2b-showcase__head { flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; }
    .b2b-showcase__title { font-size: 25px; }
    .b2b-cards { grid-template-columns: 1fr; }

    /* Шаги вертикально: номер и текст по центру, а кружки соединены линией,
       которая проходит за ними в зазорах между шагами */
    .b2b-steps { grid-template-columns: 1fr; gap: 30px; }
    .b2b-step {
        align-items: center;
        text-align: center;
        padding-top: 46px;
    }
    .b2b-step__num {
        left: 50%;
        transform: translateX(-50%);
    }
    .b2b-step::before { display: none; }
    .b2b-step + .b2b-step::before {
        display: block;
        top: -30px;
        left: 50%;
        right: auto;
        width: 2px;
        height: 62px;          /* зазор + кружок: линия входит под номер и там кончается */
        transform: translateX(-50%);
        background: var(--b2b-accent-soft-2);
        z-index: 0;
    }
    .b2b-step__num { z-index: 1; }
    .b2b-pains, .b2b-why { gap: 24px; }

    .b2b-final {
        margin-inline: -20px;
        padding: 36px 20px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .b2b-final__title { font-size: 26px; }
    .b2b-inline-cta { flex-direction: column; align-items: stretch; }
    .b2b-inline-cta .b2b-btn { width: 100%; }
    .b2b-sticky { display: flex; }
    .b2b-sticky__text { font-size: 13px; }

    .b2b-modal__dialog { max-width: none; margin: 0; align-items: flex-end; min-height: 100%; }
    .b2b-modal__content {
        border-radius: 20px 20px 0 0;
        padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
        max-height: 92vh;
        overflow-y: auto;
    }
    .b2b-modal__title { font-size: 21px; }
    .b2b-form__row { grid-template-columns: 1fr; }
    .b2b-form__actions { flex-direction: column-reverse; }
    .b2b-form__actions .b2b-btn { width: 100%; }
}

/* На телефоне подпись в sticky ломалась на три строки — оставляем только кнопку */
@media (max-width: 520px) {
    .b2b-sticky__text { display: none; }
    .b2b-sticky .b2b-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .b2b-card, .b2b-btn, .b2b-card__arrow, .b2b-faq__q i, .b2b-sticky { transition: none; }
    a.b2b-card:hover { transform: none; }
}

/* ═══ Страница курса (/b2b/educate/*) ════════════════════════════════════════
   Тот же принцип, что в каталогах: «тяжёлая» зона одна — программа курса
   на подложке витрины, остальные блоки лёгкие. */

/* ─── Параметры курса под hero ───────────────────────────────────────────── */

.b2b-params {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--b2b-radius);
    background: var(--b2b-surface-muted);
    border: 1px solid var(--b2b-border);
}

.b2b-param {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.b2b-param__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--b2b-muted);
}

.b2b-param__value {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--b2b-text);
}

/* ─── Списки результатов ─────────────────────────────────────────────────── */

.b2b-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 44px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b2b-results--compact {
    grid-template-columns: 1fr;
    gap: 10px;
}

.b2b-result {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--b2b-text-2);
}

.b2b-result i {
    margin-top: 4px;
    flex-shrink: 0;
    color: var(--b2b-success);
}

/* ─── Программа: модули-аккордеоны ───────────────────────────────────────── */

.b2b-modules {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.b2b-module {
    border-radius: var(--b2b-radius);
    background: var(--b2b-surface-strong);
    border: 1px solid transparent;
    box-shadow: var(--b2b-shadow-card);
    overflow: hidden;
}

.b2b-module__head {
    display: grid;
    grid-template-columns: 44px 1fr auto 20px;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
}

.b2b-module__head::-webkit-details-marker { display: none; }

.b2b-module__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--b2b-accent-soft);
    color: var(--b2b-accent-text);
    font-size: 14px;
    font-weight: 700;
}

.b2b-module__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--b2b-text);
}

.b2b-module__duration {
    font-size: 14px;
    font-weight: 600;
    color: var(--b2b-muted);
    white-space: nowrap;
}

.b2b-module__head i {
    color: var(--b2b-accent);
    transition: transform .2s ease;
}

.b2b-module[open] .b2b-module__head i { transform: rotate(180deg); }
.b2b-module[open] { border-color: var(--b2b-accent-soft-2); }

.b2b-module__topics {
    margin: 0;
    padding: 0 22px 20px 82px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.b2b-module__topics li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--b2b-text-2);
}

.b2b-module__topics li::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--b2b-accent-soft-2);
}

/* ─── Роли ───────────────────────────────────────────────────────────────── */

.b2b-roles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 40px;
}

.b2b-role {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 2px solid var(--b2b-accent-soft-2);
}

.b2b-role__name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--b2b-text);
}

.b2b-role__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--b2b-text-2);
}

/* ─── Форматы проведения ─────────────────────────────────────────────────── */

.b2b-formats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.b2b-format {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: var(--b2b-radius);
    background: var(--b2b-surface-muted);
    border: 1px solid var(--b2b-border);
}

.b2b-format__name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--b2b-text);
}

.b2b-format__text {
    margin: 0;
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: var(--b2b-text-2);
}

.b2b-format__note {
    padding-top: 12px;
    border-top: 1px solid var(--b2b-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--b2b-accent-text);
}

/* ─── Кто ведёт ──────────────────────────────────────────────────────────── */

.b2b-team {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px;
    border-radius: var(--b2b-radius);
    background: var(--b2b-surface-muted);
    border: 1px solid var(--b2b-border);
}

.b2b-team__text {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--b2b-text-2);
}

/* ─── Документ об обучении ───────────────────────────────────────────────── */

.b2b-cert {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 28px;
    border-radius: var(--b2b-radius);
    background: var(--b2b-showcase-bg);
    border: 1px solid var(--b2b-showcase-border);
}

.b2b-cert__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.b2b-cert__text {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--b2b-text-2);
}

.b2b-cert__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: var(--b2b-surface-strong);
    border: 1px solid var(--b2b-border);
    color: var(--b2b-accent);
    font-size: 44px;
}

@media (max-width: 992px) {
    .b2b-params { grid-template-columns: repeat(2, 1fr); }
    .b2b-roles { grid-template-columns: repeat(2, 1fr); }
    .b2b-results { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .b2b-params { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
    .b2b-param { align-items: center; text-align: center; }
    .b2b-roles { grid-template-columns: 1fr; gap: 22px; }
    .b2b-role { text-align: center; border-top-width: 2px; }
    .b2b-team { padding: 20px; text-align: center; }
    .b2b-team__text { font-size: 16px; }
    .b2b-cert { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 20px; }
    .b2b-cert__badge { order: -1; width: 92px; height: 92px; font-size: 34px; }
    .b2b-format { text-align: center; }
    .b2b-module__head { grid-template-columns: 36px 1fr 18px; gap: 12px; padding: 16px; }
    .b2b-module__duration { grid-column: 2; font-size: 13px; }
    .b2b-module__topics { padding: 0 16px 18px 16px; text-align: left; }
    .b2b-result { text-align: left; }
}

/* ─── Кросс-сейл на странице курса ───────────────────────────────────────── */

.b2b-upsell {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 34px;
    border-radius: 26px;
    background: var(--b2b-surface-strong);
    border: 1px solid var(--b2b-accent-soft-2);
    box-shadow: var(--b2b-shadow-card);
}

.b2b-upsell__head { display: flex; flex-direction: column; gap: 10px; }

.b2b-upsell__eyebrow {
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--b2b-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.b2b-upsell__title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--b2b-text);
}

.b2b-upsell__text {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--b2b-text-2);
}

.b2b-upsell__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px 28px;
}

.b2b-upsell__item { display: flex; flex-direction: column; gap: 8px; }

.b2b-upsell__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--b2b-accent-soft);
    color: var(--b2b-accent);
    font-size: 17px;
}

.b2b-upsell__item-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--b2b-text);
}

.b2b-upsell__item-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--b2b-text-2);
}

.b2b-upsell__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid var(--b2b-border);
}

.b2b-upsell__note { font-size: 14px; color: var(--b2b-muted); }

@media (max-width: 768px) {
    .b2b-upsell { padding: 24px 20px; border-radius: 20px; text-align: center; }
    .b2b-upsell__head { align-items: center; }
    .b2b-upsell__eyebrow { align-self: center; }
    .b2b-upsell__title { font-size: 24px; }
    .b2b-upsell__item { align-items: center; }
    .b2b-upsell__actions { flex-direction: column; }
    .b2b-upsell__actions .b2b-btn { width: 100%; }
}

/* ═══ Страницы платформы: /b2b/platform и /b2b/platform/pt ═══════════════════
   Иерархия здесь смещена: единственная «тяжёлая» зона — карусель превью
   интерфейса (.b2b-shots) сразу после полосы параметров. Схемы внедрения,
   возможности и блоки пилота намеренно лёгкие, чтобы не спорить с ней. */

/* ─── Схемы (инлайн-SVG, обе темы через currentColor и токены) ───────────── */
.b2b-scheme { width: 100%; height: auto; color: var(--b2b-text-2); }

.b2b-scheme text { font-family: inherit; font-size: 12px; fill: var(--b2b-text); }
.b2b-scheme__cap { font-size: 10px; letter-spacing: .12em; fill: var(--b2b-muted); }

.b2b-scheme__chip rect { fill: var(--b2b-surface-strong); stroke: var(--b2b-border-strong); stroke-width: 1.5; }
.b2b-scheme__chip text { font-weight: 600; }
.b2b-scheme__chip--accent rect { fill: var(--b2b-accent-soft); stroke: var(--b2b-accent-soft-2); }
.b2b-scheme__chip--accent text { fill: var(--b2b-accent-text); }

.b2b-scheme__link { stroke: var(--b2b-border-strong); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }

.b2b-scheme__core rect { fill: var(--b2b-accent-soft); stroke: var(--b2b-accent-soft-2); stroke-width: 1.5; }
.b2b-scheme__core-name { font-size: 15px; font-weight: 700; fill: var(--b2b-accent-text); }
.b2b-scheme__core-sub { font-size: 11px; fill: var(--b2b-muted); }

.b2b-scheme__cell rect { fill: var(--b2b-surface-strong); stroke: var(--b2b-border); stroke-width: 1.5; }
.b2b-scheme__cell text { font-size: 11px; fill: var(--b2b-text-2); }
.b2b-scheme__cell--solid rect { fill: var(--b2b-surface-strong); stroke: var(--b2b-border-strong); }

.b2b-scheme__ground rect { fill: none; stroke: var(--b2b-border-strong); stroke-width: 1.5; stroke-dasharray: 6 5; }
.b2b-scheme__ground text { font-size: 12px; font-weight: 600; }
.b2b-scheme__ground-sub { font-size: 10.5px; font-weight: 400; fill: var(--b2b-muted); }

.b2b-scheme__zone rect { fill: var(--b2b-surface-muted); stroke: var(--b2b-border); stroke-width: 1.5; }
.b2b-scheme__zone--ours rect { fill: var(--b2b-accent-soft); stroke: var(--b2b-accent-soft-2); }
.b2b-scheme__zone-cap { font-size: 10px; fill: var(--b2b-muted); font-weight: 600; }
.b2b-scheme__arrow { stroke: var(--b2b-accent); stroke-width: 1.6; fill: none; color: var(--b2b-accent); }
.b2b-scheme__edge { font-size: 9.5px; fill: var(--b2b-muted); }

.b2b-scheme__deck-back rect { fill: var(--b2b-surface-muted); stroke: var(--b2b-border); stroke-width: 1.5; }
.b2b-scheme__deck-front rect { fill: var(--b2b-surface-strong); stroke: var(--b2b-border-strong); stroke-width: 1.5; }
.b2b-scheme__deck-accent { fill: var(--b2b-accent); }
.b2b-scheme__deck-title { font-size: 16px; font-weight: 700; }
.b2b-scheme__deck-line rect { fill: var(--b2b-border-strong); }
.b2b-scheme__deck-bar rect { fill: var(--b2b-accent); opacity: .55; }
.b2b-scheme__deck-bar rect:last-child { opacity: .9; }
.b2b-scheme__deck-axis { stroke: var(--b2b-border-strong); stroke-width: 1.5; }

.b2b-hero__media--diagram { align-items: center; }

/* ─── Карусель превью ───────────────────────────────────────────────────── */
.b2b-shots {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 40px 36px 32px;
    border-radius: var(--b2b-radius);
    background: var(--b2b-showcase-bg);
    border: 1px solid var(--b2b-showcase-border);
}

.b2b-shots__head { display: flex; flex-direction: column; gap: 10px; }

.b2b-shots__title { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -.01em; }

.b2b-shots__lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--b2b-text-2); }

.b2b-shots__viewport { position: relative; }

.b2b-shots__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(50% - 13px);
    gap: 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    outline: none;
    padding: 4px;
    margin: -4px;
}

.b2b-shots__track::-webkit-scrollbar { display: none; }

.b2b-shot { display: flex; flex-direction: column; gap: 14px; margin: 0; scroll-snap-align: start; }

.b2b-shot__frame {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--b2b-border-strong);
    border-radius: 14px;
    overflow: hidden;
    background: var(--b2b-surface-strong);
    box-shadow: var(--b2b-shadow-card);
    cursor: zoom-in;
    transition: transform .22s ease, box-shadow .22s ease;
}

.b2b-shot__frame:hover { transform: translateY(-3px); box-shadow: var(--b2b-shadow); }

.b2b-shot__frame img { display: block; width: 100%; height: auto; }

.b2b-shot__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(12, 18, 28, .62);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
}

.b2b-shot__frame:hover .b2b-shot__zoom,
.b2b-shot__frame:focus-visible .b2b-shot__zoom { opacity: 1; transform: none; }

.b2b-shot__cap { display: flex; flex-direction: column; gap: 6px; }
.b2b-shot__name { font-size: 15.5px; font-weight: 650; color: var(--b2b-text); }
.b2b-shot__text { font-size: 14px; line-height: 1.55; color: var(--b2b-text-2); }

.b2b-shots__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--b2b-border-strong);
    border-radius: 50%;
    background: var(--b2b-surface-strong);
    color: var(--b2b-text);
    box-shadow: var(--b2b-shadow-soft);
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.b2b-shots__nav--prev { left: -20px; transform: translateY(-50%); }
.b2b-shots__nav--next { right: -20px; transform: translateY(-50%); }
.b2b-shots__nav:hover { background: var(--b2b-accent); color: #fff; border-color: transparent; }
.b2b-shots__nav[disabled] { opacity: 0; pointer-events: none; }

.b2b-shots__dots { display: flex; justify-content: center; gap: 8px; }

.b2b-shots__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: var(--b2b-border-strong);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.b2b-shots__dot.is-active { width: 26px; background: var(--b2b-accent); }

/* ─── Полноэкранный просмотр кадра ──────────────────────────────────────── */
.b2b-lb {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 64px;
}

.b2b-lb[hidden] { display: none; }

.b2b-lb__glass {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 26, .58);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    opacity: 0;
    transition: opacity .3s ease;
}

.b2b-lb.is-open .b2b-lb__glass { opacity: 1; }

.b2b-lb__figure {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: min(1360px, 92vw);
    margin: 0;
}

.b2b-lb__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
    transform-origin: top left;
    will-change: transform;
}

.b2b-lb__cap {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: center;
    opacity: 0;
    transition: opacity .28s ease .08s;
}

.b2b-lb.is-open .b2b-lb__cap { opacity: 1; }
.b2b-lb__name { font-size: 17px; font-weight: 650; color: #fff; }
.b2b-lb__text { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .74); max-width: 780px; margin: 0 auto; }
.b2b-lb__counter { font-size: 12.5px; letter-spacing: .06em; color: rgba(255, 255, 255, .5); }

.b2b-lb__btn {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transition: background .2s ease, opacity .28s ease .08s;
}

.b2b-lb.is-open .b2b-lb__btn { opacity: 1; }
.b2b-lb__btn:hover { background: rgba(255, 255, 255, .26); }
.b2b-lb__btn--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.b2b-lb__btn--next { right: 14px; top: 50%; transform: translateY(-50%); }
.b2b-lb__btn--close { right: 14px; top: 14px; }

html.b2b-lb-open, body.b2b-lb-open { overflow: hidden; }

/* ─── Текстовые блоки страниц платформы ─────────────────────────────────── */
.b2b-lede { display: flex; flex-direction: column; gap: 16px; }
.b2b-lede p { margin: 0; font-size: 16px; line-height: 1.72; color: var(--b2b-text-2); }

.b2b-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 34px 40px; }

.b2b-feat { display: flex; flex-direction: column; gap: 10px; }

.b2b-feat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--b2b-accent-soft);
    color: var(--b2b-accent-text);
    font-size: 15px;
}

.b2b-feat__title { margin: 0; font-size: 16.5px; font-weight: 650; color: var(--b2b-text); }
.b2b-feat__text { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--b2b-text-2); }

/* ─── Карточка приложения и «любое приложение» ──────────────────────────── */
.b2b-appcard {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 26px 28px;
    border: 1px solid var(--b2b-border-strong);
    border-radius: var(--b2b-radius);
    background: var(--b2b-surface-strong);
    box-shadow: var(--b2b-shadow-soft);
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.b2b-appcard:hover {
    transform: translateY(-3px);
    box-shadow: var(--b2b-shadow-card);
    border-color: var(--b2b-accent-soft-2);
    color: inherit;
}

.b2b-appcard__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: var(--b2b-accent-soft);
    color: var(--b2b-accent-text);
    font-size: 21px;
}

.b2b-appcard__body { display: flex; flex-direction: column; gap: 7px; }
.b2b-appcard__name { font-size: 18px; font-weight: 700; color: var(--b2b-text); }
.b2b-appcard__lead { font-size: 14.5px; line-height: 1.6; color: var(--b2b-text-2); }
.b2b-appcard__note { font-size: 13px; color: var(--b2b-muted); }

.b2b-appcard__go {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--b2b-accent-text);
}

.b2b-anyapp {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 4px 0;
    border-top: 1px solid var(--b2b-border);
}

.b2b-anyapp__title { margin: 0; font-size: 17px; font-weight: 650; color: var(--b2b-text); }
.b2b-anyapp__text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--b2b-text-2); }
.b2b-anyapp__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 30px; margin-top: 6px; }
.b2b-anyapp__item { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.b2b-anyapp__item > i { font-size: 15px; color: var(--b2b-icon-neutral); }
.b2b-anyapp__name { font-weight: 650; color: var(--b2b-text); }
.b2b-anyapp__desc { line-height: 1.55; color: var(--b2b-text-2); }

/* ─── Варианты внедрения ────────────────────────────────────────────────── */
.b2b-deploy { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }

.b2b-deploy__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px 24px;
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius);
    background: var(--b2b-surface-strong);
}

.b2b-deploy__figure {
    margin: -4px -6px 6px;
    padding: 10px;
    border-radius: var(--b2b-radius-sm);
    background: var(--b2b-surface-muted);
}

.b2b-deploy__name { margin: 0; font-size: 17px; font-weight: 650; color: var(--b2b-text); }
.b2b-deploy__text { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--b2b-text-2); }
.b2b-deploy__fit { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--b2b-muted); }

/* ─── Пилот и демо ──────────────────────────────────────────────────────── */
.b2b-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }

.b2b-offer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--b2b-border-strong);
    border-radius: var(--b2b-radius);
    background: var(--b2b-surface-strong);
    box-shadow: var(--b2b-shadow-soft);
}

.b2b-offer__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--b2b-accent-soft);
    color: var(--b2b-accent-text);
    font-size: 17px;
}

.b2b-offer__title { margin: 0; font-size: 18px; font-weight: 700; color: var(--b2b-text); }

.b2b-offer__term {
    padding: 4px 11px;
    border-radius: 99px;
    background: var(--b2b-surface-muted);
    font-size: 12.5px;
    color: var(--b2b-muted);
}

.b2b-offer__text { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.62; color: var(--b2b-text-2); }

.b2b-pricenote {
    margin: 0;
    padding: 16px 20px;
    border-left: 3px solid var(--b2b-accent-soft-2);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--b2b-text-2);
}

.b2b-steps--compact { margin-top: 6px; }

/* ─── Ядро под приложением (страница PT) ────────────────────────────────── */
.b2b-corebox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 28px;
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius);
    background: var(--b2b-surface-muted);
}

.b2b-corebox__text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--b2b-text-2); }

/* ─── Планшет и мобильный ───────────────────────────────────────────────── */
@media (max-width: 991px) {
    .b2b-shots__track { grid-auto-columns: calc(100% - 2px); }
    .b2b-shots__nav--prev { left: -12px; }
    .b2b-shots__nav--next { right: -12px; }
    .b2b-appcard { grid-template-columns: auto 1fr; }
    .b2b-appcard__go { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .b2b-shots { padding: 28px 18px 24px; margin-inline: -20px; border-radius: 0; border-left: 0; border-right: 0; }
    .b2b-shots__head { align-items: center; text-align: center; }
    .b2b-shots__title { font-size: 23px; }
    .b2b-shots__nav { display: none; }
    .b2b-shot__cap { align-items: center; text-align: center; }
    .b2b-lb { padding: 20px 12px; }
    .b2b-lb__btn--prev { left: 6px; }
    .b2b-lb__btn--next { right: 6px; }
    .b2b-lb__img { max-height: 56vh; }
    .b2b-feats { gap: 26px; }
    .b2b-feat { align-items: center; text-align: center; }
    .b2b-appcard { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
    .b2b-appcard__body { align-items: center; }
    .b2b-anyapp { align-items: center; text-align: center; }
    .b2b-anyapp__item { align-items: center; text-align: center; }
    .b2b-deploy__card { align-items: center; text-align: center; }
    .b2b-offer { align-items: center; text-align: center; }
    .b2b-corebox { align-items: center; text-align: center; }
    .b2b-pricenote { border-left: 0; border-top: 3px solid var(--b2b-accent-soft-2); text-align: center; }
    .b2b-lede { text-align: center; }
}

/* ═══ /b2b/dev: состав работ группами ═══════════════════════════════════════
   Кластер широкий, поэтому направления сгруппированы: читатель с готовыми
   требованиями находит свою строку глазами, а не читает двенадцать карточек. */

.b2b-dirs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

/* четыре группы в три колонки дают сироту — раскладываем 2×2 */
.b2b-dirs:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 767px) {
    .b2b-dirs:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; }
}

.b2b-dir {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 26px 26px;
    border-radius: var(--b2b-radius);
    background: var(--b2b-surface-strong);
    border: 1px solid var(--b2b-border);
    box-shadow: var(--b2b-shadow-soft);
}

.b2b-dir__head { display: flex; align-items: center; gap: 12px; }

.b2b-dir__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--b2b-accent-soft);
    color: var(--b2b-accent-text);
    font-size: 15px;
}

.b2b-dir__group { margin: 0; font-size: 17px; font-weight: 700; color: var(--b2b-text); }

.b2b-dir__list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }

.b2b-dir__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 14px;
    border-left: 2px solid var(--b2b-accent-soft-2);
}

.b2b-dir__name { font-size: 15px; font-weight: 650; color: var(--b2b-text); }
.b2b-dir__text { font-size: 14px; line-height: 1.55; color: var(--b2b-text-2); }

/* ссылка внутри карточки размещения */
.b2b-deploy__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--b2b-accent-text);
    text-decoration: none;
}

.b2b-deploy__link:hover { color: var(--b2b-accent-hover); }

@media (max-width: 767px) {
    .b2b-dir { align-items: center; text-align: center; }
    .b2b-dir__head { flex-direction: column; gap: 8px; }
    .b2b-dir__item { align-items: center; text-align: center; padding-left: 0; border-left: 0; padding-top: 12px; border-top: 2px solid var(--b2b-accent-soft-2); }
    .b2b-dir__list { gap: 18px; }
}

/* ═══ /b2b/ecom/desc: сценарии обработки товаров ════════════════════════════
   Каждый сценарий — блок-схема из узлов со стрелками и короткая подпись под ней.
   Цепочка на flex с переносом: на узкой ширине она складывается в столбик,
   а стрелка разворачивается вниз. */

.b2b-scenarios { display: flex; flex-direction: column; gap: 22px; }

.b2b-scenario {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 26px 26px;
    border-radius: var(--b2b-radius);
    background: var(--b2b-surface-strong);
    border: 1px solid var(--b2b-border);
    box-shadow: var(--b2b-shadow-soft);
}

.b2b-scenario__head { display: flex; align-items: center; gap: 14px; }

.b2b-scenario__num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--b2b-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.b2b-scenario__name { margin: 0; font-size: 17.5px; font-weight: 700; color: var(--b2b-text); }

.b2b-scenario__text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--b2b-text-2);
    padding-top: 4px;
    border-top: 1px solid var(--b2b-border);
}

/* ─── Цепочка ───────────────────────────────────────────────────────────── */
.b2b-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
}

.b2b-flow__arrow {
    display: flex;
    align-items: center;
    align-self: center;
    color: var(--b2b-accent);
    font-size: 14px;
}

.b2b-flow__node {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 210px;
    min-width: 200px;
    max-width: 320px;
    padding: 14px 16px 16px;
    border-radius: var(--b2b-radius-sm);
    background: var(--b2b-surface-muted);
    border: 1px solid var(--b2b-border);
}

.b2b-flow__node--search { flex: 1.7 1 300px; max-width: 420px; }
.b2b-flow__node--serp { flex: 2 1 340px; min-width: 280px; max-width: 470px; }
.b2b-flow__node--ai,
.b2b-flow__node--find {
    flex: 0 1 190px;
    min-width: 170px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.b2b-flow__cap {
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--b2b-muted);
}

.b2b-flow__title { font-size: 14.5px; font-weight: 650; color: var(--b2b-text); }

.b2b-flow__plain { display: flex; flex-direction: column; gap: 6px; }

.b2b-flow__plain span {
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--b2b-surface-strong);
    border: 1px solid var(--b2b-border);
    font-size: 13px;
    line-height: 1.5;
    color: var(--b2b-text-2);
}

/* таблица параметров: пропуски видно сразу */
.b2b-flow__table {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--b2b-border);
    background: var(--b2b-surface-strong);
}

.b2b-flow__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: baseline;
    padding: 7px 10px;
    font-size: 12.5px;
    border-bottom: 1px solid var(--b2b-border);
}

.b2b-flow__row:last-child { border-bottom: 0; }
.b2b-flow__key { color: var(--b2b-text-2); }
.b2b-flow__val { font-weight: 650; color: var(--b2b-accent-text); white-space: nowrap; }
.b2b-flow__row.is-empty { background: var(--b2b-surface-muted); }
.b2b-flow__row.is-empty .b2b-flow__val { color: var(--b2b-muted); font-weight: 400; }

.b2b-flow__shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--b2b-border);
    background: #fff;
}

.b2b-flow__dual { display: flex; flex-direction: column; gap: 8px; }

.b2b-flow__box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--b2b-surface-strong);
    border: 1px solid var(--b2b-border);
}

.b2b-flow__box-label {
    font-size: 10.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--b2b-muted);
}

.b2b-flow__box-text { font-size: 12.5px; line-height: 1.45; color: var(--b2b-text-2); }

.b2b-flow__ai {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 4px 0;
}

.b2b-flow__ai-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--b2b-accent-soft);
    color: var(--b2b-accent-text);
    font-size: 16px;
}

.b2b-flow__ai-title { font-size: 14.5px; font-weight: 700; color: var(--b2b-text); }
.b2b-flow__ai-sub { font-size: 12px; color: var(--b2b-muted); }

.b2b-flow__list,
.b2b-flow__files { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }

.b2b-flow__list li,
.b2b-flow__files li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--b2b-text-2);
}

.b2b-flow__list li > i { margin-top: 3px; font-size: 11px; color: var(--b2b-success); }
.b2b-flow__files li > i { margin-top: 2px; font-size: 12px; color: var(--b2b-icon-neutral); }

@media (max-width: 900px) {
    .b2b-flow { flex-direction: column; align-items: stretch; }
    .b2b-flow__node,
    .b2b-flow__node--search,
    .b2b-flow__node--ai,
    .b2b-flow__node--find { max-width: none; min-width: 0; flex: 1 1 auto; }
    .b2b-flow__arrow { justify-content: center; transform: rotate(90deg); }
}

@media (max-width: 767px) {
    .b2b-scenario { padding: 20px 16px 22px; }
    .b2b-scenario__head { flex-direction: column; text-align: center; gap: 10px; }
    .b2b-scenario__text { text-align: center; }
    .b2b-flow__cap,
    .b2b-flow__title { text-align: center; }
}

/* ─── Перелинковка внутри направления ───────────────────────────────────── */
.b2b-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }

/* в паре карточек стрелка уходит на свою строку — иначе текст зажат */
.b2b-related .b2b-appcard { grid-template-columns: auto 1fr; align-items: start; }
.b2b-related .b2b-appcard__go { grid-column: 1 / -1; }

.b2b-related__all { margin: 0; font-size: 14.5px; }
.b2b-related__all a { color: var(--b2b-accent-text); font-weight: 600; text-decoration: none; }
.b2b-related__all a:hover { color: var(--b2b-accent-hover); text-decoration: underline; }

@media (max-width: 767px) {
    .b2b-related__all { text-align: center; }
}

/* ─── Узлы с изображением и видео (сценарии визуала карточек) ───────────── */
.b2b-flow__node--image,
.b2b-flow__node--video,
.b2b-flow__node--thumbs { flex: 1.3 1 290px; min-width: 240px; max-width: 360px; }

.b2b-flow__pic {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--b2b-border);
    background: var(--b2b-surface-strong);
}

.b2b-flow__video { object-fit: cover; }

.b2b-flow__hint { font-size: 11.5px; line-height: 1.45; color: var(--b2b-muted); }

@media (max-width: 900px) {
    .b2b-flow__node--image,
    .b2b-flow__node--video { max-width: none; min-width: 0; flex: 1 1 auto; }
    .b2b-flow__pic { max-width: 320px; margin-inline: auto; }
}

/* ─── Мокап выдачи с картинками товара ──────────────────────────────────── */
.b2b-serp {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--b2b-border);
}

.b2b-serp__bar { display: flex; align-items: center; gap: 8px; }

.b2b-serp__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #fc3f1d;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.b2b-serp__q {
    flex: 1;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1.5px solid #ffcc00;
    background: #fff;
    font-size: 10.5px;
    line-height: 1.3;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.b2b-serp__tabs { display: flex; gap: 10px; padding: 0 2px 6px; border-bottom: 1px solid var(--b2b-border); }
.b2b-serp__tabs span { font-size: 9.5px; color: #6b7280; }
.b2b-serp__tabs .is-active { color: #1f2937; font-weight: 700; border-bottom: 2px solid #fc3f1d; padding-bottom: 4px; margin-bottom: -6px; }

.b2b-serp__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }

.b2b-serp__grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    background: #f4f6fa;
}

/* отобранные кадры */
.b2b-flow__thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.b2b-flow__thumbs img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--b2b-border);
    background: var(--b2b-surface-strong);
}

@media (max-width: 900px) {
    .b2b-flow__node--thumbs { max-width: none; min-width: 0; flex: 1 1 auto; }
    .b2b-serp { max-width: 460px; margin-inline: auto; }
    .b2b-flow__thumbs { max-width: 360px; margin-inline: auto; }
}

/* ═══ /b2b/ecom/seo: вертикальный конвейер ══════════════════════════════════
   Десять шагов сверху вниз, сгруппированы в фазы. Линия слева соединяет шаги,
   на ключевых висят маленькие артефакты — выдача, таблица, сниппет. */

.b2b-pipe { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }

.b2b-pipe__phase {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 18px;
    padding-left: 2px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--b2b-muted);
}

.b2b-pipe__phase:not(:first-child) { margin-top: 22px; }
.b2b-pipe__phase::after { content: ""; flex: 1; height: 1px; background: var(--b2b-border); }

.b2b-pipe__step { position: relative; padding: 0 0 26px 60px; }

/* соединительная линия до следующего шага */
.b2b-pipe__step::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: var(--b2b-border);
}

.b2b-pipe__step:last-child { padding-bottom: 0; }
.b2b-pipe__step:last-child::before { display: none; }

.b2b-pipe__num {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--b2b-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.b2b-pipe__body { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.b2b-pipe__title { margin: 0; font-size: 17px; font-weight: 650; color: var(--b2b-text); }
.b2b-pipe__text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--b2b-text-2); }
.b2b-pipe__art { margin-top: 8px; max-width: 520px; }

/* ─── Артефакты шагов ───────────────────────────────────────────────────── */
.b2b-art {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--b2b-radius-sm);
    background: var(--b2b-surface-muted);
    border: 1px solid var(--b2b-border);
}

/* выдача */
.b2b-art__bar { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }

.b2b-art__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #fc3f1d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.b2b-art__q {
    flex: 1;
    padding: 4px 9px;
    border-radius: 6px;
    border: 1.5px solid #ffcc00;
    background: var(--b2b-surface-strong);
    font-size: 12px;
    color: var(--b2b-text);
}

.b2b-art__res { display: flex; flex-direction: column; gap: 2px; }
.b2b-art__res-title { font-size: 12.5px; font-weight: 600; color: #2b57c4; }
.b2b-art__res-url { font-size: 11px; color: #3a8f4a; }

/* таблица частотности */
.b2b-art--table { gap: 0; padding: 0; overflow: hidden; }

.b2b-art__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 8px 14px;
    font-size: 12.5px;
    color: var(--b2b-text-2);
    border-bottom: 1px solid var(--b2b-border);
}

.b2b-art__row:last-child { border-bottom: 0; }
.b2b-art__row--head { background: var(--b2b-surface-strong); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--b2b-muted); }
.b2b-art__num { font-weight: 650; color: var(--b2b-accent-text); }

/* слияние источников */
.b2b-art--sources { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
.b2b-art__srcs { display: flex; flex-direction: column; gap: 6px; }

.b2b-art__src {
    padding: 6px 11px;
    border-radius: 8px;
    background: var(--b2b-surface-strong);
    border: 1px solid var(--b2b-border);
    font-size: 12.5px;
    color: var(--b2b-text-2);
}

.b2b-art__merge { color: var(--b2b-accent); font-size: 14px; }

.b2b-art__core {
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--b2b-accent-soft);
    border: 1px solid var(--b2b-accent-soft-2);
    font-size: 13.5px;
    font-weight: 650;
    color: var(--b2b-accent-text);
}

/* сниппет */
.b2b-art__snip-title { font-size: 14px; font-weight: 650; color: #2b57c4; line-height: 1.35; }
.b2b-art__snip-url { font-size: 11.5px; color: #3a8f4a; }
.b2b-art__snip-desc { font-size: 12.5px; line-height: 1.5; color: var(--b2b-text-2); }

/* превью статьи */
.b2b-art__art-title { font-size: 14px; font-weight: 700; color: var(--b2b-text); }
.b2b-art__line { display: block; height: 8px; border-radius: 4px; background: var(--b2b-border-strong); }
.b2b-art__line--short { width: 62%; }
.b2b-art__keys { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }

.b2b-art__key {
    padding: 4px 9px;
    border-radius: 99px;
    background: var(--b2b-accent-soft);
    font-size: 11.5px;
    color: var(--b2b-accent-text);
}

@media (max-width: 767px) {
    .b2b-pipe__step { padding-left: 48px; }
    .b2b-pipe__num { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
    .b2b-pipe__step::before { left: 16px; top: 38px; }
    .b2b-pipe__title,
    .b2b-pipe__text { text-align: left; }
    .b2b-art--sources { flex-direction: column; align-items: stretch; }
    .b2b-art__merge { transform: rotate(90deg); align-self: center; }
}

/* ─── Попап: перетекание между шагами и экран проверки ──────────────────── */
.b2b-form__step { transition: opacity .16s ease, transform .16s ease; }
.b2b-form__step.is-leaving { opacity: 0; transform: translateY(-6px); }

.b2b-form__step.is-entering {
    animation: b2bStepIn .26s cubic-bezier(.22, .8, .24, 1) both;
}

@keyframes b2bStepIn {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.b2b-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 0 6px;
    text-align: center;
}

.b2b-check__title { margin: 0; font-size: 19px; font-weight: 700; color: var(--b2b-text); }
.b2b-check__text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--b2b-text-2); }

.b2b-check__box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 100%;
    margin: 6px 0 4px;
}

.b2b-check__spinner { position: absolute; display: flex; gap: 6px; }

.b2b-check__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--b2b-accent);
    opacity: .35;
    animation: b2bDot 1s ease-in-out infinite;
}

.b2b-check__dot:nth-child(2) { animation-delay: .15s; }
.b2b-check__dot:nth-child(3) { animation-delay: .3s; }

@keyframes b2bDot {
    0%, 100% { opacity: .35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

.b2b-check__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.b2b-success--error .b2b-success__icon { background: rgba(214, 69, 80, .12); color: var(--b2b-danger); }
