.title__house{
	width: 1px;
	height: 1px;
	overflow: hidden;
	position: absolute;
	margin: -1px;
	 padding: 0;
    clip: rect(0 0 0 0); /* для старых браузеров */
    clip-path: inset(100%); /* для новых */
    white-space: nowrap;
    border: 0;
}
/*цвет полосе над img*/
 .product_title {
     background-color: #ffc20e;
     padding: 10px;
     color: #6c757d;
 }
 /*радиус полосе*/
 .product_title.m-0.col{
      border-left: 1px solid #111;
     border-top: 1px solid #111;
     border-top-left-radius: 10px;
 }
 .product_title.col-auto{
     border-right: 1px solid #111;
     border-top: 1px solid #111;
     border-top-right-radius: 10px;
 }

/*основное изображение---------------*/
/*блок*/
.preview.pb-2{
    background-color: #f1f1f1;
}
div.main-image,
div.main__image-auto{
	overflow: hidden;
   border-left: 1px solid #222;
   border-right: 1px solid #555;
   border-bottom: 1px solid #555;
   border-radius: 0 0 10px 10px;
 }
 div.main-image.main__image-auto{
    max-height: 100%;
 }
 /*для вертикальных изображений*/
 .main-image.forVertical{
    max-width: max-content;
    margin: 0 auto;
 }
 /*основное изображение*/
 .main-image img {
 	  width: 100%;
 	  height: 100%;
 	  object-fit: cover;
     transition: transform 0.5s;
     cursor: pointer;
     border-radius: 0 0 10px 10px;
 }
 /*расширение img на 80% при клике*/
 .main-image img.enlarged {
     position: fixed;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     width: 100vw;
     height: 100vh;
     object-fit: contain;
     background-color: #e8e5e5a6;
     z-index: 1020;
 }
 /*обёртка минимальных img*/
.gallery{
  gap: 1px;  
}
 /*каталог мини img под основным img*/
    .img-thumbnail {
        height: 86px;
        border: 1px solid #999;
        margin-top: 0;
        padding: 0;
        width: 24.8%;
        object-fit: cover;
        cursor: pointer;
}
/*кнопка показать ещё под мини img*/
.show__more-btn{
  margin: 10px auto 0 auto;
  padding: 8px 12px;
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  display: none;
  transition: all 0.2s ease-in;
}
.show__more-btn:hover{
    background-color: #0b5ed7
}
/*центрируем иконки в блоке о хар-ах*/
    .p-2{
        flex: 0 0 auto;
        text-align: center;
    }
 /*кнопка(форма) серого фона*/
    .btn.btn-secondary{
        max-width: 277px;
        width: 100%;
    }
    /*отступы в тексте формы*/
    .col-12 span{
        display: block;
        line-height: 115%;
    }
    .headers_site {
        font-weight: 700;
        color: #3989ad;
    }
/*для таблиц, текст идёт по поверхности*/
table tr{
  vertical-align: baseline;
}
/*первая таблица(стоимость)------------------------------*/
table.table.p-0{
	text-align: right;
  }
table.table.img-fluid{
   width: 98%;
   height: 197.94px;
   object-fit: cover;
}
 /*цвет для таблицы и для блока*/
  table.table.pb-2 .price_color,
  div.table.pb-2 .price_color {
     color: #01a652;
     font-weight: 600;
 }
/*так же цвет для таблицы и блока*/
     table.table.pb-2 .price_color_old,
     div.table.pb-2 .price_color_old {
        color: #ffc20e;
        font-weight: 600;
    }
    div.table.pb-2 strong,
    div.table.pb-2 a,
    div.table.pb-2 span{
        background-color: transparent;
    }
    /*нижняя полоса для верхней табл*/
    div.table.pb-2>div{
        border-bottom: 1px solid #e8e5e5;
        padding: 7px 0;
    }
    div.table.pb-2>div:hover{
        background-color: #e8e5e5;
    }
    /*скрываем нижнюю таблицу div*/
    div.table.pb-2{
        display: none;
    }

/*4 лого----------*/
    .social-links a {
        font-size: 1.4rem;
        display: inline-block;
        margin-right: 10px;
        color: #3989ad;
    }
    .social-links a:hover {
        color: #01a652;
    }
    .btn-outline-secondary {
        border-color: #3989ad;
        color: #3989ad;
    }

    .btn-outline-secondary:hover {
        background-color: #3989ad;
        color: white;
    }

    .container-img-bg-color {
        background-color: #ffc20e;
        padding: 10px 0;
        color: #03753a;
    }

/*полоса слайдера----*/
 .d-flex.flex-nowrap{
     display: flex;
 }
 /*элементы слайдера*/
 .card-wrapper{
     flex: 0 0 calc(25% - 11.25px);
     margin-right: 15px;
     scroll-snap-align: start;
	background: white;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
 }
 .card-wrapper:last-child {
     margin-right: 0;
 }
 .card {
     height: 100%;
     display: flex;
     flex-direction: column;
     border: 1px solid #e0e0e0 !important;
     border-radius: 10px;
     overflow: hidden;
     transition: transform 0.2s, box-shadow 0.2s;
 }
 .card:hover {
     transform: translateY(-5px);
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 }
 /*изображение в слайде*/
 .card-img-top {
     height: 200px;
     object-fit: cover;
 }
.card-img-top img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    touch-action: none;">
}
.card-body {
     flex-grow: 1;
     display: flex;
     flex-direction: column;
     padding: 15px;
 }

 .card-text {
     flex-grow: 1;
     color: #333;
 }
.scrolling-wrapper {
overflow-x: auto;
scroll-behavior: smooth;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
flex: 1;
}

.scrolling-wrapper::-webkit-scrollbar {
display: none;
}
.scroll-btn {
 width: 40px;
 height: 40px;
 padding: 0;
 display: inline-flex;
 align-items: center;
 justify-content: center;
}

/* Оптимизация для мобильных */
.card-img-top {
 -webkit-backface-visibility: hidden;
 backface-visibility: hidden;
 transform: translateZ(0);
 will-change: transform;
}
.grid-slider {
display: grid;
grid-auto-flow: column;
grid-auto-columns: calc((100% - 3 * 15px) / 4); /* 4 карточки + 3 gap */
gap: 15px;
scroll-snap-align: start;
}

/*вторая таблица(тарифы)------------------------------*/
table#tarify tr:first-child td h3 span {
     display: block;
     font-weight: 300;
     font-size: 14px;
     text-transform: none;
 }

 table#tarify tr:first-child td h3 {
     font-weight: 900;
     font-size: 19px;
     text-transform: uppercase;
     margin-bottom: 0;
     margin-top: 5px;
     height: 55px;
     position: relative;
     z-index: 1;
 }
 table .sppb-title-heading {
     padding: 20px 10px;
     font-size: 13px;
     font-weight: 300;
     text-transform: none;
     color: #1e223f;
 }
 table#tarify>thead>tr>td:nth-child(3){
 	padding: 0 5px !important;
 }
.images_1 {
   width: 100%;
   height: 170px;
   object-fit: cover;
}
/*табл(div)*/
 div#tarify .img-fluid{
     width: 100%;
     height: auto;
     padding: 0.5rem 0;
 }
 div#tarify .p-0>div:nth-of-type(odd){
     --bs-table-color-type: var(--bs-table-striped-color);
     --bs-table-bg-type: var(--bs-table-striped-bg);
     box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
 }
 div#tarify .p-0>div:hover {
 --bs-table-color-state: var(--bs-table-hover-color);
 --bs-table-bg-state: var(--bs-table-hover-bg);
 }
 div#tarify .p-0{
     text-align: left;
 }
 div#tarify h3{
    font-weight: 600;
 }
 div#tarify .p-0 > div:nth-child(4) strong{
    display: block;
 }
 /*прозрачность на фона нижней табл div*/
 .sppb-title-heading{
     background-color: transparent;
 }
 /*выход из потока нижней табл*/
 div#tarify{
     display: none;
 }

