header {
    background-color: #333;
    padding: 10px 0;
}

.head-cen {
    width: var(--all-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.logo {
    width: var(--logo);
}

.searchBar {
    width: var(--searchBar);
    display: flex;
    align-items: center;
}

.off-sear,
.sear-btn {
    width: var(--button);
    display: none;
}

#search {
    flex: 1;
    height: var(--button);
    background-color: transparent;
    color: #fff;
    border-bottom: 2px solid #fff;
}

#search::placeholder {
    color: #fff;
}

#go {
    width: var(--button);
    height: var(--button);
    border-bottom: 2px solid #fff;
}

#go img {
    transform: scale(.7);
}

@media (max-width:799px) {
    header {
        position: relative;
        z-index: 8;
    }

    .head-cen {
        flex-direction: column;
        align-items: center;
        row-gap: 8px;
    }

    .head-cen>div:first-child {
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .sear-btn {
        display: block;
    }

    .off-sear {
        display: block;
        position: absolute;
        right: 2px;
        top: 2px;
    }

    .off-sear img {
        transform: scale(.8);
    }

    .searchBar {
        width: 100%;
        height: 100vh;
        position: absolute;
        padding: 50px 5px 0;
        background-color: #333;
        align-items: flex-start;
        top: 0;
        left: 0;
        transition: .4s;
        transform: translateX(-100%);
    }
}