.endo-faq {
    position: relative;
    padding: clamp(72px, 8vw, 112px) 0;
    overflow: hidden;
    background: #fff;
}

.endo-faq .container {
    width: min(1058px, calc(100% - 48px));
    margin-inline: auto;
}

.landing .endo-faq[data-endo-snap-section] {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
}

.endo-faq__layout {
    display: grid;
    grid-template-columns:
        minmax(320px, 350px) minmax(0, 1fr);
    gap: clamp(42px, 5vw, 64px);
    align-items: start;
}

/* Intro */

.endo-faq__intro {
    position: relative;
    display: flex;
    min-width: 0;
    width: 100%;
    height: 488px;
    padding: 38px;
    overflow: hidden;
    align-items: center;
    border-radius: 30px;
    background:
        url("../../images/components/faq/faq-background.svg") center / cover no-repeat;
}

.endo-faq__intro::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, .02) 0%,
            rgba(0, 0, 0, .16) 100%);
    pointer-events: none;
    content: "";
}

.endo-faq__intro-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 285px;
}

.endo-faq__title {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 3.2vw, 43px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.endo-faq__description {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .94);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.48;
}

/* Accordion */

.endo-faq__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.endo-faq__item {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background: var(--soft);
    transition:
        background-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.endo-faq__item[open],
.endo-faq__item.is-open,
.endo-faq__item.is-opening {
    background: #f3f3f3;
}

.endo-faq__question {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 66px;
    padding: 20px 28px 20px 34px;
    color: var(--blue);
    cursor: pointer;
    list-style: none;
}

.endo-faq__question::-webkit-details-marker {
    display: none;
}

.endo-faq__question::marker {
    content: "";
}

.endo-faq__question:focus-visible {
    outline: 3px solid rgba(0, 61, 196, .18);
    outline-offset: -4px;
    border-radius: 24px;
}

.endo-faq__question-text {
    max-width: 560px;
    color: var(--blue);
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -.015em;
}

.endo-faq__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    color: rgba(10, 10, 10, .68);
    font-family: inherit;
    font-size: 0;
    font-variation-settings: normal;
    transition:
        color .22s ease,
        transform .3s cubic-bezier(.22,
            1,
            .36,
            1);
}

.endo-faq__icon::before {
    color: inherit;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    content: "+";
}

.endo-faq__item[open] .endo-faq__icon::before,
.endo-faq__item.is-open .endo-faq__icon::before,
.endo-faq__item.is-opening .endo-faq__icon::before {
    content: "−";
}

/* Answer */

.endo-faq__answer {
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.endo-faq__answer-inner {
    padding: 0 72px 28px 34px;
}

.endo-faq__answer p {
    max-width: 570px;
    margin: 0;
    color: rgba(10, 10, 10, .78);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.endo-faq__item[open] .endo-faq__answer,
.endo-faq__item.is-open .endo-faq__answer,
.endo-faq__item.is-opening .endo-faq__answer,
.endo-faq__item.is-closing .endo-faq__answer {
    height: auto;
    opacity: 1;
}

.endo-faq__item[open] .endo-faq__question,
.endo-faq__item.is-open .endo-faq__question,
.endo-faq__item.is-opening .endo-faq__question {
    padding-bottom: 10px;
}

.endo-faq__item.is-opening .endo-faq__answer,
.endo-faq__item.is-closing .endo-faq__answer {
    overflow: hidden;
}

@media (hover: hover) {
    .endo-faq__intro::before {
        transition: background-color .3s ease;
    }

    .endo-faq__intro:hover::before {
        background:
            linear-gradient(180deg,
                rgba(0, 0, 0, .04) 0%,
                rgba(0, 0, 0, .22) 100%);
    }

    .endo-faq__item:hover {
        background: #f0f0f0;
        transform: translateY(-1px);
    }

    .endo-faq__question:hover .endo-faq__icon {
        color: var(--blue);
    }
}

/* Product integration */

body.single-endo_product .endo-faq {
    padding-top: clamp(82px, 9vw, 120px);
    background: #fff;
}

body.single-endo_product .endo-product-related+.endo-faq {
    border-top: 0;
}

/* Responsive */

@media (max-width: 900px) {
    .endo-faq__layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .endo-faq__intro {
        height: 440px;
    }

    .endo-faq__intro-content {
        max-width: 430px;
    }

    .endo-faq__title {
        max-width: 380px;
    }

    .endo-faq__description {
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .endo-faq {
        padding: 60px 0;
    }

    .endo-faq .container {
        width: min(100% - 28px, 1058px);
    }

    .landing .endo-faq[data-endo-snap-section] {
        min-height: auto;
    }

    .endo-faq__intro {
        height: 390px;
        padding: 28px;
        border-radius: 24px;
    }

    .endo-faq__title {
        font-size: 34px;
    }

    .endo-faq__description {
        margin-top: 18px;
        font-size: 14px;
    }

    .endo-faq__items {
        gap: 10px;
    }

    .endo-faq__item {
        border-radius: 22px;
    }

    .endo-faq__question {
        gap: 18px;
        min-height: 64px;
        padding: 18px 20px;
    }

    .endo-faq__item[open] .endo-faq__question,
    .endo-faq__item.is-open .endo-faq__question,
    .endo-faq__item.is-opening .endo-faq__question {
        padding-bottom: 8px;
    }

    .endo-faq__question-text {
        font-size: 14px;
    }

    .endo-faq__icon {
        width: 25px;
        height: 25px;
    }

    .endo-faq__icon::before {
        font-size: 22px;
    }

    .endo-faq__answer-inner {
        padding: 0 54px 22px 20px;
    }

    .endo-faq__answer p {
        font-size: 13px;
        line-height: 1.55;
    }
}

@media (prefers-reduced-motion: reduce) {

    .endo-faq__intro::before,
    .endo-faq__item,
    .endo-faq__icon {
        transition: none;
    }
}