@import url(https://fonts.googleapis.com/css?family=Roboto:700,400italic,700italic,400,300,300italic&subset=latin,cyrillic);

html, body {
    background-color: #EEE;
    margin: 0;
    padding: 0;
    font: 300 15px/25px 'Roboto', sans-serif;
    color: #262626;
    height: 100%;
}

a {
    color:#36C;
}

a:visited {
    color:#939;
}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    margin: 0.5em 0;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 18px;
}

h4 {
    font-size: 15px;
}

p {
    margin: 0;
    padding: 0 0 1.5em;
}

#header {
    font-weight: 400;
    background-color: #222;
    color: #DDD;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    padding: 20px;
    width: 160px;
    z-index: 50;
    background:#222 url(/static/img/logo.png) no-repeat center 20px;
    /*padding-top:70px;*/
}

#logo {
    z-index: 55;
    width: 200px;
    height: 80px;
    margin-left: -20px;
    margin-top: -20px;
}

#body {
    background-color: #FFF;
    border-right:1px solid #DDD;
    position: absolute;
    left: 200px;
    /*width: 931px;*/
    width: calc(100% - 160px - 60px);
    min-height: 100%;
    /*height: 100%;*/
    box-shadow:0 0 20px 5px #CCC;
}

#content {
    /*width: 600px;*/
    width: calc(100% - 60px - 250px - 20px);
    padding: 20px;
}

#sidebar {
    #background: #F5F5F5 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAB9JREFUeNpi/P//PwM6YGLAAuCCmpqacC2MRGsHCDAA+fIHfeQbO8kAAAAASUVORK5CYII=);
    background-color:#F5F5F5;
    border-left:1px dotted #CCC;
    position: absolute;
    padding: 20px;
    width: 250px;
    top: 0;
    bottom:0;
    right: 0;
}

#sidebar .block {
    margin-bottom: 20px;
}

#menu-expand {
    display:none;
    position:absolute;
    margin-top:-27px;
    top:50%;
    width:30px;
    text-align:center;
    right:10px;
}

#header ul {
    margin:0;
    padding:0;
    list-style:none;
}

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

#header ul .active a{
    color:#CCC;
    font-weight:700;
}

#header ul a:hover {
    color:#DDD;
}


#content ul {
    list-style:none;
    padding:0 0 1.5em 2em;
    margin:0;
}

#content ul ul {
    padding-bottom:0;
    padding-top:0.5em;
}

#content ol ol {
    padding-bottom:0;
}

#content ol {
    padding:0 0 1.5em 2em;
    margin:0;
}

#content ul li {
    line-height:20px;
    margin-bottom:0.5em;
}

#content ul li::before {
    content:'–';
    position:absolute;
    margin-left:-1.2em;
}

#content img {
    /*border:1px solid #DDD;
    padding:2px;
    box-shadow:0 0 2px 0 #CCC;*/
    max-width:100%;
}

#content .heading-image {
    margin:0 0 20px;
    max-width:100%;
    border:none;
    box-shadow:none;
}

#content .float-left, #content .float-right {
    max-width:50%;
    margin:4px 15px;
}

#content .float-left {
    float:left;
    margin-left:0;
}

#content .float-right {
    float:right;
    margin-right:0;
}

.breadcrumbs, .breadcrumbs a, .article-date {
    color:#888;
    font-size:13px;
}

.breadcrumbs a:hover{
    text-decoration:none;
}

.article {
    position: relative;
    margin-bottom: 5px;
}

.article-info {
    margin-bottom:20px;
    border-bottom:1px dotted #CCC;
}

.article-date {
    float:right;
}

.article-date a {
    font-weight: 700;
    color:#888;
    font-size:13px;
}

.article-date a:hover {
    text-decoration: none;
}

.article-content {
    overflow: auto;
    position: relative;
}
.article-content hr {
    border: 0;
    border-bottom: 1px solid #CCC;
}

.article-footer-panel {
    margin-top: 10px;
    position: relative;
    height: 30px;
}

.article-short{
    width: 100%;
    position: relative;
    display: inline-block;
    border-top:1px solid #CCC;
    /*margin-top: 20px;*/
    padding-top: 10px;
}

.article-short p{
    font-weight: bolder;
    font-size: 95%;
    line-height: 1.3;
}

.article-short a.paper-name{
    font-size: 13px;
}

.article-short a:hover{
    color: #555;
    text-decoration: underline;
}

.article-short a:visited{
    color: #555;
    font-weight: 500;
}

