body {
	margin:0 auto;
	padding:0;
	max-width:1350px;
	font-family:'Open Sans',Arial,Helvetica,Verdana,sans-serif;
	font-size:17px;
	background-color:white;
	color: #333;
	line-height:1.3;
	}
.bold {font-weight:bold;}
.italic, p.foto, p.photo {font-style:italic;}
.inline, #header-logo, #header-center, #header-search, #left, #center {display:inline-block;}
h1, h2, h3, h4, .center, p.foto, p.photo, div.img-right, div.img-left,
table.result td, table.td-center td  {
	text-align:center;
	}
/* div.center div {text-align:left;} */
p.foto img, img.foto, p.photo img, p.center img {margin:2px;}
img.border {border:1px solid gray;}
p {margin-top:12px;margin-bottom:12px;}
img.right {margin:7px 0 5px 10px;}
p.right, td.right {text-align:right;}
.margin-0-auto {margin:0 auto;}
.margin-10-0 {margin:10px 0;}
.margin-0-10 {margin:0 10px;}
.sup {vertical-align: super;}
.sub {vertical-align: sub;}

h1, h2, h3 {color:#494848;}
h1 {
	font-size:23px;
	margin-top:23px;
	}
h2 {
	font-size:18px;
	margin-top:18px;
	}

h3 {
	font-size:16px;
	margin-top:16px;
	margin-bottom:6px;
	}	
details { cursor:pointer; }	
a:link, a:hover, a:visited, .likeurl, details summary {
	/* font-weight: bold;*/
	color:#004d99;
	font-family:Arial, Tahoma;
}
a:link, a:visited { text-decoration:none; }
.likeurl {cursor: pointer;}
a:hover, .likeurl:hover, details summary:hover {text-decoration:underline; }

img {
	max-width:100%;
	height:auto;
	width:auto;
}
.max-width {max-width:100%;}
.background-gray {background-color:#ECECEC;}
.top, #left, #center {vertical-align:top;}
.middle, #header-logo, #header-center  {vertical-align:middle;}
div.right, img.right {float:right;}

#header {
	background-image:url('/i/design/head-background.png');
	background-repeat:repeat-x;
	background-position: center bottom;
	padding:9px 0;
	border-top:1px solid black;
	width:100%;
}

#header-logo {
	width:300px;
}


#header-center {
	text-align:center;
	/* font-weight:bold;*/
	font-size:125%;
	padding:0 10px;
}
#header-search {
	margin-bottom:5px;
	vertical-align:bottom;
}
@media screen and (max-width:500px) {
	#header-search {display:none;}
}
@media screen and (max-width:640px) {
	#header-center {display:none;}
	#header-search {width:calc(100% - 310px);}
	#left {display:none;}
}
@media screen and (min-width:641px) and (max-width:900px) {
	#header-center {display:none;}
	#header-search {width:calc(100% - 310px);}
	#left {display:none;}
	}
@media screen and (min-width:901px) and (max-width:1099px) {
	#header-center {display:none;}
	#header-search {width:calc(100% - 310px);}
	p, li, td {font-size:17px;line-height:1.6;}
	}
@media screen and (min-width:1100px) {
	#header-center {width:calc(100% - 640px);}
	#header-search {width:300px;}
	p, li, td {font-size:17px;line-height:1.6;}
	
	}
@media screen and (min-width:641px) {
	.col-2 { width:calc(50% - 15px); padding-right:10px; }
	.col-1-3 { width:calc(33% - 15px); padding-right:10px; }
	.col-2-3 { width:calc(66% - 15px); padding-right:10px; }
	.col-3 { width:calc(33% - 15px); padding-right:10px; }
	.col-4 { width:calc(25% - 15px); padding-right:10px; }
}
@media screen and (max-width:640px) {
	.col-2, .col-3, col-4 {width:100%;}
}
#left {
	width:200px;
	}
