/*.catalog:after {*/
	/*content: "";*/
	/*flex: auto;*/
/*}*/

.block-header, .btn.detales{
	padding: 8px 25px;
	background: #00377b;
	color: #fff;
	position: absolute;
	font-size: 0.9em;
	border: none;
}
.block-header { left: 0; top: 0}
.btn.detales { right: 0; bottom: 0; top: auto }

#home-filters a, #filters a{
	height: 100%;
	display: table;
	width: 100%;
}
#home-filters a > span, #filters a > span{
	display: table-cell;
	vertical-align: middle;
}
#filters{
	background: #FDBA16;
	display: block;
	overflow: auto;
	padding: 30px 40px;
	position: relative;
	padding-bottom: 25px;
}
#filters input[type="submit"], #filters .genplan {
	position: absolute;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 9px 45px;
	font-family: 'Noto Sans', sans-serif;
	font-size: 0.8em;
}
#filters .genplan{
	width: auto;
	height: auto;
	text-transform: uppercase;
	padding: 10px 45px;
	left: 0;
	right: auto;
}
#filters label {margin-top: 0}
#filters ul{
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
}
#filters li{
	width: 20%;
	padding: 0 10px;
}
#filters li a{
	padding: 10px 10px;
	height: 100%;
	vertical-align: middle;
}
#filters #sliders{
	margin: 10px 10px 35px 10px;
	font-size: 0.8em;
}
#filters #sliders::after {
	content: "";
	display: block;
	clear: both;
}
#filters #sliders > div{
	width: 50%;
	/*padding: 0 1em;*/
	float: left;
}
#sliders .slider-range{
	margin: 0 1em;
}
#filters #sliders > div:first-child{
	padding-right: 1em;
}
#filters #sliders > div:last-child{
	padding-left: 1em;
}
#filters #sliders input{
	width: 8em;
	margin-top: 20px;
}
#filters span.header{
	display: block;
	font-size: 1.2em;
	margin: 1em 0;
	font-weight: 400;
	text-align: left;
	color: #000;
	text-transform: none;
}
#news-block{
	margin-bottom: 2.5em;
}
#news-block>div{
	width: 24%;
	background: #68ac1b;
	position: relative;
	color: #fff;
	padding: 40px 2.5% 40px 2.5%;
}
#news-block>div:first-child{
	width: 49%;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}
#news-block span.header{
	color: #fff;
	display: block;
	font-size: 1.2em;
	margin: 0.5em 0 0.5em 0;
}
#news-block .btn:hover{ background: #FCB914 }

.images-block div{
	background: #68ac1b;
	color: #fff;
	text-align: center;
	margin-bottom: 3em;
	position: relative;
}
.images-block.no-margin div{
	margin-bottom: 0;
}
.images-block p{
	margin: 0.8em;
}
.images-block img{
	width: 100%;
	display: block;
}
.text-block{
	margin-bottom: 3em;
}
.ad{
	border: #003338 1px solid;
	padding: 3.5% 4.5%;
	margin: 3em 0;
	overflow: auto;
	position: relative;
}
.ad.pic {display: table; padding: 0}
.ad.pic .img{
	width: 50%;
	height: 100%;
	display: table-cell;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.ad.pic .txt{
	display: table-cell;
	float: left;
	padding: 2em;
}
.ad h3{margin-top: 0; line-height: 1.2em}
.ad.pic h1{
	text-align: left;
	margin: 0 0 0.5em 0;
}
a.info { display: block; width: 36px; height: 36px; background: url("../images/info.png") no-repeat; margin: 1px auto}
#news{
	width: 100%;
	padding-bottom: 3em;
}
#news ul{
	display: flex;
	flex-flow: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}
#news ul>li{
	display: block;
	flex: 1 0 33%;
	padding: 0.5em;
}
#news ul>li.pic {
	flex: 2 0 50%;
}
#news ul>li .txt{
	display: table-cell;
	padding: 0 0 50px 0;
	height: 100%;
}
#news ul>li.pic .img{
	width: 50%;
	height: 100%;
	display: table-cell;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
