/*
Theme Name: Dachacha
Theme URI:dachacha.ru 
Description:building 
Version: 2.0
Author:WISCO 
Author URI:wisco.info
*/
@import url('https://fonts.googleapis.com/css?family=Merriweather|Oswald|Roboto');
html {
	height:100%;
}
body {
	width:100%;
	height:100%;  
	margin:0;
	padding:0;
	font-family: 'Roboto', sans-serif;
	
	font-size:14px;
	color:#535750;
	background:#F7F8EA url(imgs/bg0.jpg);
}
img {
	border:0;
	margin:0;
	max-width:100%;
	height:auto;
}
table,iframe {max-width:100%;}
a:link {color:#449006; text-decoration:underline;}
a:visited {color:#706221; text-decoration:underline;}
a:hover {color:#449006; text-decoration:none;}
.he1 {font-size:2em;margin:0px 0px 0px 0px; padding:0;}
.he2 {font-size:1.4em;margin:0px 0px 10px 0px; padding:0;}

input.input_txt {
	height:28px;
	font-family:Arial, Helvetica, sans-serif;
	font-size:18px;
	color:#999999;
	background:url('imgs/search_bg.png') left top repeat-x;
	border:0;
	margin:0;
}
.button_search {
	border:0;
	color:#fff;
	font-family:Arial;
	font-size:14px;
	background:url('imgs/search_button.jpg') left top no-repeat;
	width:89px;
	height:28px;
	vertical-align:top;
	cursor:pointer;
}



#wrapper {
	width:1000px;
	margin:auto;
	min-height: 100%;
	height: auto !important;
	height: 100%;
	margin: 0 auto -155px;	
}
#header {
	height:379px;
	background:url('imgs/bg1.jpg') left top no-repeat;
	position:relative;
}
	#nazvanie {
		position:absolute;
		left:31px;
		top:56px;
	}
	
	#google_up {width: 180px; height:150px; position:absolute; left: 385px; top: 35px;}
	#search {
		position:absolute;
		left:31px;
		top:317px;
	}

#path {margin-bottom:13px; font-size:11px; padding-left:31px; padding-top:20px; }



	
#pod {
	min-height:29px;
	width:100%;
	background:#783700;
	color:#ffffff;
	margin-top:1px;
}	
	#pod a:link, #pod a:visited {color:#fff; margin-right:20px;}

#content {
	width:100%;
	overflow:hidden;
	margin-bottom:30px;
}

#left {
	width:260px;
	float:left;
}


.crp_related_widget ul {list-style:none; margin:15px 0px 0px 0px; padding:0}
.crp_related_widget ul li {margin:0px 0px 15px 0px; padding:0px 0px 0px 10px;}
.crp_related_widget ul li img {max-width:40px; height:auto; float:left; margin:0px 10px 10px 0px}
.crp_related_widget ul li a {font-size:110%; font-weight: bold}
.crp_related_widget .crp_excerpt {font-size:80%; }
#right {
	width:740px;
	float:left;	
}

#content2 {padding: 0px 30px 0px 31px; line-height:1.5rem}
#content2 img {max-width:100%; height:auto}
#content2 table {margin-top:15px;}


	.kagaz {width:100%; overflow:hidden; margin-top:10px; margin-bottom:15px; }
	.kagaz img {margin:10px 10px 10px 0px; float:left; max-width:140px!important; border-radius:24px; -moz-border-radius:24px;  border:0px!important;}
	.kagaz_zag a:link {color:#ab6d0b;}
	.kagaz_zag {font-weight:normal; font-size:1.4em; padding-bottom:10px;  text-align:left}
	.zag_bg {float:left; width:31px; margin-top:15px; height:28px;}
	.zag { margin:20px 30px 10px 31px; text-align:left} 
	.zag_inside {font-size:12px;  margin:23px 30px 10px 31px;} 
	
ul.menu {
	list-style-type:none;
	margin:0px 0px 20px 31px;
	padding:0;
}
ul.menu li {
	padding:0;
	margin:15px 0px 0px 0px;
}
ul.menu ul {
	list-style-type:none;
	margin:10px 0px 0px 15px;
	padding:0;
}
ul.menu ul li {
	margin-top:10px;
	padding-left:2px;
}
a.selected:link, a.selected:visited {font-weight:bold;}
.active {font-weight:bold; color:#000000;}
	
	
#footer, #push {
	height:154px;
}
#footer {
	position:relative;
	border-top:1px solid #c5c6b9;
	width:1000px;
	overflow:hidden;
	margin:auto;
	background:url('imgs/bg3.png') bottom left no-repeat;
}
.copyright {
	float:left;
	width:409px;
	padding:20px 20px 20px 31px;
	font-size:0.85em;
	line-height:1.5em;
}
.footer_right {
	float:left;
	padding-top:20px;
}

