

/* Start:/local/templates/sov-obr/components/bitrix/news/blog-posts/style.css?17857534285514*/
.b-blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

/* ── Поиск (всегда раскрыт) ── */
.b-blog-search {
    position: relative;
    display: flex;
    align-items: center;
    height: 54px;
    background: #f5f5f8;
    border-radius: 999px;
    padding: 4px 10px 4px 10px;
    width: 100%;
    max-width: 100%;
}

.b-blog-search__icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #7a7a7c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.b-blog-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    font-weight: 500;
    padding: 0 0px;
    font-size: 15px;
    color: #7a7a7c;
    background: transparent;
    border: none;
    outline: none;
}

.b-blog-search__input::placeholder { color: #98a2b3; }

.b-blog-search__input::-webkit-search-decoration,
.b-blog-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.b-blog-search__reset {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    background: transparent;
    border: none;
    border-radius: 50%;
    margin-right: 4px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.b-blog-search__reset:hover { background: #e4e7ec; color: #101828; }

/* ── Сортировка справа ── */
.b-blog-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.b-blog-toolbar__label { font-size: 14px; color: #475467; white-space: nowrap; }

.b-blog-toolbar__select {
    height: 40px;
    padding: 0 36px 0 14px;
    font-size: 14px;
    color: #101828;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5 6 6.5l5-5' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s, box-shadow .15s;
}

.b-blog-toolbar__select:hover { border-color: #98a2b3; }
.b-blog-toolbar__select:focus {
    outline: none;
    border-color: #2e6bff;
    box-shadow: 0 0 0 3px rgba(46, 107, 255, .15);
}

/* ── Контейнер списка + индикатор загрузки ── */
.b-blog-list-wrap {
    position: relative;
    transition: opacity .15s;
}

.b-blog-list-wrap.is-loading {
    opacity: .5;
    pointer-events: none;
}

.b-blog-list-wrap.is-loading::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border: 3px solid #d0d5dd;
    border-top-color: #2e6bff;
    border-radius: 50%;
    animation: blog-spin .8s linear infinite;
}
@media (max-width: 768px) {
    .b-blog-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    .b-select#b-blog-sort {
        width: 100%;
    }
    .b-blog-toolbar__sort {
        width: 100%;
    }
    .b-select__trigger {
        text-align:center;
        justify-content: start!important;
        width: 100%;
    }
    .b-blog-aside-max {
        order: 3!important;
    }
}
@media (min-width: 769px) {
    .b-select__trigger {
        min-width: 175px;
    }
    
}

@keyframes blog-spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {

    .b-blog-search { width: 100%; }
}

.b-blog-cards.view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.b-blog-cards.view-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.b-blog-cards.view-list .b-article {
    flex-direction: row;
}
.b-blog-cards.view-list .b-article__media {
    flex: 0 0 280px;
    max-width: max-content;
}

.b-blog-cards.view-grid .b-article__media {
    display: block;
    background: #f3f4f6;
    height:auto;
    height: fit-content;
    overflow: hidden;
}
.b-blog-cards.view-grid > .b-article   {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    min-height: 210px;
    transition: border-color .15s, box-shadow .15s;
    flex-direction: column;
}
.b-blog-cards.view-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1400px) {
    .b-blog-cards.view-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Десктоп поменьше / ноутбук */
@media (max-width: 1200px) {
    .b-blog-cards.view-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Планшет */
@media (max-width: 992px) {
    .b-blog-cards.view-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Мобильный */
@media (max-width: 576px) {
    .b-blog-cards.view-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
/* */

/* End */


/* Start:/local/templates/sov-obr/components/bitrix/news.list/blog-list/style.css?178273090110805*/
:root {
    --blue: #1A4FD6;
    --blue-dark: #1340B8;
    --blue-light: #E8EFFE;
    --text: #1A1A2E;
    --muted: #6B7280;
    --border: #E2E8F0;
    --radius: 8px;
    --radius-lg: 14px;
    --bg: #F7F8FA;
    --white: #FFFFFF;
    --max-w: 1200px;
}

/* ============================================================
   HERO
   ============================================================ */
.b-blog-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 0;
    align-items: center;
}
.b-blog-hero__title {
    font-size: 44px;
    line-height: 45px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}
.b-blog-hero__lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 460px;
    margin-top: 0;
}
.b-blog-hero__image {
    display: flex;
    justify-content: flex-end;
}
.b-blog-hero__image img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   LAYOUT (сайдбар + основная колонка)
   ============================================================ */
.b-blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* ============================================================
   САЙДБАР — карточки и QR
   ============================================================ */
.b-articles,
.b-aside-card {
    display: flex;
    flex-direction: column;
}
.b-aside-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    gap: 10px;
}
.b-aside-card__icon {
    width: 40px;
    height: 40px;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.b-aside-card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}
.b-aside-card__text {
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
}
.b-aside-card__btn {
    margin-top: 8px;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
}
.b-aside-card__hint {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    line-height: 1.45;
}
.b-aside-qr {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    margin: 8px auto;
    width: 160px;
    height: 160px;
}
.b-aside-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.b-articles {
    gap: 20px;
}

.b-blog-cards {
    display: grid;
    gap: 24px;
}
.b-blog-cards.view-grid {
    grid-template-columns: repeat(3, 1fr);
}
.b-blog-cards.view-list {
    grid-template-columns: 1fr;
}

.b-article {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.b-article:hover {
    border-color: #c3d3f7;
    box-shadow: 0 6px 20px rgba(26, 79, 214, .08);
    transform: translateY(-2px);
}

/* ---------- Лист-вид: карточка горизонтальная ---------- */
.view-list .b-article {
    flex-direction: row;
    min-height: 170px;
}
.view-list .b-article__media {
    flex: 0 0 260px;
    max-width: 260px;
    aspect-ratio: auto;
}

/* ---------- Медиа ---------- */
.b-article__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    overflow: hidden;
}
.b-article__media-link {
    display: block;
    width: 100%;
    height: 100%;
}
.b-article__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .4s, transform .35s;
}
.b-article__img.is-loaded,
.b-article__img[loading="eager"] {
    opacity: 1;
}
.b-article:hover .b-article__img {
    transform: scale(1.04);
}
.b-article--no-media .b-article__media {
    display: none;
}

/* ---------- Бейдж секции (на баннере) ---------- */
.b-article__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--color-text-alternate);
    background: #f5f5f5c4;
    padding: 4px 11px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    transition: background .15s;
}
.b-article__badge:hover {
    background: #fff;
}

/* ---------- Закладка ----------
   Грид-вид: в правом верхнем углу баннера.
   Лист-вид: в правом верхнем углу тела (картинка слева). */
.b-article__bookmark {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    transition: background .15s, color .15s;
}
.b-article__bookmark svg {
    width: 16px;
    height: 16px;
}
.b-article__bookmark:hover {
    background: #fff;
    color: var(--blue);
}

/* В лист-виде закладка крепится к телу, без фон-плашки баннера */
.view-list .b-article__bookmark {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: none;
    color: #9ca3af;
}
.view-list .b-article__bookmark:hover {
    color: var(--blue);
    border-color: #c3d3f7;
}

/* ---------- Тело ---------- */
.b-article__body {
    position: relative;
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1 1 auto;
    min-width: 0;
}
.view-list .b-article__body {
    padding: 18px 22px;
}

/* ---------- Шапка (только для карточек без картинки) ---------- */
.b-article__head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.b-article__section {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-light);
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
}

