/* =========================================================================
   blog-new.css — новый макет блога (/blog и /blog/{slug}).
   Preview-версия: страницы закрыты noindex, но вёрстка и SEO-структура
   рассчитаны на будущее включение в индекс.
   Все правила ограничены .bt-bn.
   ========================================================================= */

.bt-bn {
    --bn-card: #ffffff;
    --bn-ink: #1c2b42;
    --bn-ink-soft: #5d6b81;
    --bn-muted: #8a94a3;
    --bn-line: #e6eaf0;
    --bn-line-soft: #f0f3f8;
    --bn-bg: #f8f9fc;
    --bn-brand: #cc1d14;
    --bn-accent: #ffda33;
    --bn-green: #2f9a4d;
    --bn-blue: #2a5a9f;
    --bn-danger: #b33a24;
    --bn-radius: 18px;
    --bn-shadow: 0 6px 24px rgba(19, 31, 53, .07);
    --bn-shadow-sm: 0 3px 12px rgba(19, 31, 53, .05);
    width: 100%;
    max-width: 1180px;
    padding-left: 14px;
    padding-right: 14px;
    color: var(--bn-ink);
}

.bt-bn *,
.bt-bn *::before,
.bt-bn *::after {
    box-sizing: border-box;
}

.bt-bn p {
    margin: 0 0 12px;
    color: #33415a;
    line-height: 1.65;
}

.bt-bn p:last-child {
    margin-bottom: 0;
}

.bt-bn .breadcrumb {
    margin: 6px 0 10px !important;
    padding-left: 0 !important;
}

/* ---------- Общие элементы ---------- */
.bt-bn__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff3c4;
    color: #6f5500;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bt-bn__eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bn-green);
    box-shadow: 0 0 0 3px rgba(47, 154, 77, .18);
}

.bt-bn__section {
    margin-top: 16px;
    padding: 24px;
    border: 1px solid var(--bn-line);
    border-radius: var(--bn-radius);
    background: var(--bn-card);
    box-shadow: var(--bn-shadow);
}

.bt-bn__section-head {
    max-width: 760px;
    margin-bottom: 18px;
}

.bt-bn__title {
    position: relative;
    margin: 0 0 8px;
    padding-left: 14px;
    color: var(--bn-ink);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    text-align: left;
}

.bt-bn__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--bn-brand), var(--bn-accent));
}

.bt-bn__subtitle {
    margin: 0 !important;
    color: var(--bn-ink-soft);
    font-size: 13.5px;
    line-height: 1.55;
}

/* Заголовок списка + счётчик архива */
.bt-bn__listing-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.bt-bn__listing-title-row .bt-bn__title {
    margin-bottom: 0;
}

.bt-bn__archive-count {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid var(--bn-line);
    border-radius: 999px;
    background: #f6f8fc;
    color: var(--bn-muted);
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

/* Кнопка «Показать ещё» перед пагинацией */
.bt-bn__load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0 6px;
}

.bt-bn__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 28px;
    border: 1px solid rgba(204, 29, 20, .28);
    border-radius: 999px;
    background: #fff;
    color: var(--bn-brand);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: var(--bn-shadow-sm);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .12s ease;
}

.bt-bn__load-more:hover:not(:disabled) {
    border-color: var(--bn-brand);
    background: #fff6f5;
    box-shadow: 0 6px 16px rgba(204, 29, 20, .14);
    transform: translateY(-1px);
}

.bt-bn__load-more:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

/* ---------- Первый экран ---------- */
.bt-bn__hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    align-items: center;
    gap: 28px;
    padding: 30px 32px;
    border: 1px solid var(--bn-line);
    border-radius: var(--bn-radius);
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 58%, #fff8e1 100%);
    box-shadow: var(--bn-shadow);
}

.bt-bn__hero::before,
.bt-bn__hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.bt-bn__hero::before {
    width: 240px;
    height: 240px;
    right: -80px;
    top: -110px;
    background: rgba(255, 218, 51, .22);
}