h1 {font-size:2.4rem;}
h2 {font-size:2.1rem;}
h3 {font-size:1.8rem;}
h4 {font-size:1.2rem;}
h5 {font-size:1.6rem;}
h6 {font-size:1.1rem;}


h1,h2,h3,h4,h5,h6 {font-family: 'Merriweather', serif; margin:0px 0px 0px 0px; padding:0; font-weight:normal; line-height:normal; text-align:left}

#counters {float:right; margin-top:10px;}

#counters img{
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50); 
opacity: 0.5;
-moz-opacity: 0.5; margin-left: 10px;
}




.pages {
margin-top: 55px;
    clear: left;

padding-bottom:13px;
    font-size: 12px;
    font-family: Arial, sans-serif; margin-left: 0px;
}

.pages a:hover {
    background:#DCBC81; color:#B47414;
text-decoration:none;
}

.pages a, .pages span {
    color: #B3073B;
    display: block;
    float: left;
    line-height: 2.2em;
    padding:0 3px;
    text-align:center;
    margin-right: 0.4em;
  
text-decoration:underline;
}

.pages span.current {
    border: 1px solid #B47414;
    font-weight: bold;
     background:#FE7F0A; color:#ffffff;
}

.pages span.current2 {
    border: 1px solid #B47414;
    font-weight: bold;
     background:#FE7F0A; color:#ffffff;
}


		ul.menu_top {
			list-style-type:none;
			
			padding:0;
			color:#fff;
		}
		ul.menu_top li {
			padding:0;
			padding-bottom:0px;
			float:left;
			padding-right:13px;
		}
		
.pop {list-style:none; padding-right:10px;}
.pop a {text-decoration:none; color:#666; font-size:11px;}
.pop a:hover {color: #333}		


.menu{
	border:none;
	border:0px;
	clear:both; 
	font-family: Roboto, sans-serif;
	font-size:0.65rem;
	text-transform: uppercase;
	font-weight:normal;
	min-height:39px;
	width:100%;
	background: #8C540C;
	color:#ffffff;
	margin-top:1px;
	letter-spacing: normal;
	}
.menu ul{
	list-style:none;
	margin:0;
	padding:5px 0px 10px 10px; 	border:0px;
	overflow:hidden;
	}
	.menu li{
		float:left; 
		padding:7px; 	border:0px;
		}
	.menu li a{
	/*	background:url("images/seperator.gif") bottom right no-repeat;*/
		color:#ffffff;
		display:block;
		font-weight:bold;
		line-height: normal;
		margin:0px;
		padding:0px 75px 13px;
		text-align:center;
		text-decoration: underline; 	border:0px;
		}
		.menu li a:hover, .menu ul li:hover a{
			
			color:#FFFFFF;
			text-decoration:none;
			}
.menu li a {background:url("imgs/str.png") center left no-repeat;}


	.menu li ul{
		background:#9C6814;
		display:none;
		height:auto;
		padding:0px;
		margin:0px;
		border:0px;
		position:absolute;
		width:200px;
		line-height:35px;
		
		
		/*top:1em;
		/*left:0;*/
		}
	.menu li:hover ul{
		display:block; z-index:10000!important;
		
		}
	.menu li li {
	border-bottom:#844512 1px solid;
		display:block;
		float:none;
		margin:0px;
		padding:10px 0px 10px 0px;
	
		}
	.menu li:hover li a{
		 background:none; 
		
		}
	.menu li ul a{
		display:block;
		
		font-size:12px;
		font-style:normal;
		margin:0px;
		padding:0px 0px 0px 15px;
		text-align:left;
		}
		.menu li ul a:hover, .menu li ul li:hover a{
			
				padding:0px 0px 0px 15px;
			color:#ffffff;
			text-decoration:none;
			}
			.menu li ul li:hover{
			background:#8C540C;
			}
			
	.menu p{
		clear:left;
		}	

		
			/* Captions & aligment */
.aligncenter,
div.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
}

.alignright {
	float: right;
}

.wp-caption {
	border: 1px solid #ddd;
	text-align: center;
	background-color: #f3f3f3;
	padding-top: 4px;
	margin: 10px;
	-moz-border-radius: 3px;
	-khtml-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	max-width:100%;
}

.wp-caption img {
	margin: 0;
	padding: 0;
	border: 0 none;
	max-width:90%;
}

.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	padding: 0 4px 5px;
	margin: 0;
}

