/* =========================================================
   BIBLIOTEKA.KG FAQ PAGE
   ========================================================= */

.faq-page {
    position: relative;
    padding: 24px 0 46px;
    color: var(--text);
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */

.faq-breadcrumbs {
    padding: 13px 16px;
    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);
}

.faq-breadcrumbs .breadcrumb {
    background: transparent;
}

.faq-breadcrumbs .breadcrumb,
.faq-breadcrumbs .breadcrumb-item,
.faq-breadcrumbs .breadcrumb-item a {
    color: var(--muted);
    font-weight: 650;
    text-decoration: none;
}

.faq-breadcrumbs .breadcrumb-item.active {
    color: var(--text);
}

.faq-breadcrumbs .breadcrumb-item a:hover,
.faq-breadcrumbs .breadcrumb-item a:focus {
    color: var(--accent);
}

/* =========================================================
   GLASS BLOCKS
   ========================================================= */

.faq-hero-inner,
.faq-category-panel,
.faq-list-section,
.faq-final-cta-inner,
.faq-help-card,
.faq-empty,
.faq-category-title,
.faq-accordion-item,
.faq-ad-block,
.faq-side-ad {
    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);
}

.faq-hero-inner::before,
.faq-category-panel::before,
.faq-list-section::before,
.faq-final-cta-inner::before,
.faq-help-card::before,
.faq-category-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(760px 280px at 5% -12%, rgba(103, 232, 249, .16), transparent 62%),
        radial-gradient(680px 260px at 106% 110%, rgba(var(--tint-rgb), .18), transparent 60%);
    pointer-events: none;
}

.faq-hero-content,
.faq-hero-stats,
.faq-section-head,
.faq-category-list,
.faq-category-group,
.faq-final-cta-inner > *,
.faq-help-card > *,
.faq-empty,
.faq-category-title > * {
    position: relative;
    z-index: 2;
}

/* =========================================================
   HERO
   ========================================================= */

.faq-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: center;
    padding: 38px;
}

.faq-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    color: var(--bg);
    background: var(--accent);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.faq-hero h1 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.05;
}

.faq-hero p,
.faq-section-head p,
.faq-final-cta p,
.faq-help-card p,
.faq-category-title p {
    max-width: 820px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.68;
}

.faq-hero-actions,
.faq-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.faq-primary-btn,
.faq-outline-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.faq-primary-btn {
    color: var(--bg) !important;
    background: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 10px 24px rgba(103, 232, 249, .22);
}

.faq-primary-btn:hover,
.faq-primary-btn:focus {
    color: var(--accent) !important;
    background: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 0 22px rgba(103, 232, 249, .42);
}

.faq-outline-btn {
    color: var(--text) !important;
    background: transparent;
    border: 1px solid var(--border);
}

.faq-outline-btn:hover,
.faq-outline-btn:focus {
    color: var(--bg) !important;
    background: var(--text);
    border-color: var(--text);
}

/* =========================================================
   HERO STATS
   ========================================================= */

.faq-hero-stats {
    display: grid;
    gap: 12px;
}

.faq-hero-stats div {
    padding: 18px;
    color: var(--text);
    background: rgba(var(--surface-rgb), .72);
    border: 1px solid rgba(255, 255, 255, .18);
}

.faq-hero-stats strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
}

.faq-hero-stats span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

/* =========================================================
   SECTION HEAD
   ========================================================= */

.faq-category-panel,
.faq-list-section {
    padding: 32px;
}

.faq-section-head {
    max-width: 860px;
    margin-bottom: 24px;
}

.faq-section-head h2,
.faq-final-cta h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 900;
    line-height: 1.1;
}

.faq-section-head p,
.faq-final-cta p {
    margin-bottom: 0;
}

/* =========================================================
   CATEGORY CHIPS
   ========================================================= */

.faq-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 13px;
    color: var(--text);
    background: rgba(var(--surface-rgb), .62);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.faq-category-chip:hover,
.faq-category-chip:focus,
.faq-category-chip.active {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* =========================================================
   FAQ LIST
   ========================================================= */

.faq-category-group {
    margin-top: 26px;
}

.faq-category-group:first-of-type {
    margin-top: 0;
}

.faq-category-title {
    margin-bottom: 16px;
    padding: 24px;
}

.faq-category-title h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
}

.faq-category-title p {
    margin-bottom: 0;
}

.faq-accordion {
    display: grid;
    gap: 12px;
}