.bt-bn__hero::after {
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -110px;
    background: rgba(42, 90, 159, .07);
}

.bt-bn__hero-body,
.bt-bn__hero-art {
    position: relative;
    z-index: 1;
}

.bt-bn__hero h1 {
    margin: 0 0 10px;
    color: var(--bn-ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.015em;
    text-align: left;
}

.bt-bn__lead {
    max-width: 62ch;
    margin: 0 0 18px !important;
    color: var(--bn-ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

.bt-bn__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #d7e1f0;
    border-radius: 10px;
    background: #fff;
    color: var(--bn-ink) !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: var(--bn-shadow-sm);
    transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}

.bt-bn__btn:hover {
    transform: translateY(-1px);
    border-color: #c6d4e8;
    box-shadow: 0 6px 16px rgba(19, 31, 53, .1);
}

.bt-bn__btn--primary {
    border-color: var(--bn-brand);
    background: var(--bn-brand);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(204, 29, 20, .24);
}

.bt-bn__btn--primary:hover {
    border-color: #a9160f;
    background: #b71a12;
}

.bt-bn__btn--ghost {
    background: transparent;
    box-shadow: none;
}

.bt-bn__hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.bt-bn__meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid var(--bn-line);
    border-radius: 999px;
    background: #fff;
    color: var(--bn-ink-soft);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.bt-bn__hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bt-bn__hero-art img {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(19, 31, 53, .12));
}

/* ---------- Темы ---------- */
.bt-bn__chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 0 18px;
    padding-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bt-bn__chips::-webkit-scrollbar {
    display: none;
}

/* На PC полосу тем можно листать колесом и тянуть мышью, без скроллбара */
@media screen and (min-width: 641px) {
    .bt-bn__chips.is-scrollable {
        cursor: grab;
    }

    .bt-bn__chips.is-dragging {
        cursor: grabbing;
        -webkit-user-select: none;
        user-select: none;
    }

    .bt-bn__chips.is-dragging .bt-bn__chip {
        cursor: grabbing;
    }
}

.bt-bn__chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 34px;
    white-space: nowrap;
    padding: 6px 12px;
    border: 1px solid var(--bn-line);
    border-radius: 999px;
    background: #f8f9fc;
    color: #33415a !important;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.bt-bn__chip:hover {
    border-color: #c6d4e8;
    background: #f1f5fb;
}

.bt-bn__chip.is-active {
    border-color: var(--bn-brand);
    background: var(--bn-brand);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(204, 29, 20, .24);
}

/* Подписка живёт прямо в полосе тем: акцентная, но не спорит с активным тегом */
.bt-bn__chip--subscribe {
    gap: 6px;
    border-color: rgba(204, 29, 20, .26);
    background: #fff6f5;
    color: var(--bn-brand) !important;
    cursor: pointer;
    font-weight: 800;
}

.bt-bn__chip--subscribe:hover,
.bt-bn__chip--subscribe:focus-visible {
    border-color: var(--bn-brand);
    background: #ffeae8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(204, 29, 20, .12);
}

.bt-bn__chip--subscribe svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: currentColor;
}

/* ---------- Карточки ленты (renderFeedCard) ---------- */
.bt-bn .feed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
}

.bt-bn .feed-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bn-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--bn-shadow-sm);
    transition: transform .14s ease, border-color .15s ease, box-shadow .15s ease;
}

.bt-bn .feed-card:hover {
    transform: translateY(-2px);
    border-color: #d7e1f0;
    box-shadow: 0 10px 26px rgba(19, 31, 53, .1);
}

.bt-bn .feed-card a.feed-card__img {
    display: block;
    width: 100%;
    margin: 0;
    aspect-ratio: 325 / 180;
    overflow: hidden;
    background: #eef1f6;
}

.bt-bn .feed-card a.feed-card__img img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: top;
    transition: transform .25s ease;
}

