@media only screen and (min-width: 768px) {
    .nav-main {
        width: calc(78% - 4px);
        margin-left: 4px;
        border-left: 2px solid;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        box-shadow: 2px 4px 2px -2px rgba(0, 0, 0, 0.2);
        position: relative;
        margin-bottom: 5px;
    }

    .nav-main:before {
        border-top-left-radius: 10px;
    }

    .nav-list-root {
        letter-spacing: 1px;
        position: relative;
        display: flex;
        flex-basis: 0;
        flex: 1 1 0;
    }

    .nav-item-root {
        position: relative;
        min-width: 98px;
        height: 41px;
    }

    .nav-item-root:first-child {
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }

    .hyp-top-lvl {
        color: #FFFFFF;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-family: 'Arial', 'Tahoma', serif;
        font-size: 12px;
        line-height: 1.4;
        font-weight: bold;
        text-decoration: none;
        height: 42px;
        padding-bottom: 1px;
    }

    .nav-item-root.image-menu-item {
        min-width: 74px;
    }

    .nav-item-root:not(.image-menu-item):hover {
        background-color: #a45322;
    }

    .hyp-top-lvl:hover {
        text-decoration: none;
    }

    .nav-item.image-menu-item {
        width: auto;
    }

    .nav-item.image-menu-item:hover .nav-hyp {
        background: none;
    }

    .nav-item-root:after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 0px;
        border-right: 1px solid #d78d5e;
        border-left: 1px solid #cc6b32;
        height: 100%;
        padding: 1px 0;
    }

    .nav-lvl-2,
    .nav-lvl-3 {
        display: none !important;
    }

    .nav-item-root:hover .nav-lvl-2,
    .nav-item-lvl-2:hover .nav-lvl-3 {
        display: block !important;
    }

    .nav-list:not(.nav-list-root) {
        width: 170px;
        background-color: #a45322;
        border: 1px solid #7E3308;
        list-style: none outside none;
        padding: 0 6px 5px 5px;
        position: absolute;
        top: 42px;
        left: 0;
        z-index: 999;
        box-shadow: 0 -2px 6px #7E3308;
        text-decoration: none;
        overflow: visible !important;
    }

    .nav-item-lvl-2.has-children:hover .nav-lvl-3 {
        left: 155px;
        top: -3px;
    }

    .nav-hyp:not(.hyp-top-lvl) {
        padding: 6px 10px;
        width: 100%;
        border-bottom: 1px solid #CC6B32;
        display: block;
        color: #FEAA7F;
    }

    .nav-hyp:not(.hyp-top-lvl):hover {
        background-color: #c96830;
        text-decoration: none;
    }

    .nav-item-lvl-2:hover .hyp-lvl-2,
    .nav-item-lvl-2:hover .hyp-lvl-3:hover {
        color: #FFFFFF;
    }

    .nav-item-lvl-2.has-children .hyp-lvl-2 {
        position: relative;
        padding-right: 25px;
    }

    .nav-item-lvl-2.has-children .hyp-lvl-2:after {
        content: '';
        width: 10px;
        height: 10px;
        position: absolute;
        right: 10px;
        top: 0;
        bottom: 0;
        margin: auto;
        background: url(../system_images/arrow-white.png) no-repeat center center;
        background-size: 10px auto;
        transform: rotate(-90deg);
    }

    .nav-hyp-text {
        display: none;
    }

    .nav-main-page-link {
        display: none;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .nav-item-root {
        min-width: 0;
        padding: 0 10px !important;
    }

    .nav-item-root.image-menu-item {
        min-width: 0;
        padding: 0 15px !important;
    }
}

