@media (min-width: 1200px) {
    /*lg*/
    /*6*/
    .product-item-list-col-6>.col-xs-12>.row>.col-md-2:nth-child(6n+1),
    .product-item-list-col-1-6>.col-sm-6:nth-child(2n+1),
    .product-item-list-col-6-1>.col-sm-6:nth-child(2n+1),
    .product-item-list-col-1-6>.col-sm-6>.row>.col-md-4:nth-child(3n+1),
    .product-item-list-col-6-1>.col-sm-6>.row>.col-md-4:nth-child(3n+1),
    /*4*/
    .product-item-list-col-4>.col-xs-12>.row>.col-md-3:nth-child(4n+1),
    .product-item-list-col-1-4>.col-sm-6>.row>.col-xs-6:nth-child(2n+1),
    .product-item-list-col-4-1>.col-sm-6>.row>.col-xs-6:nth-child(2n+1),
    /*3*/
    .product-item-list-col-3>.col-xs-12>.row>.col-sm-4:nth-child(3n+1),
    /*2*/
    .product-item-list-col-2>.col-xs-12>.row>.col-xs-6:nth-child(2n+1),
    /*1*/
    .product-item-list-col-1>.col-xs-12>.row>.col-xs-12:nth-child(1n) {
        clear: both
    }
}

@media (min-width: 992px) and (max-width:1199px) {
    /*md*/
    /*6*/
    .product-item-list-col-6>.col-xs-12>.row>.col-md-2:nth-child(6n+1),
    .product-item-list-col-1-6>.col-sm-6:nth-child(2n+1),
    .product-item-list-col-6-1>.col-sm-6:nth-child(2n+1),
    .product-item-list-col-1-6>.col-sm-6>.row>.col-md-4:nth-child(3n+1),
    .product-item-list-col-6-1>.col-sm-6>.row>.col-md-4:nth-child(3n+1),
    /*4*/
    .product-item-list-col-4>.col-xs-12>.row>.col-md-3:nth-child(4n+1),
    .product-item-list-col-1-4>.col-sm-6>.row>.col-xs-6:nth-child(2n+1),
    .product-item-list-col-4-1>.col-sm-6>.row>.col-xs-6:nth-child(2n+1),
    /*3*/
    .product-item-list-col-3>.col-xs-12>.row>.col-sm-4:nth-child(3n+1),
    /*2*/
    .product-item-list-col-2>.col-xs-12>.row>.col-xs-6:nth-child(2n+1),
    /*1*/
    .product-item-list-col-1>.col-xs-12>.row>.col-xs-12:nth-child(1n) {
        clear: both
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /*sm*/
    /*6*/
    .product-item-list-col-6>.col-xs-12>.row>.col-sm-4:nth-child(3n+1),
    .product-item-list-col-1-6>.col-sm-6:nth-child(2n+1),
    .product-item-list-col-6-1>.col-sm-6:nth-child(2n+1),
    .product-item-list-col-1-6>.col-sm-6>.row>.col-xs-6:nth-child(2n+1),
    .product-item-list-col-6-1>.col-sm-6>.row>.col-xs-6:nth-child(2n+1),
    /*4*/
    .product-item-list-col-4>.col-xs-12>.row>.col-xs-6:nth-child(2n+1),
    .product-item-list-col-1-4>.col-sm-6:nth-child(2n+1),
    .product-item-list-col-4-1>.col-sm-6:nth-child(2n+1),
    .product-item-list-col-1-4>.col-sm-6>.row>.col-xs-6:nth-child(2n+1),
    .product-item-list-col-4-1>.col-sm-6>.row>.col-xs-6:nth-child(2n+1),
    /*3*/
    .product-item-list-col-3>.col-xs-12>.row>.col-sm-4:nth-child(3n+1),
    /*2*/
    .product-item-list-col-2>.col-xs-12>.row>.col-xs-6:nth-child(2n+1),
    /*1*/
    .product-item-list-col-1>.col-xs-12>.row>.col-xs-12:nth-child(1n) {
        clear: both
    }
}

@media (max-width: 767px) {
    /*xs*/
    /*6*/
    .product-item-list-col-6>.col-xs-12>.row>.col-xs-6:nth-child(2n+1),
    .product-item-list-col-1-6>.col-sm-6>.row>.col-xs-6:nth-child(2n+1),
    .product-item-list-col-6-1>.col-sm-6>.row>.col-xs-6:nth-child(2n+1),
    /*4*/
    .product-item-list-col-4>.col-xs-12>.row>.col-xs-6:nth-child(2n+1),
    .product-item-list-col-1-4>.col-sm-6>.row>.col-xs-6:nth-child(2n+1),
    .product-item-list-col-4-1>.col-sm-6>.row>.col-xs-6:nth-child(2n+1),
    /*3*/
    .product-item-list-col-3>.col-xs-12>.row>.col-sm-4:nth-child(3n+1),
    /*2*/
    .product-item-list-col-2>.col-xs-12>.row>.col-xs-6:nth-child(2n+1),
    /*1*/
    .product-item-list-col-1>.col-xs-12>.row>.col-xs-12:nth-child(1n) {
        clear: both
    }
}

.catalog-section-header {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    margin: 5px 0;
    padding: 5px 15px;
    border-bottom: 2px solid #d9dee6;
    color: #000;
}

.row::before {
    display: initial;
}

.floors_container>.floor_block {
    order: var(--title);
}
.section_block{
    order: var(--title);
}

.floor_block {
    display: flex;
	height: 50px;
	align-items: center;
	transition: border-color 0.2s ease;
	border-top: solid 1px transparent;
	border-bottom: solid 1px transparent;
}

.floor_block:hover{
	border-color: #dadada;
	background-color: #f5f5f5;
}

.section_block {
    padding: 20px;
    display: flex;
	flex-direction: column;
	margin-right: 50px;
    justify-content: space-between;
}
.text_section{
	font-size: 20px;
    text-align: center;
}
.section_container{
    display: flex;
	align-items: center;
}
.floors_container{
	display: flex;
    flex-direction: column-reverse;
	height: 100%;
	padding-left: 8px;
}
.text_floors{
	transform: rotate(-90deg);
	width: 16px;
	display: block;
}

.floor_name{
	padding-right: 10px;
	padding-left: 4px;
	min-width: 10px;
    max-width: 10px;
}
.flat_block {
    width: 40px;
    height: 40px;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    position: relative;
	border-radius: 8px;
	
}

.flat_block a {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flat_block.gray, .flat_rooms.gray {
    background-color: #a9a9a9;
}

.flat_block.green, .flat_rooms.green {
    background-color: #7ae286;
}

.flat_block.red, .flat_rooms.red {
    background-color: #ff9171;
}

.flat_info {
    z-index: 115;
    position: absolute;
    left: 50%;
    bottom: 38px;
    padding: 5px 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
    text-align: center;
    pointer-events: none;
    transform: translateX(-50%);
    width: 180px;
    border: 1px solid #b9b9b9;
	
	visibility: hidden;
    color: #333;
}

.flat_block:hover .flat_info {
    visibility: visible;
}
.flat_block .flat_info::after {
    content: " ";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
	margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.top_line{
	display: flex;
    justify-content: space-between;
}
.flat_rooms_block{
	display: flex;
    align-items: center;
}
.flat_rooms{
	width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
	margin-right: 3px;
}
.flat_number{
	display: flex;
    align-items: center;
    color: #aab0c1;
}
.flat_cost{
	text-align: left;
    margin: 5px 0;
    font-weight: 600;
    font-size: 16px;
}
.bottom_line{
	text-align: left;
}

.shahmatka_block{
	opacity: 0;
    max-height: 0;
    overflow: auto;
    -moz-transition: opacity .3s, max-height .3s;
    -ms-transition: opacity .3s, max-height .3s;
    transition: opacity .3s, max-height .3s;
    _display: none;
	position: relative;
}

#box_2 .left_arrow{
	    width: 50px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23a9a9a9'%2F%3E%3C%2Fsvg%3E");
        position: absolute;
    top: 47%;
    height: 100px;
    background-repeat: no-repeat;
    background-size: 50px 100px;
    background-position: center;
    z-index: 1000;
    left: -50px;
	opacity: 0;
    -moz-transition: opacity .3s, max-height .3s;
    -ms-transition: opacity .3s, max-height .3s;
    transition: opacity .3s, max-height .3s;
	
}
#box_2.active.left .left_arrow{
	opacity: 1;
    cursor: pointer;
	
}
#box_2 .right_arrow{
	    width: 50px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23a9a9a9'%2F%3E%3C%2Fsvg%3E");
        position: absolute;
    top: 47%;
    height: 100px;
    background-repeat: no-repeat;
    background-size: 50px 100px;
    background-position: center;
    z-index: 1000;
    right: -50px;
	opacity: 0;
    -moz-transition: opacity .3s, max-height .3s;
    -ms-transition: opacity .3s, max-height .3s;
    transition: opacity .3s, max-height .3s;
	
}
#box_2.active.right .right_arrow{
	opacity: 1;
    cursor: pointer;
	
}
.expanded {
    max-height: 100%;
    opacity: 1;
    _display: block;
}

