.fgl-faq {
    padding: clamp(5px, 0.8vw, 9px) 0;
    background: #f5f7f8;
    color: #111111;
}

.fgl-faq__shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.fgl-faq__heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.fgl-faq__kicker {
    margin: 0;
    color: #5a6673;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    line-height: 1.2;
    text-transform: uppercase;
}

.fgl-faq__heading h2 {
    margin: 0;
    color: #111111;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    font-weight: 400;
    line-height: 1.2;
}

.fgl-faq__trigger {
    display: inline-flex;
    min-width: 132px;
    min-height: 34px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fgl-faq-modal[hidden] {
    display: none;
}

.fgl-faq-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.fgl-faq-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.62);
    backdrop-filter: blur(6px);
}

.fgl-faq-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(860px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    background: #f5f7f8;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
    padding: clamp(24px, 4vw, 42px);
}

.fgl-faq-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    min-width: 82px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fgl-faq-modal__heading {
    flex: 0 0 auto;
    padding-right: 104px;
    margin-bottom: 20px;
}

.fgl-faq-modal__heading h2 {
    margin: 0;
    color: #111111;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    font-weight: 400;
    line-height: 1;
}

.fgl-faq__list {
    display: grid;
    align-content: start;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 8px 8px 2px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.fgl-faq__list::-webkit-scrollbar {
    width: 8px;
}

.fgl-faq__list::-webkit-scrollbar-thumb {
    background: rgba(17, 17, 17, 0.2);
    border-radius: 999px;
}

.fgl-faq__list::-webkit-scrollbar-track {
    background: transparent;
}

.fgl-faq__item {
    overflow: visible;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 28px rgba(20, 28, 38, 0.06);
}

.fgl-faq__item summary {
    display: block;
    position: relative;
    min-height: 54px;
    padding: 16px 56px 16px 22px;
    cursor: pointer;
    color: #111111;
    font-size: clamp(1rem, 1.45vw, 1.1rem);
    font-weight: 800;
    line-height: 1.35;
}

.fgl-faq__item summary::-webkit-details-marker {
    display: none;
}

.fgl-faq__item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    color: #5a6673;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
}

.fgl-faq__item[open] summary::after {
    content: "-";
}

.fgl-faq__content {
    padding: 0 22px 18px;
    color: #38424d;
    font-size: 1rem;
    line-height: 1.72;
}

.fgl-faq__content > :first-child {
    margin-top: 0;
}

.fgl-faq__content > :last-child {
    margin-bottom: 0;
}

.fgl-faq__content img,
.fgl-faq__content iframe,
.fgl-faq__content video,
.fgl-faq__content embed,
.fgl-faq__content object {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.fgl-faq__content figure {
    margin: 16px 0;
    max-width: 100%;
}

.fgl-faq__content a {
    color: #1d4ed8;
    text-decoration: underline;
    word-break: break-word;
}

.fgl-faq__item summary:focus-visible {
    outline: 3px solid #b8c7d9;
    outline-offset: -4px;
}

@media (max-width: 900px) {
    .fgl-faq__shell {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .fgl-faq {
        padding: 16px 0;
    }

    .fgl-faq__shell {
        width: min(100% - 28px, 1120px);
    }

    .fgl-faq__item {
        border-radius: 16px;
    }

    .fgl-faq__trigger {
        width: 100%;
    }

    .fgl-faq-modal {
        padding: 14px;
    }

    .fgl-faq-modal__panel {
        max-height: calc(100vh - 28px);
        border-radius: 18px;
    }

    .fgl-faq-modal__close {
        position: static;
        margin-bottom: 18px;
    }

    .fgl-faq-modal__heading {
        padding-right: 0;
    }

    .fgl-faq__item summary {
        padding: 18px 50px 18px 18px;
    }

    .fgl-faq__item summary::after {
        right: 18px;
    }

    .fgl-faq__content {
        padding: 0 18px 18px;
    }
}