@media screen and (max-width: 767px) {
    /* Hamburger */
    .hamburger {
        font: inherit;
        display: inline-block;
        overflow: visible;
        margin: 0;
        padding: 0 0 8px 10px;
        cursor: pointer;
        transition-timing-function: linear;
        transition-duration: .15s;
        transition-property: opacity,filter;
        text-transform: none;
        color: inherit;
        border: 0;
        background-color: transparent;
        order: 1;
    }

    .hamburger:hover {
        opacity: .85;
    }

    .hamburger-box {
        position: relative;
        display: inline-block;
        width: 40px;
        height: 24px;
    }

    .hamburger .hamburger-inner,
    .hamburger .hamburger-inner:after,
    .hamburger .hamburger-inner:before {
        background-color: #cc6b32;
    }

    .hamburger--squeeze .hamburger-inner {
        transition-timing-function: cubic-bezier(.55,.055,.675,.19);
        transition-duration: 75ms;
    }

    .hamburger-inner,
    .hamburger-inner:after,
    .hamburger-inner:before {
        position: absolute;
        width: 40px;
        height: 4px;
        transition-timing-function: ease;
        transition-duration: .15s;
        transition-property: transform;
        border-radius: 4px;
        background-color: #000;
    }

    .hamburger-inner {
        top: 50%;
        display: block;
        margin-top: -2px;
    }

    .hamburger-inner:after,
    .hamburger-inner:before {
        display: block;
        content: '';
    }

    .hamburger-inner:before {
        top: -10px;
    }

    .hamburger-inner:after {
        bottom: -10px;
    }

    body.nav-main-opened .hamburger--squeeze .hamburger-inner {
        transition-delay: .12s;
        transition-timing-function: cubic-bezier(.215,.61,.355,1);
        transform: rotate(45deg);
    }

    .hamburger--squeeze .hamburger-inner:before {
        transition: top 75ms ease .12s, opacity 75ms ease;
    }

    body.nav-main-opened .hamburger--squeeze .hamburger-inner:before {
        top: 0;
        transition: top 75ms ease, opacity 75ms ease .12s;
        opacity: 0;
    }

    .hamburger--squeeze .hamburger-inner:after {
        transition: bottom 75ms ease .12s, transform 75ms cubic-bezier(.55,.055,.675,.19);
    }

    body.nav-main-opened .hamburger--squeeze .hamburger-inner:after {
        bottom: 0;
        transition: bottom 75ms ease,transform 75ms cubic-bezier(.215,.61,.355,1) .12s;
        transform: rotate(-90deg);
    }
    /* End Hamburger */

    #wrapper {
        transition: transform 0.4s ease-in-out;
    }

    body.nav-main-opened #wrapper {
        transform: translate3d(280px, 0, 0);
    }

    .nav-main {
        position: fixed;
        top: 0;
        left: 0;
        background: #ffffff;
        width: 280px;
        height: 100vh;
        padding: 12px 0;
        box-shadow: inset -20px 0 30px -9px rgba(0,0,0,0.15);
        transform: translate3d(-100%, 0, 0);
        overflow-y: auto;
    }

    .nav-main.menu-bg:before {
        content: none;
    }

    .nav-main::-webkit-scrollbar {
        width: 6px;
        height: 6px;
        margin-right: 2px;
    }

    .nav-main::-webkit-scrollbar-track {
        border-radius: 3px;
        background: rgba(0,0,0,0.1);
    }

    .nav-main::-webkit-scrollbar-thumb {
        border-radius: 3px;
        background: #cc6b32;
    }

    body.nav-main-opened {
        overflow: hidden;
    }

    .nav-list-root {
        letter-spacing: 0.5px;
        display: flex;
        flex-direction: column;
        padding-bottom: 62px;
    }

    .nav-hyp{
        height: 40px;
        display: flex;
        align-items: center;
        position: relative;
    }

    .hyp-top-lvl {
        font-family: 'Arial', 'Tahoma', serif;
        font-size: 14px;
        font-weight: bold;
        text-transform: uppercase;
        color: #cc6b32;
    }

    .hyp-lvl-2 {
        font-size: 12px;
        text-transform: uppercase;
        color: #222222;
    }

    .hyp-lvl-3 {
        font-size: 12px;
        color: #222222;
    }

    .nav-lvl-3 {
        margin: 0 -26px;
        padding: 0 26px;
        width: calc(100% + 26px);
        background: #f2ecdc;
        box-shadow: inset -12px 0 30px -9px rgba(0,0,0,0.15);
    }

    .nav-hyp {
        padding: 0 26px;
    }

    .nav-hyp:hover {
        text-decoration: none;
    }

    body:not(ui-touch-device) {
        background: rgba(0,0,0,0.1);
    }

    .nav-item.has-children > .nav-list {
        display: none;
    }

    .nav-item-root.has-children > .nav-hyp {
        padding-right: 46px;
    }

    .nav-item-root.has-children > .nav-hyp:after,
    .nav-item-lvl-2.has-children > .nav-hyp:after{
        content: '';
        height: 10px;
        width: 10px;
        position: absolute;
        right: 31px;
        top: 0;
        bottom: 0;
        margin: auto;
        background: url(../system_images/arrow-orange.png) no-repeat center center;
        background-size: 10px auto;
        transition: transform .3s ease-in-out;
    }

    .nav-item-lvl-2.has-children > .nav-hyp:after {
        background-image: url(../system_images/arrow-grey.png);
    }

    .nav-item-root.has-children > .nav-hyp.show:after,
    .nav-item-lvl-2.has-children > .nav-hyp.show:after{
        transform: rotate(180deg);
    }

    .header-top-links.center {
        display: none;
        order: 2;
    }

    .header-top-links.right {
        align-self: center;
        order: 3;
        width: auto;
    }

    .nav-main-page-link {
        width: 62px;
        height: 100%;
        background: url(../images/menuLogo.png) no-repeat center center;
        position: relative;
    }

    .nav-main-page-link:after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 0px;
        border-right: 1px solid #d78d5e;
        border-left: 1px solid #cc6b32;
        height: 100%;
        padding: 1px 0;
    }

    .nav-hyp-text {
        padding-left: 10px;
    }
}