.perfects5 {
    overflow: hidden;
}

.perfects5 .title {
    font-weight: 600;
    font-size: 48px;
    line-height: 54px;
    text-align: left;
}

.perfects5 .description {
    font-weight: 400;
    font-size: 22px;
    line-height: 34px;
    letter-spacing: 0.01em;
    text-align: left;

}

.perfects5 .items {
    position: relative;
    width: 100%;
    display: flex;
    gap: 30px;
}

.perfects5 .items_left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.perfects5 .items_center {}

.perfects5 .items_right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.perfects5 .item {
    flex: 1 1 0;
    border: solid #d4def9 1px;
    border-radius: 30px;
}

.perfects5 .item_content {
    box-sizing: border-box;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 24px;
    border-radius: 30px;
    min-height: 300px;
    background: #fff;
    height: 100%;
    justify-content: start;
}


.perfects5 .item_1 {}

.perfects5 .item_2 {}

.perfects5 .item_3 {}

.perfects5 .item_3 .item_content {
    min-height: 450px;
}

.perfects5 .item_4 {
    width: 110%;
    padding-top: 20px;

}

.perfects5 .item_5 {}



.perfects5 .image {
    width: 100%;
    aspect-ratio: 1/1;
}

.perfects5 .image img {
    width: 100%;
    height: 100%;
    /* или установите фиксированную высоту */
    aspect-ratio: 1/1;
    /* делает элемент квадратным */
    border-radius: 30px;
    object-fit: cover;
}

.perfects5 .text {
    font-weight: 400;
    font-size: 18px;
    line-height: 115.04%;
    letter-spacing: 0.02em;
    color: #032279;
    text-align: left;
    width: 100%;
    padding: 0px 20px 20px 20px;
}

.perfects5 .text_title {
    font-weight: 600;
    font-size: 28px;
    line-height: 110%;
    text-transform: capitalize;
    color: #032279;
    text-align: left;
    width: 100%;
    padding: 0px 20px;
}



/*313/289*/
@media (max-width: 991px) {
    .perfects5 .title {
        font-size: 30px;
        line-height: 34px;
        padding-bottom: 0px;
        font-weight: 600;
    }

    .perfects5 .description {
        font-size: 18px;
        line-height: 24px;
    }

    .perfects5 .items_scroll {
        overflow-x: scroll;
    }


    .perfects5 .items {
        flex-direction: row;
        width: max-content;
    }

    .perfects5 .text_title {
        font-size: 22px;
        line-height: 28px;
        min-height: auto;
    }



    .perfects5 .item_content {
        padding: 0;
        gap: 10px;
        border-radius: 30px;
        min-height: 180px;
        max-width: 300px;
    }

    .perfects5 .text {
        text-align: left;
        font-weight: 400;
        font-size: 16px;
        line-height: 22px;

    }

    .perfects5 .item_3 .item_content {
        min-height: 300px;
    }

    .perfects5 .image img {
        border-radius: 14px;
    }

    .perfects5 .image {}

    .perfects5 .item_3 {
        padding-top: 50px;
    }

    .perfects5 .item_4 {
        width: 100%;
        padding-top: 0px;
    }

    .perfects5 .btn3 {
        width: 100%;
        justify-content: center;
    }
}
