.faq-page {
    background:
        radial-gradient(circle at 9% 12%, rgba(221, 236, 240, .46), transparent 30%),
        linear-gradient(180deg, #fffaf1 0%, #f6ead8 48%, #fffaf1 100%);
}

.faq-directory {
    padding-top: clamp(64px, 8vw, 108px);
    background: linear-gradient(180deg, rgba(255, 250, 241, .96), rgba(244, 230, 209, .62));
}

.faq-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 22px;
}


.faq-count {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: #6d5b50;
    border-radius: 999px;
    background: rgba(255, 252, 246, .68);
    font-size: .94rem;
    font-weight: 700;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: clamp(22px, 3.6vw, 42px);
    align-items: start;
}

.faq-categories {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 10px;
}

#faq-category-buttons {
    display: grid;
    gap: 10px;
}

.faq-category {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 68px;
    padding: 17px 22px 17px 24px;
    overflow: hidden;
    color: #65574e;
    border: 1px solid rgba(121, 43, 42, .12);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 252, 246, .88), rgba(255, 250, 241, .68));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-align: left;
    transition: transform .25s ease, color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.faq-category::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px 10px;
    width: 4px;
    border-radius: 999px;
    background: transparent;
    transition: background-color .25s ease, box-shadow .25s ease;
}

.faq-category::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: .42;
    transform: translateY(-50%) rotate(45deg);
    transition: opacity .25s ease, transform .25s ease;
}

.faq-category span {
    position: relative;
    z-index: 1;
    padding-right: 24px;
}

.faq-category:hover,
.faq-category:focus-visible {
    color: var(--hi-ink);
    border-color: rgba(198, 148, 53, .28);
    background: rgba(255, 252, 246, .96);
    box-shadow: 0 16px 34px rgba(75, 43, 29, .08);
    transform: translateY(-2px);
}

.faq-category.is-active {
    color: var(--hi-ink);
    border-color: rgba(121, 43, 42, .28);
    background:
        radial-gradient(circle at 92% 18%, rgba(221, 236, 240, .72), transparent 34%),
        linear-gradient(135deg, #fffaf1 0%, #f6ead8 58%, #edf3ed 100%);
    box-shadow:
        0 20px 46px rgba(121, 43, 42, .12),
        inset 0 1px 0 rgba(255, 255, 255, .82);
    transform: translateY(-2px);
}

.faq-category.is-active::before {
    background: var(--hi-maroon);
    box-shadow: 0 0 0 5px rgba(121, 43, 42, .08);
}

.faq-category.is-active::after {
    opacity: .76;
    transform: translateY(-50%) rotate(45deg) translateX(2px);
}

.faq-results {
    display: grid;
    gap: 28px;
}

.faq-category-section {
    display: grid;
    gap: 14px;
}

.faq-category-section__header {
    padding: 22px 24px;
    border: 1px solid rgba(198, 148, 53, .2);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 0%, rgba(221, 236, 240, .58), transparent 34%),
        rgba(255, 252, 246, .76);
}

.faq-category-section__header span {
    display: block;
    margin-bottom: 6px;
    color: var(--hi-maroon);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.faq-category-section__header h3 {
    margin: 0 0 8px;
    color: var(--hi-ink);
    font-size: clamp(1.55rem, 2.5vw, 2.2rem);
    line-height: 1.25;
}

.faq-category-section__header p {
    margin: 0;
    color: #6c5b51;
    line-height: 1.7;
}

.faq-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.faq-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid rgba(121, 43, 42, .12);
    border-radius: 22px;
    background: rgba(255, 252, 246, .82);
    box-shadow: 0 18px 44px rgba(75, 43, 29, .07);
}


.faq-card h4 {
    margin: 0 0 12px;
    color: var(--hi-ink);
    font-size: clamp(1.16rem, 1.8vw, 1.42rem);
    line-height: 1.42;
}

.faq-card p {
    margin: 0 0 20px;
    color: #6b5c53;
    font-size: .96rem;
    line-height: 1.7;
}

.faq-card__button {
    width: fit-content;
    min-height: 42px;
    margin-top: auto;
    padding: 9px 16px;
    color: var(--hi-maroon);
    border: 1px solid rgba(121, 43, 42, .24);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform .25s ease, color .25s ease, background-color .25s ease;
}

.faq-card__button:hover,
.faq-card__button:focus-visible {
    color: #fffaf2;
    background: var(--hi-maroon);
    transform: translateY(-2px);
}

