* {padding:0; margin:0;}

html, body { height:100%; }

body {
	font-family: Georgia, "DejaVu Serif", serif;
	font-size: 100%;
	color: #000;
	line-height: 18px;
	background: #E7D9AE url('../images/background.jpg') -200px -200px;
}

h2, h3, h4, h5, h6, pre, blockquote, label, ol, dl, fieldset {margin: 16px 16px 16px 0;}
li, dd { margin-left:5%; }
fieldset {padding: 16px;}

h1 a {
	background: url('../images/menu.jpg') 0 -244px no-repeat;
	display: block;
	width: 316px;
	height: 115px;
	margin: 5px 15px;
	float: right;
}
 
h1 a span {display:none;}

p {
	font-size: 16px;
	text-align: justify;
	text-indent: 25px;
	margin: 10px 0;
}

blockquote {font-style: italic; border: 1px dashed #000; padding: 5px 10px;}

strong {
	color: #790000;
	font-size: 16px;
}

ul.simple {
	margin: 0 0 5px 46px;
}

ul li ul {
	margin: 5px 0;
}

a:link {color: #790000;}
a:visited {color: #790000}
a:hover {color: #b71c1c;}
a:active {color: #790000;}
a:focus {outline: none; color: #790000;}

img {border: 0;}

#counters {display: none;}

#page {
	height:100%;
	min-height:100%;	
	width: 914px;
	margin: 0 auto;	
	margin-bottom: -100px;
	padding-bottom: 1px;
}

#caption {	
	width: 100%;
	height: 30px;
	padding-top: 10px;
}

#header {
	width: 100%;
	height: 350px;
	margin: 0 0 10px 0;
	padding:0;
	float: left;
}

#header_left {
	float: left;
	width: 350px;
	height: 100%;
}

#header_right {
	float: left;
	width: 550px;
	height: 100%;
	overflow: hidden;
	background: url('../images/menu.jpg') -562px 0 repeat-y;
}

#header_right h2, #header_right h3 {
	font-weight: bolder;
	margin: 45px 0 20px 20px;
}

#header_right h2 {font-size: 26px;}

#header_right h3 {font-size: 18px;}

#header_right p {
	margin: 5px 0 0 20px;
}

#content {
	clear: both;
	float:left;
	font-size: 16px;
	font-weight: normal;
	width: 100%;
	min-height:200px;
}

#footer {
	clear:both; 
	width: 100%; 
	height: 60px;
	background: url("../images/menu.jpg") repeat-x 0 -380px;
	padding-top: 40px;
}

#footer_content {	
	margin: 0 auto;
	width: 900px;
}

#left {margin: 15px 0 0 80px;}
#content h1 {font-size: 20px; font-weight: bold; margin: 0; padding: 0 0 0 35px; line-height: 95px;}
#content_left img {margin: 0 auto; display:block;}
#content_left li {text-align: justify;}
#content_right img {float:left; margin: 5px 16px 5px 0;}
#content_left {
	width: 280px;
	padding: 0 20px 0 50px;
	float: left;
}

#content_right {
	width: 530px;
	padding-left: 20px;
	float: left;
}

#left {float: left; width: 250px; text-align: left;}
#right {float: right; width: 450px; border-left: 4px dashed #000;}

#left p {margin: 140px 0 0 0;}

#menu {
	position:relative;
	left: 105px;
	width: 228px;
}

#menu, #menu ul, #menu li {
	float: left;
	list-style: none;
	padding: 0;
	margin: 0;
}

#menu li{
	display: inline;
	height: 75px;
	width: 75px;
	overflow:hidden;
}


#about a, #portfolio a, #sites a, #news a, #contacts a, #downloads a, #docs a {
	margin:0;
	padding:0;
	position:relative;
	height: 76px;
	width: 76px;
}

#about a, #portfolio a, #sites a, #news a, #contacts a, #downloads, #docs a {
	display: block;
	position:absolute;
	left:0;
	top:0;
	z-index:1;
	height: 76px;
	width: 76px;
}

#about {position: absolute; top: 0px; left: 0px;}
#news {position: absolute; top: 0px; left: 76px;}
#contacts {position: absolute; top: 0px; left: 151px;}
#portfolio {position: absolute; top: 76px; left: 76px;}
#sites {position: absolute; top: 76px; left: 151px;}
#downloads {position: absolute; top: 152px; left: 151px;}
#docs {position: absolute; top: 152px; left: 151px;}

#about {background: url('../images/menu.jpg') 0px 0px no-repeat;}
#news {background: url('../images/menu.jpg') -75px 0px no-repeat;}
#contacts {background: url('../images/menu.jpg') -150px 0px no-repeat;}
#portfolio {background: url('../images/menu.jpg') -225px 0px no-repeat;}
#sites {background: url('../images/menu.jpg') -300px 0px no-repeat;}
#downloads {background: url('../images/menu.jpg') -375px 0px no-repeat;}
#docs {background: url('../images/menu.jpg') -450px 0px no-repeat;}