.article-short-image{
    float: left;
    width: 30%;
}

.article-short-content{
    margin: 0 5px 0  35% ;
}

.rubric-block{
    width: 100%;
    position: relative;
    display: inline-block;
    margin-top: 5px;
    padding-top: 5px;
}

.rubric-block h2{
    font-size: 20px;
    border-bottom:1px solid #CCC;
}

.rubric-block h2:hover{
    font-size: 21px;
    color: #262626;
    border-bottom:0;
}

.rubric-block a{
    color: #555;
    text-decoration: none;
}

.rubric-block a:hover{
    color: #868686;
    text-decoration: none;
}

.rubric-block a:visited{
    color: #555;
}

.rubric-block ul{
    padding-left: 5px !important;
}

.rubric-block li:before{
    content: '' !important;
    margin-left: -0.5em;
}

.rubric-block li a{
    color: #555;
    font-size: 16px;
    text-decoration: none;
}

.rubric-block li a:hover{
    color: #262626;
    font-size: 16px;
    text-decoration: underline;
}

.rubric-block li span{
    color: #AAA;
    font-size: 14px;
    text-decoration: underline;
}
.search-title h2, .article-short h2{
    color: #555;
    font-size: 120%;
    font-weight: 500;
    line-height: 0.95;
    margin-bottom: 0.3em;
    margin-top: 0;
}

.article-short h4{
    margin: 0 0 0.5em;
}

.search-title a, .article-short a{
    text-decoration: none;
    font-size: 15px;
}

.search-title a:hover{
    color: #555;
    text-decoration: underline;
}

.def-button {
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #d5d5d5;
    text-transform: uppercase;
    font-size: 11px;
    line-height: 28px;
    padding: 0 15px;
    background-color: transparent;
    color: #555;
    display: inline-block;
    vertical-align: middle;
    font-weight: 700;
    box-sizing: border-box;
}

.def-button:hover {
    color: #c33;
    box-shadow: 0 0 5px #dadada;
    background-color: #f3f3f3;
    background-image: linear-gradient(#fff,#f3f3f3);
    cursor: pointer;
}

.def-button:focus {
    outline: none;
}

.comments-list {
    border-top:1px dotted #CCC;
    position: relative;
    margin-top: 20px;
    overflow: hidden;
}

.comments-list h3 {
    color: #555;
}

.comment-control {
    margin-bottom: 10px;
    padding-left: 20px;
}

.comment-control label{
    display: block;
}

.comment-control input, textarea, select {
    color: #6e6e6e;
    border:1px solid #CCC;
    width: 97%;
    max-width: 700px;
    font-size: 14px;
    -webkit-appearance:none;
    border-radius: 0;
    padding-left: 5px;
}

.comment-control input, select {
    height: 30px;
}

.comment-control textarea {
    height: 100px;
}

.comment-control input:hover {
    border:1px solid #555;
}

.comment-control input:focus {
    border:1px solid #555;
    outline: none;
}

.comment-control select:hover {
    border:1px solid #555;
}

.comment-control select:focus {
    border:1px solid #555;
    outline: none;
}

.comment-control textarea:hover {
    border:1px solid #555;
}

.comment-control textarea:focus {
    border:1px solid #555;
    outline: none;
}

.comment-item {
    margin-left: 20px;
    position: relative;
    margin-top: 20px;
}

.comment-header {
    line-height: 20px;
}

.comment-author {
    font-weight: 400;
    display: inline-block;
    white-space: nowrap;
    #margin-right: 5px;
}

.comment-date {
    display: inline-block;
    white-space: nowrap;
}

.comment-text {
    color: #6e6e6e;
}

#map {
    height: 350px;
    #width: 460px;
    width: 100%;
    box-shadow: 0 0 10px #AAA;
    position: relative;
}

.map-wrap {
    width: 100%;
}

.contacts {
    padding-left: 5px;
}

.contacts p {
    padding: 0 0 0.2em;
}

.cf:before, .cf:after{
    content:"";
    display:table;
}

.cf:after{
    clear:both;
}

.cf{
    zoom:1;
}

/* Стили для контейнера формы */
.form-wrapper {
    width: 244px;
    #width: 97%;
    padding: 3px;
    #margin: 150px auto 50px auto;
    margin-bottom: 20px;
    #background: #222;
    background: rgba(0,0,0,.2);
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0,0,0,.4) inset, 0 1px 0 rgba(255,255,255,.2);
}

/* Стили поля ввода текста */

