/* ==========================================================================
   bb26-internal-link — авто-перелинковка ключевых терминов в content.
   ========================================================================== */
.entry-content a.bb26-internal-link {
    color: var(--bb-accent-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.15s var(--bb-ease);
}
.entry-content a.bb26-internal-link:hover {
    color: #B36800;
    text-decoration-thickness: 2px;
}

/* ==========================================================================
   bb26-provider-top — кликабельный топ кредитных провайдеров с CTA-кнопками.
   Заменяет плоские <ul><li><strong>X</strong>...</li></ul> блоки.
   ========================================================================== */

.bb26-provider-top {
    margin: 28px 0;
    --bb-prov-radius: 14px;
}

.bb26-provider-top__heading {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 18px;
    color: var(--bb-text);
    line-height: 1.25;
}

.bb26-provider-top__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 14px;
    counter-reset: provider-counter;
}

.bb26-provider-top__list li::before {
    content: none !important;
}

.bb26-provider-top__item {
    position: relative;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 16px;
    align-items: center;
    background: var(--bb-panel);
    border: 1.5px solid var(--bb-border);
    border-radius: var(--bb-prov-radius);
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(26,32,44,0.04);
    transition: box-shadow 0.2s var(--bb-ease), border-color 0.2s var(--bb-ease), transform 0.2s var(--bb-ease);
}

.bb26-provider-top__item:hover {
    border-color: var(--bb-accent);
    box-shadow: 0 8px 24px rgba(255,160,0,0.16), 0 2px 6px rgba(26,32,44,0.06);
    transform: translateY(-2px);
}

/* Первый item — мягкое выделение: тонкая жёлтая полоса слева + лёгкий фон.
   Без бейджа SOOVITAME — не давим на пользователя. */
.bb26-provider-top__item--best {
    background: linear-gradient(90deg, var(--bb-accent-soft, #FFF8E1) 0%, var(--bb-panel) 40%);
    box-shadow: inset 4px 0 0 var(--bb-accent), 0 2px 6px rgba(26,32,44,0.04);
    border-color: var(--bb-border);
}

.bb26-provider-top__rank {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bb-bg);
    border: 1.5px solid var(--bb-border);
    color: var(--bb-text-secondary);
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bb26-provider-top__item--best .bb26-provider-top__rank {
    background: var(--bb-accent);
    border-color: var(--bb-accent);
    color: var(--bb-text);
}

.bb26-provider-top__main {
    min-width: 0;
}

.bb26-provider-top__head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.bb26-provider-top__logo {
    font-size: 24px;
    line-height: 1;
}

.bb26-provider-top__name {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--bb-text);
    line-height: 1.2;
}

.bb26-provider-top__name a {
    color: var(--bb-text) !important;
    text-decoration: none !important;
    background-image: none !important;
}

.bb26-provider-top__name a:hover {
    color: var(--bb-accent-dark) !important;
}

.bb26-provider-top__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 193, 7, 0.18);
    color: var(--bb-accent-dark);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}


.bb26-provider-top__highlight {
    margin: 4px 0 6px !important;
    font-size: 13.5px;
    color: #38A169;
    font-weight: 700;
    line-height: 1.4;
}

.bb26-provider-top__desc {
    margin: 0 0 8px !important;
    font-size: 13.5px;
    color: var(--bb-text-secondary);
    line-height: 1.45;
}

.bb26-provider-top__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 12.5px;
    color: var(--bb-text-secondary);
}

.bb26-provider-top__meta strong {
    color: var(--bb-text);
}

.bb26-provider-top__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: var(--bb-text);
    color: #fff !important;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    background-image: none !important;
    white-space: nowrap;
    transition: background 0.15s var(--bb-ease), transform 0.15s var(--bb-ease);
    flex-shrink: 0;
}

.bb26-provider-top__cta:hover {
    background: #2D3748;
    color: #fff !important;
    transform: translateY(-1px);
}

.bb26-provider-top__item--best .bb26-provider-top__cta {
    background: var(--bb-accent);
    color: var(--bb-text) !important;
    box-shadow: 0 4px 10px rgba(255,160,0,0.30);
}

.bb26-provider-top__item--best .bb26-provider-top__cta:hover {
    background: var(--bb-accent-dark);
    color: var(--bb-text) !important;
}

/* Единый дисклеймер под всем списком — заменяет 7 бейджей «Реклама» */
.bb26-provider-top__disclaimer {
    margin: 14px 0 0 !important;
    font-size: 11.5px;
    color: var(--bb-text-muted);
    line-height: 1.5;
    text-align: center;
    padding: 10px 14px;
    background: rgba(255, 247, 224, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(240, 224, 160, 0.6);
}

/* === MOBILE === */
@media (max-width: 640px) {
    .bb26-provider-top__item {
        grid-template-columns: 32px 1fr;
        grid-template-rows: auto auto;
        gap: 10px 12px;
        padding: 14px 14px 16px;
    }

    .bb26-provider-top__rank {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .bb26-provider-top__main {
        grid-column: 2;
    }

    /* CTA — на всю ширину карточки на мобиле, под основным контентом */
    .bb26-provider-top__cta {
        grid-column: 1 / -1;
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .bb26-provider-top__name {
        font-size: 16px !important;
    }

    .bb26-provider-top__highlight {
        font-size: 13px;
    }

    .bb26-provider-top__desc {
        font-size: 13px;
    }
}