#about a:hover {background: url('../images/menu.jpg') 0px -79px no-repeat;}
#news a:hover {background: url('../images/menu.jpg') -75px -79px no-repeat;}
#contacts a:hover {background: url('../images/menu.jpg') -150px -79px no-repeat;}
#portfolio a:hover {background: url('../images/menu.jpg') -225px -79px no-repeat;}
#sites a:hover {background: url('../images/menu.jpg') -300px -79px no-repeat;}
#downloads a:hover {background: url('../images/menu.jpg') -375px -79px no-repeat;}
#docs a:hover {background: url('../images/menu.jpg') -450px -79px no-repeat;}

#about.active {background: url('../images/menu.jpg') 0px -158px no-repeat;}
#news.active {background: url('../images/menu.jpg') -75px -158px no-repeat;}
#contacts.active {background: url('../images/menu.jpg') -150px -158px no-repeat;}
#portfolio.active {background: url('../images/menu.jpg') -225px -158px no-repeat;}
#sites.active {background: url('../images/menu.jpg') -300px -158px no-repeat;}
#downloads.active {background: url('../images/menu.jpg') -375px -158px no-repeat;}
#docs.active {background: url('../images/menu.jpg') -450px -158px no-repeat;}

#about span, #news span, #contacts span, #portfolio span, #sites span, #downloads span, #docs span {display: none;}

#footer_menu {float: right; margin: 0; font-size: 14px;}
#footer_menu li {display: inline; margin: 0 5px; font-size: 14px;}

#footer_menu li.active {color: #790000; font-weight: bold;}
#footer_menu li a {color: #000000;}
#footer_menu li a:hover {color: #790000;}

#copyright {float: left; font-size: 14px; margin: 0 0 0 30px;}
#copyright img {margin: 0 0 0 0;}


#icons ul {
	float: right;
	list-style: none;
	width: 99px;	
}
	
#icons ul li{
	display: inline;
	float: left;
	margin: 0;
	padding: 0;
}

#icons ul li span {display: none;}

#icons ul li a { 
	display: block;
	overflow: hidden;
	width: 33px;
	height: 23px;
}

#twitter {background: url('../images/menu.jpg') -316px -242px no-repeat;}
#twitter a:hover {background: url('../images/menu.jpg') -316px -266px no-repeat;}

#vkontakte {background: url('../images/menu.jpg') -382px -242px no-repeat;}
#vkontakte a:hover {background: url('../images/menu.jpg') -382px -266px no-repeat;}

#freelance {background: url('../images/menu.jpg') -415px -242px no-repeat;}
#freelance a:hover {background: url('../images/menu.jpg') -415px -266px no-repeat;}

.s_card, .p_card  {
	clear: both;
	overflow: hidden;
	margin: 13px 0 10px 0;
}

.s_card {width: 790px; 	height: 175px; padding-left: 110px;}
.p_card {width: 740px; 	height: 250px; padding-left: 160px;}

.s_card img, .p_card img {
	float: left;
	border: none;
}

.s_card p, .s_card h5, .p_card p, .p_card h5 {
	float: left;	
	margin: 0 0 0 30px;	
}

.s_card p, .s_card h5{
	width: 530px;
}

.p_card p, .p_card h5{
	width: 530px;
}

.s_card h5, .p_card h5 {
	margin-top: 15px;
}

.s_card h5, .p_card h5 {
	font-size: 18px;
	margin-bottom: 10px;
}

.s_card address a, .p_card address a {
	float: right;
	font-size: 15px;
	font-style: normal;
	margin-top: 10px;
}
.p_card address a {display: none; }

.cutter {
	background: url('../images/menu.jpg') repeat-x -312px -292px;
	width: 60px;
	height: 20px;
	float: left;
}

.cut {
	background: url('../images/menu.jpg') repeat-x 14px -357px;
	display: block;
	height: 20px;
	width: 100%;
}

.error {
	margin-bottom: 50px;
	font-size: 40px;
	line-height: 40px;
}

span.date_time {
	font-size: 17px;
	font-weight: bold;
}

.source {margin: 0; padding: 0; text-align: right; font-size: 12px;}

.news p {margin: 0px; padding: 0 0 0 25px; text-indent: 0px;}
.news .date_time {margin: 0 0 0 -25px;}

.error404 {
	margin: 0 0 0 50px;
	width: 400px;
	height: 344px;
	background: url('../images/404.jpg') 0 -30px no-repeat;
}

.button {width: 88px; height: 31px; overflow: hidden; display: block; margin: 4px; padding: 0; float: left;}

code {
	display: block;
	border: 1px dashed #000; 
	padding: 5px 10px;
	margin: 10px 0;
	width: 100%;
}

.doc {
	margin-left: 50px;
}
	
.doc p.download span {
	background: url('../images/menu.jpg') -322px -322px no-repeat;
	width: 17px;
	height: 17px;
	display: block;
	float: left;
	margin-right: 5px;	
}

.doc p.download {
	text-indent: 0;
	margin-left: 25px;
}

#docs_list {
	margin-left: 50px;
}

#docs_list a {
	font-size: 18px;
}

a.read_more, #docs_list a.read_more {
	font-size: 15px;
	margin: 0;
	float: right;
}

a.back {
	float: right;
}

.table_document {
	border-right: 1px solid #000;
	border-bottom: 1px solid #000;
	width: 100%;
}

.table_document td {
	border-top: 1px solid #000;
	border-left: 1px solid #000;
	padding: 2px;
}
