/* =========================
   HEADER
========================= */

header{
    position:sticky;
    top:0;
    z-index:1000;

    width:100%;

    background:#f5f5f5;
    border-bottom:1px solid #ddd;
}

header .container{
    display:flex;
    align-items:center;
    justify-content:space-between;

    width:100%;
    height:80px;

    padding:0 20px;
}

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    height:60px;
    display:block;
}

/* =========================
   MENU (Desktop)
========================= */

nav{
    display:flex;
    align-items:center;
    gap:35px;

    margin-left:auto;
}

nav a{
    color:#222;
    text-decoration:none;
    font-size:18px;
    font-weight:500;

    transition:.25s;
}

nav a:hover{
    color:#0b6cff;
}

/* =========================
   BURGER
========================= */

.menu-toggle{

    display:none;

    position:relative;

    width:54px;
    height:54px;

    padding:0;

    border:none;
    background:transparent;

    cursor:pointer;
}

.menu-toggle span{

    position:absolute;

    left:10px;

    width:34px;
    height:3px;

    background:#222;

    border-radius:3px;

    transition:.3s ease;
}

.menu-toggle span:nth-child(1){
    top:15px;
}

.menu-toggle span:nth-child(2){
    top:25px;
}

.menu-toggle span:nth-child(3){
    top:35px;
}

/* Анимация */

.menu-toggle.active span:nth-child(1){
    top:25px;
    transform:rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
    opacity:0;
}

.menu-toggle.active span:nth-child(3){
    top:25px;
    transform:rotate(-45deg);
}

/* =========================
   MOBILE
========================= */

@media (max-width:1280px){

    .menu-toggle{
        display:block;
    }

    nav{

        display:none;

        position:absolute;

        top:70px;
        left:0;

        width:50%;

        background:#fff;

        border-top:1px solid #ddd;

        box-shadow:0 8px 20px rgba(0,0,0,.15);
    }

    nav.active{
        display:block;
    }

    nav a{

        display:block;

        padding:18px 20px;

        border-bottom:1px solid #eee;
    }

}