.bt-bn .feed-card:hover a.feed-card__img img {
    transform: scale(1.03);
}

.bt-bn .feed-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 14px 0;
    font-size: 11px;
    line-height: 1.2;
}

.bt-bn .feed-card__type {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e8eef9;
    color: #315aa6;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bt-bn .feed-card--news .feed-card__type {
    background: #e7f4e4;
    color: #3f7a35;
}

.bt-bn .feed-card--school .feed-card__type {
    background: #fdf1dc;
    color: #9a5b00;
}

.bt-bn .feed-card__date {
    color: var(--bn-muted);
    font-size: 11.5px;
    font-weight: 600;
}

.bt-bn .feed-card a.feed-card__title {
    display: -webkit-box;
    margin: 8px 14px 16px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--bn-ink) !important;
    font-size: 14.5px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none !important;
    text-align: left;
    min-height: 4.2em;
}

.bt-bn .feed-card a.feed-card__title:hover {
    color: var(--bn-brand) !important;
}

.bt-bn__empty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 32px 20px;
    border: 1px dashed #d7e1f0;
    border-radius: 14px;
    background: #fbfcfe;
    text-align: center;
}

.bt-bn__empty strong {
    color: var(--bn-ink);
    font-size: 15px;
    font-weight: 800;
}

.bt-bn__empty span {
    color: var(--bn-ink-soft);
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- Пагинация ---------- */
.bt-bn__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.bt-bn__page,
.bt-bn__page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--bn-line);
    border-radius: 10px;
    background: #fff;
    color: var(--bn-ink) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.bt-bn__page:hover,
.bt-bn__page-arrow:hover {
    border-color: #c6d4e8;
    background: #f8fbff;
}

.bt-bn__page.is-current {
    border-color: var(--bn-brand);
    background: var(--bn-brand);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(204, 29, 20, .24);
}

.bt-bn__page-arrow {
    border-radius: 50%;
    font-size: 18px;
}

.bt-bn__page-arrow.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.bt-bn__page-ellipsis {
    padding: 0 2px;
    color: var(--bn-muted);
    font-size: 13px;
}

/* ---------- Статья ---------- */
.bt-bn__article {
    margin-top: 14px;
    padding: 24px 30px 30px;
    border: 1px solid var(--bn-line);
    border-radius: var(--bn-radius);
    background: var(--bn-card);
    box-shadow: var(--bn-shadow);
}

/* Верх статьи: заголовок и факты слева, автор — компактной карточкой справа.
   На PC это убирает «пустую» правую половину и лишнюю высоту. */
.bt-bn__article-head {
    max-width: none;
    margin: 0 0 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--bn-line-soft);
}

.bt-bn__article-head-main {
    min-width: 0;
}

.bt-bn__article-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bt-bn__article-kicker .bt-bn__eyebrow {
    margin: 0;
}

.bt-bn__article-facts {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--bn-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
}

.bt-bn__article-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c8d1de;
}

.bt-bn__article-head h1 {
    margin: 0 0 10px;
    color: var(--bn-ink);
    font-size: clamp(25px, 3.4vw, 36px);
    line-height: 1.14;
    font-weight: 850;
    letter-spacing: -.01em;
    text-align: left;
}

.bt-bn__article-head .bt-bn__lead {
    max-width: none;
    margin: 0 !important;
    font-size: 14.5px;
    line-height: 1.55;
}

