body, html {
text-align:center;
height:100%;
margin:0;
padding:0;
}
body{
	background: #FFF url(../images/fon.jpg) left -145px repeat-x
}


/*---------------------------------------------
               ОСНОВНОЙ КОНТЕЙНЕР
---------------------------------------------*/

#main-container{
margin:0 auto;
text-align:left;
min-height:100%;
width:1000px;
max-width: 100%;
}
* html #main-container{height:100%;}

/***************** Шапка сайта */
#header{
position:relative;
height:264px;
}
#header a.logo {
position:absolute;
left: 0px;
margin: 0;
padding: 8px;
padding-top:0px;
text-decoration:none;
background-color:rgba(0,0,0,0.63);
z-index:1;
}

#header a.logo img{
	padding:50px;
	border:1px solid rgba(177,162,135,0.36);
	border-top:none;
	background: #000;}

.logo_tx{
	background:url(../images/logo_tx.png) center top no-repeat; 
	position:absolute;
	left:250px;
	top:33px;
	font:11px 'PFDinTextPro-Light';
	color:#636363;
	display:block;
	width:178px;
	padding: 92px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.35px;}

.mdsearch{
	position:absolute;
	right:21px;
	top:39px;}
	
.mdsearch #search_form{
	border:1px solid #5a5a5a;
	border-radius:2px;
	overflow:hidden}

.mdsearch input.text-input{	
	height:28px;
	padding:0 0 0 10px;
	margin:0;
	border:0px;
	background:#000;
	font:13px Verdana;
	color:#636363;}

.mdsearch input[type="submit"]{	
	background-image: url(../images/search_icon.png), -moz-linear-gradient(top,  #e1b161,  #c09242);
	background-image: url(../images/search_icon.png), -webkit-gradient(linear, left top, left bottom, from(#e1b161), to(#c09242));
	background-repeat:no-repeat;
	background-position:center;
	border:0px;
	cursor:pointer;
	text-indent:-9999px;
	width:30px;
	height:28px;
	padding:0;
	margin:0 0 0 -4px}

.mdsearch input[type="submit"]:hover{
	background-image: url(../images/search_icon.png), -moz-linear-gradient(top,  #c09242,  #e1b161);
	background-image: url(../images/search_icon.png), -webkit-gradient(linear, left top, left bottom, from(#c09242), to(#e1b161));
	}

/***************** Модульная позиция - TOP */
#top {
	margin:0 0 39px;
	overflow:hidden
}

/***************** Левая колонка */
#left{
padding:0;
float:left;
line-height:normal;
width:230px;
}

/***************** Правая колонка */
#right{
padding:5px;
float:right;
line-height:normal;
width:220px;
}

/***************** Стили блока основного содержания */
#both{
margin:0 220px;
padding:0 15px;
}
#only_left {
margin:0 0 0 258px;
padding:0;
}
#only_right {
margin:0 220px 0 0;
padding:0 15px;
}
#no_sides {padding:0 10px}

/***************** Модульная позиция - BOTTOM */
#bottom {
	margin:15px 0;
	overflow:hidden
}

/***************** Clear block and Rasporka */
#clear{
height:0;
font-size:1px;
line-height:0px;
clear:both;
}
#rasporka {height:173px; margin:20px 0 0}


/*---------------------------------------------
                  ПОДВАЛ САЙТА 
---------------------------------------------*/
#footer{
	background:#000;
position:relative;
height:173px;
font-family:Verdana, Geneva, sans-serif;
font-size:11px;
margin:-173px auto 0;
width:100%
}
/************************************ Счетчики */
p.copyright {
	position:absolute;
	right:50%;
	top:55px;
	margin:0 -500px 0 0;
	text-align:right;
	font:14px 'PFDinTextPro-Regular';
	color:#898989
}
p.copyright a {color:#898989}
/************************************ Счетчики */
.knopki{
	position:absolute;
	right:50%;
	margin:0 -500px 0 0;
	top:125px;
	width:297px;}

.knopki a{
	display:inline-block;
	margin-left:10px}
	
a[class^=sitemap]{
	background:url(../images/sitemap.png) right center no-repeat;
	margin:0px;
	padding: 10px 28px 0 0;
	font:10px Arial;
	text-decoration:none;
	color:#fff;}

.mdinfo{
	position:absolute;
	left:50%;
	top:32px;
	width:195px;
	margin-left:-500px;
	padding: 10px 0 0 22px;
	background:url(../images/info_icon.png) 0px 0px no-repeat;
	font:17px 'PFDinTextPro-Regular';
	color:#b7b7b7;}
	
.mdinfo>p{margin:0}

.mdinfo>p>strong{font:26px 'PFDinTextPro-Regular';}
/************************************ Модуля */
.mdcatalog{
	margin-bottom:32px}

.md_titlecatalog{
	color:#fff;
	text-transform:uppercase;
	padding: 15px 5px 15px 26px;
	margin:0;
	font:18px 'PFDinTextPro-Regular';
	background:#000000;
	border-bottom:5px solid #d29a37;
	}

.md_titlenews{
	color:#000;
	text-transform:uppercase;
	padding: 15px 5px 15px 26px;
	margin:0;
	font:18px 'PFDinTextPro-Regular';
    background: #c89b4f; /* Для старых браузров */
    background: linear-gradient(to top, #c89b4f, #e1b261);}

#left .module,
#right .module {
	margin:0 0 15px;
}
#left .moduletitle,
#right .moduletitle {
	font-size:18px;
	text-align:center;
	margin:0 0 10px
}
#left .modulebody,
#right .modulebody {}



img{
	max-width: 100%;
	height: auto !important;
}




@media only screen and (max-width: 1024px){

	.mdphotomd, .nav-left-right{
		display: none;
	}
	.mdinfo{
		left: 0;
		margin-left: 0;
	}
	p.copyright, .knopki{
		right: 0;
		margin: 0;
	}


} 

@media only screen and (max-width: 890px){

	#header a.logo{
		display: none;
	}
	.logo_tx{
		left: 33px;
	}

}

@media only screen and (max-width: 686px){

	#top{
		display: none;
	}
	#header{
		height: 164px;
	}
	.mainmenu.menu{
		width: 278px;
	}
	.mainmenu.menu li{
		float: none;
		margin: 0 auto;
		display: inline-block;
	}
	#left{
		width: 100%;
		float: none;
	}
	#only_left{
		margin: 10px 0 0;
		width: 98%;
		padding: 0 1%;
	}

}

@media only screen and (max-width: 490px){

	#header{
		height: 224px;
	}
	.mdsearch{
		display: none;
	}
	.mdinfo, p.copyright, .knopki{
		right: 0;
		left: 0;
		margin: 0 auto;
	}
	p.copyright{
		text-align: center;
		top: 90px;
	}
	.mdinfo{
		top: 15px;
	}
	.logo_tx{
		left: 0;
		right: 0;
		margin: 0 auto;
	}
	.mainmenu.menu{
		top: 160px;
		left: 0;
		right: 0;
		margin: 0 auto;
	}

}

.photo_gallery table{
width: 100%;
}