@media(max-width: 1105px){
/*скрываем верхнюю табл. <table>*/
table.table.pb-2{
   display: none;
	}
/*и показываем нижнюю <div>*/
div.table.pb-2{
   display: block;
	}
}
@media(max-width: 991px){
        /*тентрируем материал------*/
        .container>.row.d-flex{
            flex-direction: column;
            align-items: center;
        }
        .product_info_block{
        		display: flex;
    			justify-content: space-between;
    			flex-wrap: wrap;
        }
        /*расширение верхнего контента в котором находятся img*/
        .col-md-6.gx-3{
            width: 80%;
        }
        /*уменьшаем ширину элементов слайда*/
        .card-wrapper {
            flex: 0 0 calc(33.333% - 11.25px);
        }
        /*скрываем верхнюю табл. <table>*/
        table#tarify{
            display: none;
        }
        /*и показываем нижнюю <div>*/
        div#tarify{
            display: block;
        }
        div.table-responsive{
        	padding: 0 15%;
        }
}

@media (max-width: 768px) {
    /*лого расширяем в хар-ках*/
    .product_info_block>.d-flex{
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
     /*уменьшаем шинину элементов слайда*/
     .card-wrapper {
        flex: 0 0 calc(50% - 11.25px);
        /* margin-right: 15px; */
    }
    /*изменение межстрочного интервала в нижней табл*/
    div#tarify p, div#tarify strong{
        display: block;
        line-height: 125%;
    }
}
@media (max-width: 576px){
	h2.product_title{
		font-size: calc(1rem + .9vw);
	}
	.product_info_block ul{
		text-align: left;
	}
    /*мини изображения, под основным БОЛЬШИМ IMG*/
    .img-thumbnail{
        width: 33.1%;
    }
    /*верхний табл становится вертикально тега <div>*/
     div.table.pb-2>div>div{
        display: grid;
     }
     /*верхний*/
     div.table.pb-2>div>div>strong,
     div.table.pb-2>div>div>a, div.table.pb-2>div>div>span{
        padding: 0;
     }
      /*кнопка(форма) серого фона*/
    .btn.btn-secondary{
        display: flex; 
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }
    .info_block.pb-3,
    .container.row.g-2,
    .d-flex.py-2{
        text-align: center;
    }
    /*икона мобил.телефона на кнопке*/
     #graph{
        float: none !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
    }
    /*сближаем текст в описание дома*/
    .col>.d-flex.py-2+p{
        line-height: 120%;
    }
    /*выравнимаем заголовки элементов*/
    h4.headers_site{
        margin-bottom: 0;
    }
    .headers_site+div{
        display: flex;
    }
    .card-text{
        line-height: 120%;
    }
    .product_info_block>.d-flex,
    .d-flex span{
    	justify-content: center;
    	margin: 0 auto;
    }
     /*уменьшаем шинину элементов слайда*/
     .card-wrapper {
        flex: 0 0 calc(100%);
         margin-right: 0px; 
    }
    /*полоса слайдера-------*/
    .d-flex.flex-nowrap.pb-3{
        padding-bottom: 0rem !important;
    }
    /*расширяем img в слайде*/
    .card-img-top{
        max-width: 511px;
    }
    .card-img-top img{
    	object-position: center 0;
    }
    div.table-responsive{
        	padding: 0;
        }

}

@media(max-width: 380px){
    .gallery.expanded img{
        display: block;
    }
    /*каталог мини изображений*/
    .img-thumbnail{
        width: 49.5%;
    }
    .img-thumbnail:nth-child(n+5){
        display: none;
    }
    /*кнопка показать ещё под мини img*/
    .show__more-btn{
        display: block;
    }
}

@media(max-width: 350px){
        /*наводим порядок на жёлтой полосе над img*/
        .product_header.d-flex{
            flex-direction: column;
        }
        .product_title.m-0.col {
            border-top-right-radius: 10px;
            border-right: 1px solid #111;
        }
        .product_title.col-auto {
            border-top-right-radius: 0;
            border-top: none;
            border-left: 1px solid #111;
        }
        .ya-share2__list{
            margin-bottom: 5px !important;
        }
        /*убираем отступы от второго заголовка(стоимость)*/
        .product_info_block+.d-flex.py-2{
            padding: 0rem !important
        }
    } 