.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(15, 15, 30, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo__icon {
    font-size: 28px;
    color: var(--accent);
    line-height: 1;
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.logo__accent {
    color: var(--accent-light);
}

.logo__tagline {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1.35;
}

.logo__tagline--note {
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 500;
    font-size: 8px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--text-primary);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header__actions .btn--city,
.header__actions .btn--auth-login,
.header__actions .btn--auth-profile {
    min-height: 44px;
    height: 44px;
    padding: 0 14px;
    box-sizing: border-box;
}

.header__actions .btn--auth-login:hover,
.header__actions .btn--auth-profile:hover {
    transform: none;
}

.header__city {
    position: relative;
}

.btn--city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 160px;
}

.btn--city__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav__link--mod-burger {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

@media (max-width: 1100px) {
    .header__inner {
        gap: 8px;
    }

    .logo {
        flex: 1;
        min-width: 0;
    }

    .nav {
        display: none;
    }

    .header__actions {
        flex-shrink: 0;
        gap: 4px;
    }

    .header__actions .btn--mod-header {
        display: none;
    }

    .header__actions .btn--auth-login,
    .header__actions .btn--auth-profile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        width: 44px;
        padding: 0;
    }

    .header__actions .btn--auth-login__text,
    .header__actions .btn--auth-profile__text {
        display: none;
    }

    .header__actions .btn--auth-login__icon,
    .header__actions .btn--auth-profile__icon {
        flex-shrink: 0;
    }

    .nav.nav--open .nav__link--primary {
        display: none;
    }

    .nav.nav--open .nav__link--mod-burger {
        display: block;
    }

    .burger {
        display: flex;
        flex-shrink: 0;
        margin-left: 0;
        position: relative;
        z-index: 1003;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav.nav--open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        z-index: 1002;
        min-height: 180px;
        padding: 16px 20px 20px;
        gap: 14px;
        background: rgba(15, 15, 30, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .nav.nav--open .nav__link {
        font-size: 16px;
        padding: 4px 0;
    }

    .burger--open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .burger--open span:nth-child(2) {
        opacity: 0;
    }

    .burger--open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

.burger span {
    transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 640px) {
    .btn--city {
        max-width: 128px;
        padding-left: 8px;
        padding-right: 10px;
    }

    .btn--city__label {
        max-width: 80px;
        font-size: 14px;
    }

    .logo__tagline {
        display: none;
    }
}
