/* =========================================================
   BIBLIOTEKA.KG FOOTER
   ВАЖНО: подключать после theme.css
   ========================================================= */

.bt-footer {
    position: relative;
    overflow: hidden;
    color: var(--text);
    background: rgba(var(--surface-rgb), var(--glass-alpha));
    border-top: 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);
}

.bt-footer a {
    color: var(--text);
    text-decoration: none;
    transition:
        color .2s ease,
        text-shadow .2s ease,
        background-color .2s ease,
        border-color .2s ease;
}

.bt-footer a:hover,
.bt-footer a:focus {
    color: var(--accent);
    text-shadow: 0 0 16px rgba(103, 232, 249, .32);
}

/* =========================================================
   HERO
   ========================================================= */

.bt-footer-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.bt-footer-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(780px 280px at 5% -12%, rgba(103, 232, 249, .18), transparent 62%),
        radial-gradient(680px 260px at 106% 110%, rgba(var(--tint-rgb), .22), transparent 60%);
    pointer-events: none;
}

.bt-footer-hero > .container {
    position: relative;
    z-index: 2;
}

.bt-footer-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    color: var(--bg);
    background: var(--accent);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.bt-footer-title {
    margin: 0 0 12px;
    color: var(--text);
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 850;
    line-height: 1.12;
}

.bt-footer-subtitle {
    max-width: 640px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.bt-footer-newsletter-form .input-group {
    max-width: 620px;
    padding: 6px;
    background: rgba(var(--surface-rgb), .84);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: var(--shadow);
}

.bt-footer-newsletter-form .form-control {
    min-height: 50px;
    color: var(--text);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.bt-footer-newsletter-form .form-control:focus {
    box-shadow: none;
}

.bt-footer-submit {
    min-height: 50px;
    padding: 10px 18px;
    color: var(--bg) !important;
    background: var(--accent);
    border: 1px solid var(--accent);
    font-weight: 850;
}

.bt-footer-submit:hover,
.bt-footer-submit:focus {
    color: var(--accent) !important;
    background: var(--bg);
    border-color: var(--accent);
}

/* =========================================================
   PROMO
   ========================================================= */

.bt-footer-promo {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 24px;
    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);
}

html.theme-dark .bt-footer-promo,
body.theme-dark .bt-footer-promo {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.bt-footer-promo-icon {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    background: var(--accent);
    font-size: 32px;
}

.bt-footer-promo h4 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 22px;
    font-weight: 850;
    line-height: 1.2;
}

.bt-footer-promo p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.bt-footer-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bt-footer-primary-btn,
.bt-footer-outline-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.bt-footer-primary-btn {
    color: var(--bg) !important;
    background: var(--accent);
    border: 1px solid var(--accent);
}

.bt-footer-primary-btn:hover,
.bt-footer-primary-btn:focus {
    color: var(--accent) !important;
    background: var(--bg);
    border-color: var(--accent);
}

.bt-footer-outline-btn {
    color: var(--text) !important;
    background: transparent;
    border: 1px solid var(--border);
}

.bt-footer-outline-btn:hover,
.bt-footer-outline-btn:focus {
    color: var(--bg) !important;
    background: var(--text);
    border-color: var(--text);
}

/* =========================================================
   LINKS
   ========================================================= */

.bt-footer-links {
    position: relative;
    padding: 46px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.bt-footer-links h6 {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bt-footer-underline {
    width: 58px;
    height: 3px;
    margin-top: 10px;
    margin-bottom: 14px;
    background: var(--accent);
}

.bt-footer-links p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.bt-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bt-footer-links li + li {
    margin-top: 9px;
}

.bt-footer-links li a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}

.bt-footer-links li a:hover,
.bt-footer-links li a:focus {
    color: var(--accent);
}

.bt-footer-contacts {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.bt-footer-contacts div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.bt-footer-contacts i {
    color: var(--accent);
}

/* =========================================================
   BOTTOM
   ========================================================= */

.bt-footer-bottom {
    background: rgba(var(--surface-rgb), .48);
}

.bt-footer-copy {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.bt-footer-dev {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.bt-footer-dev a {
    color: var(--accent);
    font-weight: 800;
}

.bt-footer-socials {
    display: inline-flex;
    gap: 8px;
}

.bt-footer-socials a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: rgba(var(--surface-rgb), .72);
    border: 1px solid rgba(255, 255, 255, .18);
}

.bt-footer-socials a:hover,
.bt-footer-socials a:focus {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
    text-shadow: none;
}

/* =========================================================
   БЕЗ ЗАКРУГЛЕНИЙ — под утверждённый стиль главной
   ========================================================= */

.bt-footer,
.bt-footer-kicker,
.bt-footer-newsletter-form .input-group,
.bt-footer-submit,
.bt-footer-promo,
.bt-footer-promo-icon,
.bt-footer-primary-btn,
.bt-footer-outline-btn,
.bt-footer-socials a {
    border-radius: 0 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .bt-footer-hero {
        padding: 36px 0;
    }

    .bt-footer-links {
        padding: 38px 0;
    }
}

@media (max-width: 575.98px) {
    .bt-footer-newsletter-form .input-group {
        display: grid;
        gap: 8px;
        padding: 8px;
    }

    .bt-footer-submit {
        width: 100%;
    }

    .bt-footer-promo {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .bt-footer-promo-actions {
        flex-direction: column;
    }

    .bt-footer-primary-btn,
    .bt-footer-outline-btn {
        width: 100%;
    }

    .bt-footer-socials {
        justify-content: center;
    }
}