html, body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #343A40;
    scroll-behavior: smooth;
    margin-top: 60px;
}

body.active {
    overflow:hidden;
}

.bg-gray{
    background: #f6f7fa;
    padding: 20px 0;
}

.bg-white{
    padding: 20px 0;
}

.bg-dark{
    padding: 20px 0;
    background: #333;
}

.logo{
	width: 150px;
}


.w10{
    width: 10%;
}

.w20{
    width: 10%;
}

.w30{
    width: 30%;
}

.w40{
    width: 40%;
}

.w50{
    width: 50%;
}

.w60{
    width: 60%;
}

.w70{
    width: 70%;
}

.w80{
    width: 80%;
}


.w90{
    width: 90%;
}


.w100{
    width: 100;
}


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

* {
    margin:0;
    padding:0;
    text-shadow:1px 1px 1px rgba(0,0,0,0.005);
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale;
    -moz-text-size-adjust:100%;
    -webkit-text-size-adjust:100%;
    -ms-text-size-adjust:100%;
}



a {
    text-decoration: underline;
    color:#337ab7;

}

a:hover {
    text-decoration: none;
}

h1, .h1{
    font-size: 30px;
    padding: 10px 0 30px 0;
    display: block;
    font-weight: 700;
    font-family: 'Roboto Slab', serif;
}


h2, .h2{
    font-size: 26px;
    padding: 10px 0 30px 0;
    display: block;
    font-weight: 700;
    font-family: 'Roboto Slab', serif;
}

h3{
    font-family: 'Roboto Slab', serif;
}

.wrapper{
    width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

header{
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 77px;
    align-items: center;
    justify-content: space-between;
}

.sticky-header{
    display: none;
}

.sticky-header.shown{
    position: fixed;
    top:0;
    left: 0;
    width: 100%;
    z-index: 99;
    background: #ffffff;
    display: block;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.136);

}

.sticky-header.shown header{
    width: 1100px;
    margin:0 auto;
}

.search-sticky{
    display: none;
}

.search-sticky.shown{
    position: fixed;
    top:77px;
    background: #ffffff;
    width: 100%;
    padding:20px 0;
    z-index: 60;
    display: block;
}

.search-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-search{
    cursor: pointer;
}

.main-menu ul, .footer-menu ul{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 77px;
    align-items: center;
}

.footer-menu ul{
    height: 30px;
}

.main-menu ul>li{
    height: 77px;
    line-height: 77px;
}

.main-menu ul li, .footer-menu ul li{
    list-style: none;
    display: flex;
    position: relative;
}

.main-menu ul li a{
    padding: 0 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    font-family: 'PT Sans', arial;
}

.submenu{
    position: absolute;
    background: #ffffff;
    top:77px;
    left:0;
    display: none;
}

.main-menu ul li:hover .submenu{
    display: block;
}

.submenu ul{
    display: block;
    height: auto;
}

.submenu ul li{
    line-height: 20px;
    display: flex;
    height: 35px;
    align-items: center;

}

.submenu ul li a{
    display: block;
   line-height: 35px;
}

.submenu ul li a:hover{
    background: #343a40;
    color: #ffffff;
}

.footer-menu ul li a{
    padding: 0 12px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    font-family: 'PT Sans', arial;
}

.footer-menu ul li a{
    color: #cccccc;
}

header .logo img{
    max-height: 35px;
}

.child-bg{
    background: url(../img/bg-pattern.jpg);
}

.main-slider{
    width: 100%;
    height: 400px;
    
}

.slider-item-content{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 1100px;
    margin:0 auto;
}

.slider-item-content .img-block{
    max-width: 550px;
    margin: 30px 0;
}

.slider-item-content .img-block img{
    max-width: 100%;
 }

.slider-item-content .text-block{
    max-width: 550px;
    margin: 30px 0;
    font-size: 20px;
}

.slider-item-content .text-block .hd{
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
}


