.header {
    width: 100%;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 70px;
}

.header-wrapper {
    background-color: var(--header-primary);
    color: white;
    padding: 0 30px;
    font-family: var(--primary-font);
    font-size: 32px;
}

.header-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    max-width: 1480px;
    height: auto;
    gap: 20px;
}

.header-container a {
    text-decoration: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-header-items {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 48px;
    height: 48px;
    background-color: #c92424;
    padding: 8px;
    border-radius: 14px;
}

.catalog-span {
    font-size: 28px;
}

.center-header-items {
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.search-wrapper {
    max-width: 500px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    width: 100%;
    background-color: var(--main-primary);
    border: none;
    height: 42px;
    padding: 12px 16px;
    font-family: var(--primary-font);
    font-size: 18px;
    color: var(--lightgray);
    border-radius: 8px;
    outline: none;
}

.search-result {
    position: absolute;
    height: auto;
    min-height: 68px;
    max-height: 400px;
    background-color: rgb(43, 43, 43);
    z-index: 1000;
    border-radius: 8px;
    top: 52px;
    right: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 10px 0;
    overflow-y: auto;
    overflow-x: hidden;
    text-overflow: ellipsis;
    scrollbar-color: #585858 transparent;
}

.search-item {
    width: 100%;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    gap: 12px;
}

.search-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.search-item img {
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--halfgray);
    background-color: black;
}

.search-item span {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    color: var(--lightgray);
}

.right-header-items {
    display: flex;
    gap: 10px;
}

.right-header-items button {
    background-color: transparent;
    width: 40px;
    height: 40px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.15s;
}

.right-header-items button:hover {
    background-color: var(--main-primary);
}

.right-header-items svg {
    fill: var(--lightgray);
}

.profile-button {
    position: relative;
}

.profile-wrapper {
    width: 200px;
    min-height: 120px;
    background-color: rgb(43, 43, 43);
    border-radius: 8px;
    position: absolute;
    top: 120%;
    right: 0;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.profile-item {
    width: 100%;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    padding: 7px 10px;
}

.profile-wrapper .line {
    background-color: rgb(70, 70, 70);
}

.loader-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-data-label {
    font-size: 24px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 450px) {
    .header-wrapper {
        font-size: 24px;
        padding: 0 20px;
    }

    .catalog-span {
        font-size: 20px;
    }

    .left-header-items {
        gap: 10px;
    }

    .search-input {
        font-size: 14px;
        height: 36px;
    }

    .header-container {
        gap: 15px;
    }

    .right-header-items {
        gap: 5px;
    }

    .search-item span {
        font-size: 14px;
    }

    .header {
        height: 55px;
    }

    .profile-wrapper {
        width: 160px;
    }

    .profile-item {
        font-size: 14px;
    }

    .logo {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    #github {
        display: none;
    }
}