.bt-bn__article-author {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 2em;
    padding: 14px;
    border: 1px solid var(--bn-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfcfe, #f5f8fd);
}

.bt-bn__article-author img {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    margin: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #eef1f6;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(19, 31, 53, .12);
}

.bt-bn__article-author-body {
    min-width: 0;
}

.bt-bn__article-author-label {
    display: block;
    margin-bottom: 2px;
    color: var(--bn-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bt-bn__article-author .bt-bn__author-name {
    display: block;
    margin: 0;
    color: var(--bn-ink) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none !important;
}

.bt-bn__article-author p {
    display: -webkit-box;
    margin: 4px 0 0 !important;
    overflow: hidden;
    color: var(--bn-ink-soft);
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bt-bn__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 28px;
    align-items: start;
}

.bt-bn__main {
    max-width: none;
    margin: 0;
    min-width: 0;
}

.bt-bn__side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 90px;
}

.bt-bn__card {
    padding: 16px 18px;
    border: 1px solid var(--bn-line);
    border-radius: 14px;
    background: #fbfcfe;
}

.bt-bn__card h2 {
    margin: 0 0 10px;
    padding: 0;
    color: var(--bn-ink);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
    text-align: left;
}

.bt-bn__card h2::before {
    display: none;
}

.bt-bn__author {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bt-bn__author img {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    background: #eef1f6;
}

.bt-bn__author-name {
    display: block;
    margin-bottom: 4px;
    color: var(--bn-ink) !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.bt-bn__author p {
    margin: 0 !important;
    color: var(--bn-ink-soft);
    font-size: 12px;
    line-height: 1.5;
}

.bt-bn__side-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bt-bn__side-link {
    display: block;
    color: var(--bn-ink) !important;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.45;
    text-decoration: none !important;
}

.bt-bn__side-link:hover {
    color: var(--bn-brand) !important;
}

.bt-bn__bonus {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 1px solid #cfe9d8;
    border-radius: 14px;
    background: linear-gradient(135deg, #eefaf1, #e2f4e8);
    color: #1f6b3a !important;
    text-decoration: none !important;
    transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.bt-bn__bonus:hover {
    border-color: #a9d9b9;
    box-shadow: 0 8px 20px rgba(47, 154, 77, .14);
    transform: translateY(-1px);
}

.bt-bn__bonus-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    color: var(--bn-green);
    box-shadow: 0 2px 6px rgba(47, 154, 77, .16);
}

.bt-bn__bonus-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.bt-bn__bonus-text {
    min-width: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
}

.bt-bn__bonus-label {
    display: block;
    margin-bottom: 1px;
    color: #4c8a63;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bt-bn__bonus-arrow {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--bn-green);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

/* ---------- Prose ---------- */
.bt-bn__prose {
    color: #33415a;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.bt-bn__prose > :first-child {
    margin-top: 0;
}

.bt-bn__prose > :last-child {
    margin-bottom: 0;
}

.bt-bn__prose h2 {
    position: relative;
    margin: 30px 0 12px;
    padding-left: 14px;
    color: var(--bn-ink);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 800;
    text-align: left;
}

.bt-bn__prose h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--bn-brand), var(--bn-accent));
}

.bt-bn__prose h3 {
    margin: 24px 0 10px;
    color: var(--bn-ink);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
    text-align: left;
}

.bt-bn__prose h4 {
    margin: 20px 0 8px;
    color: var(--bn-ink);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 800;
    text-align: left;
}

.bt-bn__prose p {
    margin: 0 0 14px;
    color: #33415a;
    font-size: 15px;
    line-height: 1.75;
}

.bt-bn__prose ul,
.bt-bn__prose ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.bt-bn__prose li {
    margin: 0 0 8px;
    color: #33415a;
    font-size: 15px;
    line-height: 1.7;
}

.bt-bn__prose li:last-child {
    margin-bottom: 0;
}

.bt-bn__prose b,
.bt-bn__prose strong {
    color: var(--bn-ink);
    font-weight: 800;
}

.bt-bn__prose a {
    color: var(--bn-blue);
    text-decoration: none;
}

.bt-bn__prose blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--bn-accent);
    border-radius: 0 12px 12px 0;
    background: #fffdf3;
}

.bt-bn__prose blockquote::before {
    display: none;
}

.bt-bn__prose blockquote p {
    margin: 0;
    color: var(--bn-ink-soft);
}

.bt-bn__prose img {
    display: block;
    max-width: 500px;
    height: auto;
    margin: 18px auto;
    border-radius: 12px;
    cursor: zoom-in;
    pointer-events: auto;
}

.bt-bn__prose figure {
    margin: 18px 0;
}

.bt-bn__prose figcaption {
    margin-top: 8px;
    color: var(--bn-muted);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.bt-bn__prose table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    border: 1px solid var(--bn-line);
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
}

.bt-bn__prose table th,
.bt-bn__prose table td {
    padding: 9px 12px;
    border: 1px solid var(--bn-line);
    color: #33415a;
    text-align: left;
    vertical-align: top;
}

.bt-bn__prose table th {
    background: #f6f8fc;
    color: var(--bn-ink);
    font-weight: 800;
}

.bt-bn__prose hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--bn-line);
}