.faq-empty {
    padding: 34px;
    color: #6b5c53;
    border: 1px dashed rgba(121, 43, 42, .2);
    border-radius: 22px;
    background: rgba(255, 252, 246, .62);
    text-align: center;
}

.faq-modal[hidden] {
    display: none;
}

.faq-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    padding: 24px;
    place-items: center;
}

.faq-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(35, 24, 33, .58);
    backdrop-filter: blur(8px);
}

.faq-modal__dialog {
    position: relative;
    width: min(900px, 100%);
    max-height: min(82vh, 820px);
    overflow: auto;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid rgba(198, 148, 53, .34);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 0%, rgba(221, 236, 240, .62), transparent 30%),
        #fffaf1;
    box-shadow: 0 34px 90px rgba(18, 12, 18, .28);
}

.faq-modal__close {
    position: sticky;
    top: 0;
    float: right;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--hi-maroon);
    border: 1px solid rgba(121, 43, 42, .18);
    border-radius: 50%;
    background: rgba(255, 252, 246, .92);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}

.faq-modal__category {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 4px 12px;
    color: var(--hi-maroon);
    border-radius: 999px;
    background: rgba(121, 43, 42, .08);
    font-size: .82rem;
    font-weight: 800;
}

.faq-modal h2 {
    clear: both;
    margin-bottom: 24px;
    color: var(--hi-ink);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.28;
}

.faq-modal__answer p {
    margin-bottom: 1.05em;
    color: #5f544d;
    line-height: 1.9;
}

@media (max-width: 980px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-directory {
        overflow: visible;
    }

    .faq-layout {
        display: block;
    }

    .faq-results {
        margin-top: 22px;
    }

    .faq-categories {
        position: sticky;
        top: 78px;
        z-index: 20;
        display: flex;
        gap: 10px;
        margin-inline: calc(50% - 50vw);
        padding: 10px max(18px, calc((100vw - 1180px) / 2));
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 18px;
        border-block: 1px solid rgba(198, 148, 53, .2);
        background: rgba(255, 250, 241, .88);
        box-shadow: 0 14px 34px rgba(75, 43, 29, .08);
        backdrop-filter: blur(14px);
        -webkit-overflow-scrolling: touch;
    }

    .faq-categories::-webkit-scrollbar {
        display: none;
    }

    #faq-category-buttons {
        display: contents;
    }

    .faq-category {
        width: auto;
        flex: 0 0 auto;
        min-height: 48px;
        max-width: min(76vw, 320px);
        padding: 11px 18px;
        border-radius: 999px;
        white-space: nowrap;
        box-shadow: 0 10px 24px rgba(75, 43, 29, .06);
    }

    .faq-category::before,
    .faq-category::after {
        display: none;
    }

    .faq-category span {
        max-width: 100%;
        padding-right: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .faq-category:hover,
    .faq-category:focus-visible,
    .faq-category.is-active {
        transform: none;
    }
}

@media (max-width: 700px) {

    .faq-card-grid {
        grid-template-columns: 1fr;
    }

    .faq-categories {
        top: 70px;
        padding-block: 9px;
    }

    .faq-category {
        min-height: 44px;
        max-width: 72vw;
        padding: 9px 15px;
        font-size: .92rem;
    }

    .faq-count {
        width: fit-content;
    }

    .faq-card {
        min-height: auto;
    }

    .faq-modal {
        padding: 12px;
        align-items: end;
    }

    .faq-modal__dialog {
        max-height: 88vh;
        border-radius: 24px 24px 0 0;
    }
}


.faq-closing {
    padding-top: clamp(50px, 6vw, 86px);
    background: linear-gradient(180deg, rgba(244, 230, 209, .62), #fffaf1 100%);
}

.faq-closing__box {
    max-width: 940px;
    padding: clamp(34px, 5vw, 58px);
    border: 1px solid rgba(198, 148, 53, .28);
    border-radius: var(--hi-radius);
    background:
        radial-gradient(circle at 50% -18%, rgba(255, 255, 255, .9), transparent 42%),
        rgba(255, 252, 246, .86);
    box-shadow: var(--hi-shadow);
    text-align: center;
}

.faq-closing__box h2 {
    margin-bottom: 16px;
    color: var(--hi-ink);
    font-size: clamp(2rem, 4vw, 3.65rem);
    line-height: 1.2;
    letter-spacing: 0;
    text-wrap: balance;
}

.faq-closing__box p {
    max-width: 760px;
    margin: 0 auto 14px;
    color: #66564e;
    font-size: clamp(1.04rem, 1.45vw, 1.2rem);
    line-height: 1.85;
}


