﻿body {
    background-color: #ffffff;
    background-image: url("/customs/images/page-bg.png");

    padding: 0;
    margin: 0;

    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 13px;
	
	min-width: 978px;
}

p {
    line-height: 1.5;
    padding: 0;
    margin: 0 0 0.75em 0;

    text-align: justify;
}

a {
    color: #00009e;
}

a:hover {
    color: #3b8fd8;
}

ul {
    list-style-position: inside;
    padding: 0 15px;
}

img {
    border: none;
}

h1 {
    font-family: "Ubuntu", Arial, sans-serif;
    font-size: 26px;
    font-weight: normal;
    padding: 0;
    margin: 15px 0;
}

h2 {
    font-family: "Ubuntu", Arial, sans-serif;
    font-size: 24px;
    font-weight: normal;
    padding: 0;
    margin: 10px 0;
	border-bottom: 1px solid #ccc;
}

h3 {
    font-family: "Ubuntu", Arial, sans-serif;
    font-size: 20px;
    font-weight: normal;
    padding: 0;
    margin: 7px 0;
}

h4 {
    font-family: "Ubuntu", Arial, sans-serif;
    font-size: 18px;
    font-weight: normal;
    padding: 0;
    margin: 5px 0;
}

h5 {
    font-family: "Ubuntu", Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 0;
    margin: 5px 0;
}

table {
    padding: 0;
    margin: 0;
    
    width: 100%;
    border: 1px solid #999;
}

td {
    outline: 1px solid #999;
    padding: 3px;
    margin: 0;
}

.headline {
    font-family: Arial, sans-serif;
    font-size: 24px;
}

header,
nav,
article,
footer {
    width: 978px;
    margin: 0 auto;
}

nav ul,
.aside_item ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* footer in bottom side */
html,body { height: 100%; }

#siteWrapper {
    min-height: 100%;
    margin-bottom: -120px;
}

#siteWrapperBuffer {
    height: 140px;
}

/* other wrappers */
#headerWrapper {
    width: 100%;
    height: 145px;
    background-color: #3b8fd8;
    background-image: url('/customs/images/header-bg.png');
    background-repeat: repeat-x;
    border-bottom: 2px solid #ff0000;
}

#mainMenuWrapper {
    width: 100%;
    height: 45px;

    background-color: #f9fbfd;
    background-image: url("/customs/images/menu-bg.png");

    border-top: 2px solid #ffeeee;
    border-bottom: 1px solid #cccccc;
    box-shadow: 0 0 10px 1px rgba(127,127,127,0.25);
}

#footerWrapper {
    width: 100%;
    height: 120px;
    background-color: #666666;
    background-image: url('/customs/images/footer-bg.png');
    color: #ccc;
    box-shadow: 0 -5px 15px 1px rgba(127,127,127,0.25);
}

/* шапка */
header {
    position: relative;
}

header a {
    color: #f0f0f0;
    text-decoration: none;
}

header a:hover, 
header a:active { color: #f0f0f0; }

header img {
    margin-right: 3px;

    vertical-align: middle;
}

hgroup {
    height: 130px;

    padding-top: 20px;
    padding-left: 140px;

    background-image: url('/customs/images/logotype.png');
    background-repeat: no-repeat;
    background-position: 0 20px;

    color: #ffffff;
}

hgroup h2 {
    font-size: 20px;
	border: none;
}

.header_satellites {
    position: absolute;
    top: 40px;
    right: 15px;

    width: 150px;
    text-align: center;
    
    z-index: 2;
}

#satellites_list {
    display: none;

    margin: 0;
    padding: 10px;

    list-style-type: none;

    background-color: rgb(127, 127, 127);
    background-color: rgba(127, 127, 127, 0.8);

    border-radius: 0 0 5px 5px;

    text-align: left;
}

.header_buttons {
    position: absolute;
    top: 10px;
    right: 15px;

    width: 150px;
    text-align: center;
}

.header_news {
    position: absolute;
    top: 70px;
    right: 15px;

    width: 150px;
    text-align: center;
}

.header_special {
    position: absolute;
    top: 100px;
    right: 15px;
    width: 150px;
    text-align: center;
}

/* боковая панель */

aside {
    position: fixed;
    top: 207px;
    right: 0;
}

.aside_item {
    float: right;

    color: #ffffff;
    background-color: #999999;
    background-color: rgba(127, 127, 127, 0.9);
    border-radius: 5px;

    margin-bottom: 7px;
}

.aside_item img {
    float: right;
}

.aside_item > .opened {
    display: none;

    width: 250px;
    padding: 5px 10px;
}

.aside_item a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
}

.aside_item li {
    padding: 5px 10px;
}

/* навигация */

nav > ul > li {
    float: left;

    padding: 15px 5px;

    text-transform: uppercase;
    font-family: "Ubuntu", Arial, Helvetica, sans-serif;;
    font-size: 13px;

    text-shadow: 0 0 10px #CCC;
}

nav li ul li {
    text-transform: none;
    padding: 5px 10px;
}

nav li ul li:hover {
    border-left: 2px solid #ff0000;
    padding-left: 8px;
    background-color: #f6f6f6;
}

