/* Smart House page-specific styles. Loaded only by smart_house.php. */

.smart-house {
    --sh-benefits-bg: #F2F3F5;
    --sh-text: #000;
    --sh-control-hover-bg: #fff;
    --sh-pagination-bullet-bg: #D9D9D9;
}

body.theme-dark .smart-house {
    --sh-benefits-bg: #2A2A31;
    --sh-text: #F4F6FA;
    --sh-control-hover-bg: rgba(255, 255, 255, 0.08);
    --sh-pagination-bullet-bg: #3A4150;
}

.smart-house__section-benefits {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: first baseline;
    margin-bottom: 91px;
    padding: 34px 0;
    width: 1360px;
}

.smart-house__section-benefits::before {
    content: "";
    position: absolute;
    background-color: var(--sh-benefits-bg);
    bottom: 0;
    top: 0;
    width: calc(100vw + 20px);
    z-index: -1;
    left: calc(-50vw + 50%);
}

.smart-house__section-benefits-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.smart-house__section-benefits-item:not(:last-child) {
    margin-right: 70px;
}

.smart-house__section-benefits-item {
    width: 280px;
}

.smart-house__section-benefits-item:nth-child(2) {
    width: 305px;
}

.smart-house__section-benefits-item-image {
    margin-bottom: 9px;
}

.smart-house__section-benefits-item-title {
    font-size: 20px;
    line-height: 125%;
    font-weight: 600;
    color: var(--sh-text);
    margin-bottom: 19px;
    text-align: center;
    height: 50px;
}

.smart-house__section-benefits-item-text {
    font-size: 16px;
    line-height: 125%;
    font-weight: 400;
    color: var(--sh-text);
    text-align: center;
}

@media (max-width: 1450px) {
    .smart-house__section-benefits {
        width: 100%;
        margin-bottom: 80px;
    }

    .smart-house__section-benefits::before {
        left: calc(-50vw + 50%);
    }

    .smart-house__section-benefits-item:not(:last-child) {
        margin-right: 0;
    }

    .smart-house__section-benefits-item {
        width: 250px;
    }

    .smart-house__section-benefits-item:nth-child(2) {
        width: 270px;
    }
}

@media (max-width: 1111px) {
    .smart-house__section-benefits {
        margin-bottom: 60px;
    }

    .smart-house__section-benefits-item-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .smart-house__section-benefits-item-text {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .smart-house__section-benefits {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-bottom: 40px;
    }

    .smart-house__section-benefits-item:nth-child(2),
    .smart-house__section-benefits-item {
        margin-right: 0;
        width: calc(50% - 50px);
    }
}

@media (max-width: 660px) {
    .smart-house__section-benefits {
        flex-direction: column;
        align-items: center;
        margin-bottom: 22px;
        overflow: hidden;
    }

    .smart-house__section-benefits-item-title {
        font-size: 20px;
    }

    .smart-house__section-benefits-item-text {
        font-size: 16px;
    }

    .smart-house__section-benefits-item {
        width: 280px;
    }

    .smart-house__section-benefits-item:nth-child(2) {
        width: 305px;
    }
}

.smart-house__section-slider-list-btns {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
}

.smart-house .swiper-button-prev,
.smart-house .swiper-button-next {
    position: -ms-page;
    top: calc(50% + 13px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-house .swiper-button-prev:hover,
.smart-house .swiper-button-next:hover {
    background-color: var(--sh-control-hover-bg);
}

.smart-house .swiper-button-prev svg,
.smart-house .swiper-button-next svg {
    width: 15px;
    height: 15px;
}

.smart-house .swiper-button-prev.swiper-button-disabled,
.smart-house .swiper-button-next.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}


.smart-house .swiper-button-prev {
    left: -22px;
}

.smart-house .swiper-button-next {
    right: -22px;
}

.smart-house .swiper-pagination-custom {
    bottom: 21px;
}

.smart-house .swiper-pagination-bullet::before {
    display: none;
}

.smart-house .swiper-pagination-bullet {
    margin: 0 2.5px !important;
    background-color: var(--sh-pagination-bullet-bg);
    width: 20px;
    height: 20px;
}

.smart-house .swiper-pagination-bullet.swiper-pagination-bullet-active::before,
.smart-house .swiper-pagination-bullet:hover::before {
    background-color: var(--sh-pagination-bullet-bg);
}