/* ---------- Дата над заголовком ---------- */
.b-article__date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: #9ca3af;
}
.b-article__date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ---------- Заголовок и лид ---------- */
.b-article__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.32;
    color: #111827;
    text-decoration: none;
    transition: color .15s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.b-article__title:hover {
    color: var(--blue);
}
/* В лист-виде заголовок крупнее и не залезает под закладку */
.view-list .b-article__title {
    font-size: 18px;
    padding-right: 40px;
}

.b-article__lead {
    font-size: 13.5px;
    line-height: 1.55;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.view-list .b-article__lead {
    font-size: 14px;
}

/* ---------- Подвал ---------- */
.b-article__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
}

.b-article__author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.b-article__author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--blue-light);
    flex-shrink: 0;
}
.b-article__author-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.b-article__author-name {
    font-size: 13px;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.b-article__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #9ca3af;
    flex-shrink: 0;
}
.b-article__read,
.b-article__views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.b-article__meta svg {
    width: 14px;
    height: 14px;
}
.b-article__dot {
    color: #d1d5db;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1200px) {
    .b-blog-right,
    .b-blog-toolbar__label,
    .b-blog-toolbar__mode {
        display: none;
    }
    .b-blog-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .breadcrumbs__scroll {
        display: block;
        overflow: hidden;
    }
    .b-blog-hero__text {
        display: grid;
        gap: 20px;
    }
    .b-blog-toolbar__select {
        font-size: 15px;
    }
}

@media (max-width: 1100px) {
    .b-blog-cards.view-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 680px) {
    .b-blog-cards.view-grid,
    .b-blog-cards.view-list {
        grid-template-columns: 1fr;
    }
    /* Лист-вид на телефоне схлопывается в вертикаль, как грид */
    .view-list .b-article {
        flex-direction: column;
        min-height: 0;
    }
    .view-list .b-article__media {
        flex: none;
        max-width: none;
        aspect-ratio: 16 / 9;
    }
    /* На телефоне закладка возвращается на баннер */
    .view-list .b-article__bookmark {
        background: rgba(255, 255, 255, 0.94);
        border: none;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    }
    .view-list .b-article__title {
        padding-right: 0;
    }
}
/* End */


/* Start:/local/templates/sov-obr/components/bitrix/news.detail/blog-post-detail/style.css?178576204275409*/
/* ============================================================
   BLOG — единый стиль детальной страницы, ленты и компонентов
   ------------------------------------------------------------
   Структура:
     1.  Переменные
     2.  Каркас страницы
     3.  HERO детальной статьи (v4)
     4.  Мета / лид / главное фото
     5.  Оглавление: инлайновое (TOC), сайдбар, плавающее
     6.  Контент статьи
     7.  Таблицы и код
     8.  Цитаты / блоки-выноски
     9.  Теги статьи
     10. Компоненты статьи (шаги, чек-лист, карточки, FAQ)
     11. Бейджи / callout / списки
     12. Навигация пред-след и «Что ещё почитать»
     13. Лента блога: тулбар, карточки
     14. Секция консультаций / CTA
     15. Адаптив
   ------------------------------------------------------------
   Шкала блоков-выносок:
     заголовок 17px/700 · текст 16px/1.55 · подпись 13px
     отступ снизу 20px · радиус 14px
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* ═════════════════════════════════════════════════════════════
   1. ПЕРЕМЕННЫЕ
   ═════════════════════════════════════════════════════════════ */
i.icon.icon-play.video__play-button {
    position: absolute;
}
.b-article1 {
    --c-text: #1a1d24;
    --c-text-soft: #5b616e;
    --c-muted: #8a909c;
    --c-accent: #2563eb;
    --c-accent-soft: #eff4ff;
    --c-border: #e6e8ec;
    --c-bg-soft: #f7f8fa;
    --radius: 14px;
    --maxw: 760px;

    margin: 0 auto;
    color: var(--c-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.b-article * { box-sizing: border-box; }


/* ═════════════════════════════════════════════════════════════
   2. КАРКАС СТРАНИЦЫ
   ═════════════════════════════════════════════════════════════ */

.template-page {
    background: #f5f5f8;
    padding-block: 0;
}

.template-page__container.container {
    max-width: 1280px;
    border-radius: 22px;
}

.title-page {
    margin-bottom: 0;
    visibility: collapse;
}

.b-blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 24px;
    align-items: start;
}

.b-blog-layout-post {
    display: grid;
    grid-template-columns: 1fr 340px !important;
    gap: 20px;
    padding: 0;
    align-items: start;
}



.b-blog-right {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 149px;
}

.breadcrumbs__scroll { display: none; }
.breadcrumbs__list { margin-bottom: 0; }
.is-hidden { display: none; }

/* Доступность: видно ботам и скринридерам, скрыто визуально */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ═════════════════════════════════════════════════════════════
   3. HERO ДЕТАЛЬНОЙ СТАТЬИ (вариант 4)
   ═════════════════════════════════════════════════════════════ */

header.b-article__hero.b-article__hero--v4 {
    display: grid;
    grid-template-columns: 1fr 40%;
    grid-template-areas:
        "text media"
        "meta meta";
    align-items: center;
    column-gap: 32px;
    padding: 30px;
    background:
        radial-gradient(circle at 88% 15%, rgba(26, 79, 214, .16), transparent 31%),
        linear-gradient(135deg, #fff 0%, #eef3ff 100%);
    border-radius: 22px;
    margin: 0 0 16px;
}

.b-article__hero-text {
    grid-area: text;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.b-article__hero-media {
    grid-area: media;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.b-article__hero-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* ─── Бейдж секции ─── */
.b-article__badge1 {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: #3e76fa;
    color: #fff;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    margin-bottom: 24px;
    transition: background .15s;
}
.b-article__badge1:hover { background: var(--blue-dark, #1340b8); }

.b-article__badge1-icon {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}
.b-article__badge1-icon svg { width: 16px; height: 16px; display: block; }
.b-article__badge1-icon svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
.b-article__badge1-icon svg [fill]:not([fill="none"])     { fill: currentColor; }

/* ─── Заголовок в hero ─── */
.b-article__hero .b-article__title {
    margin: 0 0 26px;
    font-size: 30px !important;
    line-height: 1.15 !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    max-width: 820px;
    color: #14203a;

    height: auto !important;
    max-height: none !important;
    overflow: visible !important;

    white-space: normal !important;
    text-overflow: unset !important;

    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;

    overflow-wrap: break-word;
    word-break: normal;
}


/* ─── Блок «На заметку» ─── */
.b-article__note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 32px;
    padding: 16px 20px;
    background: #eef3ff;
    border-radius: 14px;
    max-width: 760px;
}
.b-article__note-icon {
    flex-shrink: 0;
    color: var(--c-accent, #1a4fd6);
    display: flex;
    padding-top: 1px;
}
.b-article__note-text {
    font-size: 14.5px;
    line-height: 1.55;
    color: #3a4256;
}
.b-article__note-text strong,
.b-article__note-text b { color: #14203a; font-weight: 700; }
.b-article__note-text p { margin: 0; }

/* ─── Лид внутри hero ─── */
.b-article__hero .b-article__lead {
    margin: 0 0 12px;
    padding: 0;
    border: none;
    font-size: 17px !important;
    line-height: 1.6;
    font-weight: 400;
    color: #5b616e;
    max-width: 720px;
    display: block;
    overflow: visible;
}
.b-article__hero .b-article__lead p { margin: 0; }

/* ─── Метабар ─── */
.b-article__metabar {
    grid-area: meta;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 28px;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 22px;
    box-sizing: border-box;
    max-width: 100%;
    font-size: 15px;
    color: #5b616e;
}

.b-article__metabar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 0;
}

.b-article__metabar-item svg { flex-shrink: 0; opacity: .6; }

.b-article__metabar-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    color: #5b616e;
    white-space: nowrap;
    transition: color .15s ease;
}

.b-article__metabar-share svg {
    flex-shrink: 0;
    opacity: .6;
    transition: opacity .15s ease, color .15s ease;
}

.b-article__metabar-share:hover { color: #2563eb; }
.b-article__metabar-share:hover svg { opacity: 1; color: #2563eb; }

/* планшет: две ровные колонки */
@media (max-width: 1024px) {
    .b-article__metabar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 20px;
        margin: 16px 0;
        padding: 18px;
        border-radius: 16px;
        font-size: 14px;
    }
    .b-article__metabar-item { font-size: 14px; }
    .b-article__metabar-item svg,
    .b-article__metabar-share svg { width: 15px; height: 15px; }
    .b-article__metabar-share {
        grid-column: 1 / -1;
        margin-left: 0;
        width: 100%;
        justify-content: center;
        padding-top: 14px;
        border-top: 1px solid #eceef2;
        font-size: 14px;
    }
}

/* мобильный: один столбец, всё читаемо */
@media (max-width: 620px) {
    .b-article__metabar {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        border-radius: 14px;
        font-size: 13.5px;
    }
    .b-article__metabar-item {
        font-size: 13.5px;
        gap: 10px;
        white-space: normal;
    }
    .b-article__metabar-item svg,
    .b-article__metabar-share svg { width: 14px; height: 14px; }
    .b-article__metabar-share {
        padding-top: 12px;
        font-size: 13.5px;
    }
}

/* ─── Чипы (опционально) ─── */
.b-article__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.b-article__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: #f5f5f8;
    border-radius: 100px;
    font-size: 13px;
    color: var(--c-text-soft);
    white-space: nowrap;
}
.b-article__chip svg { opacity: .55; flex-shrink: 0; }


/* ═════════════════════════════════════════════════════════════
   4. МЕТА / ЛИД / ГЛАВНОЕ ФОТО (вне hero)
   ═════════════════════════════════════════════════════════════ */

.b-article__title {
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 36px 0 20px;
}

.b-article__meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--c-text-soft);
}

.b-article__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.b-article__meta-item svg { flex-shrink: 0; opacity: .65; }

.b-article__cat {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--c-accent-soft);
    color: var(--c-accent);
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s ease;
}
.b-article__cat:hover { background: #e0e9ff; }

.b-article__divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c-border);
    flex-shrink: 0;
}

.b-article__lead {
    font-size: 18px;
    line-height: 1.55;
    font-weight: 500;
    color: var(--c-accent);
    margin: 0 0 32px;
    padding-left: 20px;
    border-left: 4px solid var(--c-accent);
}
.b-article__lead p { margin: 0 0 12px; }
.b-article__lead p:last-child { margin-bottom: 0; }

.b-article__hero-image {
    margin: 0 0 36px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-bg-soft);
}
.b-article__hero-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* ═════════════════════════════════════════════════════════════
   5. ОГЛАВЛЕНИЕ
   ═════════════════════════════════════════════════════════════ */