.index-text-block{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 0;
}

.index-text-block .descr-block{
    width: 70%;
}

.index-text-block .img-block img{
    width: 100%;
}

.index-text-block h1{
    padding-top: 0;
}

.main-page-pubs{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.main-page-pubs .left-block{
    width: 65%;
}

.main-page-pubs .right-block{
    width: 35%;
    box-sizing: border-box;
    padding: 0 30px;
}

.mainpage-pub-list{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.main-text-block{
    margin-bottom: 30px;
    font-family: 'Roboto', sans-serif;
}

.main-text-block p{
    margin-bottom: 20px;
}

.inner-page-pub-list .article-elem{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom:20px;
    margin-bottom: 20px;
}

.inner-page-pub-list .article-elem .img-link{
    width: 30%;
    margin-right: 20px;
}

.inner-page-pub-list .article-elem .img-link img{
    max-width: 100%;
}

.inner-page-pub-list .article-anons{
    width: 70%;
}

.inner-page-pub-list .article-anons-full{
    width: 100%;
}

.inner-page-pub-list .article-anons a, .inner-page-pub-list .article-anons-full a{
    color: #343a40;
    text-decoration: underline;
    font-weight: 700;
    font-family: 'Roboto Slab', serif;

}

.inner-page-pub-list .article-anons p, .inner-page-pub-list .article-anons-full p{
    margin:10px 0;
}


.category-menu{
    list-style: none;
}

.category-menu li{
    display: block;
    margin-bottom: 10px;
}

.page-pub-list{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.article-elem{
    width: 30%;
    margin-bottom: 20px;
}

.inner-page-pub-list .article-elem{
    width: 100%;
}


.mainpage-pub-list a{
    font-weight: bold;
    font-size: 16px;
}

.mainpage-pub-list a img{
    width: 100%;
}

.page-pub-list a{
    font-weight: bold;
    font-size: 16px;
}

.page-pub-list a img{
    width: 100%;
}

.mobile-header{
    display: none;
}

.breadcrumbs{
    width: 100%;
    padding:0 0 15px 0;
}

.breadcrumbs .separator{
    padding:0 10px;
}

.breadcrumbs a, .bx-breadcrumb-item{
    display: inline;
}



footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: #cccccc;
}

 .search-icon{
    cursor: pointer;
}


.main-text-block img{
    max-width: 100%;
}

.forum-2column{
	display: flex;
	justify-content: space-between;
}

.forum-2column .forum-col{
	width: 49%;
}

.forum-col a{
	display: block;
}

.forum-topic-cat{
	font-size: 14px;
	display: flex;
    justify-content: flex-start;
}



.forum-topic-cat.lvl0{
	font-size: 16px;
    color: #ffffff;
    background: #23527c;
}

.forum-topic-cat.lvl0.gray{
    font-size: 16px;
    color: #ffffff;
    background: #ccc;
}

.forum-topic-cat a{
    padding: 10px;
    text-decoration: none;
}

.forum-topic-cat p{
    padding: 10px;
    margin-bottom: 0;
}




.forum-topic-cat.lvl0 span{
	font-size: 12px;
	color:#676767;
}

.forum-topic-cat.lvl1{
	font-size: 14px;
}

.forum-topic-cat.lvl1 span{
	font-size: 10px;
	color:#676767;
}



.forum-topic.lvl0{
	font-size: 14px;
}

.forum-topic.lvl1{
	font-size: 12px;
}


.forum-topic-cat.post-info div{
    padding: 10px;
    background: #e8e8e8;
    border-right: 1px solid #ffffff;
    font-weight: bold;
}

.forum-topic-cat .post-count{
    padding: 10px;
    text-align: center;
}

.forum-topic-cat .last-post-text{
    padding: 10px;
    font-size: 11px;
}

.forum-wrapper{
    height: 10px;
    width: 100%;
}

@media (min-width: 900px) and (max-width: 1200px) {

}

@media (max-width: 900px) {
    header{
        display: none;
    }

    .main-page-pubs{
        display: block;
    }
    

    .goback span{
        padding-left: 15px;
    }

    .search-sticky.shown{
        top: 52px;
    }

    .sticky-header{
        display: none !important;
    }

    
    .mobile-overlay{
        background: rgba(0, 0, 0,0.5);
        position: fixed;
        z-index: 3000;
        width: 100%;
        max-height: 100vh;
        height: 100%;
        left: 0;
        top: 0;
        cursor: pointer;
        display: none;
    }

    .mobile-overlay.shown{
        display: block;
    }

    .show-hide-menu{
        margin-left: 20px;
    }

    .search-icon{
        margin-right: 20px;
        cursor: pointer;
    }

    .wrapper{
        width: 100%;
        padding: 0 20px;
    }

    .wrapper.wrapper-slider{
        padding: 0;
    }
    
    .wrapper.header-wrapper{
        padding: 0;
    }


    .mobile-header{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 50px;
    }

    .mobile-header .mobile-logo img{
        height: 40px;
    }

    .mobile-menu{
        position: fixed;
        left: 0;
        top:0;
        transition: left 0.4s ease 0s, opacity 0.4s ease 0s;
        background: #fff;
        z-index: 3002;
        overflow: hidden;
        overflow-y: auto;
        width: 80%;
        max-height: 100vh;
        height: 100%;
        display: none;
    }

    .mobile-menu.shown{
        display: block;
    }

    .menu-items li{
        display: flex;
        list-style: none;
        border-bottom: 1px solid #ccc;

    }

    .mobile-menu li a{
        padding: 20px 30px;    
        display: block;
        text-decoration: none;
        font-weight: 700;
    }

    .mobile-menu .advmenu{
        display: none;
    }

    .mobile-menu li.active .advmenu {
        display: block;
        position: absolute;
        background: #ffffff;
        left: 0;
        top: 0;
        height: 100%;
        max-height: 100vh;
        width: 100%;
    }

    a.goback{
        display: flex !important;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }



    .social-block{
        padding: 10px 30px;
    }

    .social-block a{
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 10px 0;
    }

    .social-block a img{
        margin-right: 10px;
        display: inline;
    }

    .slider-item-content{
        display: block;
        width: 100%;
    }


    .slider-item-content .text-block{
        width: 100%;
        text-align: center;
    }

    .slider-item-content .img-block{
        text-align: center;
    }

    .slider-item-content .img-block img{
        max-height: 120px;
        display: inline;
    }

   

    .index-text-block{
        display: block;
    }

    .index-text-block .img-block{
        display: none;
    }

    .index-text-block .descr-block{
        width: 100%;
       
    }

    .mainpage-pub-list{
        display: block;
    }

    .mainpage-pub-list .article-elem{
        display: flex;
        justify-content: space-between;
        width: 100%;
    } 

    .mainpage-pub-list .post-title{
        display: flex;
        justify-content: space-between;
        width: 80%;
    }

    .mainpage-pub-list a.img-link{
        width: 14%;
        margin-right: 10px;
    }

    .mainpage-pub-list a img{
        width: 100%;
    }

    .page-pub-list{
        display: block;
    }

    .page-pub-list .article-elem{
        display: flex;
        justify-content: space-between;
        width: 100%;
    } 

    .page-pub-list .post-title{
        display: flex;
        justify-content: space-between;
        width: 80%;
    }

    .page-pub-list a.img-link{
        width: 14%;
        margin-right: 10px;
    }

    .page-pub-list a img{
        width: 100%;
    }

    .main-page-pubs{
        display: block;
    }

    .main-page-pubs .left-block, .main-page-pubs .right-block{
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    footer{
        display: block;
    }

    .footer-menu{
        display: none;
    }

    
}