.block {
    min-width: 0;
}

.inner {
    max-width: 92%;
}


@media screen and (max-width: 1115px) {

    .image_block {
        flex-direction: column;
        max-width: 800px;
        margin: 0 auto;
    }

    .main_image {
        flex: auto;
        width: 100%;
        margin-bottom: 10px;
    }

    .right_images {
        row-gap: 0;
        flex: auto;
    }

    .right_little_img {
        row-gap: 0;
        column-gap: 0;
        justify-content: space-between;
    }

    .right_little_img img {
        min-width: 0;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 1024px) {

    .icon_block .icon_text {
        width: calc(100% - 34px);
    }

}


@media screen and (max-width: 820px) {


    .header .inner {
        /*flex-direction: column;*/
        /*justify-content: center;*/
        /*align-items: center;*/

        justify-content: space-between;
    }

    header .come_to_us {
        width: 48%;
    }

    header .contacts {
        width: 48%;
    }

    header .icon_block.phones {
        justify-content: end;
    }

    #logo {
        order: -1;
        width: 100%;
        margin-left: 0;
        text-align: center;
        margin-bottom: 25px;
    }

    .triggers_item {
        width: 48%;
        margin-bottom: 4%;
    }


    .apartments .apartment_card {
        right: -1px;
        bottom: auto;
        padding: 30px 20px;
        position: fixed;
        top: 0;
    }


    .about_item {
        flex-direction: column;
    }

    .about_item_title {
        width: 100%;
        margin-bottom: 10px;
    }

    .about_item_text {
        width: 100%;
        margin-bottom: 10px;
    }


    #map {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    #map iframe {
        order: -1;
    }

    .map_info {
        position: static;
        padding: 30px 20px;
        width: fit-content;
        margin: -140px auto 0;
    }


    .news {
        width: 48%;
    }

    footer .phone {
        font-size: 16px;
    }

    footer .menu_1 {
        margin-right: 40px;
    }


    footer .right {
        width: 40%;
    }

}


@media screen and (max-width: 640px) {
    .inner {
        max-width: 96%;
    }

    .come_to_us {
        display: none;
    }

    .contacts {
        display: none;
    }

    #logo {
        margin-bottom: 0;
    }


    nav ul {
        width: 100%;
        /*height: 100vh;*/
        overflow: auto;
        display: flex;
        scroll-snap-type: y mandatory; /* Scroll snapping vertically */
    }


    nav ul li {
        display: flex;
        align-items: center;
        justify-content: center;
        scroll-snap-align: start; /* Snap items to the start of the container */
    }

    nav a {
        display: flex;
        height: 100%;
        align-items: center;
        padding: 15px 12px;
        white-space: nowrap;
        font-size: 15px;
    }

    .reason_item {
        width: 48%;
    }


    footer .top {
        flex-direction: column;
    }

    footer .right {
        width: 100%;
        order: -1;
        margin-bottom: 40px;
    }

    footer .bottom {
        margin-top: 30px;
        flex-direction: column;
        align-items: flex-start;
    }

    .all_right_ok {
        margin-right: 0;
        margin-bottom: 10px;
    }


    .apartment_card .apartment_card_top {
        flex-direction: column;
        width: 300px;
    }

    .apartment_card .apartment_card_info {
        width: 100%;
        order: 2;
    }

    .apartment_card .apartment_card_image {
        margin-left: 0;
        width: 100%;
        margin-bottom: 15px;
    }
}


@media screen and (max-width: 480px) {


    .news {
        width: 100%;
    }

    #gallery {
        display: flex;
        align-items: center;
    }

    #gallery::before {
        display: none;
    }

    #go_left, #go_right {
        top: auto;
        bottom: 18%;
    }
}


@media screen and (max-width: 425px) {
    .reason_item {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 340px) {
    .apartment_card .apartment_card_top {
        max-width: 260px;
    }
}


