.FAQ {
    display: flex;
    justify-content: center;
    align-items: center;

}
.FAQ_wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 60px;
    width: 100%;
}
.FAQ_title{
    margin-top: 32px;
    text-align: center;
    width: 683px;
    height: 137px;
    background: linear-gradient(
            145deg,
            #80E5FF 0px,
            #545C9E 60%,
            #545C9E 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 56px;
    letter-spacing: 2px;
    font-weight: 550;
}
.FAQ_title_h2{
    color: #545C9E;
    font-size: 20px;
    width: 451px;
    height: 14px;
    text-align: center;
}

/*.FAQ_Accordions_body{*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    flex-direction: column;*/
/*}*/
.FAQ_Accordions_body {
    width: 750px;
    margin: 30px;
}

.accordion {
    border-radius: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 730px;
    transition: background 0.3s ease;
}

.accordion:hover {
    background: rgba(255, 255, 255, 0.95);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    font-size: 16px;
}

.accordion-header .icon {
    color: #545C9E;
    font-weight: bold;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.accordion.active .accordion-header .icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 15px;
    color: #545C9E;
    line-height: 1.6;
    opacity: 0;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
}

.accordion.active .accordion-body {
    padding: 15px 20px;
    max-height: 500px; /* достаточно для текста */
    opacity: 1;
}

.FAQ_title_h3 {
    color: #465478;
    font-size: 16px;
    width: 690px;
    height: 24px;
}
.FAQ_line {
    display: block; /* обязательно, чтобы ширина и высота работали */
    width: 100%;    /* растягиваем на ширину родителя */
    height: 1px;
    background-color: rgba(84, 92, 158, 0.16);
    margin-top: -5px ;
    margin-bottom: 15px ;
}


/* Мобильные устройства (до 480px) */
@media (max-width: 480px) {
    .FAQ_wrapper {
        width: 100%;
        margin-top: 30px;
        padding: 0 15px; /* отступы от краев экрана */
    }

    .FAQ_title {
        width: 100%;
        font-size: 32px;
        height: auto;
        line-height: 1.2;
        margin-top: 20px;
    }

    .FAQ_title_h2 {
        width: 100%;
        font-size: 16px;
        height: auto;
    }

    .FAQ_Accordions_body {
        width: 100%;
        margin: 20px 0;
    }

    .accordion {
        width: 100%;
        padding: 0;
    }

    .accordion-header {
        padding: 12px 15px;
        font-size: 14px;
    }

    .accordion-body {
        font-size: 14px;
        padding: 10px 15px;
    }

    .FAQ_title_h3 {
        font-size: 14px;
        width: 100%;
        height: auto;
    }

    .FAQ_line {
        margin-top: -3px;
        margin-bottom: 10px;
    }
}

/* Планшеты (до 768px) */
@media (max-width: 768px) {
    .FAQ_wrapper {
        width: 100%;
        margin-top: 40px;
    }

    .FAQ_title {
        width: 100%;
        font-size: 42px;
        height: auto;
    }

    .FAQ_title_h2 {
        width: 100%;
        font-size: 18px;
    }

    .FAQ_Accordions_body {
        width: 100%;
        margin: 25px 0;
    }

    .accordion {
        width: 100%;
    }

    .accordion-header {
        padding: 15px 18px;
        font-size: 15px;
    }

    .accordion-body {
        font-size: 15px;
        padding: 12px 18px;
    }

    .FAQ_title_h3 {
        font-size: 15px;
        width: 100%;
    }

    .FAQ_line {
        margin-top: -4px;
        margin-bottom: 12px;
    }
}
