@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) {
	
    .desktop-lang-bar {
	display: none;	
    }
    
    .mobile-lang-bar {
	display: flex;
	align-self: center;
	top: 5px;
	margin-right: auto;
    }
    
    .mobile-settings-bar {
	display: flex;
	align-self: center;
	margin-right: auto;
	}
    
    header aside {
	margin-right: 30px;
    }
	
    nav {
        display: none;
    }
    
    .logo{
        /*margin-left: 5px;*/
	margin-left: -20px;
	margin-right: 20px;
    }

    header .wraper{
        overflow: visible;
    }

    .mobile-nav-btn{
        left: auto;
	right: 5px;
    }
    
    .lang-bar .drop-down-menu {
	right: auto;
	left: -24px;
    }
    
    .sub-header .wraper{
        overflow: visible;
    }
    
/*    SUBHEADER OPTIONS GOES IN DROP DOWN */
    
    .sub-header .wraper > ul{
        display: none;
    }
    
    .mobile-subheader{
        display: block;
	width: 94%;
    }
    
    .mobile-subheader .overflowHidden {
	    overflow: hidden;
	    width: 95%;
    }
    
    .mobile-subheader .open-drop-down {
	    margin-left: 0;
    }
    
    .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 > 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 {
        display: none;
    }
    .lang-bar .drop-down-menu {
        left: -50px;
    }
    .icon-on-off:before {
        margin: 0;
    }
}

@media only screen and (max-width: 410px){
    
    .logo{
        margin-left: 0;
    }
    
    .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;
    }
    
    .lang-bar .drop-down-menu {
        left: -90px;
    }
}

@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;
    }
    
}

/* CSS Loader */
#loadheader-responsive {
	display: none;
}
