/*
------------------------------------------------------------------------------------------------------------------
  Classes
------------------------------------------------------------------------------------------------------------------
*/

.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }
html[xmlns] .clearfix { display: block; }

.clear { display: block; clear: both; font-size: 1px; line-height: 1px; height: 1px; }

.fleft { float: left; }
.fright { float: right; }

img.fleft { float: left; margin: 0 10px 5px 0; }
img.fright { float: right; margin: 0 0 5px 10px; }

.aleft { text-align: left; }
.aright { text-align: right; }
.acenter { text-align: center; }

/*
------------------------------------------------------------------------------------------------------------------
  Main
------------------------------------------------------------------------------------------------------------------
*/

* { margin: 0; padding: 0; }
html { height: 100%; }
body { position: relative; color: #AE9A8A; font-size: 0.9em; background: #100607 url('../img/body-bg.jpg') no-repeat top center; height: 100%; }

p, ul, ol, dl { padding: 10px 0; }

table { margin: 10px 0; width: 100%; }

h1, h2, h3 { padding: 20px 0 10px 0; font-family: Tahoma, Serif; }
h1 { font-size: 2em; font-weight: normal; }
h2 { font-size: 1.75em; font-weight: normal; }
h3 { font-size: 1.5em; }

big { font-size: 1.2em; }
small { font-size: 0.9em; }

a { color: #8B735F; text-decoration: underline; }
a:hover { text-decoration: none; }
a img { border: 0; }

img { border-color: #0F0705; } 

#canvas { position: relative; margin: 0 auto; width: 990px; min-height: 100%; }

/*
------------------------------------------------------------------------------------------------------------------
  Header
------------------------------------------------------------------------------------------------------------------
*/

#header { overflow: hidden; position: relative; height: 115px; }

#header_logo { position: absolute; top: 32px; left: 65px; }

#header_navigation { position: absolute; top: 30px; left: 265px; }
#header_navigation ul li { display: inline; padding-right: 20px; }

/*
------------------------------------------------------------------------------------------------------------------
  Body
------------------------------------------------------------------------------------------------------------------
*/

#body { padding-bottom: 100px; }

#body #pageCaption { position: absolute; top: 151px; right: 46px; background-repeat: no-repeat; background-position: 0 0; width: 138px; height: 46px; }

#content_wrapper { float: left; width: 100%; }
#content_wrapper #content { margin-left: 265px; margin-right: 180px; font-size: 0.85em; font-family: Tahoma; }

#content ul li,
#content ol li { margin-left: 30px; padding-bottom: 10px; }

#content a { color: #9F7859; }
#content a:visited { color: #6F4C52/*#BFAF83*/; }

#content p.breadcrumbs { color: #706057; font-size: 0.9em; }
#content p.breadcrumbs a,
#content p.breadcrumbs a:visited { color: #706057; }

#content p.pagination { font-size: 0.9em; }
#content p.pagination span.active { margin: 0 2px 0 0; padding: 0 5px; color: #AE9A8A; background: #2A1D16; border: 1px solid #433731; }
#content p.pagination span.delimeter { display: none; }
#content p.pagination a,
#content p.pagination a:visited { margin: 0 2px 0 0; padding: 0 6px; color: #8B735F; }
#content p.pagination a:hover { padding: 0 5px; background: #2A1D16; border: 1px solid #433731; }

#content .articles_list { font-size: 1.1em; }
#content .articles_list dl.article dt.date { float: left; margin-left: -265px; padding-top: 1px; font-style: italic; text-align: right; width: 230px; }
#content .articles_list dl.article dd.preview strong.caption { display: block; padding: 0 0 10px 0; font-size: 1.1em; }

#content .article_view p.date { float: left; padding-top: 11px; margin-left: -264px; font-style: italic; text-align: right; width: 230px; }
#content .article_view p.date small { font-size: 1em; }
#content .article_view .content { font-size: 1em; }

#content .gallery_list { margin-bottom: -10px; padding: 10px 0 0 0; }
#content .gallery_list span.item { overflow: hidden; position: relative; float: left; width: 130px; height: 130px; }
#content .gallery_list span.item span.image { display: block; position: relative; width: 100px; height: 100px; }
#content .gallery_list span.item span.image a { text-decoration: none; }
#content .gallery_list span.item span.image a img { border: 1px solid #B2A9A4; }
#content .gallery_list span.item span.image a span.frame { cursor: pointer; position: absolute; top: 1px; left: 1px; background: url('../img/gallery-item-frame.png') no-repeat 0 0; width: 100px; height: 100px; }
#content .gallery_list span.item span.image span.title,
#content .gallery_list span.item span.image small.description { display: none; }

/*
------------------------------------------------------------------------------------------------------------------
  Sidebar
------------------------------------------------------------------------------------------------------------------
*/

#sidebar { float: left; margin-left: -100%; padding-top: 40px; padding-bottom: 30px; width: 250px; }

#sidebar ul.sidenav li { list-style: none; padding: 2px 0 2px 13px; line-height: 1.1; }
#sidebar ul.sidenav li.active { color: #AE9A8A; }
#sidebar ul.sidenav li.active a { color: #AE9A8A; }
#sidebar ul.sidenav li.active ul li a { color: #8B735F; }

#sidebar .gallery_block { margin: 0 0 0 65px; width: 102px; }
#sidebar .gallery_block .item { margin-bottom: 10px; }
#sidebar .gallery_block .item a { position: relative; display: block; margin: 0 auto; text-decoration: none; }
#sidebar .gallery_block .item a img { border: 1px solid #B2A9A4; }
#sidebar .gallery_block .item a span.frame { cursor: pointer; position: absolute; top: 1px; left: 1px; background: url('../img/gallery-item-frame.png') no-repeat 0 0; width: 100px; height: 100px; }

/*
------------------------------------------------------------------------------------------------------------------
  Footer
------------------------------------------------------------------------------------------------------------------
*/

#footer_wrapper { overflow: hidden; position: relative; margin-top: -120px; height: 100px; }
#footer_wrapper #footer { margin: 0 auto; padding-top: 20px; font-size: 0.75em; font-family: Tahoma, Sans-Serif; width: 990px; }
#footer_wrapper #footer a { color: #243D53; }
#footer_wrapper #footer p { width: 150px; margin-left: auto; padding-top: 40px; }

/*
------------------------------------------------------------------------------------------------------------------
  Index page
------------------------------------------------------------------------------------------------------------------
*/

body#indexPage { background: #070302 url('../img/index-bg.jpg') no-repeat center center; }
body#indexPage #canvas_wrapper { position: absolute; top: 0; left: 0; background: #070302 url('../img/index-bg.jpg') no-repeat center center; min-width: 800px; width: 100%; min-height: 510px; height: 100%; }
body#indexPage #canvas { position: relative; margin: 0 auto; background: #09080D url('../img/index-bg.jpg') no-repeat center center; width: 800px; height: 510px; }
body#indexPage #canvas #menu { position: absolute; top: 50%; left: 495px; margin-top: -146px; }
body#indexPage #canvas #menu ul li { margin-bottom: 6px; list-style: none; /*background: url('../img/ukazatel-active.png') no-repeat left center;*/ width: 111px; height: 28px; }
body#indexPage #canvas #menu ul li a { position: relative; display: block; color: #704D30; text-decoration: none; /*background: url('../img/ukazatel.png') no-repeat left center;*/ width: 111px; height: 28px; }
body#indexPage #canvas #menu ul li a:hover { color: #8A6B47; background-position: -1000px 0; }
body#indexPage #canvas #menu ul li a span.bg-link { cursor: pointer; position: absolute; top: 0; left: 0; background: url('../img/ukazatel.png') no-repeat left top; width: 111px; height: 28px; }
body#indexPage #canvas #menu ul li a span.bg-link-active { cursor: pointer; display: none; position: absolute; top: 0; left: 0; background: url('../img/ukazatel-active.png') no-repeat left top; width: 111px; height: 28px; }
body#indexPage #canvas #menu ul li a:hover span.bg-link-active { display: block; }
body#indexPage #canvas #menu ul li a span.text { cursor: pointer; position: absolute; top: 0; left: 0; padding-left: 15px; line-height: 27px; }
body#indexPage #canvas #menu ul li a:hover span.text { padding-left: 14px; }
body#indexPage #canvas #footer_wrapper { position: absolute; bottom: 20px; right: -80px; margin-left: -80px; }
