header {
    background-color: var(--sl-red);
    overflow: auto;
}

header a.logo {
    display: inline-block;
    padding: 17px 40px 17px 20px;
}
            
header form.search {
    display: inline-block;
    background-color: #FFF;
    border: 2px solid var(--blue);
    border-radius: 20px;
    box-sizing: border-box;
    text-align: right;
    white-space: nowrap;
    overflow: auto;
}

header form.search input {
    width: 38px;
    height: 38px;
    padding: 5px 18px;
    color: transparent;
    box-sizing: border-box;
    border: none;
    vertical-align: top;

    font-family: 'Open Sans', sans-serif;
    font-size: 15px;

    position: relative;
    margin-right: -44px;
    background-color: transparent;
    cursor: pointer;

    transition: width 0.3s ease, color 0.3s ease, margin-right 0.3s ease;
}

header form.search button {
    background-color: #FFF;
    border: none;
    vertical-align: top;
    box-sizing: border-box;
    width: 44px;
    height: 38px;
    background-image: url(../svg/header/search.svg);
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: center right 8px;
    cursor: pointer;

    transition: background-position 0.3s ease;
}

header .search input:not(:placeholder-shown),
header .search input:focus {
    color: black;
    width: 200px;
    cursor: default;
    margin-right: 0;
}

header .search input:not(:placeholder-shown) + button,
header .search input:focus + button { background-position: center; }

header nav > div a {
    font-size: 15px;
    text-decoration: none;
    color: var(--black);
    text-transform: uppercase;
    display: inline-block;
    padding: 10px;
    font-weight: 400;
}

header nav a:hover {
    color: #CCC;
}

/* Mobile & Tablet */
@media (max-width: 979.999px) {
    section {
        padding: 10px 20px;
        box-sizing: border-box;
    }

    header .xE {
        float: right;
        margin: 7px;
    }

    header nav {
        width: 100vw;
        height: 0;
        overflow: hidden;
        transition: height .5s;
    }

    header nav > div {
        text-align: center;
        padding: 20px;
    }

    header form.search {
        position: absolute;
        top: 18px;
        right: 70px;
    }

    header .hotline {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        padding: 10px;
        background-color: #fff9f7;
        z-index: 1;
    }

    /* TODO:ne raboti */
    body {
        padding-bottom: 50px;
    }
}

/* Desktop */
@media (min-width: 980px) {
    header .xE {
        display: none;
    }

    header nav {
        display: inline-block;
    }

    header nav > div > div {
        display: inline-block;
    }

    header > div:last-child {
        padding: 10px 20px;
        display: flex;
        align-items: center;
        gap: 20px;
    }
}

@media (min-width: 980px) and (max-width: 1599.999px) {
    header nav {
        display: block;
        text-align: center;
    }

    header > div:last-child {
        position: absolute;
        top: 0;
        right: 0;
    }
}

@media (min-width: 1600px) {
    header nav {
        display: inline-block;
    }

    header > div:last-child {
        float: right;
    }
}