.bt-bn__prose .table-scroll {
    width: 100%;
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.bt-bn__prose .table-scroll table {
    margin: 0;
}

/* ---------- Теги ---------- */
.bt-bn__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--bn-line-soft);
}

.bt-bn__tags--side {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.bt-bn__tags-label {
    color: var(--bn-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bt-bn__tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--bn-line);
    border-radius: 999px;
    background: #f8f9fc;
    color: #33415a !important;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none !important;
}

.bt-bn__tag:hover {
    border-color: #c6d4e8;
    background: #f1f5fb;
}

/* ---------- По теме ---------- */
.bt-bn__related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bt-bn__related-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bn-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--bn-shadow-sm);
    transition: transform .14s ease, border-color .15s ease, box-shadow .15s ease;
}

.bt-bn__related-card:hover {
    transform: translateY(-2px);
    border-color: #d7e1f0;
    box-shadow: 0 10px 26px rgba(19, 31, 53, .1);
}

.bt-bn__related-img {
    display: block;
    aspect-ratio: 325 / 180;
    overflow: hidden;
    background: #eef1f6;
}

.bt-bn__related-img img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: top;
}

.bt-bn__related-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 16px;
}

.bt-bn__related-type {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e8eef9;
    color: #315aa6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bt-bn__related-card--news .bt-bn__related-type {
    background: #e7f4e4;
    color: #3f7a35;
}

.bt-bn__related-card--school .bt-bn__related-type {
    background: #fdf1dc;
    color: #9a5b00;
}

.bt-bn__related-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--bn-ink) !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none !important;
}

.bt-bn__related-title:hover {
    color: var(--bn-brand) !important;
}

/* ---------- Рейтинг ---------- */
.bt-bn__rating .rating_block {
    margin-top: 0 !important;
}

/* ---------- Адаптив ---------- */
@media screen and (max-width: 1000px) {
    .bt-bn__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .bt-bn__side {
        position: static;
    }
}

