html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  outline: none;
}

html {
	background: url('../images/bg.png') repeat;
}

body {
	font-family: 'Open Sans', sans-serif;
}

.main-body {
	width: 1020px;
	margin: 0 auto 60px;
	background: #fff;
	box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.4);
	border-top: 5px solid #169fe6;
}


/************ header ************/
header {
	height: 130px;
	width: 1001px;
}

.logo {
	float: left;
	margin: 10px 0 0 40px;
}

.logo img {
	float: left;
}

.social {
	float: right;
	text-align: right;
	font-size: 16px;
	color: #888;
	margin: 40px 0 0;
}

.social img {
	padding: 0 0 5px 2px;
}

/************ nav ************/
nav {
	padding: 0;
	margin: 0;
	background: #4c4c4c;
}

nav a {
	display: inline-block;
	width: 142.15px;
	padding: 20px 0 20px 0px;
	text-decoration: none;
	text-align: center;
	font-size: 14px;
	color: #fff;
	
	/*outline: 1px solid white;*/
}

nav a:hover {
	background: #169fe6;
}

nav img {
	margin-right: 5px;
}

/************ content ************/
.content-wrapper {
	box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.4);
}

.content {
	width: 944px;
	margin: 0 auto;
	padding: 60px 0;
	color: #888;
}

.poem{
	width:515px;
	padding: 20px 5px 22px 429px;
	font-family: 'Courier New';
	text-align: right;
	color: #008000;
	text-shadow: 1px 1px 3px #adadad;

}

.content .poem p{
	margin-bottom: 1px;
	font-size: 20px;
}

.content p {
	margin-bottom: 18px;
}

.content .citat p{
	margin-bottom: 10px;
	margin-top: 10px;
	font-family: 'Courier New';
	text-align: right;
	color: #008000;
}

.content h1 {
	padding: 15px 0;
	font-size: 26px;
	color: #169fe6;
}
.content h2 { /* заголовок 2 */
    margin: 0;
    color: #008000;
    padding: 5px 0px 10px;
    text-align: left;
    text-shadow: 1px 1px 3px #adadad;
    font-weight: 500;
    font-size: 1.4em;
    font-family: 'Tahoma', Arial, sans-serif;
    line-height: 1.3;
}

/******CONTACTS************/
.content .maps{
	padding: 5px;
	border: 2px solid #169fe6;
	width: 472px;
	float: left;
}
.content .maps_text{
	padding: 65px 15px 200px 15px;
	width: 472px;
	float:left;
	
}


/************ news ************/
.news-wrapper {
	background: #fcfcfc;
	padding-bottom: 50px;
	border-top: 1px solid rgba(0,0,0,0.2);
	border-bottom: 1px solid rgba(0,0,0,0.2);
}

.news {
	width: 944px;
	margin: 0 auto;
}

.news a {
	text-decoration: none;
}

.news h1 {
	padding: 15px 0;
	font-size: 46px;
	text-align: center;
}

.news_item {
	display: inline-table;
    width: 220px;
    margin: 0 0 0 25px;
    text-align: center;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    height: 325px;
}

.news_item a {
	color: #333;
}

.news_item em {
	color: #888;
	font-size: 13px;
}

.news_item img {
	border-bottom: 5px solid #e5e5e5;
}

.news_item img:hover {
	border-bottom: 5px solid #169fe6;
}

