.header {
    background: var(--gray);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    width: 100%;
    flex-wrap: wrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-nav a {
    color: var(--blue);
    font-size: var(--font-size-sm);
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    white-space: nowrap;
}

.header-nav a:hover {
    background: var(--blue);
    color: var(--gray);
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.logo-img {
    height: 36px;
    display: block;
}

.btn-logout {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.logout-img {
    width: 36px;
    height: 36px;
    display: block;
}

/* Телефон */
@media (max-width: 1100px) {

        .logo-img {
        height: 30px;
    }

    .logout-img {
        width: 36px;
        height: 36px;
    }
    
    .header {
        padding: 12px 16px;
        gap: 10px;
    }

    .header-logo {
        font-size: 20px;
    }

    .header-right {
        margin-left: auto;
    }

    .btn-logout {
        font-size: 15px;
        padding: 10px 14px;
    }

    .header-nav {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        order: 3;
        padding: 6px;
    }

    .header-nav a {
        flex: 1;
        text-align: center;
        font-size: 14px;
        padding: 10px 8px;
    }
}