@media only screen and (max-width: 1266px) {

    body.lang-ru header nav > ul{
        justify-content: center;
    }
    
    nav > ul > li{
        margin-right: 5%;
    }
    
    nav .drop-down{
        margin-right: 23px;
    }
    
    body.lang-ru header nav {
        flex-grow: 1;
    }
    
}

@media only screen and (max-width: 1200px) {
	.extra-menu {
		display: none;
	}

    body.lang-ru .lang-bar > a span:last-child {
        display: none;
    }
}

@media only screen and (max-width: 1020px) {
    nav{
        flex-grow: 1;
        margin: 0 3%;
    }
    
    nav > ul > li{
        margin-right:10px;
    }
}


@media only screen and (max-width: 920px) {
    body.lang-id .lang-bar > a span:last-child,
    body.lang-pt .lang-bar > a span:last-child{
        display: none;
    }
}

/* --- */

@media only screen and (max-width: 870px) {
  
    nav {
        display: none;
    }
    
    .logo{
        margin-left: 5px;
    }

    header .wraper{
        overflow: visible;
    }

    .mobile-nav-btn{
        left: 0;
    }
    
    .sub-header .wraper{
        overflow: visible;
    }
    
/*    SUBHEADER OPTIONS GOES IN DROP DOWN */
    
    .sub-header .wraper > ul{
        display: none;
    }
    
    .mobile-subheader{
        display: block;
    }
    
    .sub-header .menu ul {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .sub-header .menu a:after{
        display: none;
    }
    
    .sub-header a.icon::after {
        width: 100%;
    }
}

@media only screen and (max-width: 460px) {
    header.dashboard aside {
        width: 40%;
    }
    header.dashboard aside > div {
        margin-top: 10px;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
        width: 100%;
    }
    .login span,
    .lang-bar > a span:last-child {
        display: none;
    }
    .lang-bar .drop-down-menu {
        left: auto;
        right: -10px;
    }
    .icon-on-off:before {
        margin: 0;
    }
}

@media only screen and (max-width: 410px){
    
    .logo{
        margin-left: 25px;
    }
    
    .dashboard .logo {
        display: none;
    }
    
    .mobile-nav{
        top: 50px;
    }
    
    header{
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }
    
    header aside {
        padding-left: 0;
        margin-left: auto;
        width: 50%;
        -webkit-box-pack: end;
        -webkit-justify-content: flex-end;
        -ms-flex-pack: end;
        justify-content: flex-end;
    }
    
    .lang-bar {
        margin-left: .85em;
    }
    
    header aside button.sign-in{
        padding: 5px 15px;
    }
}

@media only screen and (max-width: 320px){
    
    header aside > div {
        margin-top: -10px;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
        -webkit-flex-direction: column-reverse;
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
        -webkit-box-align: end;
        -webkit-align-items: end;
        -ms-flex-align: end;
        align-items: end;
        height: 80%;
        -webkit-justify-content: space-around;
        -ms-flex-pack: distribute;
        justify-content: space-around;
    }
    
}