nav li > ul {
    display: none;
}

nav img {
    position: relative;
    top: -5px;
}

nav a,
nav a:visited {
    text-decoration: none;
    color: #333333;
}

nav a:hover {
    color: darkred;
}

nav .last {
    margin-right: 0;
    margin-bottom: 0;
}

nav li:hover ul {
    display: block;
    position: absolute;
    width: 250px;

    border: 1px solid #cccccc;
    background-color: #f9fbfd;
}

nav li.active > a {
	/*text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);*/
	font-weight: bold;
}

/* дополнительная помощь при вёрстке */

.cb { clear: both; }
.left { float: left; }
.right { float: right; }

/* статья */

article {
    width: 943px;
    min-height: 200px;

    padding-left: 5px;
    padding-right: 30px;

    margin-top: 25px;
}

.articleImageLeft {
    float: left;
    background-color: #ffffff;

    margin: 10px;
    padding: 5px;

    border: 1px solid #cccccc;
}

.articleImageRight {
    float: right;
    background-color: #ffffff;

    margin: 10px;
    padding: 5px;

    border: 1px solid #cccccc;
}

a.attachment {
    display: block;
    margin-top: 40px;

    color: #000000;

    font-weight: bold;
    font-size: 1.25em;
}

/* подвал */

footer {
    padding-top: 20px;
}

footer hr {
    width: 90%;

    margin: 20px auto;

    border: 1px dotted #999999;
}

.created_by {
    float: right;
    font-style: italic;
}

footer .admin {
    float: right;
}

footer .admin a {
    color: #999999;

    text-decoration: none;
    font-style: italic;
}

/* галерея */
.albumPreview,
.gal-item-active{
    float: left;

    padding: 5px;
    margin: 5px;

    border: 1px solid #999999;
}

/* блоки на странице */
.pageBlock {
    width: 300px;

    margin: 10px;
    padding: 5px;

    background-color: #f4fcff;
    border-radius: 10px;
    box-shadow: 5px 5px 15px #cccccc;
}

/* карточка */
.vCard {
    float: left;

    margin: 5px;
    padding: 5px;    

    min-width: 200px;
    max-width: 400px;

    border: 1px dashed #999;
}

/* страницы */
ul.pages {
    padding: 0;
    list-style-type: none;
}

.pages li {
    float: left;
	text-align: center;
    
    margin: 7px;
    padding: 5px;
    
    border: 1px solid #999;
}

.pages a {
	text-decoration: none;
	color: black;
}

.pages .active {
	font-weight: bold;
}

/* стили главной страницы */
article > #main {
	margin-right: 210px;
}

#main_top_wrapper > ul {
	padding: 0;
	margin: 0;
}

#main_top_wrapper {    
    border-bottom: 1px solid #c0c0c0;
	
	float: right;
	width: 200px;
	padding-left: 10px;
}

#main_top_wrapper > ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#main_top_wrapper > ul > li {
    width: 200px;
    /*height: 150px;
    float: left;*/

    overflow:hidden;
    text-overflow: ellipsis;

    padding: 0;
    margin: 0 0 30px 0;
}

#main_top_wrapper a {
    text-decoration: none;
}

.menu_top_block {
    padding: 5px;
    background-color: #dfedf8;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: inset 0 -15px 15px rgba(255,255,255,0.5);

    font-size: 13pt;
}

.menu_top_block:hover {
    box-shadow: inset 0 15px 15px rgba(255,255,255,0.5);
}

.menu_top_block img {
    margin-right: 3px;
    vertical-align: middle;
}

/*a .menu_top_block {
    color: #00009e;
    text-decoration: none;
}*/

/* новости */
.post {
	border-bottom: 1px dashed #999999;
	padding: 10px 0;
}

.post-date {
	float: right;
	font-style: italic;
}

.post h2 a {
	color: black;
	text-decoration: none;
}

.post-entry {
	font-family: Times New Roman, serif;
	font-size: 15px;
}

/* Анонс новостей на главной */
.news-item {
	margin: 10px 0;
}

.news-item hr {
	margin: 20px 50px;
	border-top: 1px solid #ccc;
	border-bottom: none;
}

.news-header {
	padding: 3px 0;
}

.news-header  h3 {
	padding: 0;
	margin: 0;
	font-size: 1.4em;
}

.news-header   a {
	color: #333;
}

.news-text {
	font-size: 0.9em;
}

@media screen and (max-width: 800px) {
    header,
    nav,
    article,
    footer {
        width: 100%;
        margin: 0 auto;
    }
    
    hgroup > h2 {
        display: none;
    }
    
    aside {
        display: none;
    }
    
    article {
        padding: 0;
    }
    /*nav {
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }*/

    nav > ul > li {
        float: none;
        text-align: center;
        border-bottom: 1px solid #999;
    }
    
    nav li:hover ul {
        display: none;
    }
    
    nav li.active ul {
        display: block;
        position: static;
        border: none;
        width: auto;
    }
    
    #mainMenuWrapper { 
        height: auto;
    }
    
    footer .admin,
    footer .created_by {
        display: none;
    }
}
