/* ================================
   FAQ SECTION (FIXED)
================================ */

.faq_section {
    padding: 110px 0;
}

/* добавлен модификатор секции */
.faq_section--blue {
    background: #eaf6ff;
    margin-top: 50px;
}

.faq_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 42px;
}

.faq_item {
    background: #f3f9f8;
    border: 1px solid #d9ebf4;
    border-radius: 24px;
    overflow: hidden;
    transition: box-shadow 0.25s, border-color 0.25s, background-color 0.25s;
}

.faq_item:hover {
    border-color: #0086d5;
}

.faq_item.active {
    background: #ffffff;
    box-shadow: 0 16px 31px 0 rgba(168, 168, 168, 0.08);
}

/* фикс для blue версии */
.faq_section--blue .faq_item {
    background: #ffffff;
}

.faq_question {
    background: transparent;
    border: 0;
    color: #31414c;
    cursor: pointer;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    padding: 28px 32px;
    text-align: left;
    width: 100%;
    gap: 24px;
}

.faq_question span:first-child {
    display: block;
    flex: 1;
}

.faq_icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0086d5;
    position: relative;
    transition: transform 0.25s, background-color 0.25s;
}

.faq_icon:before,
.faq_icon:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

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

.faq_item.active .faq_icon {
    transform: rotate(45deg);
    background: #f02222;
}

.faq_answer {
    display: none;
}

.faq_answer_inner {
    border-top: 1px solid #e2edf3;
    color: #61727d;
    font-size: 18px;
    line-height: 1.55;
    padding: 28px 0;
    margin: 0 32px;
}

@media (max-width: 1024px) {
    .faq_section {
        padding: 90px 0;
    }

    .faq_list {
        margin-top: 32px;
    }

    .faq_question {
        font-size: 22px;
        padding: 24px;
    }

    .faq_answer_inner {
        font-size: 17px;
        margin: 0 24px;
        padding: 0 24px 24px;
    }
}

@media (max-width: 767px) {
    .faq_section {
        padding: 70px 0;
    }

    .faq_list {
        gap: 12px;
        margin-top: 24px;
    }

    .faq_question {
        font-size: 18px;
        line-height: 1.35;
        padding: 18px 18px 18px 20px;
        gap: 16px;
    }

    .faq_icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .faq_icon:before,
    .faq_icon:after {
        width: 14px;
    }

    .faq_answer_inner {
        font-size: 15px;
        line-height: 1.5;
        margin: 0 20px;
        padding: 10px 0px 20px;
    }
}
