@import url(reset.css);

html {
    width: 100%;
    height: 100%;
}

body {
    height: 100%;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
}

.clr {
    clear: both;
}

#wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100%;
    background: #FFF;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4);
}

/* slider */
header {
    width: 100%;
    margin: 0 auto;
    height: 347px;
    position: relative;
}

.bg-header {
    background: url('../images/bg-header_alt.png') no-repeat bottom center;
    bottom: -95px;
    width: 100%;
    height: 216px;
    z-index: 2;
    position: absolute;
}

.bg-cover {
    background: #296d59;
    bottom: -59px;
    width: 100%;
    height: 108px;
    z-index: 1;
    position: absolute;
}

header .soc {
    position: absolute;
    top: 439px;
    right: 20px;
    width: 195px;
    z-index: 2;
}

header .soc a {
    float: left;
    width: 29px;
    height: 29px;
    margin: 0 2px;
}

header .soc .face {
    background: url('../images/soc.jpg') no-repeat 0 0;
}

header .soc .twit {
    background: url('../images/soc.jpg') no-repeat -32px 0;
}

.bx-wrapper {
    position: relative;
    margin: 0;
    padding: 0;
    height: 300px;
    width: 1200px;
    overflow: hidden;
}

.bx-wrapper img {
    max-width: 100%;
    width: 100%;
    display: block;
}

#content {
    width: 100%;
    margin: 150px auto 0 auto;
}

aside {
    float: left;
    width: 20%;
    padding: 0;
}

aside ul:first-child:before {
    content: 'навигация';
    position: relative;
    display: block;
    left: -10px;
    text-align: center;
    box-sizing: border-box;
    font-size: 20px;
    margin: 8px 0;
    width: calc(100% + 10px);
    padding-left: 10px;
    line-height: 30px;
    background: #296d59;
    color: #fff;
}

aside ul:first-child:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: -9px;
    bottom: calc(100% - 34px);
    border-width: 2px 5px;
    border-style: solid;
    border-color: #3f604f #3f604f transparent transparent;
}

aside ul {
    width: 100%;
    position: relative;
}

aside ul:first-child > li {
    margin-right: 8px;
}

aside ul li {
    position: relative;
    border-bottom: 1px solid #d6d6d6;
}

aside ul li:last-child {
    position: relative;
    border-bottom: none;
}

aside ul li a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    text-decoration: none;
    color: #296d59;
    font-size: 18px;
    transition: 0.3s;
}

aside ul li a:hover {
    text-decoration: none !important;
    background: #e6e6e6;
}

aside ul li ul {
    display: block;
    padding: 5px 0 5px 10px;
    margin: 0 0 0 0;
    width: 200px;
}

aside ul li ul li {
    margin: 6px 0 0 0;
}

aside ul li ul li a {
    text-decoration: none;
    font-size: 14px;
    color: #231f20;
}

aside ul li ul li a:hover {
    text-decoration: underline;
}

#wrap {
    width: 60%;
    float: left;
    box-sizing: border-box;
    padding: 0 30px;
}

#wrap .block-n {
    width: 100%;
    margin: 11px 0 10px 0;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    padding: 20px;
    border-radius: 0 0 2px 2px;
    box-sizing: border-box;
}

#wrap .block-n p.date {
    color: #000;
    font-size: 12px;
    line-height: 100%;
    margin: 20px 0 9px 0;
    font-weight: 700;
    text-align: right;
    float: right;
    width: 45%;
}

#wrap .block-n p.more_link {
    float: left;
    width: 45%;
    margin: 20px 0 9px 0;
}

#wrap .block-n p {
    margin: 5px 0;
    width: 100%;
    color: #000;
    font-size: 14px;
    line-height: 120%;
}

#wrap .block-n p a {
    color: #296d59;
    font-size: 14px;
    text-decoration: underline;
    font-family: Arial, Helvetica, sans-serif;
}

#wrap .block-n p a:hover {
    text-decoration: none;
}

#wrap .all {
    color: #296d59;
    font-size: 16px;
    float: none;
    display: block;
    text-align: center;
    width: 190px;
    padding: 10px 0;
    margin: 15px auto 5px auto;
    border: 1px solid;
    text-decoration: none;
}

