/* Импорт CSS */
@import url("header.css");
@import url("footer.css");
@import url("news.css");

body {
	margin: 0px;
	padding: 0px;
	overflow-x:hidden;
	width: 100%;
}

#header {
	width: 100%;
	display: flex;
	flex-direction: column;
	background-color: #f5f5f5;
	border-bottom: 2px solid #666;
}

main {
	margin: 15px;
	margin-top: 0px;
}

main h4 {	
	font-family: 'Merriweather', serif;
	font-size: 15px;
}

main h5 {	
	font-family: 'Roboto', sans-serif;
	font-size: 15px;
	margin: 15px;
	text-align: left;
	color: #222;
	
}

.m_head {
	display: flex;
	padding-top: 10px;
	margin: auto;
	width: 1150px;
    background:#eee;
	background: url("../images/bg/31.jpg") no-repeat;
	background-size: cover;
	border-bottom: 1.5px solid #000;
}

.m_head .form {
	flex: 1 1 100px;
}



fieldset {
	margin: auto;
	margin-bottom: 20px;
	text-align:center;
	width: 60%;
	font-family: 'Noto Serif', serif;
	font-size: 23px;
	background: rgba(0,0,0,.1);
	text-shadow: 2px 1px #111;
	color: #fff;
	border-radius: 15px;
	box-shadow: 1.5px 1px #fff;
}


input {
    width: 84%;
    height: 32px;
	margin: 10px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 4px;
    font-size:16px;
	text-align: left;
	padding-left: 10px;
	font-size: 15px;
	background: rgba(255, 255, 255, 0.4);
}

.btn {	
	font-family: 'Merriweather', serif;
	background: #fff;
	text-align: center;
}

.btn:hover {
	background: rgba(255, 255, 255, 0.4);
}

.m_head .head_text {
	flex: 2 1 100px;
}

.head_text {
	text-align: center;
}

.head_text h1 {
	text-align: center;
	font-family: 'Noto Serif', serif;
	font-size: 40px;
	text-shadow: 1px 1px #eee;
	margin: 20px;
}

.head_text h2 {
	text-align: center;
	font-family: 'Noto Serif', serif;
	font-size: 30px;
	text-shadow: 2px 1px #000;
	margin: 20px;
	color: #fff;
}

hr {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
	width: 50%; margin: 0 25% 0 25%;
	margin-bottom: 20px;
}

.underline {
	text-decoration: underline;
}


#footer {
	width: 100%;
	display: flex;
	flex-direction: column;
	background-color: #f5f5f5;
	border-top: 2px solid #666;
}

.contacts_page {
	width: 100%;
	display: flex;
	flex-direction: column;
	text-align: center;
	margin: 10px;
}

.contacts_page_1 {
	width: 55%;
	margin: auto;
	border: 1px solid #555;
	background: #f5f5f5;
	text-align: left;
	padding: 10px;
}

.contacts_page_1 h4 {
	text-align: center;
}

.servis_page {
	width: 55%;
	margin: auto;
	border: 1px solid #555;
	background: #f5f5f5;
	text-align: left;
	padding-left: 15px;
	font-family: 'Merriweather', serif;
	color: #222;
}

.servis_page a{
	font-family: 'Merriweather', serif;
	color: #222;	
}

.servis_page li{
	text-align: left;
	margin: 5px;
}

.about_page_1 {
	width: 55%;
	margin: auto;
	border: 1px solid #555;
	background: #f5f5f5;
	display: flex;
	padding-left: 15px;
	font-family: 'Merriweather', serif;
}

.about_page_2 {
	width: 70%;
	text-align: left;
}

.doc_block {
	display: flex;
	width: 55%;
	margin: auto;
}

.doc_block1 {
	flex: 1 1;
}

.doc_block1 img {
	height: 170px;
}
.about_page_3 {
	width: 30%;
	border: 1px solid #000;
}

.about_page_1 img{
	width: 100%;
}

.news {
	width: 100%;
	display: flex;
	flex-direction: column;
	text-align: center;
	margin: 10px;
}

.news_block {
	display: flex;
	margin: auto;
}

@media all and (max-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px){
	.news_block {
	display: flex;
	flex-direction: column;
	margin: auto;
}
}

.news_bl {
	width: 300px;
	margin: 10px;
}

.img_news {
	height: 240px;
	width: 100%;
	overflow: hidden;
	border-radius: 10px 10px 0px 0px;
}

.img_news img{
	height: 100%;
}

.text_news {
	color: #222;
	font-family: 'Arsenal', sans-serif;
	font-size: 17px;
	background: #eee;
	height: 90px;
}

.text_news p {
	margin: auto;
	display: block;
}
.next_news {
	height: 35px;
	background: #ccc;
	overflow: hidden;
	border-radius: 0px 0px 10px 10px;
	border: 1px solid #666;
	vertical-align: midlle;
}

.next_news a{
	color: #444;
	font-family: 'Tinos', serif;
	font-size: 19px;
	padding: 5px;
	display: block;
	text-decoration: none;
}

.next_news a:hover{
	color: #fff;
}

main h3 {
	font-family: 'Merriweather', serif;
	color:  #222;
	font-size: 15px;
}


.partners {
	width: 100%;
	display: flex;
	flex-direction: column;
	text-align: center;
	margin: 10px;
}

.partners img {
	max-height: 50px;
	opacity: 0.2;
	transition-property: opacity;
	transition-duration: 1.4s;
	margin: 10px;
}

.partners img:hover {
	opacity: 1;
}

.logo_partners {
	border: 1px solid #555;
	border-radius: 7px;
	background: #f5f5f5;
	margin: auto;
	display: flex;
}

@media all and (max-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px){
	.logo_partners {
	background: #f5f5f5;
	margin: auto;
	display: flex;
	flex-direction: column;
	}
}

.med_block1 {
	width: 60%;
	border: 1px solid #555;
	background: #f5f5f5;
	margin: auto;
}