header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 100px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

header.sticky {
    background: var(--logo-blue);
    padding: 10px 20px;
    font-family: "Mariupol-Bold", sans-serif;
    font-size: 0.8rem;
}

header .header-image {
    display: inline-block;
    height: 2rem;
    padding-right: 1rem;
}

header .inside-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 40px);
    max-width: calc(1080px - 40px);
    padding: 0 20px;
}

header .logo {
    color: var(--background);
    font-size: 1.4em;
    text-decoration: none;
    display: flex;
    align-items: center;
    max-width: 50%;
    margin: 0 !important;
}

header .navigation {
    position: relative;
    display: flex;
}

header ul {
    margin-top: 20px !important;
}

header .navigation li {
    list-style: none;
    margin-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

header .navigation li a {
    text-decoration: none;
    color: #fff;
    font-weight: 300;
}

header.sticky .navigation li a {
    color: var(--background);
}

header .navigation li a:hover {
    color: var(--background);
}

header .burger-menu {
    display: none;
}

header .burger-icon {
    cursor: pointer;
    padding: 0 10px;
}

.admin-menu {
    position: fixed;
    right: 20px;
    top: 100px;
    padding: 15px;
    background-color: var(--secondary-background);
    border-radius: 10px;
    z-index: 10;
    opacity: 0.7;
}

.admin-menu:hover {
    opacity: 1;
}

.admin-menu a {
    background-color: var(--logo-blue);
    color: var(--background);
    padding: 10px;
    border-radius: 10px;
}

#ml-languageButton {
    padding: 0 !important;
    background: var(--logo-blue) !important;
    color: var(--background) !important;
    border: none !important;
}

@media (max-width: 1120px) {
    header.sticky {
        padding: 10px 0px;
    }
}

@media (max-width: 991px) {
    .priority {
        background-color: var(--logo-blue);
    }
    
    header .navigation {
        display: none;
    }
    
    header .navigation.active {
        width: 100%;
        height: calc(100% - 40px);
        padding-bottom: 70px !important;
        overflow-y: scroll;
        position: fixed;
        padding-top: 40px !important;
        left: 0;
        top: 40px;
        display: flex;
        justify-content: start;
        align-items: center;
        flex-direction: column;
        background: var(--logo-blue);
        padding: 0;
    }
    
    header .navigation li {
        margin-left: 0;
        padding: 10px;
        height: 12%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    header .navigation li a {
        font-size: 2em;
    }
    
    header .menuToggle {
        position: relative;
        height: 40px;
        width: 40px;
        background: url(../../images/icons/menu.svg);
        background-size: 30px;
        background-repeat: no-repeat;
        background-position: center;
        cursor: pointer;
    }
    
    header .menuToggle.active {
        background: url(../../images/icons/close.svg);
        background-size: 30px;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    header.sticky .line {
        height: 1px;
        background: var(--background);
        width: 75%;
        margin: 10px;
        padding: 0.5px;
    }
}

@media (max-width: 750px) {
    header .burger-menu {
        display: block;
    }
    
    header .priority {
        z-index: 3;
    }
    
    header .navigation {
        z-index: 2;
    }
    
    header .nav__links {
        display: none;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
    }
    
    header .nav__links.active {
        display: flex;
        gap: 1rem;
        list-style: none;
        box-sizing: border-box;
        margin: 0 0 0 0;
        color: var(--background);
    }
    
    header .nav__links li {
        padding: 1em;
        margin-left: 4.5em;
    }
    
    header p {
        margin-bottom: 1rem;
    }
    
    header .logo {
        max-width: calc(90% - 40px);
    }
    
    .admin-menu {
        opacity: 1;
        bottom: 20px;
        top: unset;
    }
}

@media (max-width: 400px) {
    header .navigation li a, header .logo {
        font-size: 1rem;
    }
    
    header .menuToggle {
        background-size: 20px;
        background-position: right;
    }
}

@media (max-width: 300px) {
    header .header-image {
        display: none;
    }
}
  
@media (max-height: 500px) {
    header .navigation.active .line {
        display: none;
    }
}
