/*========================*/
/* HEADER */
/*========================*/

#header{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: background-color 0.3s linear;
}

#header.add-bg{  background-color: var(--color-blue-bg);  }

.nav-wrap{
    --pd-vert: 15px;
    padding: var(--pd-vert) 30px;
    background-color: transparent;
}

@media only screen and (max-width: 1080px){
    .nav-wrap{  --pd-vert: 9px;  }
}

/* ============================================== */
/* NAVIGATION */
/* ============================================== */

.logo img{
    height: 42px;
    width: auto;
}

.nav.active{  right: 0;  }

.nav-item{
    transition: color 0.2s linear;
    line-height: 1;
}

.nav-item:not(:last-child){  margin:0 20px 0 0;  }

.nav-item.current-item, .nav-item:hover{  color: var(--color-green);  }

.nav-btn.outline{
    padding: 6px 30px;
}

.nav-btn:not(:last-child){
    margin-right: 10px;
}

@media only screen and (min-width: 1081px) and (max-width: 1440px){
    /* .nav-item:not(:last-child){  margin: 0 30px 0 0;  } */
}

@media only screen and (max-width: 1080px){
    .nav{
        width: min(100%, 320px);
        height: calc(100vh - var(--header-h));
        padding: 40px 20px 20px;
        position: absolute;
        right: max(-100%, -320px);
        top: var(--header-h);
        background-color: var(--color-black);
        transition: right 0.3s ease;
    }

    .nav-item{
        padding: 10px 0;
        text-align: center;
    }

    .nav-item:not(:last-child){  margin:0 0 10px 0;  }

    .nav-btn.outline{
        margin: 30px 0 0;
    }
    .nav-btn.outline:last-child{
        margin-top: 15px;
    }

    .logo{
        width: 180px;
        height: auto;
    }
    .logo img{
        height: auto;
    }
}

@media only screen and (max-width: 480px){
    .logo{
        width: 160px;
    }
}

/*========================*/
/* MENU BARS */
/*========================*/

.menu-bars{
    --size: 42px;
    --bar-h: 2px;
    --bar-w: 50%;
    --bar-gap: 4px;
    --border-w: 1px;
    --border-rd: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: var(--size);
    height: var(--size);
    border: var(--border-w) solid var(--color-green);
    border-radius: var(--border-rd);
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.2s linear;
}
.menu-bars:hover, .menu-bars.active{
    background-color: var(--color-green);
}
.menu-bars span{
    display: block;
    width: var(--bar-w);
    height: var(--bar-h);
    background-color: var(--color-green);
    border-radius: calc( var(--bar-h) / 2 );
    transition-property: transform, opacity, background-color;
    transition: 0.2s linear;
}
.menu-bars span:first-child{
    transform: translate3d(0,calc(var(--bar-gap) * -1),0);
}
.menu-bars span:last-child{
    transform: translate3d(0,var(--bar-gap),0);
}
.menu-bars.active span:first-child{
    transform: translate3d(0,var(--bar-h),0) rotate3d(0,0,1,-45deg);
}
.menu-bars.active span:last-child{
    transform: translate3d(0,calc(var(--bar-h) * -1),0) rotate3d(0,0,1,45deg);
}
.menu-bars.active span:nth-child(2){
    transform: scale3d(0,0,0);
    opacity: 0;
}
.menu-bars:hover span, .menu-bars.active span{
    background-color: #fff;
}

@media only screen and (min-width: 1081px){
    .menu-bars{  display: none;  }
}

/*========================*/
/* ANCHORS */
/*========================*/

.anchor:not(#home){
    transform: translateY(calc(var(--header-h) * -1 + 5px));
}
html{  scroll-behavior: smooth;  }

/*========================*/
/* LANG SWITCHER */
/*========================*/

.lang-switcher{
    margin: 0 30px 0 10px;
}
.lang-switcher--item{
    padding: 0.25em 0.5em;
    border: 1px solid #fff;
    background-color: transparent;
    transition-property: background-color, color;
    transition: 0.2s linear;
}
.lang-switcher--item:hover, .lang-switcher--item.active{
    background-color: #fff;
    color: var(--color-black);
}

@media only screen and (max-width: 1080px){
    .lang-switcher{
        margin: 30px 0 0;
        order: 1;
    }
}