.slider-section {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    height: max-content;
}

/* Стили для блоков */
.slider-block {
    width: 40%; /* Два блока по 48% от ширины родителя, с учетом отступа */
    text-align: center;
    /* background-color: red; */
}
.readyHuouse-swiper-slide {
    height: 350px;
    cursor: grab;
}
.readyHuouse2,
.readyHuouse {
    position: relative;
}
.drag_hand {
    position: absolute;
    width: 45px;
    height: 45px;
    top: 10px;
    right: 10px;
    z-index: 100;
    filter: invert(100%);
    -webkit-filter: invert(100%);
    animation-name: drag_hand-move;
    animation: drag_hand-move 3s infinite;
    -webkit-animation: drag_hand-move 3s infinite;
}

.ready-houses-wrapper {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); */
    grid-template-columns: 0.8fr 0.8fr 1.4fr;

    gap: 20px;
}

.ready-houses-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    a {
        width: fit-content;
    }
}

.ready-houses-info ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    i {
        color: var(--green);
        font-size: 24px;
    }
}
.ready-houses-wrapper img {
    height: 320px;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}
@keyframes drag_hand-move {
    0% {
        transform: translateX(-5px);
        -webkit-transform: translateX(-5px);
        -moz-transform: translateX(-5px);
        -ms-transform: translateX(-5px);
        -o-transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
        /*движениевпротивоположнуюсторону*/
        -webkit-transform: translateX(20px);
        -moz-transform: translateX(5px);
        -ms-transform: translateX(5px);
        -o-transform: translateX(5px);
        -webkit-transform: translateX(5px);
    }
    100% {
        transform: translateX(-5px);
        -webkit-transform: translateX(-5px);
        -moz-transform: translateX(-5px);
        -ms-transform: translateX(-5px);
        -o-transform: translateX(-5px);
    }
}
.readyHuouse-swiper-slide img {
    object-position: center;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.slider-block .unique-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    height: 300px;
}

/* Стиль для подписи */
.slider-block .caption {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .slider-block .unique-slider {
        height: 200px;
    }
    .readyHuouse-swiper-slide {
        height: 220px;
    }
    .slider-section {
        flex-direction: column; /* В столбик на мобильных */
        align-items: center;
    }

    .slider-block {
        width: 100%; /* Полная ширина блока на мобильных */
        margin-bottom: 20px;
    }
    .house-call {
        margin: 0 auto;
    }
    .house-price {
        text-align: center;
    }
    .house-info2 ul li {
        text-align: center;
        margin-bottom: 0;
    }
    .house-info2 {
        max-width: unset !important;
    }
    .house-info2 p {
        text-align: center;
        text-wrap: balance;
    }
    .slider-section {
        gap: 0;
    }
}
/* modal */

.house-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 11000;
}

.house-modal.active {
    display: flex;
}

.house-modal__inner {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 30px;
    max-width: 1100px;
    width: 100%;
    position: relative;
    h2 {
        margin-bottom: 20px;
    }
}
.house-info2 {
    display: flex;
    justify-content: center;
    max-width: 300px;
    align-items: center;
}

.house-info2 a {
    width: fit-content;
}
.house-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 42px;
    background: none;
    border: none;
    cursor: pointer;
}

.house-content {
    display: flex;
    gap: 30px;
}

.house-slider {
    width: 55%;
    border-radius: 12px;
    overflow: hidden;
}

.house-slider img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.house-info {
    width: 45%;
    font-size: 16px;
    line-height: 1.6;
}

.house-info ul {
    padding-left: 0;
    margin-bottom: 20px;
}

.house-info ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.house-info ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: #22b62a;
    font-weight: 700;
    font-size: 16px;
}

.house-price {
    font-size: 22px;
    margin: 20px 0;
}

.house-call {
    display: inline-block;
    background: #4caf50;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.house-call:hover {
    background: #3e9f45;
}
/* Чтобы модалка влезала по высоте и скроллилась внутри */
.house-modal__inner {
    /* max-height: 90vh; */
    /* overflow-y: auto; */
}

/* Планшеты и ниже — картинка наверху, текст под ней */
@media (max-width: 992px) {
    .ready-houses-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .ready-houses-info ul {
        align-items: center;
        margin-bottom: 10px;
        li {
            text-align: center;
        }
    }
    .ready-houses-info {
        align-items: center;
    }
    .ready-houses-wrapper img {
        height: 250px;
    }

    .house-content {
        flex-direction: column;
    }
    .house-modal__inner h2 {
        text-wrap: balance;
    }

    .house-slider,
    .house-info {
        width: 100%;
    }

    .house-slider {
        max-height: 240px;
    }
}

/* Телефоны */
@media (max-width: 600px) {
    .house-modal {
        padding: 10px;
    }

    .house-modal__inner {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .house-modal__inner h2 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .house-content {
        gap: 18px;
    }

    .house-info {
        font-size: 14px;
        line-height: 1.5;
    }

    .house-info ul {
        margin-bottom: 12px;
    }

    .house-price {
        font-size: 18px;
        margin: 12px 0;
    }

    .house-call {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        border-radius: 8px;
    }

    .house-close {
        right: 12px;
        top: 10px;
        font-size: 44px;
    }
}