#left ul, #menu-line ul {
	list-style-type:none;
	margin:0;
	padding:0;
	font-size:14px;}
#left li, #menu-line li {
	padding:5px;
	background:#336699;
	border:1px solid white;
	}
#menu-line a:link, #menu-line a:visited,
#left a:link, #left a:visited {
	color:white;
	text-decoration:none;
	}
#left a:link, #left a:visited { 
	display:block;
	font-weight:normal;
	}
#left a:hover, 	#menu-line a:hover {
	color:yellow;
	text-decoration: underline;
	}
#menu-line li {
	display:inline;
	padding:5px 10px;
	line-height:34px;
	white-space:nowrap;
}
#center {
	padding:0 10px;
	background-color:white;
	min-height:600px;}

div.footer-line {
	background:url(/i/bbg.gif) repeat-x;
	height:17px;
	}
	
/* Код для адаптации видео */
.video-adaptive, .video-adaptive-speed {
position:relative;
/* padding-top:30px;*/
height:0;
overflow:hidden;
max-width:800px;
margin:10px auto;
}
.video-adaptive {padding-bottom:56.25%;}
.video-adaptive-speed {padding-bottom:50%;}
.video-adaptive iframe,
.video-adaptive object,
.video-adaptive embed,
.video-adaptive-speed iframe,
.video-adaptive-speed object,
.video-adaptive-speed embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/* Конец кода для адаптации видео */

.max-width640-video, .max-width-video {max-width:800px;margin:10px auto;}

.max-width-500 {max-width:500px;}

.red, .red a, a.red {color:red;}
div.left, img.left {float:left;}
img.left {margin:7px 10px 5px 0;} 
.table-adaptive {overflow:auto;}

table.table, table.td-center {
	padding:5px;
	border: 1px double #EAEAEA
	}
table.result th, table.td-center th, table.table th {
	padding:2px 10px;
	background-color:#EAEAEA;
	border: 1px solid #999999;
	}
table.td-border td {border: 1px double #EAEAEA;}
table.result td, table.td-center td, table.table td {
	padding:2px 10px;
	vertical-align:top;
	}
table.td-center td.left, table.result td.left {text-align:left;}
tr.gray td, tr td.gray, table.gray tr:nth-child(2n) {background-color:#EAEAEA;}
.block {display:block;}
.blue {color:blue;}
ul {
	margin-left:10px;
	padding-left:10px;
}
ol {
	margin-left:20px;
	padding-left:10px;
}

.top0 {margin-top:0;}
.bottom0 {margin-bottom:0;}
.clear {clear:both;}
.nowrap {white-space:nowrap;}
tr.white td, td.white {background-color:white;}
table.td-middle td {vertical-align:middle;}
	
@media screen and (min-width:361px) {
	div.img-right {float:right;}
	div.img-right {margin:5px 0 5px 10px;}
	div.img-left {float:left;}
	div.img-left {margin:5px 10px 5px 0;}
	}
	
@media screen and (max-width:360px) {
	div.img-right, div.img-left {width:100%;}
	}

.max-width-900, .max-width-content {max-width:900px;}
div.border-hover div {border:1px solid white;padding:3px;}
div.border-hover div:hover {border:1px solid red;}

table.tr-hover tr:hover {color:red;	}
table.table tr:hover {background-color: #F9E8A8;}

.youtube {
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: all 200ms ease-out;
    cursor: pointer;
}
.youtube .play, .img-play {
    background: url('/i/youtube-play-btn.png') no-repeat;
    background-position: 0 -50px;
    -webkit-background-size: 100% auto;
    background-size: 100% auto;
    position: absolute;
    height: 50px;
    width: 69px;
    transition: none;
    top:0;
    left:0;
    right:0;
    bottom:0;
    margin:auto;
}
.youtube:hover .play {
    background-position: 0 0;
}
hr { color:#dedede; }
.margin-10-auto {margin:10px auto;}
.caps {text-transform:uppercase;}