.faq-accordion-item {
    border: 1px solid rgba(255, 255, 255, .18);
}

.faq-accordion .accordion-header {
    margin: 0;
}

.faq-accordion .accordion-button {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 64px;
    padding: 16px 18px;
    color: var(--text);
    background: rgba(var(--surface-rgb), .72);
    border: 0;
    box-shadow: none;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.35;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--text);
    background: rgba(103, 232, 249, .12);
    box-shadow: inset 0 -1px 0 var(--border);
}

.faq-accordion .accordion-button::after {
    filter: none;
}

html.theme-dark .faq-accordion .accordion-button::after,
body.theme-dark .faq-accordion .accordion-button::after {
    filter: invert(1);
}

.faq-question-number {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    background: var(--accent);
    font-size: 14px;
    font-weight: 900;
}

.faq-question-text {
    display: block;
    min-width: 0;
}

.faq-answer-body {
    padding: 22px 24px 24px 72px;
    color: var(--text);
    background: rgba(var(--surface-rgb), .58);
}

.faq-answer-content {
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
}

.faq-answer-image {
    margin-bottom: 18px;
}

.faq-answer-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
}

.faq-answer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    padding-top: 14px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 13px;
    font-weight: 650;
}

.faq-answer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.faq-empty {
    padding: 24px;
    color: var(--muted);
    font-weight: 750;
}

/* =========================================================
   CTA
   ========================================================= */

.faq-final-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 34px;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.faq-sidebar-sticky {
    position: sticky;
    top: 92px;
}

.faq-help-card {
    padding: 22px;
}

.faq-help-card h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.faq-help-card p {
    margin-bottom: 0;
    font-size: 14px;
}

/* =========================================================
   ADS
   ========================================================= */

.faq-ad-block,
.faq-side-ad {
    padding: 10px;
}

.faq-ad-carousel {
    width: 100%;
}

.faq-ad-item {
    width: 100%;
}

.faq-ad-item a {
    display: block;
}

.faq-ad-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.faq-side-carousel .faq-ad-item img {
    max-height: 460px;
    object-fit: contain;
}

/* =========================================================
   NO RADIUS
   ========================================================= */

.faq-breadcrumbs,
.faq-hero-inner,
.faq-category-panel,
.faq-list-section,
.faq-final-cta-inner,
.faq-help-card,
.faq-empty,
.faq-category-title,
.faq-accordion-item,
.faq-ad-block,
.faq-side-ad,
.faq-kicker,
.faq-primary-btn,
.faq-outline-btn,
.faq-category-chip,
.faq-question-number,
.faq-hero-stats div,
.faq-answer-image img {
    border-radius: 0 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
    .faq-hero-inner,
    .faq-final-cta-inner {
        grid-template-columns: 1fr;
    }

    .faq-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .faq-sidebar-sticky {
        position: static;
        top: auto;
    }

    .faq-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .faq-page {
        padding-top: 18px;
    }

    .faq-hero-inner,
    .faq-category-panel,
    .faq-list-section,
    .faq-final-cta-inner {
        padding: 24px 20px;
    }

    .faq-hero h1 {
        font-size: 30px;
    }

    .faq-hero-actions,
    .faq-final-actions {
        flex-direction: column;
    }

    .faq-primary-btn,
    .faq-outline-btn {
        width: 100%;
    }

    .faq-hero-stats {
        grid-template-columns: 1fr;
    }

    .faq-category-chip {
        width: 100%;
        justify-content: center;
    }

    .faq-accordion .accordion-button {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 14px;
        font-size: 15px;
    }

    .faq-question-number {
        width: 34px;
        height: 34px;
    }

    .faq-answer-body {
        padding: 20px;
    }

    /* =========================================================
   FAQ ANCHORS / SUPPORT CARD
   ========================================================= */

    html {
        scroll-behavior: smooth;
    }

    .faq-category-group {
        scroll-margin-top: 110px;
    }

    #faq-list {
        scroll-margin-top: 110px;
    }

    .faq-help-card strong {
        color: var(--accent);
        font-weight: 900;
    }

    .faq-help-btn {
        width: 100%;
        margin-top: 16px;
    }

    .faq-help-note {
        margin-top: 14px;
        padding: 12px;
        color: var(--muted);
        background: rgba(var(--surface-rgb), .55);
        border: 1px solid var(--border);
        font-size: 13px;
        font-weight: 650;
        line-height: 1.5;
    }
}