/* ─── 5.1 Инлайновое оглавление в статье ─── */
.b-article__toc {
    margin: 0 0 40px;
    padding: 20px 24px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.b-article__toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text);
    font-family: inherit;
}
.b-article__toc-toggle svg {
    transition: transform .25s ease;
    color: var(--c-muted);
}
.b-article__toc.is-closed .b-article__toc-toggle svg { transform: rotate(180deg); }

.b-article__toc-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    overflow: hidden;
    opacity: 1;
    transition: max-height .3s ease, opacity .3s ease, margin .3s ease;
}
.b-article__toc.is-closed .b-article__toc-list { margin-top: 0; }

.b-article__toc-item { margin: 0; }
.b-article__toc-item a {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    color: var(--c-text-soft);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.45;
    transition: color .15s ease;
}
.b-article__toc-item a:hover { color: var(--c-accent); }
.b-article__toc-item.is-sub a { padding-left: 24px; }

.b-article__toc-item .num {
    flex-shrink: 0;
    color: var(--c-accent);
    font-weight: 600;
    min-width: 22px;
}
.b-article__toc-item.is-sub .num { color: var(--c-muted); }

/* ─── 5.2 Оглавление в правом сайдбаре ─── */
.b-toc-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
}

.b-toc-link {
    display: block;
    padding: 10px 25px;
    color: #7a7a7c;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    border-radius: 12px;
    transition: color .2s ease, background .2s ease;
}
.b-toc-link:not(.b-toc-link--active):hover {
    color: #4f75e0;
    background: #f6f7fc;
    border-radius: 15px;
}
.b-toc-link--active {
    color: #4f75e0;
    background: #f6f7fc;
    font-weight: 500;
}
.b-toc-link--h3 {
    padding-left: 29px;
    font-size: 15px;
}

/* ─── 5.3 Плавающее оглавление (мобильное) ─── */
.b-toc-float { display: none; }


/* ═════════════════════════════════════════════════════════════
   6. КОНТЕНТ СТАТЬИ
   ═════════════════════════════════════════════════════════════ */

.b-article__content {
    /* локальная шкала для всех блоков-выносок */
    --cmp-radius: 14px;
    --cmp-gap: 20px;
    --cmp-title: 17px;
    --cmp-text: 16px;
    --cmp-lh: 1.55;
    --cmp-pad: 20px 24px;

    font-size: 18px;
    line-height: normal;
    color: var(--c-text);
    word-wrap: break-word;
}
.b-article__content > *:first-child { margin-top: 0; }
.b-article__content section:first-of-type h2 { margin-top: 0 !important; }
.b-article__content section { margin: 24px 0; }

.b-article__content p {
    font-size: 16px !important;
    line-height: 1.6;
    margin-bottom: 12px;
}

.b-article__content h2 {
    margin: 40px 0 18px;
    font-size: 26px !important;
    line-height: 1.25 !important;
    font-weight: 600;
    letter-spacing: -.01em;
    color: #14203a;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.b-article__content h3 {
      margin: 40px 0 18px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    color: #14203a;
    scroll-margin-top: 24px;
}
.b-article__content h4 { font-weight: 600; }

.b-article__content a {
    color: var(--c-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, .3);
    transition: border-color .15s ease;
}
.b-article__content a:hover { border-bottom-color: var(--c-accent); }

.b-article__content ul,
.b-article__content ol { padding-left: 26px; }
.b-article__content li { margin-bottom: 8px; font-size: 16px; }
.b-article__content li::marker { color: var(--c-accent); }

.b-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}
.b-article__content figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--c-muted);
    text-align: center;
}

.b-article__content hr {
    border: none;
    border-top: 1px solid var(--c-border);
    margin: 40px 0;
}


/* ═════════════════════════════════════════════════════════════
   7. ТАБЛИЦЫ И КОД
   ═════════════════════════════════════════════════════════════ */

.b-article__content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--cmp-text);
    line-height: var(--cmp-lh);
    margin-bottom: var(--cmp-gap);
    border: 1px solid var(--c-border);
    border-radius: var(--cmp-radius);
    overflow: hidden;
}
.b-article__content th,
.b-article__content td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
    vertical-align: top;
}
.b-article__content thead th {
    background: #f2f7ff;
    font-weight: 700;
    color: #14203a;
}
/* Заголовок строки (первая колонка) — выделен весом, без фона шапки */
.b-article__content tbody th {
    font-weight: 600;
    color: #14203a;
}
/* Вертикальный разделитель между колонками */
.b-article__content th:not(:last-child),
.b-article__content td:not(:last-child) {
    border-right: 1px solid var(--c-border);
}
/* Убрать нижнюю границу у последней строки */
.b-article__content tbody tr:last-child th,
.b-article__content tbody tr:last-child td { border-bottom: none; }
/* Лёгкая зебра */
.b-article__content tbody tr:nth-child(even) th,
.b-article__content tbody tr:nth-child(even) td { background: #fbfbfc; }

.b-article__content pre {
    padding: 20px;
    background: #1e2330;
    color: #e6e8ec;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
}
.b-article__content code {
    font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-size: .88em;
    background: var(--c-bg-soft);
    padding: 2px 6px;
    border-radius: 5px;
}
.b-article__content pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}


