.faq {
    position: relative;
    margin: 18.18vh 0 0;
    padding: 0;
}

.faq__shell {
    width: 82%;
    margin: 0 auto;
}

.faq__eyebrow {
    width: fit-content;
    margin: 0 auto 0.78vh;
    padding: 0.44vh 0.83vw;
    border-radius: 999px;
    background-color: #173F58;
    font-family: Geist;
    font-size: 1.5vw;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    color: #F8FBFD;
}

.faq__title {
    margin: 0;
    font-family: Montserrat;
    font-size: 3.12vw;
    font-weight: 700;
    line-height: 1.1;
    color: #0E2432;
    text-align: center;
}

.faq__lead {
    margin: 1.44vh auto 0;
    font-family: Montserrat;
    font-size: 1.1vw;
    font-weight: 500;
    line-height: 1.4;
    color: #376179;
    text-align: center;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.7vh;
    width: 100%;
    margin: 3.35vh auto 0;
}

.faq__item {
    position: relative;
    border-radius: 0.72vw;
    box-shadow: 1px 2px 0 0 #17374A;
    border: 1px solid #2E6487;
    overflow: hidden;
    transition: box-shadow 260ms ease;
}

.faq__item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #173F58;
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
}

.faq__item.is-active {
    box-shadow: 1px 2px 0 0 #17374A;
}

.faq__item.is-active::before {
    opacity: 1;
}

.faq__question {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 6.32vh;
    padding: 0 1.56vw;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.08vw;
    align-items: center;
    gap: 1.04vw;
    cursor: pointer;
    list-style: none;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: Geist;
    font-size: 1.25vw;
    font-weight: 700;
    line-height: 1.25;
    color: #0E2432;
    transition: color 260ms ease, min-height 260ms ease;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__item.is-active .faq__question {
    min-height: 6.68vh;
    color: #F8FBFD;
}

.faq__toggle {
    position: relative;
    width: 2.08vw;
    height: 2.08vw;
    border-radius: 50%;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__toggle::before,
.faq__toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.73vw;
    height: 0.16vw;
    border-radius: 999px;
    background-color: #0E2432;
    transform: translate(-50%, -50%);
    transition: background-color 260ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

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

.faq__item.is-active .faq__toggle {
    transform: rotate(180deg);
}

.faq__item.is-active .faq__toggle::before,
.faq__item.is-active .faq__toggle::after {
    background-color: #fff;
}

.faq__item.is-active .faq__toggle::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg) scaleX(0.2);
}

.faq__answer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 0fr;
    height: auto;
    overflow: hidden;
    background-color: rgba(216, 240, 255, 0.04);
    transition: grid-template-rows 420ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: grid-template-rows;
}

.faq__item.is-active .faq__answer {
    grid-template-rows: 1fr;
}

.faq__answer-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 3.38vw 0 1.56vw;
    opacity: 0;
    transform: translateY(-0.8vh);
    transition:
        opacity 260ms ease,
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
        padding-top 420ms cubic-bezier(0.22, 1, 0.36, 1),
        padding-bottom 420ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.faq__item.is-active:not(.is-closing) .faq__answer-inner {
    opacity: 1;
    transform: translateY(0);
}

.faq__item.is-active .faq__answer-inner {
    padding-top: 2.4vh;
    padding-bottom: 2.96vh;
}

.faq__answer-inner p {
    max-width: 55vw;
    margin: 0;
    font-family: Montserrat;
    font-size: 1.04vw;
    font-weight: 500;
    line-height: 1.55;
    color: #D8F0FF;
}

.faq__answer-inner a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

@media (prefers-reduced-motion: reduce) {
    .faq__answer,
    .faq__answer-inner,
    .faq__item {
        transition: none;
    }
}

@media (max-width: 768px) {
    .faq__item.is-active .faq__answer-inner {
        padding-top: 2.3vh;
        padding-bottom: 3vh;
    }
}

@media (max-width: 500px) {
    .faq {
        margin: 11.85vh 0 0;
        padding: 0;
    }

    .faq__shell {
        width: 100%;
    }

    .faq__eyebrow {
        margin-bottom: 1.2vh;
        padding: 0.82vh 3.08vw;
        font-size: 2.56vw;
    }

    .faq__title {
        font-size: 7.18vw;
        line-height: 1.12;
    }

    .faq__lead {
        margin-top: 1.3vh;
        font-size: 3.59vw;
        line-height: 1.35;
    }

    .faq__list {
        gap: 0.95vh;
        margin-top: 3vh;
    }

    .faq__item {
        border-radius: 3.08vw;
    }

    .faq__question {
        min-height: 3.8vh;
        grid-template-columns: minmax(0, 1fr) 8.2vw;
        gap: 3.08vw;
        padding: 0 4.1vw;
        font-size: 3.3vw;
        line-height: 1.25;
    }

    .faq__item.is-active .faq__question {
        min-height: 4.8vh;
    }

    .faq__toggle {
        width: 8.2vw;
        height: 8.2vw;
    }

    .faq__toggle::before,
    .faq__toggle::after {
        width: 3.08vw;
        height: 0.51vw;
    }

    .faq__answer-inner {
        padding-left: 4.1vw;
        padding-right: 4.1vw;
    }

    .faq__answer-inner p {
        max-width: 100%;
        font-size: 3.85vw;
        line-height: 1.5;
    }
}