.form-wrapper input {
    color: #6e6e6e;
    #width: 206px;
    width: calc(100% - 36px);;
    height: 16px;
    padding: 5px 5px;
    float: left;
    font-weight: bold;
    font-size: 13px;
    border: 0;
    background: #eee;
    border-radius: 3px 0 0 3px;
}

.form-wrapper input:focus {
    outline: 0;
    background: #fff;
    box-shadow: 0 0 2px rgba(0,0,0,.8) inset;
}

.form-wrapper input::-webkit-input-placeholder {
    color: #999;
    font-weight: normal;
}

.form-wrapper input:-moz-placeholder {
    color: #999;
    font-weight: normal;
}

.form-wrapper input:-ms-input-placeholder {
    color: #999;
    font-weight: normal;
}

/* Кнопка отправки формы */
.form-wrapper button {
    overflow: visible;
    position: relative;
    float: left;
    border: 0;
    padding: 0;
    cursor: pointer;
    height: 26px;
    width: 26px;
    #width: 10%;
    #font: bold 15px/40px 'lucida sans', 'trebuchet MS', 'Tahoma';
    color: #fff;
    text-transform: uppercase;
    background: #d83c3c;
    border-radius: 0 3px 3px 0;
    text-shadow: 0 -1px 0 rgba(0, 0 ,0, .3);
}

.form-wrapper button:hover{
    background: #e54040;
}

.form-wrapper button:active,
.form-wrapper button:focus{
    background: #c42f2f;
    outline: 0;
}

.form-wrapper button:before { /* стрелка влево */
    content: '';
    position: absolute;
    border-width: 6px 6px 6px 0;
    border-style: solid solid solid none;
    border-color: transparent #d83c3c transparent;
    top: 7px;
    left: -6px;
}

.form-wrapper button:hover:before{
    border-right-color: #e54040;
}

.form-wrapper button:focus:before,
.form-wrapper button:active:before{
    border-right-color: #c42f2f;
}

.form-wrapper button::-moz-focus-inner { /* Удаляем дополнительное пространство рядом с кнопкой в Mozilla Firefox */
    border: 0;
    padding: 0;
}

/* таблицы */
table {
    margin: 0 0 2em 0;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table thead {
    border-bottom: solid 2px rgba(210, 215, 217, 0.75);
}

table th {
    color: #3d4449;
    font-weight: 500;
    padding: 0 2px 0.25em 2px;
    text-align: left;
}

table tbody tr:nth-child(2n + 1) {
    background-color: #F5F5F5;
}

table tbody tr {
    border: solid 1px rgba(210, 215, 217, 0.75);
    border-left: 0;
    border-right: 0;
}

table td {
    padding: 0 2px;
    text-align: left;
}
table tfoot {
    border-top: solid 2px rgba(210, 215, 217, 0.75);
}
/* таблицы */

/* paginator */
.pagination{
    text-align: center;
    margin: 30px 0;
    padding: 0;
}

.pagination li {
    display: inline-block;
    text-align: center;
    width: 25px;
    height: 25px;
    vertical-align: middle;
    padding: 1px;
}

.pagination .arrow a, .pagination .arrow span {
    font-size: 18px;
    line-height: 22px;
}

.pagination a {
    color: #555;
    text-decoration: none;
}

.pagination li.active {
    padding: 0;
    font-weight: 500;
    text-decoration: underline;
    #border: 1px solid #cccccc;
}

.pagination .disabled span {
    color: #dcd8cd;
}

.pagination li::before {
    content:'' !important;
    position:absolute;
    /*margin-left:-0.1em !important;*/
}

/* paginator */

.ads-menu {
    margin-bottom: 20px;
}

.ads-menu ul {
    list-style: none;
}

.ads-menu  a{
    color: #8a8a8a;
    font-size: 100%;
    font-weight: 500;
    text-decoration: none;
}

.ads-menu a.active {
    color: #555;
    font-weight: 600;
}

.ads-menu a.active:visited {
    color: #555;
    font-weight: 600;
}

.ads-menu a:visited{
    color: #8a8a8a;
}

.ads-menu a:hover{
    color: #555;
    text-decoration: underline;
}


.ads-menu ul ul{
    padding-left: 20px;
}

.ads-contacts {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-align: right;
}

@media screen and (max-width: 1150px) {
    #body {
        width: calc(100% - 70px);
    }
    #header {
        padding: 10px;
        width: 30px;
        background-image:url(/static/img/logo-tiny.png);
        transition:box-shadow linear 0.3s;
    }
    
    #header.opened {
        padding: 20px;
        width: 160px;
        background-image:url(/static/img/logo.png);
        /*padding-top:70px;*/
        box-shadow:0 0 5px 0 #333;
    }

    #logo {
        z-index: 55;
        width: 30px;
        height: 57px;
        margin-left: -10px;
        margin-top: -10px;
    }

    #header.opened#logo {
        z-index: 55;
        width: 200px;
        height: 80px;
        margin-left: -20px;
        margin-top: -20px;
    }

    #menu-expand {
        display:block;
    }

    #header.opened #menu-expand {
          -webkit-transform: rotate(180deg);     /* Chrome and other webkit browsers */
          -moz-transform: rotate(180deg);        /* FF */
          -o-transform: rotate(180deg);          /* Opera */
          -ms-transform: rotate(180deg);         /* IE9 */
          transform: rotate(180deg);             /* W3C compliant browsers */
    }

    #header nav {
        display:none;
    }

    #header.opened nav {
        display:block;
    }

    #body {
        left: 50px;
    }

    #sidebar {
        width: 250px;
    }
}

