/*@import url("fonts/PTSans-Narrow/stylesheet.css"); /*Подключение шрифта*/

html {scroll-behavior: smooth;} /*Для плавной прокрутки*/

* {box-sizing: border-box;} /*Бордюры и отступы внутри размеров блока*/

body {
	max-width: 1280px;
	font: 1rem Cambria, Times, "Times New Roman", "serif";
	color: #13145f;
	text-align: left;
	background-color: #eee;
	background: url("img/main/fon1.jpg") fixed;
	background-size: cover;
	margin: 0 auto;
	padding: 0;
}

.logo {
/*	background-image: url("img/main/logo.jpg");*/
	background-size: cover;
	height: 240px;
}

.phone {
	font-size: 1.7em;
	font-weight: bold;
	font-style: italic;
	color: #eee;
	letter-spacing: 2px;
	text-align: right;
	text-shadow: 0px 0px 3px #000;
	position: relative;
	right: 16px;
	top: 10px;
	
	& img {
		background: #fff;
		width: 23px;
		border-radius: 5px;
	}
}

.phone-code {font-size: 0.7em;}

@media screen and (min-width: 800px) {
	.logo {background-image: url("img/main/logo.jpg");}

	.company {display: none;}
	
	.slogan {
		font: italic bold 1.23em Helvetica, sans-serif;
		color: #304080;
		letter-spacing: 2px;
		width: 400px;
		text-shadow: 0 0 10px #fff;
		position: relative;
		left: 225px;
		top: 15px;
	}
	
	.mobile_menu {display: none;}
	
	.fixed {top: -21px;}
	
	nav {top: -40px;}
	
	nav .top_menu {
		justify-content: center;
		flex-direction: row;
	}
	
	.sub_menu {
		left: 0px;
	}
	
	main {margin-top: -60px;
		
		& h1 {transform: skew(-7deg);}
	}
	
	.box {
		width: 31%;
		min-width: 350px;
	}
	
	.spec h2, .scheme h2 {transform: skew(-7deg);}
	
	.scheme_block img, .scheme_block p {width: 49%;}
	
	.adr_box {width: 50%;
		
		& dl {padding-left: 30px;}
	}
} /*End @media screen >= 800px*/