@media screen and (max-width: 900px) {
    .bt-bn__hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .bt-bn__hero-art {
        justify-content: flex-start;
    }

    .bt-bn__hero-art img {
        max-width: 260px;
    }

    .bt-bn .feed-grid,
    .bt-bn__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
    .bt-bn {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bt-bn__hero {
        gap: 14px;
        padding: 20px 18px;
        border-radius: 14px;
    }

    .bt-bn__hero h1 {
        font-size: clamp(26px, 8vw, 34px);
    }

    .bt-bn__lead {
        font-size: 14px;
    }

    .bt-bn__hero-art img {
        max-width: 220px;
    }

    .bt-bn__chips {
        flex-wrap: nowrap;
        gap: 6px;
        margin-bottom: 14px;
        padding-bottom: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .bt-bn__chips::-webkit-scrollbar {
        display: none;
    }

    .bt-bn__chip {
        flex: 0 0 auto;
        min-height: 32px;
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .bt-bn__section,
    .bt-bn__article {
        padding: 18px 15px;
        border-radius: 14px;
    }

    .bt-bn__title {
        font-size: 19px;
    }

    .bt-bn .feed-grid,
    .bt-bn__related-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .bt-bn .feed-card a.feed-card__img,
    .bt-bn__related-img {
        aspect-ratio: 16 / 9;
    }

    .bt-bn__prose {
        font-size: 14px;
    }

    .bt-bn__prose img {
        max-width: 100%;
    }

    .bt-bn__prose h2 {
        font-size: 21px;
    }

    .bt-bn__prose h3 {
        font-size: 17px;
    }

    .bt-bn__prose p,
    .bt-bn__prose li {
        font-size: 14px;
    }

    .bt-bn__article-facts {
        gap: 6px;
        font-size: 11.5px;
    }

    .bt-bn__pagination {
        gap: 5px;
    }

    .bt-bn__page,
    .bt-bn__page-arrow {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bt-bn__btn,
    .bt-bn__chip,
    .bt-bn .feed-card,
    .bt-bn .feed-card a.feed-card__img img,
    .bt-bn__related-card {
        transition: none !important;
    }
}

/* ---------- Модалка подписки без Foundation ---------- */
.reveal-overlay.bt-bn-modal-open {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 100000;
    overflow-y: auto;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
}

.reveal-overlay.bt-bn-modal-open #subscribe_to_blog {
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 560px;
    height: auto !important;
    margin: 8vh auto 0;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}

.reveal-overlay.bt-bn-modal-open #subscribe_to_blog .close-button {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
}

@media screen and (max-width: 640px) {
    .reveal-overlay.bt-bn-modal-open {
        padding: 12px;
    }

    .reveal-overlay.bt-bn-modal-open #subscribe_to_blog {
        margin-top: 5vh;
        padding: 20px 16px;
    }
}

/* ---------- Мнения экспертов ---------- */
.bt-bn__expert-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--bn-line-soft);
}

.bt-bn__expert-section .bt-bn__title {
    font-size: 20px;
}

.bt-bn__prose .expert-block,
.bt-bn__expert-section .expert-block {
    width: 100% !important;
    min-height: 0 !important;
    margin: 18px 0 !important;
    padding: 0 !important;
}

.bt-bn__prose .expert-block > div,
.bt-bn__expert-section .expert-block > div {
    background: #f5f7fa !important;
    border-radius: 14px;
    padding: 16px !important;
}

.bt-bn__prose .expert-block .author-text,
.bt-bn__expert-section .expert-block .author-text {
    padding: 0 !important;
}

/* ---------- Комментарии и отзывы ---------- */
.bt-bn__comments-list {
    margin-bottom: 6px;
}

.bt-bn__comments .comments {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bt-bn__comments-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bn-line-soft);
}

.bt-bn__comments-tab {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid var(--bn-line);
    border-radius: 999px;
    background: #f8f9fc;
    color: #33415a;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.bt-bn__comments-tab.is-active {
    border-color: var(--bn-brand);
    background: var(--bn-brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(204, 29, 20, .2);
}

.bt-bn__comments-panel[hidden] {
    display: none;
}

.bt-bn__comments-panel .main_text {
    padding-left: 0;
    padding-right: 0;
}

.bt-bn__material-link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--bn-line-soft);
}

.bt-bn__material-link .bt-bn__side-link {
    font-size: 13px;
}

/* ---------- Статья: компактный верх на PC и мобильных ---------- */
@media screen and (min-width: 641px) {
    .bt-bn__article-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 24px;
        align-items: start;
    }

    .bt-bn__article-head--solo {
        grid-template-columns: minmax(0, 1fr);
    }

    .bt-bn__article-head h1 {
        font-size: clamp(26px, 3vw, 34px);
        margin-bottom: 8px;
    }
}