#news ul>li>div{
	display: table;
	border: 1px solid #68ac1b;
	/*padding: 0 0 50px 0;*/
	height: 100%;
	position: relative;
	width: 100%;
}
#news .block-header{
	width: auto;
	position: relative;
	display: inline-block;
}
#news h3{
	color: #68ac1b;
	margin: 0.2em 1em 10px 1em;
	text-transform: uppercase;
	font-size: 1.2em;
	font-weight: 400;
	text-align: left;
}
#news p{
	margin: 0 1em;
}
#news .detales{
	background: #68ac1b;
}
#news .detales:hover{
	background: #00377b;
}
.news-text p{
	margin-top: 0;
}

#docs ul, #analytics ul{
	list-style: none;
	align-items: stretch;
}
#docs li, #analytics li{
	width: 50%;
}
#docs li a, #analytics li a{
	height: 100%;
	text-align: left;
	padding-left: 30px;
	padding-right: 30px;
}
#docs tr:hover td {
	background: #68ac1b;
}
#docs td {
	background: #00377b;
	color: #fff;
	padding: 15px 10px 10px 15px;
	border-bottom: #fff 1px solid;
	transition: 0.3s;
}
#docs td.icon a:before{
	display: block;
	float: left;
	margin-right: 20px;
	background: no-repeat 0 0;
	width: 48px;
	height: 48px;
	content: "";
}
#docs td.icon a.zip:before{
	background-image: url("../images/zip.png");
}
#docs td.icon a.jpg:before{
	background-image: url("../images/jpeg.png");
}
#docs td.icon a.pdf:before{
	background-image: url("../images/pdf.png");
}
#gallery .block-header{
	position: relative;
	display: inline-block;
	min-width: 20%;
}
#gallery-menu.half-column > div:nth-child(even){ padding-left: 0; padding-right: 0.5em }
#gallery-menu.half-column > div:nth-child(odd){ padding-right: 0; padding-left: 0.5em }
#gallery>div {margin-top: 4em}
#gallery p {margin: 0.5em 0}
#gallery h3 {color: #565656; font-weight: 700; margin-bottom: 0; margin-top: 0.5em; font-size: 1.2em; text-align: left}

#genplan img{
	width: 100%;
}
.billboards {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
}
.billboards > div > div{
	padding: 20px;
	background-color: #00377b;
	color: #fff;
}
.billboards span, .billboards p, .billboards span, .billboards h4{ color: #fff; margin: 0 0 10px 0}
.billboards span { font-size: 1.1em; font-weight: 700; display: block }
.billboards img{
	display: inline;
	vertical-align: middle;
	margin-right: 0.5em;
	width: 50px;
}

table {
	border-collapse: collapse;
	width: 100%;
}
table.datatable td, table.datatable th, table.datatable, .analitics table td, .analitics table th, .analitics table td {
	/*border: 1px solid #000;*/
}
table.datatable td, .analitics table td{
	text-align: center;
	font-size: 1.3em;
	padding: 5px;
	background-color: #eaf0fa;
	border-bottom: 1px solid #cbd1db;
}
table.datatable tr:nth-child(even) td, .analitics tr:nth-child(even) td {
	background-color: #e2e8f2;
}
.datatable th, .analitics table th{
	background: #a6afbf;
	color: #fff;
	padding: 20px 1em;
	font-weight: 400;
}
#hypothec-table.datatable td { padding: 10px 5px; font-size: 1.2em}
#hypothec-table span{ font-size: 0.7em; line-height: normal; display: inline-block }
.note {
	font-size: 0.8em;
	margin: 5px 0;
	float: left;
}
.legend {float: right; margin: 5px 0;}
.legend ul{
	list-style: none;
	margin: 0;
	padding: 0;
}
.legend li{
	display: block;
	float: none;
	height: 30px;
	margin-bottom: 5px;
	text-align: right;
}
.legend li:after{
	content:"";
	width: 30px;
	height: 30px;
	display: block;
	float: right;
	margin-left: 10px;
}
.legend li.free:after{ background: #68ac1b; }
.legend li.busy:after{ background: #ea3c4b; }
.legend li.reserved:after{ background: #fdba16; }
.camera, .camera img { width: 100%; max-width: 1200px; display: block}
.camera h1{ margin: 10px}
.videoWrapper {
	position: relative;
	padding-bottom: 54%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}



.agreement{
	font-size: 0.8em;
	color: #888;
}

#contacts-block {
	overflow: auto;
}
#contacts-block > div{
	width: 50%;
	float: left;
	padding: 0 1em;
}
#contacts-block div:first-child{ padding-left: 0; }
#contacts-block div:last-child{ padding-right: 0; }
#contacts-block span{  }
#contacts-block a.big{
	font-size: 1.25em;
}
#contacts-block h3{
	margin: 0.5em 0;
	font-size: 1.2em;
	font-weight: 400;
	text-align: left;
}
/*
#calculator > div { padding: 0 10px 0 10px; width: 50%}
#calculator > div:first-child { padding-left: 0}
#calculator > div:last-child { padding-right: 0; padding-left: 1.1em; width: 33.3%; display: none}
#calculator label {margin-bottom: 10px}
#calculator input {margin-top: 3px}
#calculator h4 {margin-left: 0; margin-top: 0}
#calculator .value { float: right; font-weight: 700; color: #00377b}
#calculator.showresult > div {width: 33.3%}
#calculator.showresult > div:last-child {display: block}
#calc-result > div { border-bottom: 1px solid #aaa; margin-bottom: 5px }
#calculator .error_box_div {border: 1px solid #ff0000}
*/

