/*
Theme Name: Alexander Ipatov
Theme URI: Alexander Ipatov theme
Description: Тема Alexander Ipatov.
Author:  Kost xHTML (kostya999-84@mail.ru)
Author URI: https://www.free-lance.ru/users/bolo74/
Version: 1.0
*/

body {margin: 0;}
img {border: 0;}
ul {margin: 0; padding: 0;}
li {list-style: none;}
h1, h2, h3, h4, h5, h6 {margin: 0;}
a, input, textarea {outline: none;}
a:hover {text-decoration: none;}


.topbg {background: url(images/bg1.jpg) 0 0 repeat-x; float: left; width: 100%;}
.footbg {background: url(images/bg2.jpg) bottom repeat-x; float: left; width: 100%;}


.fonbg {float: left; width: 100%;}
.fon1 {background: url(https://alexipatov.com/images/fon1.jpg) center 206px no-repeat;}
.fon2 {background: url(https://alexipatov.com/images/fon2.jpg) center 206px no-repeat;}
.fon3 {background: url(https://alexipatov.com/images/fon3.jpg) center 206px no-repeat;}
.fon4 {background: url(https://alexipatov.com/images/fon4.jpg) center 206px no-repeat;}
.fon5 {background: url(https://alexipatov.com/images/fon5.jpg) center 206px no-repeat;}
.fon_foto {background: url(https://alexipatov.com/images/fon_foto.jpg) center 206px no-repeat;}
.fon_contact {background: url(https://alexipatov.com/images/fon_contact.jpg) center 206px no-repeat;}
.fon_games {background: url(https://alexipatov.com/images/fon_games.jpg) center 206px no-repeat;}
.fon_home {background: url(images/fon_home.jpg) center 255px no-repeat; background-size: 1500px; overflow: hidden;}


#wrapper {margin: 0 auto; width: 100%; max-width: 1000px;}



/* Header */
header {float: left; width: 100%; height: 610px; position: relative;}
header.home {height: auto;}
header .logo {position: absolute; top: 37px; left: 0; text-align: center; width: 50%; margin: 0 25%;}
header .logo img {max-width: 100%;}

/* Выбор языка */
header .lang {float: left; margin: 37px 0 0 1%;}
header .lang a {display: block; width: 22px; color: #858787; font: 12px Tahoma; text-decoration: none; 
float: left; padding: 0; margin: 0 10px 0 0; text-align: center;}
header .lang a.current {font-weight: bold; color: #36a0ae;}
header .lang a img {margin: 3px 0 0;}

/* Выбор языка intro page */
header .lang2 {margin: 147px auto 0; width: 632px;}
header .lang2 a {display: block; width: 68px; color: #000; font: bold 16px Arial; text-decoration: none; 
float: left; padding: 0; margin: 0 45px; text-align: center; text-transform: uppercase;}
header .lang2 a.current {font-weight: bold; color: #36a0ae;}
header .lang2 img {margin: 0 auto 5px; display: block;}


/* Social */
.socialbox {position: absolute; right: 1%; top: 37px;}
.socialbox img {float: left; margin: 0 0 0 23px;}
.socialbox2 {background: url(images/layer.png) no-repeat; width: 202px; height: 30px; position: absolute; bottom: 24px; left: 50%;
margin-left: -108px; padding: 10px 0 0 15px;}
.socialbox2 img {float: left; margin: 0 0 0 23px;}

/* Menu */
#topmenu {position: absolute; top: 134px; width: 100%;}
nav {position: relative; width: auto; font: bold 18px Arial; float: right; right: 50%;}
nav ul {position: relative; float: none !important; float: left; right: -50%;}
nav li {float: left; line-height: 72px; text-transform: uppercase; margin: 0 47px 0 0; position: relative;}
nav li a {color: #18160f; text-decoration: none;}
nav li:first-child + li + li + li + li + li + li + li {margin: 0;}

nav li.current_page_item {background: url(images/arrow.png) center 0 no-repeat;}
nav li:hover a, nav li.current_page_item a {color: #36a0ae;}

nav li ul {position: absolute; font: 14px Arial; background: #fff; left: -15px; display: none; z-index: 1000;}
nav li ul li {text-align: center; line-height: 31px; border-top: 1px solid #ccc; width: 100%; margin: 0;}
nav li ul li a {color: #18160f !important;}
nav li ul li a:hover {color: #36a0ae !important;}
nav li:hover ul {display: block;}




/* Sidebar */
aside {float: right; margin: 0 1% 30px 0; width: 28%;}
aside .textwidget {text-align: center;}








/* Content */
section {float: left; width: 65%; margin: 0 0 30px 1%; color: #737373; font: 14px Arial;}
section h1 {font: bold 18px Arial; color: #000; border-bottom: 1px solid #ccc; padding: 0 0 15px; margin: 0 0 30px;
text-transform: uppercase;}
section a {color: #36a0ae;}

section .post article {margin: 0 0 30px;}
section .post article img {max-width: 100%;}

section .post article table {width: 100%; border-collapse: collapse;}
section .post article table a {color: #737373;}
section .post article table th {text-align: left; padding: 0 0 30px;}
section .post article table .col1 {width: 130px; padding-right: 30px;}
section .post article table .col3 {width: 100px;}
section .post article table td {padding: 5px 0;}



section .anonse {float: left; width: 100%; margin: 0 0 30px; font: 14px Arial; color: #18160f;}
section .anonse .img {float: left; box-shadow: 0 1px 4px #999; padding: 6px; background: #fff; margin: 0 30px 15px 0;
position: relative; behavior: url(https://alexipatov.com/PIE.htc); -moz-box-shadow: 0 1px 4px #999; -webkit-box-shadow: 0 1px 4px #999;}
section .anonse .img img {display: block;}
section .anonse h2 {font: bold 18px Arial; margin: 0 0 12px;}
section .anonse .date {text-transform: uppercase; margin: 0 0 15px;}
section .anonse p.more {margin: 0 0 15px;}

section .anonse_vid h2{float: left;}
section .anonse_vid .date{float: left; margin: 3px 0 15px 20px;}
section .anonse_vid .frame {width: 100%; margin: 0 0 15px; position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;}
section .anonse_vid .frame iframe,  
section .anonse_vid .frame object,  
section .anonse_vid .frame embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* Contactform */
#contactform {float: left; max-width: 390px; display: block; width: 100%;}
#contactform p {margin: 20px 0;}
#contactform label {font: bold 14px Arial; display: block; margin: 0 0 5px;}
#contactform .inp {
	background: #efefee;
	border: 1px solid #a1a1a1;
	border-bottom: 1px solid #efefee;
	border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px;
	position: relative; behavior: url(https://alexipatov.com/PIE.htc);
	font: 14px Arial; color: #737373;
	padding: 6px 2%;
	width: 96%;
}
#contactform textarea {
	background: #efefee;
	border: 1px solid #898989;
	font: 14px Arial; color: #737373;
	padding: 6px 2%;
	width: 96%;
	height: 136px;
}
#contactform .submit {
	background: url(images/send.png) no-repeat;
	border: 0;
	color: #fff;
	cursor: pointer;
	font: bold italic 18px Arial;
	padding: 10px 0 12px;
	width: 211px;
	float: right;
	margin: 20px 0 0;
}
#contactform .inp:focus, #contactform textarea:focus {background: #fff;}








/* Footer */
footer {float: left; width: 100%; height: 116px; position: relative; color: #b8b8b8;}

footer .fmenu {font: bold 14px Arial; text-transform: uppercase; float: left; width: 81%; margin: 20px 0 0 1%;}
footer .fmenu li {float: left; margin: 0 37px 10px 0;}
footer .fmenu li a {color: #b8b8b8; text-decoration: none;}

footer .socialbox_foot {float: right; margin: 20px 1% 0 0;}
footer .socialbox_foot img {margin: 0 0 0 23px; float: left;}
footer .copyright {font: 12px Tahoma; position: absolute; bottom: 30px; left: 1%;}
.copyright2 {font: 12px Tahoma; margin: 20px 0 0; color: #8c929b; text-align: center; position: absolute; bottom: 0; 
left: 0; background: #fff; padding: 5px 0; width: 100%;}




/* RESPONSIVE */
@media screen and (max-width: 1024px) {
	nav {font-size: 15px;}
	nav li {margin: 0 30px 0 0;}
	footer .fmenu li {margin-right: 25px;}
	footer .socialbox_foot img {margin: 0 0 0 16px; width: 28px;}
	#contactform {margin: 0 auto; width: 80%; float: none;}
}

@media screen and (max-width: 800px)  {
	nav {font-size: 14px;}
	nav li {margin: 0 15px 0 0;}
	footer .socialbox_foot {float: right;}
	footer .socialbox_foot img {width: 24px; height: 24px; margin: 0 0 0 12px;}
	#contactform {margin: 0 auto; width: 80%; float: none;}
}

@media screen and (max-width: 640px) {
	.fonbg {background-size: 200%;}
	section, aside {margin: 0 1% 30px; width: 98%;}
	nav {font-size: 12px; letter-spacing: -1px;}
	nav li {margin: 0 15px 0 0;}
	nav li ul {font: 12px Arial;}
	header {height: 480px;}
	header .lang a {display: block; width: 18px; font-size: 11px;}
	header .lang a img {width: 18px;}
	.socialbox img {width: 20px; margin-left: 12px;}
	footer .fmenu {font-size: 12px;}
	footer .fmenu li {margin: 0 25px 5px 0;}
	footer .socialbox_foot {float: right; margin: 0 10px 0 0;}
	#contactform {margin: 0 auto; width: 60%; float: none;}
	
	/* intro */
	.fon_home {background-size: 800px !important;}
	header .lang2 {width: 420px; margin: 155px auto 0;}
	header .lang2 a {width: 55px; margin: 0 25px;}
	header .lang2 img {width: 55px;}
}

@media screen and (max-width: 480px) {
	header .logo {width: 70%; margin: 0 15%;}
	.fonbg {background-size: 200%;}
	section, aside {margin: 0 1% 30px; width: 98%;}
	#topmenu {top: 142px;}
	nav {font-size: 12px;}
	nav li {margin: 0; text-align: center; line-height: 17px; float: none; background: 0 !important;}
	nav li ul {left: 100%; top: 0; width: 70px;}
	nav li ul li {width: 68px; border: 1px solid #ccc;}
	.fonbg {background-position: center 290px;}
	.socialbox {position: absolute; top: 100px; right: 1%; margin: 0;}
	.socialbox img {width: 16px; margin-left: 6px;}
	header .lang {position: absolute; top: 88px; left: 1%; margin: 0;}
	header .lang a img {width: 18px;}
	header .lang a img {width: 18px;}
	footer .fmenu {font-size: 12px;}
	footer .fmenu li {margin: 0 25px 5px 0;}
	footer .socialbox_foot {float: right; margin: 0 10px 0 0;}
	#contactform {margin: 0 auto; width: 80%;}
	
	/* intro */
	.fon_home {background-position: center 240px; background-size: 800px;}
	header.home {height: 480px;}
	header .lang2 {width: 240px; margin: 155px auto 0;}
	header .lang2 a {width: 40px; margin: 0 10px;}
	header .lang2 img {width: 40px;}
}








.clr {clear: both;}

/* =WordPress Core
-------------------------------------------------------------- */
img.alignnone {margin: 0 0 20px;}
img.alignright {float: right; margin: 3px 0 20px 20px;}
img.alignleft {float: left; margin: 3px 20px 20px 0;}
img.aligncenter {display: block; margin: 10px auto 10px auto;}