@media screen and (max-width: 640px) {
    .bt-bn__article {
        padding: 18px 15px;
        border-radius: 14px;
    }

    .bt-bn__article-head {
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .bt-bn__article-kicker {
        gap: 8px;
        margin-bottom: 8px;
    }

    .bt-bn__article-head h1 {
        margin-bottom: 8px;
        font-size: clamp(23px, 6vw, 28px);
    }

    .bt-bn__article-head .bt-bn__lead {
        font-size: 14px;
        line-height: 1.5;
    }

    .bt-bn__article-author {
        gap: 10px;
        margin-top: 14px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .bt-bn__article-author img {
        width: 40px;
        height: 40px;
    }

    .bt-bn__article-author p {
        display: none;
    }

    .bt-bn__bonus {
        gap: 10px;
        margin-bottom: 16px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .bt-bn__bonus-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .bt-bn__bonus-icon svg {
        width: 17px;
        height: 17px;
    }

    .bt-bn__bonus-text {
        font-size: 12.5px;
        line-height: 1.4;
    }

    .bt-bn__bonus-arrow {
        font-size: 16px;
    }
}

/* Секции под статьёй (оценка, комментарии, похожие) — чуть плотнее */
#blog-new-article .bt-bn__section {
    margin-top: 14px;
    padding: 20px 24px;
}

#blog-new-article .bt-bn__section-head {
    max-width: none;
    margin-bottom: 14px;
}

@media screen and (max-width: 640px) {
    #blog-new-article .bt-bn__section {
        padding: 18px 15px;
    }
}

.bt-bn__comments-login {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--bn-line);
    border-radius: 12px;
    background: #fbfcfe;
    color: var(--bn-ink-soft);
    font-size: 13.5px;
    line-height: 1.55;
}

.bt-bn__comments-login a {
    color: var(--bn-blue) !important;
    font-weight: 700;
    text-decoration: none !important;
}

/* Блоки статьи занимают всю ширину карточки, как и текст */
.bt-bn__rating > *,
.bt-bn__comments > *,
.bt-bn__related > * {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* ---------- Лайтбокс изображений статьи ---------- */
#img-lightbox {
    padding: 0;
    border: none;
    background: transparent;
    max-width: 95vw;
    max-height: 95vh;
}

#img-lightbox::backdrop {
    background: rgba(0, 0, 0, .85);
    cursor: zoom-out;
}

#img-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    cursor: zoom-out;
}

/* ---------- Компактный первый экран для PC ---------- */
@media screen and (min-width: 641px) {
    .bt-bn__hero {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
        gap: 20px;
        padding: 16px 22px;
    }

    .bt-bn__hero .bt-bn__eyebrow {
        display: none;
    }

    .bt-bn__hero h1 {
        margin-bottom: 8px;
        font-size: clamp(28px, 3.2vw, 34px);
        line-height: 1.12;
    }

    .bt-bn__lead {
        margin-bottom: 0 !important;
        font-size: 14px;
        line-height: 1.5;
    }

    .bt-bn__hero-meta {
        display: none;
    }

    .bt-bn__hero-art img {
        max-width: 260px;
    }

    .bt-bn__listing {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .bt-bn__listing .bt-bn__eyebrow,
    .bt-bn__listing .bt-bn__subtitle {
        display: none;
    }

    .bt-bn__listing .bt-bn__section-head {
        margin-bottom: 12px;
    }

    .bt-bn__listing .bt-bn__title {
        margin-bottom: 0;
        font-size: 20px;
    }

    .bt-bn__chips {
        margin-bottom: 14px;
    }
}

/* Компактный первый экран списка /blog-new только на мобильных.
   Статьи и страницы статей не затрагиваем. */
@media screen and (max-width: 640px) {
    #blog-new .bt-bn__hero {
        gap: 0;
        margin-bottom: 15px;
        padding: 14px 12px;
    }

    #blog-new .bt-bn__hero h1 {
        margin-bottom: 0;
        font-size: clamp(22px, 6.4vw, 26px);
        line-height: 1.12;
    }

    #blog-new .bt-bn__lead,
    #blog-new .bt-bn__hero-meta,
    #blog-new .bt-bn__hero-art,
    #blog-new .bt-bn__hero .bt-bn__eyebrow {
        display: none;
    }

    #blog-new .bt-bn__listing .bt-bn__section-head {
        margin-bottom: 10px;
    }

    #blog-new .bt-bn__listing-title-row {
        flex-wrap: nowrap;
        gap: 8px;
    }

    #blog-new .bt-bn__listing .bt-bn__eyebrow,
    #blog-new .bt-bn__listing .bt-bn__title,
    #blog-new .bt-bn__listing .bt-bn__subtitle {
        display: none;
    }

    #blog-new .bt-bn__listing {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    #blog-new .bt-bn__load-more {
        width: 100%;
    }
}

