
header {
    min-height: 174px;
    width: 100%;
}

.mobile header {
    min-height: 0;
}

header>nav#main {
    width: 100%;

    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#e5e5e5+0,e5e5e5+33,e1e1e1+58,d9d9d9+88,d9d9d9+100 */
    background: #e5e5e5; /* Old browsers */
    background: -moz-linear-gradient(top,  #e5e5e5 0%, #e5e5e5 33%, #e1e1e1 58%, #d9d9d9 88%, #d9d9d9 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(33%,#e5e5e5), color-stop(58%,#e1e1e1), color-stop(88%,#d9d9d9), color-stop(100%,#d9d9d9)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #e5e5e5 0%,#e5e5e5 33%,#e1e1e1 58%,#d9d9d9 88%,#d9d9d9 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #e5e5e5 0%,#e5e5e5 33%,#e1e1e1 58%,#d9d9d9 88%,#d9d9d9 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #e5e5e5 0%,#e5e5e5 33%,#e1e1e1 58%,#d9d9d9 88%,#d9d9d9 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #e5e5e5 0%,#e5e5e5 33%,#e1e1e1 58%,#d9d9d9 88%,#d9d9d9 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#d9d9d9',GradientType=0 ); /* IE6-9 */

}

header>nav#main ul {
    width: 100%;    
}

header>nav#main ul li {
    display: inline-block;
    vertical-align: middle;
}

header>nav#main ul li.right {
    float: right;
    margin-top: 5px;
    margin-right: 20px;
}

header>nav#main ul li a {
    display: block;
    padding: 5px 9px 6px;
    color: #0a0404;
}

header>nav#main ul li a.logo {
    padding-left: 11px;
    padding-right: 15px;
    font-weight: bold;
    background: #d3c89c;
}

header>nav#main ul li a.logo i {
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    margin-right: 5px;
    background-position: center center;
    background-repeat: no-repeat;
}

header>div.logo {
    height: 95px;
    width: 100%;
    text-align: center;
    background-color: #7c081a;
    
}

header>div.logo>a {
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background-size: 95%;
    background-position: center center;
    background-repeat: no-repeat;
}

header>nav#tree {
    width: 100%;  
    height: 40px; 
    margin-left: 0px;    
}

.tablet header>nav#tree {
    height: auto;
}

header>nav#tree>ul {
    float: left;
    display: block;
    width: 100%;
   /* background: #a21d26; */
    background: #D3C89C;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.2);
}

.tablet header>nav#tree>ul {
    float: none;
}


header>nav#tree>ul>li {
    display: inline-block;
    vertical-align: middle;
}

header>nav#tree>ul>li:first-child {
    padding-left: 5px;
}

header>nav#tree>ul>li>a {
    display: block;
    padding: 12px 10px;
   /* color: #fff; */
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

header>nav#tree>ul>li.search {
    float: right;
    padding: 6px 10px;
    width: 160px;
}

.tablet header>nav#tree>ul>li.search {
    float: none;
}

header>nav#tree>ul>li.search>form {
    display: block;
    background: #76151c;
    width: 100%;
    padding: 0px 10px;    
}

header>nav#tree>ul>li.search>form>input[type=text] {
    width: 75%;
    background-repeat: no-repeat;
    background-position: right center;
    background-color: transparent;
    border: 0px;
    padding: 5px 10px 5px 0px;
    display: inline-block;
    vertical-align: middle;
}

header>nav#tree>ul>li.search>form>input[type=submit] {
    display: inline-block;
    vertical-align: middle;
    border: 0px;
    background-color: transparent;
    background-position: center center;
    background-repeat: no-repeat;
}

.mobile header>nav#tree>ul>li.search,
.tablet header>nav#tree>ul>li.search {
    width: 100%;
    background: #a21d26;
}

.tablet header>nav#tree>ul>li.search>form>input[type=text] {
    width: 94%;
}
.mobile header>nav#tree>ul>li.search>form>input[type=text] {
    width: 94%;
}

section#page {
    min-height: 500px; /* нужно убрать */
    padding: 15px 10px;
}

header .mobile-menu {
    display: none;
    float: right;
    width: 40px;
    height: 40px;
    margin-top: 10px;
    cursor: pointer;
    background-position: center center;
    background-repeat: no-repeat;
}

header nav#tree>ul>li>ul {
    display: none;
    position: absolute;
    z-index: 5;
    background: #a21d26;
    padding: 10px 20px 10px 10px;
}

.mobile header nav#tree>ul>li>ul {
    display: block;
    position: static;
    padding: 5px;
}

.mobile header nav#tree>ul>li>ul>li {
    padding: 0px;
}

header nav#tree>ul>li>ul>li {
    padding: 3px 0px;
}

header nav#tree>ul>li>ul>li a {
    color: #fff;
    text-decoration: none;
}

header nav#tree>ul>li>ul>li a:hover {
    text-decoration: underline;
}

header nav#tree>ul>li:hover>ul {
    display: block;
}



.mobile nav#main {
    display: block;
    position: absolute;
    width: 55px;
    height: 60px;
    white-space: nowrap;
    overflow: hidden;
}

.mobile header>nav#main ul li a.logo i {
    margin-right: 100px;
    height: 30px;
}

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

.mobile header>div.logo {
    height: 60px;
}

.mobile header>div.logo>a {
    width: 50%;
    margin-left: 100px;
}

.mobile header>nav#tree {
    position: absolute;
    margin-left: 100%;
    height: 100%;
    width: auto;
    min-width: 220px;
    overflow: auto;
}

.mobile header>nav#tree .search {
    position: absolute;
    top: 10px;
    left: 0px;
}

.mobile header>nav#tree>ul {
    height: auto; 
    min-height: 100%;   
    display: block;      
    box-shadow: none;
}

.mobile header>nav#tree>ul {
    padding-bottom: 100px;
}

.mobile header>nav#tree ul li {
    display: block;
    white-space: nowrap;
}

.mobile header>nav#tree>ul>li:first-child {
    margin-top: 50px;
    padding-left: 0px;
}

.mobile header>nav#tree ul li ul li {
    margin-left: 20px;
}

.mobile header>nav#tree ul li ul li:last-child {
    padding-bottom: 10px;
}

.mobile header>nav#tree ul li ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
}

.mobile section#page {
    padding: 150px 0px 0px 0px;
}

.tablet section#page {
    padding: 15px 0px;
}

.mobile section#page>.table>div>div {
    padding: 0px 10px !important;
}

.mobile header>nav#tree>ul>li>a {
    display: block;
    padding: 12px 10px;
    /* color: #fff; */
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
}