.fancybox-slide--video .fancybox-content {
	width  : 720px;
	height : 576px;
	max-width  : 80%;
	max-height : 80%;
}

@media (max-width: 1500px) {
	#news-block > div { width: 29% }
	#news-block>div:first-child{ width: 39%; }
}
@media (max-width: 1400px) {
	#news ul>li{ flex-basis: 49% }
	#docs li a{ padding-left: 20px; padding-right: 20px; }
	#docs li a:before{ margin-right: 10px; }
	/*#news ul>li.pic { flex: 2 0 50%; }*/
}
@media (max-width: 1250px) {
	#filters #rooms li{ width: 33%; }
	#filters #rooms li:nth-child(4), #filters #rooms li:last-child{ width: 50%; margin-top: 10px;}
}
@media (max-width: 1200px) {
	.block-header, .btn.detales{ font-size: 1.1em;}
	#news ul>li.pic { flex: 1 0 100%; }
	/*#calculator.showresult > div { width: 30% }*/
	/*#calculator > div:last-child { width: 40%; padding-left: 1em }*/
}
@media (max-width: 1000px) {
	.videoWrapper { padding-bottom: 52.5%; /* 16:9 */ }
	/*#calculator.showresult > div { width: 28%; padding: 5px }*/
	/*#calculator > div:last-child { width: 44%; padding-left: 0.5em }*/
}
@media (max-width: 800px) {
	#docs li a:before{ background-size: 36px 36px; width: 36px; height: 36px}
}
@media (max-width: 640px) {
	#news-block > div { width: 49% }
	#news-block>div:first-child{ width: 100%; margin-bottom: 10px; height: 250px;}
	#benefit-block div{ width: 100%; }
	#news ul>li{ flex-basis: 100% }
	#docs li{ width: 100%; }
	#contacts-block div {width: 100%; padding: 0}
	/*#calculator.showresult > div { width: 50%; }*/
	/*#calculator.showresult > div:last-child {width: 100%}*/
	#hypothec-table img { width: 100px }
}
@media (max-width: 600px) {
	#filters #rooms li{ width: 100%; }
	#filters #rooms li:nth-child(4), #filters #rooms li:last-child{ width: 100%; margin: 0}
	#filters input[type="submit"], #filters .genplan { position: relative; margin: auto; width: 70%; display: block; float: none; }
	#filters .genplan{ margin-top: 20px; margin-bottom: 10px }
	#filters #sliders { margin-bottom: 10px}
	#hypothec-table span{ font-size: 0.6em }
}
@media (max-width: 560px) {
	#news-block > div { width: 100%; margin-bottom: 10px; }
	#filters #sliders > div { width: 100%;
		padding: 0 1em;
		float: left;
	}
}
@media (max-width: 430px) {
	.videoWrapper { padding-bottom: 50%; /* 16:9 */ }
}
@media (max-width: 340px) {
	/*#calculator label span { display: block; }*/
}