/* ---------- Поиск и фильтр по букмекеру (PC) ---------- */
.bt-bn__toolbar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
}

.bt-bn__search-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.bt-bn__search.search-containerm {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    margin: 0;
    z-index: 2;
}

.bt-bn__search .search-barm {
    display: flex;
    align-items: center;
    height: 42px;
    margin: 0;
    padding: 0 5px 0 0;
    border: 1px solid var(--bn-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.bt-bn__search .search-barm:focus-within {
    border-color: var(--bn-blue);
    box-shadow: 0 0 0 3px rgba(42, 90, 159, .13);
}

.bt-bn__search .searchBoxm {
    align-self: stretch;
    height: auto;
    min-width: 0;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.2;
}

.bt-bn__search .searchBtn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
}

.bt-bn__search .searchBtn svg {
    width: 18px;
    height: 18px;
}

.bt-bn__search-wrap .autocomplete-suggestionmsh {
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 0 0 12px 12px;
    z-index: 20;
}

.bt-bn__bk-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
    margin: 0;
}

.bt-bn__bk-filter-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bt-bn__bk-filter select {
    width: 100%;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0 34px 0 12px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    background-color: #fff;
    color: var(--bn-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
}

.bt-bn__bk-filter select:focus {
    outline: 0;
    border-color: var(--bn-blue);
    box-shadow: 0 0 0 3px rgba(42, 90, 159, .13);
}

/* Мобильный фильтр по БК: живёт внутри полосы тем,
   поэтому не добавляет странице лишней высоты. */
.bt-bn__bk-chip-form {
    display: none;
}

@media screen and (max-width: 640px) {
    .bt-bn__listing-title-row .bt-bn__bk-chip-form {
        display: flex;
        flex: 0 0 auto;
        margin: 0 0 0 auto;
    }

    .bt-bn__bk-chip-form select {
        -webkit-appearance: none;
        appearance: none;
        width: auto;
        max-width: 150px;
        height: 26px;
        min-height: 26px;
        margin: 0;
        padding: 3px 24px 3px 10px;
        border: 1px solid var(--bn-line);
        border-radius: 999px;
        background-color: #fff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%2333415a' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 9px center;
        background-size: 8px 5px;
        color: #33415a;
        font-family: inherit;
        font-size: 11.5px;
        font-weight: 750;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bt-bn__bk-chip-form.is-active select {
        border-color: var(--bn-brand);
        background-color: #fff6f5;
        color: var(--bn-brand);
    }

    .bt-bn__bk-chip-form select:focus {
        outline: 0;
        border-color: var(--bn-blue);
        box-shadow: 0 0 0 3px rgba(42, 90, 159, .13);
    }
}

@media screen and (max-width: 640px) {
    .bt-bn__toolbar {
        display: none;
    }
}

/* Поиск и фильтр в одной строке с заголовком списка на PC */
@media screen and (min-width: 641px) {
    .bt-bn__listing-top {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 12px;
    }

    .bt-bn__listing-top .bt-bn__section-head {
        margin-bottom: 15px;
    }

    .bt-bn__toolbar {
        flex: 0 1 620px;
        margin-bottom: 0;
    }
}

@media screen and (min-width: 641px) and (max-width: 900px) {
    .bt-bn__listing-top {
        flex-wrap: wrap;
    }

    .bt-bn__toolbar {
        flex: 1 1 100%;
    }
}