@media screen and (max-width: 799px) {	
	.logo {background-image: url("img/main/logo-min.jpg");}
	
	.company {
		display: flex;
		flex-direction: row;
		justify-content: center;
		font: italic bold 4em Helvetica, sans-serif;
		color: #EF0808;
		letter-spacing: 2px;
		text-shadow: 2px 2px 2px #222, 2px 2px 5px #eee;
		padding-top: 20px;
		padding-bottom: 10px;
	}
	
	.slogan {display: none;}
	
	.desktop_menu {display: none;}
	
	.fixed {top: 0;}
	
	nav {top: -20px;
		
		& input {
			width: 42px;
			height: 42px;
			position: absolute;
			cursor: pointer;
			margin-top: 0;
			margin-left: 10px;
	/*		opacity: 1;*/
			z-index: 2;
		
		&:checked ~ ul {transform: none;}
		}
	}

		
	nav .mobile_menu {
		color: #ffc;
		font-size: 1.18em;
		text-shadow: 1px 1px 0 #000;
		border-radius: 5px;
		box-shadow: 2px 2px 3px #ccc;
		background: linear-gradient(to bottom, #ccc 0%, #8ab8d9 10%, #304080 55%, #304080 100%);
		transform: skewX(-7deg);
		margin: 0 2px;	
		padding: 9px 20px 11px 20px;
		
		& li {text-align: right;}
		
		& img {
			display: flex;
			height: 0.8em;
			position: absolute;
			align-items: flex-start;
			margin-top: 3px;
		}
		
		& a {
			color: #ffc;
			letter-spacing: 1px;
			text-decoration: none;
			text-shadow: 1px 1px 0 #000;
		}
	}
		
	nav .top_menu {
		flex-direction: column;
		transform: translate(-100%, 0);
		transition: transform 0.5s;
	}
	
	nav input {
	    width: 42px;
	    height: 42px;
	    position: absolute;
		cursor: pointer;
		margin-top: 0;
		margin-left: 10px;
/*		opacity: 1;*/
		z-index: 2;
		
		&:checked ~ ul {transform: none;}
	}
	
	.sub_menu {
		left: 85px;
	}
	
	main {margin-top: -290px;}
	
	.box {
		width: 100%;
		min-width: 320px;
	}
	
	.scheme_block img, .scheme_block p {width: 100%;}
	
	.adr_box {
		width: 100%;
		display: block;
		text-align: center;
	}
} /*End @media screen <= 799px*/
	
@keyframes blinking_fon {
	0%, 100% {
		width: 100%;
		color: #13145f;
		background-color: #5ac4f2;
		border: 3px solid #dd2c00;
		border-radius: 7px;
	}
	
	50% {
		width: 90%;
		color: #f7fc7b;
		background-color: #dd2c00;
		border: 3px solid #5ac4f2;
		border-radius: 30px;
	}
}

.quadrat {
  	min-height: 130px;
	font-size: x-large;
	text-align: center;
	margin: 0 auto;
	padding-top: 30px;
	padding-bottom: 30px;
	animation: blinking_fon 3s infinite;

}

nav {
	position: relative;
	z-index: 1;
	
	& input {opacity: 0;}

	& ul {
/*		display: inline-block; ????????????*/
		list-style: none;
		margin: 0px;
		padding: 0px;
	}
	
	& li:hover > .sub_menu {
		transform: rotateX(0deg); /*Появление выпадающего меню*/
		visibility: visible;
		opacity: 1;
	}
}

nav .top_menu {
	display: flex;
	flex-wrap: wrap;
	
	& a {
		display: block;
		color: #ffc;
		letter-spacing: 1px;
		text-decoration: none;
		text-shadow: 1px 1px 0 #000;
		border-radius: 5px;
		box-shadow: 2px 2px 3px #ccc;
		background: linear-gradient(to bottom, #ccc 0%, #8ab8d9 10%, #304080 55%, #304080 100%);
		transform: skewX(-7deg);
		transition: all 0.3s linear;
		
		&:hover {
			color: #f7fc7b;
			background: linear-gradient(to bottom, #dd353f 0%, #a7000d 50%, #880033 60%, #4c0000 100%);
			border-radius: 20px 5px;
		}
	}	
}

.top_menu > li {position: relative;
	
	& > a {
		font-size: 1.18em;
		margin: 0 2px;	
		padding: 9px 20px 11px 20px;
	}
}

.sub_menu {
	position: absolute;
	min-width: 220px;
	visibility: hidden;
	opacity: 0;
	transform-origin: 0% 0%;
	transform: rotateX(90deg);
	transition: all 0.3s linear;
	z-index: 2;
	
	& li {position: relative;} /* второе выпадающее меню*/
	
	& a {
		letter-spacing: normal;
		padding: 8px 15px 10px 19px;
	}
}
 
.sub_menu .sub_menu {
	position: absolute;
	top: 75%;
	left: 30%;
}

.fixed {
	position: fixed;
	width: 100%;
	max-width: 1280px;
}

/***Main***/

main {
	background: rgba(255, 255, 255, 0.9);
	padding: 50px 9px 30px 9px;

	& h1 {
		font-size: 2.0em;
		font-weight: bold;
		color: #13145f;
		text-align: center;
		text-shadow: 1px 1px 3px #eee;
		letter-spacing: 2px;
		word-spacing: 5px;
		border: 1px solid #a8b8c8;
		border-radius: 5px;
		background: radial-gradient(60% 90%, #5ac4f2, #eee);
		box-shadow: 1px 2px 5px #60a0c0;
		margin: 40px 10px 0 10px;
		padding: 20px 5px 22px 5px;
	}	
}

.navi {
	font-style: italic;
	background: #e7e7e7;
	border: 1px solid #a8b8c8;
	border-radius: 5px;
	box-shadow: 1px 2px 5px #60a0c0;
	transform: skew(7deg);
	margin: 10px 15px;
	padding: 10px 20px;
	
	& a {color: #dd2c00;}
}

.link-h1 {
	text-align: center;
	margin-top: 20px;

	& a {
		background: #e7e7e7;
		border-radius: 5px;
		padding: 5px 10px 10px 10px;
	}
}

.container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: stretch;
}

.box {
	background: #f6eded;
	border: 1px solid #a8b8c8;
	border-radius: 5px;
	box-shadow: 0 2px 5px #60a0c0;
	margin: 40px 0 0 0;
	padding: 20px;

	& h2 {
		font-size: 1.3rem;
		font-weight: bold;
		color: #13145f;
		letter-spacing: 0;
		text-align: center;
		background: #ccc;
		text-shadow: none;
		border: 1px solid #a8b8c8;
		border-radius: 5px;
		transform: skew(-7deg);
		margin: 20px 0;
		padding: 10px;
		transition: 1s;
		
		&:hover {background: #5ac4f2;}
	}
}

.box img {
	height: 300px;
	border-radius: 5px;
	display: block;
	margin-left: auto;
	margin-right: auto;
	transition: 1s;
	
	&:hover {transform: scale(1.13);}
}

.ul_gif {list-style-image: url("img/main/5b1.gif");}

.text {
	background: rgba(248, 248, 248, 0.9);
	margin: 40px 0 0 0;
	padding: 0 7px;
}

.head_mark {	
	font-style: italic;
	font-weight: bold;
	letter-spacing: 1px;	
	border: 1px solid #a8b8c8;
	border-radius: 5px;
	background-color: #e7e7e7;	
	box-shadow: 0px 2px 5px #60a0c0;
	transform: skew(7deg);
	margin: 30px 0px;
	padding: 10px 15px;
	
	& a {color: #dd2c00;}
}

.mark {width: auto;}

.obozn th, .obozn td {
	font-size: 2rem;
	color: #000099;
	background: #e7e7e7;
	padding: 10px;	
}

.spec h2, .scheme h2 {
	font-size: 1.5em;
	font-weight: 500;
	text-shadow: 1px 1px 3px #000;
	letter-spacing: 1px;
	word-spacing: 5px;
	border: 1px solid #a8b8c8;
	border-radius: 5px;
	box-shadow: 1px 2px 5px #ccc;
	margin: 20px 10px 30px 10px;
	padding: 17px 20px 19px 20px;
}

.spec {
	background: rgba(50, 50, 255, 0.9);
	padding: 20px 9px;

	& h2 {
		color: #eee;
		background: linear-gradient(to right, #304080 50%, #eee 100%);
	}
}

.spec caption {
	width: 60%;
	font-size: 1.2em;
	font-weight: 500;
	letter-spacing: 1px;
	word-spacing: 5px;
	background: #e7e7e7;
	border: 1px solid #a8b8c8;
	border-radius: 5px;
	box-shadow: 1px 2px 5px #ccc;
	transform: skew(-7deg);
	margin: 20px auto 5px auto;
	padding: 7px;
}

.scheme {
	background: rgba(255, 50, 50, 0.9);
	padding: 20px 9px;

	& h2 {
		color: #fff;
		background: linear-gradient(to right, #319dcc 50%, #eee 100%);
	}
}

.scheme_block {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 25px;

	& img {
		border-radius: 5px;
		margin-top: 7px;
	}
}

.map {
	border: 1px solid #a8b8c8;
	box-shadow: 1px 2px 5px #60a0c0;
}

h2 {
	font-size: 1.2em;
	font-weight: 500;
	color: #EEEEEE;	
	letter-spacing: 2px;
	word-spacing: 5px;
	text-shadow: 1px 1px 2px #000000;
	text-align: left;
	padding: 7px 15px;
	margin: 0px;
	background: linear-gradient(to right, #304080 50%, #EEEEEE 100%);	
	border: 1px solid #A8B8C8;
	border-radius: 7px;
	box-shadow: 0px 3px 7px #60A0C0;
}

.Tab_Img_L {
	width: 180px;
	border: none;
	border-radius: 7px;
	box-shadow: 7px 7px 15px #60A0C0;
}

.Text_Img_R, .Text_Img_L {
	border: none;
	border-radius: 7px;
	box-shadow: 0px 5px 7px #60A0C0;
}

.Text_Img_R {
	float: right;
	margin: 20px 5px 15px 23px;
}

.Text_Img_L {
	float: left;
	margin: 20px 23px 15px 5px;
}

.podbor {
	letter-spacing: 1px;
	text-align: left;
	margin: 20px 0px 20px 0px;
	padding: 10px 15px 13px 15px;
	background-color: #DDE2F2;
	border: 1px solid #A8B8C8;
	box-shadow: 0px 3px 7px #60A0C0;
}

.opis {
	font: 12px Verdana, Arial, Helvetica, sans-serif;
	margin-top: 7px;
	padding: 10px;
	background: rgba(200, 230, 248, 0.9);
	border-radius: 5px;
}

.videl {
	color: #DD2C00;
	font-weight: bold;
}

/***Table***/

table {
	width: 100%;
	color: #003366;
	text-align: center;
	border-collapse: collapse; /*Убираем пустые промежутки между ячейками*/
	margin: 30px 0px 0px 0px;
	background: rgba(248, 248, 248, 0.9);
	box-shadow: 0px 3px 7px #60A0C0;
}

thead th {
	padding: 10px 5px;
}

th, td {
	padding: 5px;
	border: 1px solid #A8B8C8;
}

tbody tr:hover {
	background: #FFE595;
	transition: 0.5s;
}

.tabHead {
	color: #F9F9F9;
	letter-spacing: 1px;
	background-color: #4477BB;
}

.borderH, .borderH1, .borderH3, .borderH6, .borderH10 {border-bottom: 1px solid #4477BB;}

.borderH {background-color: #B8F8FE;}

.borderH1, .border1 {background-color: #BADBFA;}

.borderH3, .border3 {background-color: #9FF55E;}

.borderH6, .border6 {background-color: #F6F55F;}

.borderH10, .border10 {background-color: #FF6633;}

.border0 {background-color: #D8D8D8;}

.borderL {
	text-align: left;
	background: rgba(133, 248, 133, 0.2);
}

.Tab_comment {
	font-size: 0.8em;
	color: #FF0000;
	text-align: left;
	border: none;
	padding: 0px 10px;
	background: rgba(223, 223, 255, 0.8);
}

hr {
	height: 9px;
  	background-color: #304080;
	border: none;
	margin: 0;
}

footer {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	background: linear-gradient(to bottom, #bbb 0%, #777 91%, #333 9%);
		
	& img {height:  20px;}
}

.foot {padding: 30px;
	
	& h6 {
		font-size: 1.1em;
		font-weight: bold;
		letter-spacing: 1px;
		margin: 0 0 15px 0;
	}
}

.ooo {
	background: url("img/main/adr_pnt.png") no-repeat;
}

.opo {background: url("img/main/tel.png") no-repeat center;
	
}

.pop {
	background: url("img/main/messenger.png") no-repeat;
}

.ppp {
	background: url("img/main/e-mail.png") no-repeat;
}

.ooo, .opo, .pop, .ppp {
	background-position: center;
	background-size: contain;
}

.updated {
	font-size: 12px;
	color: #ccc;
	padding-top: 10px;
}

.link_top {
	position: fixed;
	right: 2%;
	bottom: 1%;
	font-size: 1.5em;
	font-weight: bolder;
	background-color: rgba(200, 200, 200, 0.5);
	border-radius: 10px;
	box-shadow: 0 0 10px #13145f;
	padding: 4px 13px 2px 13px;
	transition: all 0.3s linear;
	
	&:hover {
		background-color: rgba(150, 150, 180, 0.9);
		cursor: pointer;
	}
}

/***** By Libertovich *****/

.main_l {
	background-color: #daedfd;
	padding: 50px 9px 30px 9px;
	margin-top: -3px;
	
	& h1 {
		font-size: 2.2em;
		font-weight: bold;
		font-style: italic;
		color: #13145f;
		text-align: center;
		text-shadow: 1px 1px 3px #eee;
		letter-spacing: 2px;
		word-spacing: 5px;
		border: 1px solid #a8b8c8;
		border-radius: 5px;
		background: radial-gradient(60% 90%, #5ac4f2, #eee);
		box-shadow: 1px 2px 5px #60a0c0;
		margin-bottom: 60px;
		padding: 20px 5px 22px 5px;
	}	
}

.main_l h2 {
	font-size: 1.5em;
	padding: 10px 20px 14px 20px;
}

.main_l p {
	font-size: 1.2em;
	font-style: italic;
	color: #000;
}