/* =========================================================
   BIBLIOTEKA.KG TARIFF PROMO WIDGET
   ВАЖНО: подключать после theme.css
   ========================================================= */

.tariff-promo-widget {
    position: relative;
    overflow: hidden;
    color: var(--text);
    background: rgba(var(--surface-rgb), var(--glass-alpha));
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.05);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.05);
}

.tariff-promo-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(780px 280px at 4% -12%, rgba(103, 232, 249, .22), transparent 62%),
        radial-gradient(680px 260px at 106% 110%, rgba(var(--tint-rgb), .22), transparent 60%);
    pointer-events: none;
}

.tariff-promo-main {
    position: relative;
    z-index: 2;
    min-height: 330px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 34px;
    align-items: center;
    padding: 42px;
}

.tariff-promo-content {
    max-width: 860px;
}

.tariff-promo-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 7px 12px;
    color: var(--bg);
    background: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.tariff-promo-content h2 {
    margin: 0 0 16px;
    color: var(--text);
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 850;
    line-height: 1.1;
}

.tariff-promo-description {
    max-width: 820px;
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.tariff-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tariff-promo-btn-primary,
.tariff-promo-btn-outline {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.tariff-promo-btn-primary {
    color: var(--bg) !important;
    background: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 10px 24px rgba(103, 232, 249, .24);
}

.tariff-promo-btn-primary:hover,
.tariff-promo-btn-primary:focus {
    color: var(--accent) !important;
    background: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 0 22px rgba(103, 232, 249, .42);
    transform: translateY(-1px);
}

.tariff-promo-btn-outline {
    color: var(--text) !important;
    background: transparent;
    border: 1px solid var(--border);
}

.tariff-promo-btn-outline:hover,
.tariff-promo-btn-outline:focus {
    color: var(--bg) !important;
    background: var(--text);
    border-color: var(--text);
    box-shadow: 0 0 18px rgba(var(--tint-rgb), .26);
    transform: translateY(-1px);
}

/* =========================================================
   VISUAL
   ========================================================= */

.tariff-promo-visual {
    position: relative;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tariff-promo-visual-circle {
    width: 172px;
    height: 172px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    background: var(--accent);
    box-shadow:
        0 18px 38px rgba(103, 232, 249, .24),
        0 0 0 12px rgba(103, 232, 249, .10);
    font-size: 76px;
}

.tariff-promo-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--text);
    background: rgba(var(--surface-rgb), .82);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 850;
}

.tariff-promo-badge i {
    color: var(--accent);
}

.tariff-promo-badge-top {
    top: 14px;
    right: 12px;
}

.tariff-promo-badge-bottom {
    left: 4px;
    bottom: 18px;
}

/* =========================================================
   CARDS
   ========================================================= */

.tariff-promo-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0 42px 42px;
}

.tariff-promo-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
    color: var(--text);
    background: rgba(var(--surface-rgb), .72);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        background-color .22s ease;
}

html.theme-dark .tariff-promo-card,
body.theme-dark .tariff-promo-card {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.tariff-promo-card:hover {
    transform: translateY(-3px);
    border-color: rgba(103, 232, 249, .45);
    box-shadow:
        0 0 0 1px rgba(103, 232, 249, .18),
        0 18px 38px rgba(0, 0, 0, .16);
}

html.theme-dark .tariff-promo-card:hover,
body.theme-dark .tariff-promo-card:hover {
    box-shadow:
        0 0 0 1px rgba(103, 232, 249, .22),
        0 0 28px rgba(103, 232, 249, .18),
        0 18px 38px rgba(0, 0, 0, .34);
}

.tariff-promo-card-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    background: var(--accent);
    font-size: 23px;
}

.tariff-promo-card-body h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 19px;
    font-weight: 850;
    line-height: 1.18;
}

.tariff-promo-card-body p {
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.tariff-promo-card-body ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tariff-promo-card-body li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.4;
}

.tariff-promo-card-body li i {
    margin-top: 3px;
    color: var(--accent);
    font-size: 12px;
}

/* =========================================================
   БЕЗ ЗАКРУГЛЕНИЙ — под утверждённую главную
   ========================================================= */

.tariff-promo-widget,
.tariff-promo-kicker,
.tariff-promo-btn-primary,
.tariff-promo-btn-outline,
.tariff-promo-visual-circle,
.tariff-promo-badge,
.tariff-promo-card,
.tariff-promo-card-icon {
    border-radius: 0 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
    .tariff-promo-main {
        grid-template-columns: minmax(0, 1fr) 220px;
        padding: 34px;
    }

    .tariff-promo-cards {
        padding-left: 34px;
        padding-right: 34px;
        padding-bottom: 34px;
    }

    .tariff-promo-visual-circle {
        width: 142px;
        height: 142px;
        font-size: 62px;
    }
}

@media (max-width: 991.98px) {
    .tariff-promo-main {
        grid-template-columns: 1fr;
    }

    .tariff-promo-visual {
        justify-content: flex-start;
        min-height: 160px;
    }

    .tariff-promo-badge-top {
        top: 0;
        right: auto;
        left: 150px;
    }

    .tariff-promo-badge-bottom {
        left: 150px;
        bottom: 20px;
    }

    .tariff-promo-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .tariff-promo-main {
        padding: 26px 20px;
        gap: 24px;
    }

    .tariff-promo-content h2 {
        font-size: 28px;
    }

    .tariff-promo-description {
        font-size: 15px;
    }

    .tariff-promo-actions {
        flex-direction: column;
    }

    .tariff-promo-btn-primary,
    .tariff-promo-btn-outline {
        width: 100%;
    }

    .tariff-promo-visual {
        min-height: auto;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .tariff-promo-visual-circle {
        width: 92px;
        height: 92px;
        font-size: 42px;
        box-shadow:
            0 12px 26px rgba(103, 232, 249, .20),
            0 0 0 8px rgba(103, 232, 249, .08);
    }

    .tariff-promo-badge {
        position: static;
    }

    .tariff-promo-cards {
        padding: 0 20px 26px;
    }

    .tariff-promo-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}