#primary-nav {
    background: #6aab5e;
    border: none;
    margin: 0 !important;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: .02em;
    height: 60px;
    border-radius: 0;
    box-sizing: border-box;
    color: #fff;
    transition: all .3s ease-in-out;
}

#primary-nav .navbar-brand {
    font-family: 'Scada', sans-serif;
    font-weight: 400;
    color: #fff;
    font-size: 1.4em;
    line-height: 1.4em;
    display: block;
    height: 60px;
}

#primary-nav-bottom {
    height: 60px;
    border-radius: 0;
    margin-top: 60px;
    border-bottom: 1px solid #ccc;
    background: #fff;
    -webkit-box-shadow: 0 6px 8px 0 rgba(0, 0, 0, .2);
    box-shadow: 0 6px 8px 0 rgba(0, 0, 0, .2);
}

.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
    background: none;
}

nav .navbar-nav .navbar-nav-item a:hover {
    color: #000;
    background: none;
}

nav .navbar-nav-item.highlighted a, nav.frontend-nav .navbar-nav li.navbar-nav-item.highlighted > a {
    font-weight: 600;
    color: #6aab5e;
}

nav .navbar-nav-item.text-success a {
    color: #6aab5e;
}

#primary-nav-bottom .navbar-nav-item:first-child {
    padding-left: 0;
}

#primary-nav-bottom .navbar-nav-item:last-child {
    padding-right: 0;
}

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
    color: #000;
    background: none;
}

nav .navbar-nav li.navbar-nav-item > a.nav-phone {
    color: #fff;
    font-size: 20px !important;
}

nav .navbar-nav li.navbar-nav-item .nav-phone-info {
    position: relative;
    margin-left: 19px;
    padding: 8px 12px 8px 14px;
    opacity: .56;
    color: #000;
    border-radius: 3px;
    background: #eff6db;
    -webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .2);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .2);
    font-size: 12px;
}

nav .navbar-nav li.navbar-nav-item .nav-phone-info:before {
    position: absolute;
    top: 50%;
    left: -5px;
    display: block;
    width: 10px;
    height: 10px;
    margin-top: -6px;
    content: '';
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    background: #eff6db;
}

.mobile-menu {
    display: none;
}


@media (min-width: 769px) {
    #primary-nav, #primary-nav-bottom {
        position: absolute;
        border-radius: 0;
    }

    #primary-nav .navbar-brand:hover {
        color: #fff;
    }

    nav.frontend-nav .navbar-nav {
        height: 60px;
        line-height: 60px;
    }

    nav.frontend-nav .navbar-nav > li {
        display: inline-block;
        vertical-align: middle;
        padding: 0 9px;
        border-radius: 0;
    }

    .flag-container .flag {
        border-radius: 50%;
        background: #eff6db;
        opacity: .56;
        color: #000;
        text-transform: uppercase;
        font-size: 12px;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        margin: 16px 0 0 0;
        padding: 0;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .2);
    }

    .flag-container .flag.flag-click {
        display: none;
    }

    .flag-container:hover .flag.flag-click {
        cursor: pointer;
        display: block;
    }

    .flag-container:hover .flag:not(.flag-click) {
        display: none;
    }


    nav.frontend-nav .navbar-nav li.navbar-nav-item > a, nav.frontend-nav .navbar-nav li.navbar-nav-item > span.flag {
        margin: 0;
        height: 60px;
        line-height: 60px;
        width: auto;
        position: relative;
        transition: color .3s;
        white-space: nowrap;
        padding: 0;
        font-size: 14px;
        font-weight: 500;
        background-color: transparent;
    }

    nav.frontend-nav .navbar-nav li.navbar-nav-item .btn-create {
        height: auto;
        background: none;
        border: 1px solid #fff;
        color: #fff;
        font-weight: 700;
        font-size: 16px;
        vertical-align: middle;
        touch-action: manipulation;
        cursor: pointer;
        transition: all 0.4s;
        display: inline-block;
        margin: 0;
        text-align: center;
        white-space: nowrap;
        user-select: none;
        line-height: 1.5;
        padding: 5px 14px;
        border-radius: 2px;
    }

    nav.frontend-nav .navbar-nav li.navbar-nav-item .btn-create:hover {
        background-color: #6aab5e;
        color: #fff;
    }

    #primary-nav .dropdown-menu {
        background: #f8f8f8;
        color: #444;
    }

    nav.frontend-nav .dropdown-menu > .active > a, nav.frontend-nav .dropdown-menu > .active > a:hover, nav.frontend-nav .dropdown-menu > .active > a:focus {
        color: #fff;
        text-decoration: none;
        background-color: #6aab5e;
        outline: 0;
    }
}

@media (min-width: 1020px) {
    nav.frontend-nav .navbar-nav > li {
        display: inline-block;
        vertical-align: middle;
        padding: 0 20px;
        border-radius: 0;
    }
}
@media (max-width: 768px) {
    #primary-nav {
        height: 50px;
    }

    #primary-nav .navbar-nav-item {
        display: none;
    }

    .mobile-menu {
        display: block;
        color: #000;
        transition: bottom .4s;
        left: -300px;
        position: absolute;
        min-width: 280px;
        width: calc(100% - 40px);
        height: calc(100vh - 50px);
    }

    .mobile-menu p {
        margin-bottom: 15px;
    }

    .mobile-menu a {
        text-transform: uppercase;
        font-weight: 600;
        color: #518e4f;
        font-size: 14px;
        width: 100%;
    }

    .mobile-menu .mobile-menu-profile-list {
        text-align: center;
        position: absolute;
        min-width: 280px;
    }

    .mobile-menu .mobile-menu-profile-list li {
        width: fit-content;
        display: inline-block;
        padding: 4px;
    }

    .mobile-menu .mobile-menu-profile-list a {
        border: 1px solid #518e4f;
        width: fit-content;
        font-size: 14px;
        padding: 5px 14px;
        display: inline-block;
    }

    .mobile-menu a.nav-phone {
        font-size: 20px;
    }

    .mobile-menu a.btn-success {
        color: #fff;
    }

    .mobile-menu a.btn-transparent-success {
        background: transparent;
        color: #518e4f;
        -webkit-transition: background .2s ease-in-out, border .2s ease-in-out;
        -moz-transition: background .2s ease-in-out, border .2s ease-in-out;
        -o-transition: background .2s ease-in-out, border .2s ease-in-out;
        transition: background .2s ease-in-out, border .2s ease-in-out;
        border: 1px solid #518e4f;
    }


    .navbar-toggle {
        position: relative;
        float: left;
        padding: 5px;
        background-color: transparent;
        background-image: none;
        border: none;
        border-radius: 4px;
        height: 50px;
        margin: 0 7px 0 0;
    }

    .navbar-toggle.on {
        background: transparent;
    }

    .navbar-toggle.on span {
        transition: all 0.3s;
    }

    .navbar-toggle .icon-bar {
        height: 3px;
    }

    .navbar-toggle.on span {
        transition: all 0.3s;
    }

    .navbar-toggle.on span:nth-child(2) {
        transform: rotate(45deg) translate(5px, 0);
    }

    .navbar-toggle.on span:nth-child(4) {
        transform: rotate(-45deg) translate(4px, 0);
    }

    .navbar-toggle.on span:nth-child(3) {
        display: none;
    }

    #primary-nav .navbar-brand {
        font-family: 'Scada', sans-serif;
        font-weight: 400;
        color: #fff;
        font-size: 20px;
        line-height: 50px;
        display: block;
        height: 50px;
        padding: 0;
    }

    nav.frontend-nav .btn-create {
        font-size: 12px;
        padding: 5px 10px;
        height: auto;
        background: none;
        border: 1px solid #fff;
        color: #fff;
        font-weight: 700;
        vertical-align: middle;
        touch-action: manipulation;
        cursor: pointer;
        transition: all 0.4s;
        display: inline-block;
        text-align: center;
        white-space: nowrap;
        user-select: none;
        line-height: 1.5;
        border-radius: 2px;
        margin-top: 9px;
        float: right;
        margin-right: 5px;
    }

    .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
        background-color: transparent;
    }

    #primary-nav-bottom {
        display: none;
    }

    nav.frontend-nav .collapse.in, #primary-nav #primary-nav-collapse {
        background: #fff;
        min-height: calc(100vh - 50px);
    }

    nav.navbar-default .navbar-toggle {
        background: transparent;
    }

    nav.navbar-default .navbar-toggle .icon-bar {
        background: #fff;
    }
}
