.faq {
    position: relative;
    z-index: 1;
}

.faq__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.faq__bg::before {
    content: "";
    box-shadow: inset 0 0 5rem 10rem #fff;
    position: absolute;
    inset: 0;
    z-index: 2;
}

.faq__bg.active {
    opacity: 1;
}

.faq__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq__text {
    color: var(--color-gray);
}

.faq__list {
    gap: 2rem;
    max-width: 70rem;
    margin-inline: auto;
}

.faq-item {
    padding: 4rem;
    cursor: pointer;
}

.faq-item * {
    cursor: pointer;
}

.faq-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.faq-item__icon {
    flex: 0 0 auto;
    width: 2.4rem;
    transition: 0.3s;
}

.faq-item.active .faq-item__icon {
    rotate: 180deg;
}

.faq-item__content {
    overflow: hidden;
    max-height: 0;
}

.faq-item__text {
    gap: 2rem;
    padding-top: 2rem;
}

.faq-item__text::before {
    content: "";
    flex: 0 0 auto;
    display: block;
    width: 100%;
    height: 0.1rem;

    background: linear-gradient(90deg, 
        #5B9EFF 0%,
        #8B5EFF 33%,
        #FF6B4A 66%,
        #FFD700 100%
    );
}

@media screen and (max-width: 575.9px) {
    .faq-item__text {
        padding-top: 1.5rem;
    }
}