/* End captions & aligment */

.mmo {display:none}

.more-title { margin:25px 0 10px; font-size:1.6rem; }
#search .input_txt { width:201px; }

/* Область виджетов «Под меню» (левая колонка) */
.under-menu { margin:20px 0 20px 31px; }
.under-menu + .widget, .under-menu ~ * { clear:both; }
.under-menu .widget { margin-bottom:12px; }
.under-menu .widget-title { font-weight:bold; margin-bottom:5px; }

/* ======================================================================
   Адаптивность
   ====================================================================== */
*, *:before, *:after { box-sizing:border-box; }
#wrapper, #footer { max-width:100%; }
#content2 img, #content2 iframe, #content2 video { max-width:100%; height:auto; }
#content2 iframe { aspect-ratio:16 / 9; }
#content2 table { display:block; overflow-x:auto; max-width:100%; }
#left img, #left iframe { max-width:100%; }
.wp-caption { width:auto !important; box-sizing:border-box; margin:10px auto; }

@media screen and (max-width: 1020px) {
	#wrapper { width:100%; margin:0; min-height:0; height:auto; }
	#push { display:none; }
	#footer { width:100%; height:auto; padding-bottom:15px; }

	/* шапка: без абсолютного позиционирования, фон тянется */
	#header { height:auto; min-height:0; padding:30px 20px 20px; background:#f7f8ea url('imgs/bg1.jpg') right top no-repeat; background-size:cover; }
	#nazvanie img { background:rgba(255,255,255,.75); border-radius:12px; padding:6px; }
	#nazvanie, #search { position:static; }
	#nazvanie img { max-width:316px; }
	#google_up { display:none; }
	#search { margin-top:25px; }
	#search .input_txt { max-width:60%; }

	/* горизонтальное меню переносится, пункты уже */
	#pod { height:auto; }
	.menu { height:auto; }
	.menu ul { padding:5px 10px; }
	.menu li { padding:5px; }
	.menu li a { padding:6px 18px; }

	/* колонки */
	#left { width:220px; }
	#right { width:auto; float:none; overflow:hidden; margin-left:220px; }
	#content2 { padding:0 20px 0 15px; }
	.zag { margin:20px 20px 10px 15px; }
	#path { padding-left:15px; }
	.copyright { width:auto; float:none; padding:15px 20px 10px; }
	#counters { float:none; margin:0 20px 10px; }
}

@media screen and (max-width: 700px) {
	#header { padding:20px 12px 15px; text-align:center; }
	#nazvanie img { max-width:260px; }
	#search .input_txt { max-width:58%; }

	/* подменю показываются сразу под пунктами, а не по наведению */
	.menu li { float:none; padding:3px 0; }
	.menu li a { padding:6px 10px; text-align:left; background-position:left center; background-position-x:0; padding-left:20px; }
	.menu li ul { display:block; position:static; width:auto; background:#9C6814; line-height:normal; }
	.menu li li { padding:4px 0; }
	.menu li ul a { padding-left:30px; }
	.menu li:hover ul { display:block; }

	#content { display:flex; flex-direction:column; }
	#right { order:1; margin-left:0; width:100%; }
	#left { order:2; width:100%; padding:0 12px; border-top:1px solid #c5c6b9; margin-top:15px; }
	.under-menu { margin-left:0; }
	#content2 { padding:0 12px; }
	.zag { margin:15px 12px 10px; }
	#path { padding-left:12px; }
	h1 { font-size:1.7rem; }
	h2 { font-size:1.45rem; }
	.kagaz img { float:none; display:block; margin:10px 0; max-width:100% !important; }
	.kagaz_zag { font-size:1.2em; }
	.pages { margin-top:25px; }
	.pages a, .pages span { margin-bottom:4px; }
	.copyright, #counters { text-align:center; }
	#footer { background-size:contain; }
}