#wrap .all:hover {
    text-decoration: none;
}

#wrap .back {
    text-decoration: none;
    padding-left: 18px;
    background: url('../images/back.jpg') no-repeat left 2px;
    color: #296d59;
    font-size: 10px;
}

#wrap img {
    width: 100%;
    height: inherit;
}

.more_link {
    float: left;
}

.left_vid{
    position: relative;
    text-align: center;
    box-sizing: border-box;
    font-size: 20px;
    margin: 8px 0;
    width: calc(100% + 10px);
    padding-left: 10px;
    left: -10px;
    line-height: 30px;
    background: #296d59;
    color: #fff;
}
.left_vid:before{
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: 0px;
    top: 100%;
    border-width: 2px 5px;
    border-style: solid;
    border-color: #3f604f #3f604f transparent transparent;
}
.right_vid {
    position: relative;
    text-align: center;
    box-sizing: border-box;
    font-size: 20px;
    margin: 8px 0;
    width: calc(100% + 10px);
    padding-right: 10px;
    line-height: 30px;
    background: #296d59;
    color: #fff;
}

.right_vid:before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    right: 0px;
    top: 100%;
    border-width: 2px 5px;
    border-style: solid;
    border-color: #3f604f transparent transparent #3f604f;
}
.foto_block{
    width: calc(100% - 20px);
    padding: 0 5px;
    text-align: center;
    margin: 0 auto;
    height: 120px;
    position: relative;
    overflow: hidden;
}
.foto_block img{
    width: 100%;
}
#sidebar {
    width: 20%;
    float: right;
}

#sidebar div {
    width: calc(100% - 20px);
    padding: 0 5px;
    text-align: center;
    margin: 0 auto;
}

#sidebar img {
    width: 203px;
    margin: 10px auto 5px;
    display: inline-block;
}

#sidebar div a {
    text-decoration: underline;
    color: #000;
    font-size: 14px;
}

#sidebar div a:hover {
    text-decoration: none;
}

#sidebar iframe {
    width: 100% !important;
    height: 115px !important;
}

#wrap p {
    width: 100%;
    color: #000;
    font-size: 14px;
    line-height: 130%;
    margin: 18px 0 0 0;
}

#wrap h1 {
    width: 100%;
    color: #000;
    font-size: 14px;
    line-height: 100%;
    margin: 20px 0 0 0;
    font-weight: 700;
}

#wrap h3{
    font-size: 18px;
    font-weight: 600;
    margin: 22px 0 0 0;
}
#wrap img {
    margin: 6px 0;
}

#wrap ul li {
    margin: 15px 5px 15px 20px;
    font-size: 14px;
    line-height: 16px;
    list-style: disc;
}

#wrap .block-n .post_title {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.pagination {
    text-align: center;
}

.pagination li {
    display: inline-block;
    position: relative;
    width: 30px;
    height: 30px;
    margin: 5px;
    border: 1px solid #d6d6d6;
    box-sizing: border-box;
}

.pagination li a {
    color: #296d59;
    font-size: 15px;
    line-height: 28px;
    text-decoration: none;
    font-weight: 500;
    display: block;
    width: 100%;
    height: 100%;
}

#wrap table {
    border-collapse: collapse;
    border: none;
    width: 100%;
}

#wrap table td {
    padding: 15px;
    text-align: center;
    vertical-align: top;
    width: 33%;
}

#wrap table td p {
    color: #5e5e5e;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 130%;
    margin: 8px 0;
    text-align: center;
}

#wrap table td p a {
    color: #296d59;
    text-decoration: underline;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

#wrap table td p a:hover {
    text-decoration: none;
}

#wrap .block-pres {
    width: 100%;
    margin: 0 0 32px 0;
}

#wrap .block-pres img {
    float: left;
    width: 137px;
}

#wrap .block-pres .right {
    float: left;
    width: 320px;
    margin-left: 20px;
}

#wrap .block-pres .right p {
    margin: 0;
    line-height: 130%;
    color: #296d59;
    font-size: 12px;
}

#wrap .block-pres .right p.name {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #296d59;
}

#wrap .justifyfull {
    text-align: justify;
}

