/* Базовий контейнер секції */
.reasons {
    color: #262626;
    padding-top: 60px;
    box-sizing: border-box;
}

/* Головний заголовок секції */
.reasons__title {
    font-size: 38px;
    font-style: italic;
    line-height: 1.7;
    color: #444;
    text-align: center;
}

/* --- Блок з однією причиною --- */

/* Контейнер для одного ряду (одна причина) */
.reasons__box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
}

/* Модифікатор для 5-го блоку (прибирає нижній відступ) */
.reasons__box-5 {
    margin-bottom: 0;
}

/* Ліва колонка в блоці (часто для фото) */
.reasons__box-left {
    display: flex;
    width: 50%;
    flex-direction: column;
    justify-content: center;
    max-height: 400px;
    margin-right: 15px;
}

/* Права колонка в блоці (часто для тексту) */
.reasons__box-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 400px;
    margin-left: 15px;
}

/* Модифікатор для правої колонки (вирівнювання?) */
.reasons__box-right-margin {
    margin-left: auto;
}

/* Заголовок у правій колонці */
.reasons__box-right-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 30px;
    z-index: 1;
    /* Поверх фонових зображень */
    line-height: 1.1;
}

/* Текст у правій колонці */
.reasons__box-right-text {
    font-size: 18px;
    line-height: 1.5;
    z-index: 1;
    /* Поверх фонових зображень */
}

/* --- Елементи з фото --- */

/* Контейнер для фото в лівій колонці */
.reasons__box-left-foto {
    display: block;
}

.reasons__box-left-foto img {
    display: block;
    width: 400px;
    border-radius: 14px;
}

/* Модифікатор для фото в лівій колонці */
.reasons__box-left--foto img {
    width: 100%;
    height: auto;
    z-index: -1;
    /* Ховається за фон */
}

/* Окремий елемент фото (можливо, в правій колонці?) */
.reasons__box-foto {
    z-index: -1;
    /* Ховається за фон */
}

/* Модифікатор для фото з відступом */
.reasons__box-foto-margin {
    display: block;
    width: 470px;
    padding: 0;
    margin-left: auto;
    z-index: -1;
    /* Ховається за фон (дублює .reasons__box-foto) */
}

/* --- Фонові зображення (декорації) --- */

/* Базовий клас для фонових картинок */
.bg_images {
    position: absolute;
    bottom: 0;
    z-index: 0;
    /* Між фоном та текстом */
}

.bg_images-1 {
    left: 32%;
    width: 250px;
}

.bg_images-2 {
    left: 48%;
}

.bg_images-3 {
    left: 24%;
    bottom: -40px;
}

.bg_images-4 {
    left: 50%;
    transform: translateX(-50%);
    bottom: -2px;
}

.bg_images-5 {
    left: 22%;
    bottom: -23px;
}









@media only screen and (max-width: 1200px) {
    .reasons__title {
        font-size: 26px;
        margin-bottom: 0;
    }
    .reasons__box-foto-margin {
        margin: auto;
        width: 100%;
    }
    .reasons__container {
        margin-top: 20px;
    }

    .reasons {
        padding: 50px 20px;
    }

    .reasons__box-left-foto img {
        width: 100%;
    }

    .bg_images-1 {
        max-width: 200px;
    }

    .reasons__box-right-title {
        font-size: 22px;
    }

    .reasons__box-right-text {
        font-size: 17px;
    }

    .reasons__box-right {
        padding-right: 20px;
    }

    .reasons__box-left {
        padding-left: 20px;
    }

    .bg_images-2 {
        max-width: 200px;
    }

    .bg_images-3 {
        bottom: -0px;
        max-width: 350px;
    }

    .bg_images-4 {
        bottom: 0px;
        max-width: 350px;
    }

    .bg_images-5 {
        bottom: 0px;
        max-width: 350px;
    }

    .reasons__box-right {
        padding-right: 20px;
        overflow: hidden;
        border-radius: 6px;
    }

    .reasons__box-foto {
        width: 400px;
        display: block;
        overflow: hidden;
        max-height: 350px;
        border-radius: 6px;
    }
}

@media only screen and (max-width: 991px) {
    .reasons__box {
        margin-bottom: 30px;
        display: flex;
        flex-direction: column-reverse;
    }

    section {
        padding: 40px 0;
        padding-bottom: 10px;
    }

    .reasons__box-2,
    .reasons__box-4 {
        flex-direction: column;
    }

    .reasons__box-right-title {
        margin-bottom: 5px;
    }

    .reasons__box-left {
        width: 100%;
    }

    .reasons__box-left-foto {
        display: block;
        margin: auto;
    }

    .reasons__box-right-title {
        font-size: 26px;
        text-align: center;
    }

    .reasons__box-right {
        width: 100%;
        padding: 10px 20px;
        margin: 0;
    }

    .reasons .main-title {
        font-size: 24px;
        padding: 0 15px;
    }

    .reasons__box-right {
        margin: 15px 0;
        border-radius: 6px;
        display: block;
    }

    .bg_images {
        display: none;
    }

    .reasons__box-foto {
        display: block;
        margin: auto;
    }

    .reasons__box-left-foto img {
        width: 350px;
        display: block;
        margin: auto;
    }
}

@media only screen and (max-width: 600px) {
    .reasons__box {
        margin-bottom: 30px;
    }
    .reasons {
        padding: 30px 15px;
    }

    .reasons__box-right-title {
        font-size: 22px;
    }
    .reasons__box:last-of-type {
        margin-bottom: 0px;
    }

    .reasons .main-title {
        font-size: 20px;
    }

    .reasons__box-right-text {
        text-align: center;
        line-height: 1.6;
        font-size: 18px;
    }

    .reasons__box-left {
        margin-right: 0;
        justify-content: center;
    }

    .reasons__box-left {
        padding: 0 3px;
    }

    .reasons__box-right {
        padding: 0 3px;
    }

    .reasons__box-left-foto img {
        width: 300px;
        display: block;
        margin: 5px auto;
    }

    .reasons__box {
        padding: 0;
    }
}

@media only screen and (max-width: 360px) {
    .reasons__container {
        margin-top: 30px;
    }
}
