header {
    width: var(--all-width);
    margin: 0 auto;
    background-color: #ffffffb8;
    position: relative;
}

.head-cen {
    background: linear-gradient(to bottom, #444444 0%, #1a1a1a 100%);
    border-top: 1px solid #5c5c5c;
    height: 50px;
    padding-left: calc(var(--logo) + 35px);
    padding-right: 15px;
}

.logo {
    width: var(--logo);
    height: 150px;
    background-color: #ff4903;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -65px;
    margin-left: 20px;
    position: relative;
    z-index: 1;
}

nav {
    width: 100%;
    height: 100%;
}

nav ul {
    display: flex;
    height: 100%;
    align-items: center;
}

nav ul li {
    height: 100%;
    flex: 1;
}

nav ul li:first-child a::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    height: 50px;
    width: 0;
    border-right: 1px solid #282828;
    border-left: 1px solid #5c5c5c;
}

nav ul a {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    height: 100%;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

nav ul a::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    height: 50px;
    width: 0;
    border-right: 1px solid #282828;
    border-left: 1px solid #5c5c5c;
}

nav ul a:hover {
    background: linear-gradient(to bottom, #696969 0%, #484848 100%);
}

a.active {
    background: linear-gradient(to bottom, #696969 0%, #484848 100%);
}

.searchBar {
    width: calc((100% - var(--logo)) - 60px);
    position: absolute;
    top: 20px;
    right: 20px;

    display: flex;
}

#search {
    flex: 1;
    height: var(--button);
    border: 1px solid #ccc;
    border-right: 0;
    font-size: 14px;
    padding-left: 15px;
}

#go {
    height: var(--button);
    padding: 0 30px;
    font-size: 17px;
    font-weight: 700;
    border: 1px solid #ccc;
    color: #0008;
}

.peBtn {
    width: var(--button);
    height: var(--button);
    display: none;
}

@media (max-width:799px) {
    header {
        background-color: #000000;
        display: flex;
        position: relative;
        z-index: 99999;
        padding: 10px 10px 5px;
    }

    .peBtn {
        display: block;
    }

    .logo {
        height: auto;
        margin: 0 auto;
        background-color: #000;
    }

    .head-cen {
        padding: 0;
        height: 40px;
    }

    .searchBar {
        padding: 20px 5px;
    }

    nav,
    .searchBar {
        position: absolute;
        width: 100%;
        height: 100vh;
        background: linear-gradient(to bottom, #444444 0%, #1a1a1a 100%);
        left: 0;
        top: 0;
        transform: translateY(-100%);
        transition: .3s;
        z-index: 1;
    }

    nav.active,
    .searchBar.active {
        top: 100%;
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    nav ul a::before,
    nav ul li:first-child a::after {
        height: fit-content;
    }

    nav ul li {
        width: 100%;
        height: fit-content;
        flex: 0;
    }

    nav ul a {
        width: 100%;
        display: block;
        height: fit-content;
        padding: 20px 0;
        text-align: center;
    }

    #go {
        background-color: #fff;
    }
}