@media screen and (max-width: 1000px) {
    #header {
        padding: 10px;
        width: 100%;
        height: 30px;
        bottom:auto;
        background-image:url(/static/img/logo-small.png);
        background-position:20px center;
        -webkit-overflow-scrolling: touch;
    }

    #logo {
        z-index: 55;
        width: 160px;
        height: 57px;
        margin-left: -10px;
        margin-top: -10px;
    }

    #header.opened {
        padding: 10px;
        width: 100%;
        height: auto;
        background-position:20px 20px;
        padding:10px 20px 30px;
    }

    #header.opened#logo {
        z-index: 55;
        width: 200px;
        height: 80px;
        margin-left: -20px;
        margin-top: -20px;
    }

    #menu-expand {
        margin-left:-27px;
        left:50%;
        right:auto;
        top:auto;
        bottom:-5px;
        -webkit-transform: rotate(90deg);     /* Chrome and other webkit browsers */
        -moz-transform: rotate(90deg);        /* FF */
        -o-transform: rotate(90deg);          /* Opera */
        -ms-transform: rotate(90deg);         /* IE9 */
        transform: rotate(90deg);             /* W3C compliant browsers */
    }

    #header.opened #menu-expand {
          -webkit-transform: rotate(270deg);     /* Chrome and other webkit browsers */
          -moz-transform: rotate(270deg);        /* FF */
          -o-transform: rotate(270deg);          /* Opera */
          -ms-transform: rotate(270deg);         /* IE9 */
          transform: rotate(270deg);             /* W3C compliant browsers */
    }

    #body {
        top: 50px;
        left: 0;
        width: 100%;
        border:none;
        box-shadow:none;
    }

    #content {
        /*max-width:600px;*/
        width:100%;
        box-sizing:border-box;
    }

    #sidebar {
        border:none;
        position: relative;
        padding: 0;
        width: 100%;
        left: 0;
    }

    #sidebar .block {
        margin: 20px;
        display: inline-block;
        width: 250px !important;
    }

    #sidebar .banners-block {
        display:none;
    }

    #sidebar .ads-menu {
        display:none;
    }

    #ads-menu-mobile {
        display: inline !important;
    }
}


@media screen and (max-width: 640px) {
    #content .float-left, #content .float-right {
        width: auto;
        max-width:100%;
        max-height:300px;
        float:none;
        margin:15px auto;
        display:block;
    }
}

.gallery-container .preview {
    text-align: center;
    #display: inline-block;
    #zoom: 1;
    #vertical-align: middle;
    #margin:10px auto;
    #padding: 1px;
    #border: 1px dotted #CCC;
    #border-radius: 3px;
}

.gallery-container .preview  img{
    #margin: 10px 0;
    max-width: 244px;
    #border: 1px solid #DDD;
    #padding: 2px;
    #box-shadow: 0 0 2px 0 #CCC;
    #max-width: 100%;
}

.gallery-container .preview a:focus{
    outline: none;
}

#content .placeholder {
    max-width: 600px;
    height: 300px;
}

#sidebar .placeholder {
    width: 100%;
    max-width: 320px;
    height: 160px;
}

#sidebar .placeholder img {
    #border: 1px solid #DDD;
    padding: 2px;
    #box-shadow: 0 0 2px 0 #CCC;
}

#sidebar .placeholder-search {
    height: 30px;
}

