@media(max-width:769px) {
    .wrapper {
        margin: 0 auto !important;
        width: 90%;
    }

    .apartment-item{
        width: 47% !important;
    }

    .apartment-item img {
        min-height: 160px !important;
    }

    .apartment-info{
        gap: 0 .5em !important;
    }

    .modal-content{
        width: 95% !important;
        height: 100% !important;
        max-height: 90% !important;

    }

    .close{
        width: 20px !important;
        height: 20px !important;
    }

    .modal-header-top, .close {
        top: -4% !important;
        right: 2% !important;
    }

    #modal-filter-form {
        display: flex;
        gap: .5em !important;
        align-items: center;
        flex-wrap: wrap;
    }

    select {
        width: 31%;
    }

    /* Скрываем все ссылки пагинации */
    .pagination li {
        display: none;
    }

    /* Оставляем только первые две, последние две и, скажем, ссылку на текущую страницу */
    .pagination li:first-child,
    .pagination li:nth-child(2),
    .pagination li:nth-last-child(2),
    .pagination li:last-child,
    .pagination li.active {
        display: inline-block;
    }



    .header-black {
        background-color: #002d25 !important;
    }

    .btn {
        font-size: 0.8rem;
    }

    .map iframe {
        width: 100% !important;
    }

    .project-buttons {
        display: flex;
        justify-content: space-evenly;
    }

    .swiper-container {
        width: 94% !important;
    }

    .gallery-swiper {
        width: 95% !important;
    }

    .material_item {
        width: 90%;
    }

    .media-posts {
        margin-top: 3em !important;
    }

    .container_projects {
        flex-direction: column;
    }

    .section_title {
        font-size: 32px;
        margin-top: 2em;
    }

    .project_item {
        width: 100%;
    }

    .header__hamburger {
        flex-direction: row;
        width: 30%;
    }

    .header__logo img {
        transform: none !important;
    }

    .header__logo {
        left: 72% !important;
    }

    .about_container {
        flex-direction: column;
    }

    .left {
        width: 100%;
    }

    .right {
        width: 100%;
    }

    section.section {
        height: auto;
    }

    .benefits_container {
        height: auto;
    }

    .benefit_item {
        width: 50%;
    }

    .flex-def {
        flex-direction: column;
    }

    .btn {
        margin: 1em auto !important;
    }
}

@media screen and (min-width: 1441px) {
    .wrapper {
        width: 80%;
    }

    .slider-wrapper {
        position: relative;
        margin: 0 auto;
        overflow: hidden;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        width: 100%;
        height: 70vh;
        min-width: 100% !important;
    }

    .item-slider img{
        height: auto !important;
    }

}