.color_line{
	display: flex;
}
.color_item{
	display: flex;
	align-items: center;
    margin-right: 12px;
}
.color_item .flat_block{
	width: 25px;
	height: 25px;
}
.shah_title{
	font-size: 30px;
	margin-bottom: 10px;
}

@media only screen and (max-width: 767px){
	.color_item .flat_block{
		width: 15px;
		height: 15px;
	}
	.flat_block{
		border-radius: 4px;
		width: 30px;
    	height: 30px;
	}
	.color_item{
		font-size: 15px;
	}
	.section_block{
		padding-left: 0;
	}
	.text_section{
		min-width: 100px;
	}
	.text_section.clone {
		position: sticky;
		top: 0;
		left: 100px;
		transform: translateY(-100%);
		transition: 0.2s transform cubic-bezier(.3,.73,.3,.74);
		z-index: 110;
		width: 90px;
		background-color: #fff;
	}

	body.down .text_section.clone {
		transform: translateY(0);
	}
	.floor_name{
		min-width: 25px;
		position: sticky;
		left: 5px;
		background: #fff;
		z-index: 90;
		height: 50px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding-left: 30px;
	}
	.floor_name_title{
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: #fff;
	}
	.text_floors_block{
		width: 20px;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		position: sticky;
		left: 0;
		background-color: #fff;
		z-index: 100;
		padding-left: 10px;
	}
	.color_line{
		padding-left: 35px;
	}
	.shah_title{
		padding-left: 40px;
	}
	
}