.placeholder-1 {
    background-color: #7dd3e2;
}

.placeholder-2 {
    background-color: #afe298;
}

.placeholder-3 {
    background-color: #dee298;
}

.placeholder-4 {
    background-color: #22e298;
}

ya-map {
    width: 100%;
    height: 0px;
    display: block;
}

.ngdialog.ngdialog-theme-plain {
    padding-bottom: 80px;
    padding-top: 80px;
}

.ngdialog-message {
    padding: 15px;
}


#content .social img{
    float: right;
    width: 36px;
    height: 36px;
    border: none;
    padding: 2px;
    box-shadow: none;
    margin-top: 4px;
}

#content .social img:hover {
    opacity: 0.6;
}

@media only screen and (max-width: 480px) {
    .photo {
        overflow: hidden;
        max-height: 200px;
        #width: 702px;
        width: 100%;
        position: relative;
        text-align: center;
        background-color: #f5f5f5;
        #border: 1px solid #d5d5d5;
        border: 1px dotted #CCC;
    }

    .photo img {
        max-height: 200px;
        #width: 730px;
    }

    .article-short-image {
        width: 98%;
    }

    .article-short-content {
        margin-left: 0;
    }
}

@media only screen and (min-width: 480px) and (max-width: 1366px) {
    .photo {
        overflow: hidden;
        max-height: 468px;
        #width: 702px;
        width: 100%;
        position: relative;
        text-align: center;
        background-color: #f5f5f5;
        #border: 1px solid #d5d5d5;
        border: 1px dotted #CCC;
    }

    .photo img {
        max-height: 486px;
        #width: 730px;
    }
}

@media only screen and (min-width: 1366px){
    .photo {
        overflow: hidden;
        max-height: 630px;
        #width: 730px;
        width: 100%;
        position: relative;
        text-align: center;
        background-color: #f5f5f5;
        #border: 1px solid #d5d5d5;
        border: 1px dotted #CCC;
    }

    .photo img {
        max-height: 630px;
        #width: 945px;
    }
}

.photo .left-part {
    left: 0; top: 0; width: 33%; height: 100%; position: absolute;
}

.photo .right-part {
    right: 0; top: 0; width: 33%; height: 100%; position: absolute;
}

.photo .arrow-button {
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #d5d5d5;
    text-transform: uppercase;
    font-size: 22px;
    line-height: 34px;
    outline: none;
    padding: 0 15px;
    background-color: #f3f3f3;
    background-image: linear-gradient(#fff,#f3f3f3);
    cursor: pointer;
    color: #222;
    display: inline-block;
    vertical-align: middle;
    font-weight: 700;
    box-sizing: border-box;
    box-shadow: 0 0 5px #dadada;
}

.photo-count {
    width: 90px;
    display: inline;
    float: right;
    text-align: right;
    font-size: 16px;
    color: #959595;
    #margin-bottom: 10px;
}

.photo-desc {
    display: inline;
    float: left;
    text-align: left;
    font-size: 16px;
    color: #959595;
}

.btn-group button.active {
    background-color: #e2e2e2;
    color: #555;
    cursor: default;
}

.btn-group a {
    color: inherit;
}
.btn-group button {
    background-color: white;
    border: 1px solid #cccccc; /* Green border */
    color: #cccccc; /* White text */
    padding: 6px 10px; /* Some padding */
    cursor: pointer; /* Pointer/hand icon */
    float: left; /* Float the buttons side by side */
    font-size: 14px;
}

.btn-group button:not(:last-child) {
    border-right: none; /* Prevent double borders */
}

.btn-group button:last-child {
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

.btn-group button:first-child {
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

/* Clear floats (clearfix hack) */
.btn-group:after {
    content: "";
    clear: both;
    display: table;
}

/* Add a background color on hover */
.btn-group button:hover {
    background-color: #e2e2e2;
    color: #555;
}

:active, :hover, :focus {
    outline: 0;
    outline-offset: 0;
}

a.inner-href {
    color: #c33;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
}
a.inner-href:hover {
    color: #555 !important;
    text-decoration: underline;
}
a.inner-href:visited {
    color: #c33;
}

#select-ads-rubric {
    width: 80%;
    height: 32px;
    max-width: 600px;
}
#ads-menu-mobile {
    display: none;
}

@media screen and (max-width: 480px) {
    /*.change-view {
        display:none;
    }*/
    #ads-view-btn-group {
        display:none;
    }
    #select-ads-rubric {
        width: 100%;
    }
}