/*****photo***/
.photo-wrapper{
	background: #fcfcfc;
	padding-bottom: 50px;
	border-top: 1px solid rgba(0,0,0,0.2);
	border-bottom: 1px solid rgba(0,0,0,0.2);
}
.photo{
	width: 944px;
	margin: 0 auto;
	text-align:center;
}
.photo_item {
	display: inline-block;
	width: 220px;
	margin: 10px 0 0 0;
	text-align: center;
	vertical-align:middle; 
	box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

ul{list-style:none;}
.text-center {text-align: center; padding: 10px 0;}

.gallery {
	width: 1000px;
	height: 760px;
	margin: 0 auto 20px auto;
	text-align: center;
	vertical-align:middle; 
}
.gallery ul {
	vertical-align:middle; 
	padding: 26px 11px 12px 13px;
}
.gallery li {
	display: inline; 
	margin-right: 3px;
	vertical-align:middle;
	}
.gallery li  img{
	display: inline; 
	margin: 3px 3px 3px 3px;
	vertical-align:middle;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
	}
	
.main-img {
	background: url(bg_img.png) no-repeat 0 0;
	padding: 30px; 
	text-align: center;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
}

/*NEWs PAGE*/
.news-page__date {
	display: block;
	background: #f2f2f2;
	border-radius: 6px;
	margin-top: 25px;
	font-size: 18px;
	color: #999;
	text-align: center;
}

.news-page__date span {
	display: block;
	background: #cccccc;
	border-radius: 0 0 6px 6px;
	font-size: 18px;
	color: #fff;
}




/************ footer ************/
footer {
	display: block;
	width: 1024px;
	padding: 15px 0;
	margin: 0 auto;
	background: #424242;
	text-align: center;
	font-size: 12px;
	color: #aaa;
}
/*=====================МОДАЛЬНЫЕ ОКНА=========*/
/* Базовые стили слоя затемнения и модального окна  */
.overlay {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: none;
/* фон затемнения */
    background-color: rgba(0, 0, 0, 0.65);
    position: fixed; /* фиксированное поцизионирование */
    cursor: default; /* тип курсара */
}
/* активируем слой затемнения */
.overlay:target {
    display: block;
}
/* стили модального окна */
.popup {
    top: -100%;
    right: 0;
    left: 50%;
    font-size: 14px;
    z-index: 20;
    margin: 0;
    width: 85%;
    min-width: 320px;
    max-width: 1020px;
	height: 450px;
	
/* фиксированное позиционирование, окно стабильно при прокрутке */
    position: fixed;
    padding: 10px;
    border: 1px solid #383838;
    background: #fefefe;
/* скругление углов */
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    border-radius: 4px;
    font: 14px/18px 'Tahoma', Arial, sans-serif;
/* внешняя тень */
    -webkit-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -moz-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -ms-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -webkit-transform: translate(-50%, -500%);
    -ms-transform: translate(-50%, -500%);
    -o-transform: translate(-50%, -500%);
    transform: translate(-50%, -500%);
    -webkit-transition: -webkit-transform 0.6s ease-out;
    -moz-transition: -moz-transform 0.6s ease-out;
    -o-transition: -o-transform 0.6s ease-out;
    transition: transform 0.6s ease-out;
}
/* активируем модальный блок */
.overlay:target+.popup {
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    -o-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    top: 20%;
}
/* формируем кнопку закрытия */
.close {
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    position: absolute;
    padding: 0;
    border: 2px solid #ccc;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    border-radius: 15px;
    background-color: rgba(61, 61, 61, 0.8);
    -webkit-box-shadow: 0px 0px 10px #000;
    -moz-box-shadow: 0px 0px 10px #000;
    box-shadow: 0px 0px 10px #000;
    text-align: center;
    text-decoration: none;
    font: 13px/20px 'Tahoma', Arial, sans-serif;
    font-weight: bold;
    -webkit-transition: all ease .8s;
    -moz-transition: all ease .8s;
    -ms-transition: all ease .8s;
    -o-transition: all ease .8s;
    transition: all ease .8s;
}
.close:before {
    color: rgba(255, 255, 255, 0.9);
    content: "X";
    text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
    font-size: 12px;
}
.close:hover {
    background-color: rgba(252, 20, 0, 0.8);
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);    
}
/* изображения внутри окна */
.popup img {
    width: 45%;
    height: auto;
	border: 3px solid #008000;
	padding: 5px;
	margin: 10px;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
	vertical-align:middle;
}
.popup .img_st{
	text-align:center;
}
/* миниатюры слева/справа */
.pic-left, 
.pic-right {
    width: 25%;
    height: auto;
}
.pic-left {
    float: left;
    margin: 5px 15px 5px 0;
}
.pic-right {
    float: right;
    margin: 5px 0 5px 15px;
}
/* элементы м-медиа, фреймы */
.popup embed, 
.popup iframe {
    top: 0;
    right: 0;
    bottom: 0; 
    left: 0; 
    display:block;
    margin: auto;
    min-width: 320px;
    max-width: 800px;
    width: 100%;
}
.popup h2 { /* заголовок 2 */
    margin: 0;
    color: #008000;
    padding: 5px 0px 10px;
    text-align: left;
    text-shadow: 1px 1px 3px #adadad;
    font-weight: 500;
    font-size: 1.4em;
    font-family: 'Tahoma', Arial, sans-serif;
    line-height: 1.3;
}
/* параграфы */
.popup p {margin: 0; padding: 5px 0}