/*div {margin: -1px; border:1px red solid;}*/
a img {border:none;}
body {background-color:#ffffff; font-family:arial, sans-serif;}
.clear {height:0px; width:100%; clear:both; overflow:hidden;}

div#overall {width:100%; height:331px; background: url('../images/head_bck.jpg') repeat-x top center; position:absolute; top:0; left:0;}
div#head {width:100%; height:166px; background: url('../images/head.jpg') no-repeat top center;}
div#headin {width:938px; height:166px; margin:auto; background: url('../images/head.jpg') no-repeat top center;}
div#menu {width:100%; height:61px; background: url('../images/menu.jpg') no-repeat top center;}
div#menuin {width:938px; height:61px; margin:auto; background: url('../images/menu.jpg') no-repeat top center;}
div#menuin ul li {display:block; float:left;}
div#menuin ul li a {display:block; height:34px; width:157px; padding:27px 0 0 30px; color:#ffffff; font-size:16px; text-decoration:none;}
div#menuin ul li a#af {width:127px; padding:27px 0 0 60px; background: url('../images/a_first.jpg') no-repeat 32px 0px;}
div#menuin ul li a#af:hover, div#menuin ul li a#af_active {width:127px; padding:27px 0 0 60px; background: url('../images/a_first_active.jpg') no-repeat 32px 0px; color:#ccffff;}
div#menuin ul li a#as {width:122px; padding:27px 0 0 65px; background: url('../images/a_sec.jpg') no-repeat 29px 0px;}
div#menuin ul li a#as:hover, div#menuin ul li a#as_active {width:122px; padding:27px 0 0 65px; background: url('../images/a_sec_active.jpg') no-repeat 29px 0px; color:#ccffff;}
div#menuin ul li a#at {width:134px; padding:27px 0 0 53px; background: url('../images/a_third.jpg') no-repeat 29px 0px;}
div#menuin ul li a#at:hover, div#menuin ul li a#at_active {width:134px; padding:27px 0 0 53px; background: url('../images/a_third_active.jpg') no-repeat 29px 0px; color:#ccffff;}
div#menuin ul li a#afo {width:124px; padding:27px 0 0 63px; background: url('../images/a_fourth.jpg') no-repeat 37px 0px;}
div#menuin ul li a#afo:hover, div#menuin ul li a#afo_active {width:124px; padding:27px 0 0 63px; background: url('../images/a_fourth_active.jpg') no-repeat 37px 0px; color:#ccffff;}
div#menuin ul li a#aff {width:120px; padding:27px 0 0 50px; background: url('../images/a_fifth.jpg') no-repeat 35px 0px;}
div#menuin ul li a#aff:hover, div#menuin ul li a#aff_active {width:120px; padding:27px 0 0 50px; background: url('../images/a_fifth_active.jpg') no-repeat 35px 0px; color:#ccffff;}
div#maintop {width:100%; height:104px; background: url('../images/maintop.jpg') no-repeat top center;}
div#maintopin {width:938px; height:104px; margin:auto; background: url('../images/maintop.jpg') no-repeat top center;}
div#main {width:938px; height:auto; margin:auto;}
div#mainin {width:938px; height:auto; padding-top: 331px; font-size:14px;}
div#mainin p {margin-bottom:15px;}
div#mainin ul {list-style-type:disc; margin-left:25px;}
div#mainin ol {list-style-type:decimal; margin-left:25px;}
div#mainin ul li, div#mainin ol li {margin-bottom:5px;}
div#mainin h1 {text-align:center; font-size:16px; font-weight:bold; margin-bottom:25px;}
div.imagetitle {font-style:italic; font-size:12px; margin:10px 0 20px 0;}

/*Portfolio*/
div.port {width:938px; margin-bottom:50px;}
div.portimg {width: 220px; float:left; padding-right:30px;}
div.porttext {width: 688px; float:left;}
div.port img {border:10px #99cccc solid; -webkit-border-radius:5px; -moz-border-radius:5px; -webkit-box-shadow: 5px 5px 7px #888; -moz-box-shadow: 5px 5px 7px #888;}
div.port img:hover {border:10px #669999 solid; -webkit-border-radius:5px; -moz-border-radius:5px; -webkit-box-shadow: 5px 5px 7px #888; -moz-box-shadow: 5px 5px 7px #888;}

/*Social bookmarks*/
div.addthis_toolbox a {color:#000000;}

/*Footer*/
div#footer_all {width:100%; height:195px; background: url('../images/bot_bck.jpg') repeat-x bottom center;}
div#bot {min-width:938px; height:195px; background: url('../images/bot.jpg') no-repeat bottom center;}
div#botin {width:938px; height:95px; margin:auto; text-align:center; padding-top:100px;}
div#botin span#uright {font-size:12px;}

/*Reshenie dlya rastyagivaniya vysoty*/
html, body, #wrap {height: 100%;}
body > #wrap {height: auto; min-height: 100%;}
#main {padding-bottom: 195px;}
#footer_all {position: relative; margin-top: -195px; height: 195px; clear:both;} 
/* CLEAR FIX*/
.clearfix:after {content: "."; display: block; height: 0;	clear: both; visibility: hidden;}
.clearfix {display: inline-block;}
/* Hides from IE-mac \*/
* html .clearfix { height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */
