/* -------- header start -------- */

.header {
    position: relative;
    min-height: 68px;
}

.header__logo {
    position: absolute;
    top: 0;
    left: 45px;
    line-height: 68px;
    height: 68px;
}

.logo {
    display: block;
    width: 125px;
    vertical-align: middle;
    margin-top: -2px;
}

.header__nav {
    text-align: center;
}

.nav__item {
    display: inline-block;
    margin-left: -.36em;
}

.nav__item:first-child {
    margin-left: 0;
}

.nav__link,
.nav__link:focus {
    display: block;
    line-height: 68px;
    padding: 0 15px;
    font-size: 0.937em;
    font-weight: bold;
    color: #afafaf;
}

.nav__link:focus {
    text-decoration: none;
}

.nav__link.nav__link-active,
.nav__link:hover {
    background: #025874;
    color: #fff;
    text-decoration: none;
}

.header__user {
    position: absolute;
    top: 0;
    right: 0;
    line-height: 68px;
}

.login__btn,
.logout__btn {
    text-transform: uppercase;
    font-size: 1.125em;
    font-weight: bold;
    line-height: normal;
    margin-right: 40px;
}

.user__wrap,
.user__logout {
    display: inline-block;
    line-height: 68px;
    border-left: 1px solid #ddd;
}

.user__avatar {
    display: inline-block;
    vertical-align: middle;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #afafaf;
    margin-left: 16px;
    -webkit-mask-image: -webkit-radial-gradient(circle, white, black);
}

.user__avatar img {
    width: 48px;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
}

.user__info {
    display: inline-block;
    line-height: normal;
    vertical-align: middle;
    text-transform: uppercase;
    margin: 0 15px;
}

.user__name {
    font-weight: bold;
    font-size: 0.937em;
    color: #075c78;
}

.user__plan {
    color: #afafaf;
    font-weight: normal;
    font-size: 0.812em;
}

.upgrade__plan {
    text-transform: none;
    font-size: 0.75em;
    color: #075c78;
}

.upgrade__plan:hover,
.upgrade__plan:focus {
    text-decoration: none;
}

.user__logout a {
    display: block;
    padding: 0 20px;
    font-size: 0.937em;
    font-weight: bold;
    color: #b0b0b0;
    text-transform: uppercase;
}

.user__logout a:focus,
.user__logout a:hover {
    text-decoration: none;
}

/* -------- mobile start -------- */

.mobile__nav {
    font-size: 2.6em;
    line-height: 68px;
    vertical-align: middle;
    float: left;
    display: none;
}

.mobile__bar {
    width: 30px;
    height: 26px;
    position: relative;
    margin: auto;
    display: inline-block;
}

.mobile__bar .mobile__bar-line {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: #135d78;
    position: absolute;
    transition: all 0.4s;
}

.mobile__bar .mobile__bar-line:nth-child(1) {
    top: 0;
}

.mobile__bar .mobile__bar-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile__bar .mobile__bar-line:nth-child(3) {
    bottom: 0;
}

.mobile__nav-show .mobile__bar .mobile__bar-line:nth-child(1),
.mobile__nav-show .mobile__bar .mobile__bar-line:nth-child(2) {
    top: 0;
    transform: translateY(11px) rotate(45deg);
    background: #ccc;
}

.mobile__nav-show .mobile__bar .mobile__bar-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background: #ccc;
}

.popup-bg,
.body-bg {
    display: none;
    position: absolute;
    width: 100%;
    top: 68px;
    background: #000;
    z-index: 2;
    opacity: 0.5;
    left: 0;
    right: 0;
    bottom: 0;
}

.popup-bg {
    top: 0;
}

.show__popup .popup-bg,
.show__logout .body-bg,
.show__profile-menu .body-bg,
.mobile__nav-show .body-bg {
    display: block;
}

.mobile__nav-show .mobile__nav-list {
    padding-bottom: 15px;
    border-top: 1px solid #ddd;
}

.mobile__nav-show .mobile__nav-link {
    padding: 15px 0;
}

.mobile__nav-show .mobile__nav-item {
    height: auto;
}

.mobile__nav-show .mobile__nav-item.mobile__nav-item__login {
    padding: 25px 0 ;
    height: auto;
    margin-bottom: 15px;
    border-bottom: 1px solid #c0c0c0;
}

.mobile__nav-list {
    overflow: hidden;
    position: absolute;
    top: 67px;
    background: #e5e5e5;
    width: 100%;
    left:0;
    z-index: 3;
    padding: 0;
    border-top: 0 solid #ddd;
    -webkit-transition: 0.4s all ease-out;
    transition: 0.4s all ease-out;
}

.mobile__nav-item {
    position: relative;
    height: 0;
    overflow: hidden;
    -webkit-transition: 0.4s all ease-out;
    transition: 0.4s all ease-out;
}

.mobile__nav-item.mobile__nav-item__login {
    border-bottom: 0 solid #c0c0c0;
    margin: 0;
}

.mobile__nav-item .login__btn,
.mobile__nav-item .logout__btn {
    margin: 0;
    padding: 15px 60px;
}

.mobile__nav-link {
    display: block;
    position: relative;
    padding: 0;
    -webkit-transition: 0.4s all ease-out;
    transition: 0.4s all ease-out;
    color: #afafaf;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
}

.mobile__nav-link:focus {
    text-decoration: none;
}

.mobile__nav-item__active:after {
    content: '';
    display: block;
    height: 100%;
    width: 5px;
    position: absolute;
    top: 0;
    right: 0;
    background: #015773;
}

.mobile__nav-item__active {
    background: #fff;
}

.current__page {
    float: left;
    line-height: 68px;
    border-left: 1px solid #ddd;
    margin-left: 15px;
    padding-left: 20px;
    font-size: 1.3em;
}

.mobile__logout {
    height: 0;
    overflow: hidden;
    position: absolute;
    top: 67px;
    background: #e5e5e5;
    width: 100%;
    left:0;
    z-index: 3;
    padding: 0;
    border-top: 0 solid #ddd;
    -webkit-transition: 0.4s all ease-out;
    transition: 0.4s all ease-out;
}

.mobile__logout a {
    margin: 0;
    padding: 15px 90px;
}

.show__logout .mobile__logout {
    padding: 35px 0;
    height: auto;
}

.show__logout .user__wrap{
    background: #e5e5e5;
}

/* -------- header end -------- */

@media (max-width: 775px) {

    html, body {
        font-size: 87.5%;
    }

    /* -------- header start -------- */
    .header {
        text-align: center;
    }

    .header__logo {
        position: inherit;
        display: inline-block;
        vertical-align: middle;
        margin-left: -32px;
    }

    .logo {
        margin: -20px auto 0;
        width: 190px;
    }

    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
    }

    .user__avatar {
        margin-right: 14px;
    }

    .user__info {
        display: none;
    }

    .user__logout {
        display: none;
    }

    .mobile__logout {
        display: block;
    }

    .mobile__nav {
        display: inline-block;
    }

    .mobile__nav-list {
        display: block;
    }
}