
#main {
	width:100%;
	max-width:1020px;
}

#content{
	width:100%;
	max-width:710px;
}

#header {
	width:100%;
	max-width:908px;
}
.link_on_main_mob{display:none;}

@media (max-width: 800px) {

	body {padding-left:10px;padding-right:10px;}
	#nav_line {display:none;}
	#main_link {display:none;}
	#header {background-position-y: 0;padding-top: 130px;height:auto;background-size:contain;}
	#header_info{
		margin:0 !important;
		text-align:center !important;
	}
	#header_info a{
		width:49%;
		margin:0;
		display:inline-block;
	}
	#navigation {padding: 0;text-align: center;margin-top:20px;}
	#navigation a:after { content:"|"; color:#fff; margin-left:5px;}
	#navigation a{ margin:0 !important; }
	#nav_line {display:none;}
	#news { width:100%; margin:40px auto !important; float:unset !important;min-height:unset !important;box-sizing: border-box;}
	.MsoTableGrid {width:100% !important;margin:0 !important;border:none !important;}
	.MsoTableGrid td {width:100% !important; border:none !important;border-bottom:1px solid black !important;padding:0 !important;}
	#Рисунок_x0020_12,#Рисунок_x0020_9,#Рисунок_x0020_5,#Рисунок_x0020_12{display:none;}

	* {text-indent: unset !important}
	table p {text-align:unset;}

	#content #menu {width:100%;    box-sizing: border-box;}
	#content h2,#content h1{margin: 20px 0;text-align: center;}

	.portlet-content table {width:100% !important;}

	#content li {margin-left:30px;}
	.gallery_out {text-align:center !important;}
	textarea {
    	width: 100%;
    	max-width: 300%;
    	height: 150px;
	}
	.g-recaptcha>div,.g-recaptcha>div iframe {width:100% !important;max-width:304px;}
	#contact-form img {width:100%;}

	#main {display:flex;flex-direction: column;}
	#header {order:1;}
	#content {order:2;margin-bottom:0; box-sizing: border-box;min-height:auto;}
	#news {order:3;}
	#navigation_down {order:4;}
	#copyright {order:5;}

	.link_on_main_mob {
		position: absolute;
	    top: 0;
	    display: block;
	    height: 130px;
	    width: 100%;}
	}


}	