.empty-month {
    text-decoration: none;
    color: #296d59;
    font-size: 18px;
}

#smart-archives-block li a {
    text-decoration: none;
    color: #BE1807;
    font-size: 18px;
}

#smart-archives-list h2 {
    margin: 15px 25px;
}

#smart-archives-list h2 a {
    text-decoration: none;
    color: #BE1807;
    font-size: 24px;
}

.archive-list li {
    margin: 15px 0 15px 40px;
}

.archive-list li a {
    text-decoration: underline;
    font-size: 16px;
    color: #231f20;
}

.footerR {
    height: 111px;
    width: 100%;
}

.social-btns {
    text-align: center;
}

.social-btns li {
    display: inline-block;
}

.social-btns li a {
    display: block;
    transition: 0.3s;
    width: 35px;
    height: 35px;
    font-size: 15px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
}

.footer-text {
    color: #fff;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.footer-baners {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-baners li {
    width: 20%;
    display: inline-block;
}

.footer-baners li a {
    text-decoration: none;
}

.tw {
    color: #fff;
    background: #00aced;
    border: 1px solid #00aced;
}

.vk {
    color: #fff;
    background: #45668e;
    border: 1px solid #45668e;
}

.fb {
    color: #fff;
    background: #3b5998;
    border: 1px solid #3b5998;
}

.lj {
    color: #fff;
    background: #99aabb;
    border: 1px solid #99aabb;
}

.tw:hover {
    color: #00aced;
    background: #fff;
    text-decoration: none;
}

.vk:hover {
    color: #45668e;
    background: #fff;
    text-decoration: none;
}

.fb:hover {
    color: #3b5998;
    background: #fff;
    text-decoration: none;
}

.lj:hover {
    color: #99aabb;
    background: #fff;
    text-decoration: none;
}

footer {
    padding: 8px 0 20px 0px;
    margin: 30px auto 0;
    width: 100%;
    background: #296d59;
    border-top: 8px solid #be1807;
    text-align: center;
}

footer p {
    text-align: center;
    color: #fff;
    font-size: 10px;
    width: 100%;
    display: inline-block;
    text-transform: uppercase;
}

footer img {
    margin: 10px 10px 0 10px;
    height: 90px;
    border: none;
    display: inline-block;
}

@media (max-width: 1200px) {
    #wrapper {
        padding: 0 15px;
        box-sizing: border-box;
    }
    .bg-header{
        background-size: cover !important;
        bottom: -72px;
    }

    .bx-wrapper img {
        min-height: 300px;
    }
}

@media (max-width: 980px) {
    #sidebar {
        display: none;
    }
    #wrap{
        width: 70%;
    }
    aside{
        width: 30%;
    }
}

@media (max-width: 800px) {
    .bx-wrapper img {
        min-height: 200px;
    }
    .bg-header{
        bottom: 60px;
        height: 160px;
    }
    .bg-cover{
        display: none;
    }
    #content{
        margin-top: 0;
    }
    header .soc{
        top: 290px;
    }
    aside ul:first-child > li {
        display: inline-block;
        width: 24.4%;
        box-sizing: border-box;
        position: relative;
        margin: 0 0 10px 0;
        border: 1px solid #d6d6d6;
    }
    aside ul li a{
        padding: 10px 10px;
        text-align: center;
    }
    aside {
        width: 100%;
    }
    #photos{
        display: none;
    }
    aside ul:first-child li:hover > ul{
        width: 100%;
        padding: 0;
        z-index: 100;
        display: block !important;
        position: absolute;
        background: #fff;
        box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    }
    #wrap {
        width: 100%;
    }
    #wrapper{
        padding: 0;
    }
}

@media (max-width: 580px){
    .bg-header {
        bottom: 80px;
        height: 160px;
    }
    .footer-baners li {
        width: 45%;
    }
    header .soc {
        top: 170px;
    }
    aside ul:first-child > li {
        display: inline-block;
        width: 45%;
    }
    #navigation{
        text-align: center;
    }
    .bx-wrapper img {
        min-height: 120px;
    }
    .bg-header {
        bottom: 50px;
        height: 75px;
    }
    .bx-wrapper{
        height: 165px;
    }
    header{
        height: 215px;
    }
}