.faq-page {
    --faq-blue: #008fe8;
    --faq-blue-dark: #08679d;
    --faq-ink: #17344d;
    --faq-muted: #61788b;
    --faq-line: #dce8f0;
    color: var(--faq-ink);
}

.faq-page *,
.faq-page *::before,
.faq-page *::after {
    box-sizing: border-box;
}

.faq-container {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 44px 0 72px;
}

.faq-hero {
    margin-bottom: 30px;
    text-align: center;
}

.faq-hero h1 {
    margin: 0 0 7px;
    color: var(--faq-blue-dark);
    font-size: clamp(32px, 3.4vw, 42px);
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.25;
    text-align: center;
}

.faq-hero__copy p {
    margin: 0;
    color: var(--faq-muted);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.faq-search {
    margin: 0 0 20px;
    padding: 18px 20px;
    border: 1px solid #d6e7f1;
    border-radius: 14px;
    background: #f7fbfe;
    box-shadow: 0 6px 18px rgba(22, 67, 99, .035);
}

.faq-search label {
    display: block;
    margin-bottom: 8px;
    color: #31526a;
    font-size: 14px;
    font-weight: 700;
}

.faq-search__field {
    position: relative;
}

.faq-search__field .fa-search {
    position: absolute;
    top: 50%;
    left: 17px;
    color: #6e8ba0;
    transform: translateY(-50%);
    pointer-events: none;
}

.faq-search input {
    width: 100%;
    height: 52px;
    padding: 0 18px 0 46px;
    border: 1px solid #d2e3ee;
    border-radius: 12px;
    outline: 0;
    background: #fff;
    color: var(--faq-ink);
    font: inherit;
    box-shadow: 0 6px 18px rgba(31, 86, 122, .06);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.faq-search input::placeholder {
    color: #8a9eac;
}

.faq-search input:focus {
    border-color: var(--faq-blue);
    box-shadow: 0 0 0 4px rgba(0, 140, 211, .13);
}

.faq-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.faq-sidebar {
    position: sticky;
    top: 105px;
    overflow: hidden;
    border: 1px solid #d6e7f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(22, 67, 99, .045);
}

.faq-category-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 53px;
    padding: 13px 16px;
    border-bottom: 1px solid #e3edf3;
    color: #0879b7;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.faq-nav-link:last-child {
    border-bottom: 0;
}

.faq-nav-link:hover {
    background: #f1f8fc;
    color: var(--faq-blue-dark);
    text-decoration: none;
}

.faq-nav-link.is-active {
    border-bottom-color: transparent;
    background: var(--faq-blue);
    color: #fff;
}

.faq-content {
    min-width: 0;
}

.faq-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
    margin: 0 0 12px;
}

.faq-results {
    margin: 0;
    color: #6a8090;
    font-size: 14px;
}

.faq-results strong {
    color: #31526a;
    font-weight: 700;
}

.faq-expand-all {
    padding: 7px 0 7px 12px;
    border: 0;
    background: transparent;
    color: #0879b7;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.faq-expand-all:hover {
    color: #075c8e;
    text-decoration: underline;
}

.faq-expand-all:disabled {
    color: #9aabb7;
    cursor: not-allowed;
    text-decoration: none;
}

.faq-section {
    scroll-margin-top: 112px;
    margin: 0 0 25px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.faq-sections {
    padding: 22px 24px 2px;
    border: 1px solid #d6e7f1;
    border-radius: 14px;
    background: #f7fbfe;
    box-shadow: 0 8px 22px rgba(22, 67, 99, .04);
}

.faq-section__heading {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 0 12px;
}

.faq-section__heading h2 {
    margin: 0;
    color: var(--faq-blue-dark);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.faq-list {
    display: grid;
    gap: 9px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid #d6e7f1;
    border-radius: 11px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.faq-item:hover,
.faq-item.is-open {
    border-color: #b9dced;
    box-shadow: 0 5px 16px rgba(28, 91, 130, .07);
}

.faq-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    gap: 12px;
    padding: 11px 15px;
    border: 0;
    background: #fff;
    color: #30485b;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    text-align: left;
    cursor: pointer;
}

.faq-toggle:hover {
    color: #0879b7;
}

.faq-toggle:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.faq-toggle:focus-visible,
.faq-expand-all:focus-visible,
.faq-nav-link:focus-visible {
    outline: 3px solid rgba(0, 140, 211, .3);
    outline-offset: 2px;
}

.faq-toggle-icon {
    position: relative;
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: var(--faq-blue);
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}

.faq-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-toggle[aria-expanded="true"] .faq-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-toggle[aria-expanded="true"] .faq-toggle-icon {
    color: var(--faq-blue-dark);
}

.faq-question-text {
    flex: 1 1 auto;
    min-width: 0;
}

.faq-answer {
    border-top: 1px solid #e9f0f4;
    background: #fbfdfe;
}

.faq-answer__content {
    padding: 18px 22px 22px 60px;
    color: #536b7d;
    font-size: 14px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.faq-answer__content > :first-child {
    margin-top: 0;
}

.faq-answer__content > :last-child {
    margin-bottom: 0;
}

.faq-answer__content a {
    color: #0879b7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-empty {
    padding: 38px 20px;
    border: 1px dashed #bfd5e2;
    border-radius: 14px;
    background: #f8fbfd;
    color: #61788b;
    text-align: center;
}

.faq-empty i {
    display: block;
    margin-bottom: 12px;
    color: #74b9dc;
    font-size: 24px;
}

.faq-empty p {
    margin: 0;
}

@media (max-width: 900px) {
    .faq-container {
        width: calc(100% - 32px);
        max-width: 760px;
        padding-top: 40px;
    }

    .faq-hero {
        margin-bottom: 23px;
    }

    .faq-search {
        margin-bottom: 16px;
    }

    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .faq-sidebar {
        position: static;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .faq-category-nav {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 2px 5px;
        scrollbar-width: thin;
    }

    .faq-nav-link {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 8px 12px;
        border: 1px solid #d6e7f1;
        border-radius: 9px;
        background: #fff;
        white-space: nowrap;
    }

    .faq-nav-link.is-active {
        border-color: var(--faq-blue);
        background: var(--faq-blue);
        color: #fff;
    }
}

@media (max-width: 575px) {
    .faq-container {
        width: 100%;
        padding: 32px 14px 48px;
    }

    .faq-hero {
        margin-bottom: 20px;
    }

    .faq-hero h1 {
        font-size: 32px;
    }

    .faq-hero__copy p {
        max-width: 28em;
        font-size: 14px;
    }

    .faq-search input {
        height: 48px;
    }

    .faq-search {
        padding: 15px 14px;
    }

    .faq-sidebar {
        padding: 0;
    }

    .faq-toolbar {
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .faq-section {
        margin-bottom: 15px;
    }

    .faq-section__heading {
        margin-bottom: 10px;
    }

    .faq-section__heading h2 {
        font-size: 16px;
    }

    .faq-list {
        gap: 8px;
    }

    .faq-sections {
        padding: 17px 12px 1px;
    }

    .faq-toggle {
        min-height: 54px;
        gap: 9px;
        padding: 10px 11px;
        font-size: 14px;
    }

    .faq-toggle-icon {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .faq-answer__content {
        padding: 15px 14px 18px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-page *,
    .faq-page *::before,
    .faq-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