/* ═════════════════════════════════════════════════════════════
   8. ЦИТАТЫ / БЛОКИ-ВЫНОСКИ
   ═════════════════════════════════════════════════════════════ */

.b-article__content blockquote {
    position: relative;
    padding: 16px 24px;
    border-radius: var(--cmp-radius);
    font-size: var(--cmp-text);
    line-height: var(--cmp-lh);
    color: var(--c-text-soft);
    font-style: normal;
    margin-bottom: var(--cmp-gap);
}
.b-article__content blockquote p {
    font-size: var(--cmp-text) !important;
    line-height: var(--cmp-lh);
}
.b-article__content blockquote p:last-child { margin-bottom: 0; }
.b-article__content blockquote .blockquote__title {
    font-size: var(--cmp-title);
    font-weight: 700;
    margin-bottom: 6px;
}

/* ─── 8.1 Коротко ─── */
.b-article__content blockquote.is-short {
    background: #eef2fb;
    border: none;
    padding: 22px 24px 22px 72px;
}
.b-article__content blockquote.is-short::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 22px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%233b5bdb' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M8 9h8M8 13h8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.b-article__content blockquote.is-short .blockquote__title { color: #1a2b4a; }
.b-article__content blockquote.is-short p { color: #5b6b85; }

/* ─── 8.2 Важно ─── */
.b-article__content blockquote.is-important {
    background: #fbf3e0;
    border: none;
    padding: 20px 24px 20px 58px;
}
.b-article__content blockquote.is-important::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 22px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23c99a3a' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.b-article__content blockquote.is-important .blockquote__title { color: #3a3222; }
.b-article__content blockquote.is-important p { color: #6b6350; }

/* ─── 8.3 Пример ситуации ─── */
.b-article__content blockquote.is-example {
    background: #f7f8fa;
    border-left: 4px solid #3b5bdb;
    border-radius: 0 14px 14px 0;
    padding: 20px 24px;
}
.b-article__content blockquote.is-example .blockquote__title { color: #1a2b4a; margin-bottom: 8px; }
.b-article__content blockquote.is-example p { color: #4a5568; }

/* ─── 8.4 Note ─── */
.b-article__content blockquote.is-note {
    background: #f2f3f5;
    border: none;
    padding: 20px 24px;
    color: #2b2f36;
}
.b-article__content blockquote.is-note .blockquote__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 14px;
}
.b-article__content blockquote.is-note .blockquote__label::before {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a5 5 0 0 1-7.07-7.07l9.19-9.19a3 3 0 0 1 4.24 4.24l-9.2 9.19a1 1 0 0 1-1.41-1.41l8.49-8.49'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

/* ─── 8.5 Цитата ─── */
.b-article__content blockquote.is-quote {
    display: flex;
    gap: 18px;
    background: #eef3ff;
    border: none;
    padding: 24px 28px;
    color: #3a4256;
}
.b-article__content blockquote.is-quote::before {
    content: "";
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' fill='%23a9c1ff' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 5C5 5 3 7 3 9.5c0 2.3 1.7 4.2 4 4.5-.2 2.2-1.5 3.6-3.5 4.3L4 20c3.7-1 6-3.8 6-8.2V9.5C10 7 8.9 5 7.5 5zm11 0C16 5 14 7 14 9.5c0 2.3 1.7 4.2 4 4.5-.2 2.2-1.5 3.6-3.5 4.3l.5 1.7c3.7-1 6-3.8 6-8.2V9.5C21 7 19.9 5 18.5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}
.b-article__content blockquote.is-quote p { margin: 0 0 10px; }
.b-article__content blockquote.is-quote p:last-child { margin-bottom: 0; }


/* ═════════════════════════════════════════════════════════════
   9. ТЕГИ СТАТЬИ
   ═════════════════════════════════════════════════════════════ */

.b-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 48px 0 0;
    padding-top: 32px;
    border-top: 1px solid var(--c-border);
}
.b-article__tags-label {
    font-weight: 600;
    color: var(--c-text-soft);
    font-size: 15px;
}
.b-article__tags .list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.b-article__tags a {
    display: inline-flex;
    padding: 6px 14px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: 100px;
    color: var(--c-text-soft);
    text-decoration: none;
    font-size: 14px;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.b-article__tags a:hover {
    background: var(--c-accent-soft);
    border-color: var(--c-accent-soft);
    color: var(--c-accent);
}

/* ─── Теги в сайдбаре / ленте ─── */
.b-blog-tags,
.b-blog-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.b-blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: var(--white, #fff);
    color: #4a5568;
    border: 1px solid var(--border, #e6e8ec);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
}
.b-blog-tag:hover,
.b-blog-tag--active {
    border-color: var(--blue, #2563eb);
    color: var(--blue-dark, #1340b8);
    background: var(--blue-light, #eff4ff);
}
.b-blog-feed .b-blog-tag { padding: 5px 12px; font-size: 12px; }


/* ═════════════════════════════════════════════════════════════
   10. КОМПОНЕНТЫ СТАТЬИ
   ═════════════════════════════════════════════════════════════ */

/* ─── 10.1 Шаги ─── */
.b-steps {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    counter-reset: step;
}
.b-steps li {
    position: relative;
    padding: 0 0 20px 52px;
    min-height: 32px;
}
.b-steps li:last-child { padding-bottom: 0; }
.b-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1c5fe0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.b-steps .step__title {
    font-weight: 700;
    color: #1a2b4a;
    font-size: 17px;
    margin-bottom: 4px;
    line-height: 1.3;
}
.b-steps .step__text {
    color: #5b6b85;
    font-size: 16px;
    line-height: 1.55;
}

/* ─── 10.2 Чек-лист ─── */
.b-checklist {
    position: relative;
    background: linear-gradient(135deg, #eef7f0 0%, #eaf4f8 100%);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 20px;
}
.b-checklist__title {
    font-weight: 800;
    color: #1f3a2e;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: 0 0 18px;
}
.b-checklist ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.b-checklist li {
    position: relative;
    padding: 0 0 10px 30px;
    color: #3a4a44;
    font-size: 16px;
    line-height: 1.55;
}
.b-checklist li:last-child { padding-bottom: 0; }
.b-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2334a853' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}
/* ─── 10.3 Карточки (нумерованные строки) ─── */
.b-cards { margin-bottom: 20px; }
.b-cards__title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #14203a;
    margin: 0 0 20px;
}
.b-cards__list {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--cmp-radius);
    box-shadow: 0 2px 12px rgba(26, 43, 74, .05);
    overflow: hidden;
}
.b-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--c-border);
    transition: background .15s ease;
}
.b-card:last-child { border-bottom: none; }
.b-card:hover { background: #fafbfc; }
.b-card__num {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fdeaea;
    color: #e0474c;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.b-card__body { padding-top: 3px; }
.b-card__title {
    font-size: var(--cmp-title);
    font-weight: 700;
    color: #14203a;
    line-height: 1.3;
    margin-bottom: 6px;
}
.b-card__text {
    color: #7a879c;
    font-size: 16px;
    line-height: 1.55;
}

/* ─── 10.4 FAQ ─── */
.b-faq { margin-bottom: 20px; }
.b-faq__title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #14203a;
    margin: 0 0 20px;
}
.b-faq__item {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--cmp-radius);
    box-shadow: 0 2px 10px rgba(26, 43, 74, .04);
    margin-bottom: 12px;
    overflow: hidden;
}
.b-faq__item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 18px 52px 18px 22px;
    font-size: var(--cmp-title);
    font-weight: 700;
    color: #14203a;
    user-select: none;
}
.b-faq__item summary::-webkit-details-marker { display: none; }
.b-faq__item summary::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237a879c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    transition: transform .2s ease;
}
.b-faq__item[open] summary::after { transform: rotate(180deg); }
.b-faq__answer {
    padding: 0 22px 18px;
    color: #5b6b85;
    font-size: 16px;
    line-height: 1.55;
}

/* ─── 10.5 Заголовок ошибки с номером ─── */
.b-error-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0 18px;
}
.b-error-head__num {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fdeaea;
    color: #e0474c;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1.5px rgba(224, 71, 76, .18);
}
.b-error-head__title {
    margin: 0 !important;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #14203a;
}
.b-error-head__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e0474c;
    margin-bottom: 2px;
}


/* ═════════════════════════════════════════════════════════════
   11. БЕЙДЖИ / CALLOUT / СПИСКИ
   ═════════════════════════════════════════════════════════════ */

/* ─── 11.1 Бейджи ─── */
.b-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
}
.b-badge svg { width: 15px; height: 15px; flex-shrink: 0; }
.b-badge .b-badge__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.b-badge--default { background: var(--c-accent, #2563eb); color: #fff; }
.b-badge--soft    { background: var(--c-accent-soft, #eff4ff); color: var(--c-accent, #2563eb); }
.b-badge--outline { background: #fff; color: var(--c-accent, #2563eb); box-shadow: inset 0 0 0 1.5px var(--c-accent, #2563eb); }
.b-badge--subtle  { background: #f0f2f7; color: #98a2b3; }
.b-badge--success { background: #e7f5ec; color: #2e9e58; }
.b-badge--warning { background: #fdf1dd; color: #d99521; }
.b-badge--error   { background: #fdeaea; color: #e0474c; }
.b-badge--neutral { background: #eef0f3; color: #667085; }
.b-badge--neutral .b-badge__dot { background: #9aa2b1; }

/* Бейдж-маркер в заголовке h2 */
.b-article__content h2 .b-badge {
    position: relative;
    top: -2px;
    font-size: 12px;
    padding: 5px 12px;
    vertical-align: middle;
}

/* ─── 11.2 Callout / инфо-блоки ─── */
.b-callout {
    display: flex;
    gap: 14px;
    padding: var(--cmp-pad);
    border-radius: var(--cmp-radius);
    border-left: 4px solid transparent;
    margin-bottom: var(--cmp-gap);
}
.b-callout__icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.b-callout__icon svg { width: 20px; height: 20px; }
.b-callout__body { min-width: 0; }
.b-callout__title {
    font-weight: 700;
    font-size: var(--cmp-title);
    line-height: 1.3;
    margin: 3px 0 5px;
}
.b-callout__text {
    font-size: var(--cmp-text);
    line-height: var(--cmp-lh);
    margin: 0;
}
.b-callout__text p { margin: 0; font-size: var(--cmp-text) !important; }

.b-callout--info    { background: #eef3ff; border-left-color: #2563eb; }
.b-callout--info .b-callout__icon  { background: #fff; color: #2563eb; }
.b-callout--info .b-callout__title { color: #14203a; }
.b-callout--info .b-callout__text  { color: #4a5568; }

.b-callout--warning { background: #fdf5e6; border-left-color: #e6a935; }
.b-callout--warning .b-callout__icon  { background: #fff; color: #e6a935; }
.b-callout--warning .b-callout__title { color: #3a3222; }
.b-callout--warning .b-callout__text  { color: #6b6350; }

.b-callout--success { background: #edf7f0; border-left-color: #34a853; }
.b-callout--success .b-callout__icon  { background: #fff; color: #34a853; }
.b-callout--success .b-callout__title { color: #1f3a2e; }
.b-callout--success .b-callout__text  { color: #3a4a44; }

.b-callout--note    { background: #f2f3f5; border-left-color: #98a2b3; }
.b-callout--note .b-callout__icon  { background: #fff; color: #7a808c; }
.b-callout--note .b-callout__title { color: #2b2f36; }
.b-callout--note .b-callout__text  { color: #5b616e; }

/* ─── 11.3 Маркированные списки ─── */
.b-list {
    list-style: none;
    margin: 0 0 var(--cmp-gap);
    padding: 22px 26px;
    border-radius: var(--cmp-radius);
}
.b-list li {
    position: relative;
    padding: 0 0 10px 30px;
    font-size: var(--cmp-text);
    line-height: var(--cmp-lh);
    color: var(--c-text, #1a1d24);
    margin-bottom: 0;
}
.b-list li:last-child { padding-bottom: 0; }
.b-list li::marker { content: none; }
.b-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
}

.b-list--check-blue { background: #f5f7fb; }
.b-list--check-blue li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.b-list--check-green { background: #eef7f1; }
.b-list--check-green li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2334a853' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.b-list--check-orange { background: #fdf4e8; }
.b-list--check-orange li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23e6a935' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.b-list--boxed {
    background: #fff;
    border: 1px solid var(--c-border, #e6e8ec);
    padding: 24px 28px;
}
.b-list--boxed li { padding: 0 0 14px 32px; }
.b-list--boxed li:last-child { padding-bottom: 0; }
.b-list--boxed li::before {
    top: 1px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.b-list--dot { background: #fff; border: 1px solid var(--c-border, #e6e8ec); }
.b-list--dot li::before {
    top: 7px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-accent, #2563eb);
}

.b-list--dash { background: #fff; border: 1px solid var(--c-border, #e6e8ec); }
.b-list--dash li::before {
    top: 11px;
    left: 1px;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: #98a2b3;
}


/* ═════════════════════════════════════════════════════════════
   12. НАВИГАЦИЯ ПРЕД/СЛЕД И «ЧТО ЕЩЁ ПОЧИТАТЬ»
   ═════════════════════════════════════════════════════════════ */

.b-article__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
}
.b-article__nav-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 20px 22px;
    color: #7a7a7c;
    background: var(--color-background-secondary);
    border: 1px solid var(--color-background-secondary);
    border-radius: 35px;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.b-article__nav-card:hover {
    background: #fff;
    border-color: var(--c-accent);
    color: var(--color-text-alternate);
}
.b-article__nav-card:hover .title { color: var(--color-text-alternate); }
.b-article__nav-card .dir {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text-soft);
}
.b-article__nav-card .row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.b-article__nav-card .title {
    font-size: 16px;
    font-weight: 600;
    color: #7a7a7c;
    line-height: 1.45;
    min-width: 0;
}
.b-article__nav .nav-next { text-align: right; }
.b-article__nav .nav-next .dir { align-self: flex-end; }
.b-article__nav .nav-next .row { flex-direction: row-reverse; }

/* ─── Виджет сайдбара ─── */
.b-blog-widget {
    background: #fff;
    border-radius: 22px;
    padding-bottom: 20px;
}
.b-blog-widget__head {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 25px;
}
.b-blog-widget__text {
    font-size: 14px;
    color: var(--muted, #8a909c);
    line-height: 1.5;
    margin: 0 0 14px;
}

/* ─── Список «Что ещё почитать» ─── */
.b-blog-also-read {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}
.b-blog-also-read__item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border, #e6e8ec);
    text-decoration: none;
    color: var(--text, #1a1d24);
    transition: color .15s;
}
.b-blog-also-read__item:last-child { border-bottom: none; }
.b-blog-also-read__item:hover .b-blog-also-read__title { color: var(--c-accent); }
.b-blog-also-read__title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #7a7a7c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.b-blog-also-read__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 600;
    color: var(--blue, #2563eb);
    text-decoration: none;
    transition: color .15s;
}
.b-blog-also-read__more:hover { color: var(--blue-dark, #1340b8); }


/* ═════════════════════════════════════════════════════════════
   13. ЛЕНТА БЛОГА
   ═════════════════════════════════════════════════════════════ */

/* ─── 13.1 Тулбар: поиск + сортировка ─── */
.b-blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

.b-blog-search {
    position: relative;
    display: flex;
    align-items: center;
    height: 54px;
    background: #f5f5f8;
    border-radius: 999px;
    padding: 4px 10px;
    width: 100%;
    max-width: 100%;
}
.b-blog-search__icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #7a7a7c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}
.b-blog-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    font-weight: 500;
    padding: 0;
    font-size: 15px;
    color: #7a7a7c;
    background: transparent;
    border: none;
    outline: none;
}
.b-blog-search__input::placeholder { color: #98a2b3; }
.b-blog-search__input::-webkit-search-decoration,
.b-blog-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.b-blog-search__reset {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    background: transparent;
    border: none;
    border-radius: 50%;
    margin-right: 4px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.b-blog-search__reset:hover { background: #e4e7ec; color: #101828; }

.b-blog-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.b-blog-toolbar__label {
    font-size: 14px;
    color: #475467;
    white-space: nowrap;
}
.b-blog-toolbar__select {
    height: 40px;
    padding: 0 36px 0 14px;
    font-size: 14px;
    color: #101828;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5 6 6.5l5-5' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s, box-shadow .15s;
}
.b-blog-toolbar__select:hover { border-color: #98a2b3; }
.b-blog-toolbar__select:focus {
    outline: none;
    border-color: #2e6bff;
    box-shadow: 0 0 0 3px rgba(46, 107, 255, .15);
}

/* ─── 13.2 Список + индикатор загрузки ─── */
.b-blog-list-wrap {
    position: relative;
    transition: opacity .15s;
}
.b-blog-list-wrap.is-loading {
    opacity: .5;
    pointer-events: none;
}
.b-blog-list-wrap.is-loading::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border: 3px solid #d0d5dd;
    border-top-color: #2e6bff;
    border-radius: 50%;
    animation: blog-spin .8s linear infinite;
}
@keyframes blog-spin { to { transform: rotate(360deg); } }

/* ─── 13.3 Карточки ленты ─── */
.b-blog-cards.view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.b-blog-cards.view-grid > .b-article {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    transition: border-color .15s, box-shadow .15s;
}
.b-blog-cards.view-grid .b-article__media {
    display: block;
    background: #f3f4f6;
    height: fit-content;
    overflow: hidden;
}

.b-blog-cards.view-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.b-blog-cards.view-list .b-article { flex-direction: row; }
.b-blog-cards.view-list .b-article__media {
    flex: 0 0 280px;
    max-width: max-content;
}


/* ═════════════════════════════════════════════════════════════
   14. СЕКЦИЯ КОНСУЛЬТАЦИЙ / CTA
   ═════════════════════════════════════════════════════════════ */

/* ─── 14.1 Кнопки ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.01em;
    border-radius: 12px;
    white-space: nowrap;
    transition:
        background-color var(--transition-primary),
        color var(--transition-primary),
        border-color var(--transition-primary);
}
.btn:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 3px;
}
.btn__arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--transition-primary);
}
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.btn__icon--whatsapp { color: #25d366; }

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-background-secondary);
}
.btn--ghost {
    background-color: transparent;
    color: var(--color-primary);
    padding: 0 12px;
}
.btn--ghost:hover,
.consult-section__link:hover { color: var(--color-primary-darker); }

.btn--outline {
    background-color: var(--color-background-primary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}
.btn--outline:hover { border-color: var(--color-text-primary); }

/* ─── 14.2 Сетки ─── */
.grid.grid--fifth,
.grid.grid--quarter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0;
}
.grid.grid--fifth .grid__col,
.grid.grid--quarter .grid__col {
    width: auto;
    margin: 0;
    padding: 0;
}

/* ─── 14.3 Hero страницы консультаций ─── */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)) center/cover no-repeat;
}
.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero__content {
    position: relative;
    z-index: 1;
}

.consultation-hero {
    position: relative;
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 650px;
    background: #fff;
    overflow: hidden;
}
.consultation-hero__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.consultation-hero__image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        #fff 0,
        rgba(255, 255, 255, .97) 30%,
        rgba(255, 255, 255, .75) 45%,
        rgba(255, 255, 255, .3) 65%,
        transparent 80%
    );
}
.consultation-hero__bg img,
.consultation-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.consultation-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 45px;
    max-width: 550px;
    padding: 24px 0;
}
.consultation-hero__actions {
    display: flex;
    gap: 20px;
}
.consultation-hero .breadcrumbs,
.consultation-hero .breadcrumbs__scroll {
    position: absolute;
    top: 20px;
    left: 0;
    z-index: 3;
}

h1#hero-title {
    font-size: 60px;
    line-height: normal;
}
p.consultation-hero__description { font-size: 19px; }

/* ─── 14.4 Секция консультаций ─── */
.consult-section { padding: 32px 0; }
.consult-section__inner {
    background: #fff;
    border-radius: 28px;
    padding: 25px;
}
.consult-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.consult-section__title {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.042em;
    color: var(--color-text-primary);
}
.consult-section__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #3e76fa;
    transition: color var(--transition-primary);
}
.consult-section__link svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-primary);
}

/* ─── 14.5 Карточка категории ─── */
.card-category {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 24px;
    background-color: var(--color-background-primary);
    border: 2px solid var(--color-background-alternate);
    border-radius: 18px;
    transition:
        border-color var(--transition-primary),
        transform var(--transition-primary);
}
.card-category__icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary-dark);
    margin-bottom: 28px;
    filter: invert(33%) sepia(99%) saturate(1500%) hue-rotate(210deg);
}
.card-category__title {
    font-size: 24px;
    line-height: 24px;
    font-weight: 700;
    letter-spacing: -.025em;
    color: #3e76fa;
    margin-bottom: 22px;
}
.card-category__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    flex-grow: 1;
}
.card-category__list-item {
    font-size: 16px;
    line-height: 18px;
    font-weight: 600;
    color: var(--color-text-primary-50);
}
.card-category__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #0d6efd;
    margin-top: auto;
    transition: color var(--transition-primary);
}
.card-category__link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-primary);
}

/* ─── 14.6 Карточка статьи ─── */
.card-article {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--color-background-primary);
    border: 2px solid var(--color-background-alternate);
    border-radius: 18px;
    overflow: hidden;
    transition:
        border-color var(--transition-primary),
        transform var(--transition-primary);
}
.card-article__cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.card-article__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-article__cover--1 { background: linear-gradient(135deg, #c9b79b 0, #a8927a 100%); }
.card-article__cover--2 { background: linear-gradient(135deg, #3a4a5c 0, #5c6b7d 100%); }
.card-article__cover--3 { background: linear-gradient(135deg, #2c5a7a 0, #1e4360 100%); }
.card-article__cover--4 { background: linear-gradient(135deg, #b8a48a 0, #8c7a62 100%); }

.card-article__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-alternate);
    background: #f5f5f5c4;
    border-radius: 7px;
}
.card-article__body {
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
    flex-grow: 1;
}
.card-article__date {
    font-size: 15px;
    line-height: 16px;
    font-weight: 600;
    color: var(--color-text-primary-50);
    margin-bottom: 12px;
}
.card-article__title {
    font-size: 20px;
    line-height: 22px;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--color-text-primary);
    margin-bottom: 22px;
    flex-grow: 1;
}
.card-article__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #3e76fa;
    transition: color var(--transition-primary);
}
.card-article__link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-primary);
}

/* ─── 14.7 CTA-блок помощи ─── */
.help-cta { padding: 32px 0 0; }
.help-cta__card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
    background-color: var(--color-background-secondary);
    border: 1px solid var(--color-border);
    border-radius: 30px;
}
.help-cta__main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.help-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background-color: var(--color-background-primary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
}
.help-cta__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-primary);
}
.help-cta__text { min-width: 0; }
.help-cta__title {
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}
.help-cta__description {
    font-size: 16px;
    line-height: 18px;
    color: var(--color-text-primary-50);
}
.help-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: end;
}
.help-cta__qr {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background-color: var(--color-background-primary);
    border: 1px solid var(--color-border);
    border-radius: 14px;
}
.help-cta__qr-text {
    display: flex;
    flex-direction: column;
}
.help-cta__qr-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}
.help-cta__qr-hint {
    font-size: 11px;
    line-height: 14px;
    color: var(--color-text-primary-50);
    max-width: 100px;
}
.help-cta__qr-image {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    color: var(--color-primary-dark);
}


/* ═════════════════════════════════════════════════════════════
   15. АДАПТИВ
   ------------------------------------------------------------
   Min-width идут первыми (прогрессивное усложнение сеток),
   затем max-width от большего к меньшему.
   ═════════════════════════════════════════════════════════════ */

/* ─── ≥600 ─── */
@media (min-width: 600px) {
    .grid.grid--fifth,
    .grid.grid--quarter {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        row-gap: 20px;
    }
}

/* ─── ≥768 ─── */
@media (min-width: 768px) {
    .consult-section { padding: 28px 0; }
    .consult-section__title { font-size: 26px; }

    .help-cta__card {
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 28px;
    }
    .help-cta__actions {
        flex-direction: row;
        align-items: center;
    }
}

/* ─── ≥1024 ─── */
@media (min-width: 1024px) {
    .grid.grid--fifth,
    .grid.grid--quarter { grid-template-columns: repeat(3, 1fr); }

    .help-cta__card {
        grid-template-columns: auto 1fr auto auto;
        gap: 24px;
    }
}

/* ─── Hover только на устройствах с мышью ─── */
@media (hover: hover) and (pointer: fine) {
    .card-article:hover,
    .card-category:hover {
        border-color: #3e76fa;
        transform: translateY(-2px);
    }
    .card-article__link:hover svg,
    .card-category__link:hover svg { transform: translateX(3px); }
    .card-article__link:hover { color: var(--color-primary-darker); }
    .card-category:hover .card-category__link { color: #0d6efd; }
}

/* ─── ≤1400 ─── */
@media (max-width: 1400px) {
    .b-blog-cards.view-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── ≤1200: ноутбук ─── */
@media (max-width: 1200px) {

    .b-blog-layout { display: flex; }
    .b-blog-layout-post { display: block !important; }

    .b-blog-sidebar:not(.b-blog-right) { display: contents !important; }
    .b-blog-cats { order: -10 !important; }
    .b-blog-main { order: 2 !important; }
    .newsletter  { order: 3 !important; margin-top: 24px; }

    

    .b-blog-cards.view-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── ≤1100: плавающее оглавление вместо сайдбарного ─── */
@media (max-width: 1100px) {
    .b-toc-widget { display: none !important; }

    .b-toc-float {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 16px;
        z-index: 9000;
    }
    .b-toc-float.is-hidden {
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        pointer-events: none;
        transition: opacity .25s, transform .25s, visibility .25s;
    }

    /* Кнопка-таблетка с текущим разделом */
    .b-toc-float__bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 18px;
        background: #f5f5f8;
        color: #3e76fa;
        border: none;
        border-radius: 999px;
        box-shadow: 0 8px 24px rgba(16, 24, 40, .25);
        cursor: pointer;
        text-align: left;
    }
    .b-toc-float__current {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }
    .b-toc-float__hint {
        font-size: 11px;
        line-height: 1;
        opacity: .7;
    }
    .b-toc-float__title {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .b-toc-float__arrow {
        flex-shrink: 0;
        transition: transform .2s;
    }
    .b-toc-float.is-open .b-toc-float__arrow { transform: rotate(180deg); }

    /* Раскрывающийся список */
    .b-toc-float__panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(100% + 8px);
        max-height: 60vh;
        overflow-y: auto;
        padding: 8px;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 12px 32px rgba(16, 24, 40, .22);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .18s, transform .18s, visibility .18s;
    }
    .b-toc-float.is-open .b-toc-float__panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .b-toc-float__link {
        display: flex;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 12px;
        text-decoration: none;
        color: #7a7a7c;
        font-size: 15px;
        line-height: 1.35;
    }
    .b-toc-float__link.is-active {
        color: #1a59f6;
        font-weight: 600;
        background: #f5f7ff;
    }
    .b-toc-float__num {
        flex-shrink: 0;
        opacity: .6;
    }

    /* Затемнение фона при открытом списке */
    .b-toc-float__overlay {
        position: fixed;
        inset: 0;
        z-index: -1;
        background: rgba(16, 24, 40, .35);
        opacity: 0;
        visibility: hidden;
        transition: opacity .18s, visibility .18s;
    }
    .b-toc-float.is-open .b-toc-float__overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* ─── ≤992: планшет ─── */
@media (max-width: 992px) {
    .b-blog-cards.view-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ─── ≤900: hero статьи ─── */
@media (max-width: 900px) {
    .b-article__hero-text { padding: 0; }
}

/* ─── ≤768: hero консультаций ─── */
@media (max-width: 768px) {
    .b-blog-layout-post { display: block !important; }
    .b-blog-right {
        display: none;
    }
    .b-article__hero .b-article__title {
        margin: 0 0 26px;
        font-size: 30px !important;
        line-height: 1.15 !important;
        font-weight: 600;
        letter-spacing: -0.02em;
        max-width: 820px;
        color: #14203a;
    
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    
        white-space: normal !important;
        text-overflow: unset !important;
    
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
    
        overflow-wrap: break-word;
        word-break: normal;
    }
    .b-article__hero-media {
        display: none;
    }

    .hero { min-height: 250px; }
    .hero__content { padding: 16px; }

    .breadcrumbs {
        top: 12px;
        left: 12px;
        font-size: 13px;
    }

    .consultation-hero {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        min-height: 560px;
        justify-content: flex-end;
    }
    .consultation-hero__content {
        justify-content: flex-end;
        max-width: 100%;
        gap: 22px;
        padding: 64px 16px 40px;
    }
    .consultation-hero__image::before {
        background: linear-gradient(
            180deg,
            transparent 0,
            rgba(255, 255, 255, .15) 25%,
            rgba(255, 255, 255, .65) 45%,
            rgba(255, 255, 255, .9) 60%,
            rgba(255, 255, 255, .97) 100%
        );
    }
    .consultation-hero__actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .consultation-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
    .consultation-hero .breadcrumbs,
    .consultation-hero .breadcrumbs__scroll {
        top: 12px;
        left: 16px;
        font-size: 13px;
    }

    h1#hero-title {
        font-size: 34px;
        text-shadow: 0 1px 3px rgba(255, 255, 255, .9);
    }
    p.consultation-hero__description {
        font-size: 16px;
        text-shadow: 0 1px 2px rgba(255, 255, 255, .9);
    }
}
button.footer-scrollto.button.button--secondary--gray.js-scrollto.js-footer-scrollto.footer-scrollto--is-floating {
    display: none;
}
.b-article__content section {
    margin: 24px 0;
}
.b-article__content > .b-article1 > section:first-of-type {
    margin: 0;
}
/* ─── ≤767: hero статьи в одну колонку ─── */
@media (max-width: 767px) {
    header.b-article__hero.b-article__hero--v4 {
        display: block;
    }
    .b-article__hero-media { max-width: 100%; display: none;}
    .b-article__hero .b-article__title {
        font-size: clamp(28px, 7vw, 34px) !important;
        margin-bottom: 20px;
    }
    .b-article__hero .b-article__lead {
        font-size: 15px !important;
        margin-bottom: 20px;
    }
    .b-article__metabar {
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 0;
    }
    .b-article__metabar-share { margin-left: 0; }
}

/* ─── ≤720 ─── */
@media (max-width: 720px) {
    .b-blog-search { width: 100%; }
}

/* ─── ≤640: статья и компоненты ─── */
@media (max-width: 640px) {
    .b-article {
        font-size: 17px;
        padding: 0 16px 60px;
    }
    .b-article__content {
        font-size: 17px;
        --cmp-text: 15px;
        --cmp-title: 16px;
    }
    .b-article__content h2 { font-size: 22px !important; margin-top: 36px; }
    .b-article__content h3 { font-size: 19px;  margin-top: 36px; }
    .b-article__content h2 .b-badge {
        display: inline-block;
        margin-bottom: 6px;
        top: 0;
    }

    .b-article__lead { font-size: 18px; }
    .b-article__toc { padding: 16px 18px; }

    .b-error-head { gap: 12px; margin-top: 36px; }
    .b-error-head__num {
        width: 38px;
        height: 38px;
        font-size: 17px;
        border-radius: 10px;
    }
    .b-error-head__title { font-size: 22px; }

    .b-cards__title,
    .b-checklist__title,
    .b-faq__title { font-size: 22px; }
    .b-cards__grid { grid-template-columns: 1fr; }
    .b-callout { padding: 18px 20px; }
    .b-list { padding: 20px 22px; }
}

/* ─── ≤576: мобильный список ─── */
@media (max-width: 576px) {
    .b-blog-cards.view-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ─── ≤560: навигация пред/след ─── */
@media (max-width: 560px) {
    .b-article__nav { grid-template-columns: 1fr; }
    .b-article__nav .nav-next { text-align: left; }
    .b-article__nav .nav-next .dir { align-self: flex-start; }
    .b-article__nav .nav-next .row { flex-direction: row; }
}

/* ─── Уменьшенная анимация ─── */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .card-article:hover,
    .card-category:hover { transform: none; }
}
/* */
/* «Коротко» — светло-голубой блок */
.note-block--plain {
  background: #F2F7FF;
  border: 1px solid #DCE8FA;
  border-radius: 18px;
  color: #26364D;
}

.note-block--plain .note-block__label {
  background: #E2ECFF;
  color: #2F6BFF;
}

.note-block--plain .note-block__title {
  color: #0B1F44;
}

.note-block--plain .note-block__text {
  color: #26364D;
}

.note-block--plain .note-block__icon {
  color: #2F6BFF;
  background: #E2ECFF;
}
/* */
.short-block {
  background: #F2F7FF;
    border-left: 4px solid #2F6BFF;

  /*border: 1px solid #DCE8FA;*/
  border-radius: 18px;
  color: #26364D;
  margin: 24px 0;
  padding: 20px 24px;
  display: flex;
  gap: 12px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  quotes: none;
}

.short-block::before,
.short-block::after {
  content: none;
}

.short-block__icon {
  color: #2F6BFF;
  background: #E2ECFF;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: none;
}

.short-block__body {
  flex: 1 1 auto;
  min-width: 0;
}

.short-block__title {
  color: #0B1F44;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.short-block__text {
  color: #26364D;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.short-block__text p {
  margin: 0 0 12px;
}

.short-block__text p:last-child {
  margin-bottom: 0;
}

.note-block {
  margin: 24px 0;
  padding: 20px 24px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  quotes: none;
}

.note-block::before,
.note-block::after {
  content: none;
}

.note-block__label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.note-block__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.note-block__text {
  margin: 0;
}

.note-block__text p {
  margin: 0 0 12px;
}

.note-block__text p:last-child {
  margin-bottom: 0;
}

/* Вариант 1 — «Важно» */
.note-block--warning {
  background: #FDF6E7;
  color: #4A3A1A;
}

.note-block--warning .note-block__label {
  background: #F7E2B8;
  color: #6B4E12;
}

.note-block--warning .note-block__title {
  color: #3D2E12;
}

/* Вариант 2 — «Практический пример» */
.note-block--example {
  background: #F1F3F6;
  color: #2B3A4D;
}

.note-block--example .note-block__label {
  background: #DDE3EC;
  color: #3B4C63;
}

.note-block--example .note-block__title {
  color: #1B3A5C;
}

/* ─── Нумерованный список ─── */
.b-list--num {
    counter-reset: b-list;
    background: #fff;
    border: 1px solid var(--c-border, #e6e8ec);
}
.b-list--num li {
    counter-increment: b-list;
    padding: 0 0 14px 38px;
}
.b-list--num li:last-child { padding-bottom: 0; }
.b-list--num li::before {
    content: counter(b-list);
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eef2fb;
    color: var(--c-accent, #2563eb);
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}
/* ─── Видео-вставка ─── */
.b-video {
    background: #fff;
    border: 1px solid var(--c-border, #e6e8ec);
    border-radius: var(--cmp-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(26, 43, 74, .05);
    margin-bottom: var(--cmp-gap);
}
.b-video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #14203a;
}
.b-video__player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.b-video__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: rgba(224, 71, 76, .95);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.b-video__play::before {
    content: "";
    position: absolute;
    left: 54%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
}
.b-video__play:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background: #e0474c;
}
/* прячем кнопку, когда видео играет */
.b-video__frame.is-playing .b-video__play { display: none; }
.b-video__content { padding: 18px 24px 22px; }
.b-video__title {
    font-size: var(--cmp-title);
    font-weight: 700;
    color: #14203a;
    line-height: 1.3;
    margin: 0 0 8px;
}
.b-video__text {
    color: #7a879c;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
}
/* End */


/* Start:/local/components/avocado/news.list/templates/blog-related-posts/style.css?1784540098643*/
.card-article__cover{position:relative;background-size:cover;background-position:center;background-repeat:no-repeat}.card-article__cover--1{background-color:#e8eef5}.card-article__cover--2{background-color:#f0e9f5}.card-article__cover--3{background-color:#e9f5ee}.card-article__cover--4{background-color:#f5efe9}.card-article__cover--lazy{transition:none}.card-article__cover--lazy::after{content:"";position:absolute;inset:0;background:inherit;opacity:0;transition:opacity .4s;pointer-events:none}.card-article__cover--lazy.is-loaded::after{opacity:1}.card-article__badge{z-index:1;}.card-article__link:hover {color: var(--link-color-hover);}
/* End */
/* /local/templates/sov-obr/components/bitrix/news/blog-posts/style.css?17857534285514 */
/* /local/templates/sov-obr/components/bitrix/news.list/blog-list/style.css?178273090110805 */
/* /local/templates/sov-obr/components/bitrix/news.detail/blog-post-detail/style.css?178576204275409 */
/* /local/components/avocado/news.list/templates/blog-related-posts/style.css?1784540098643 */
