/* ===== ВЕРХНЕЕ МЕНЮ ===== */
.topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
    height: 60px;
    background: #ffffff;
    color: #1e1e2a;
    flex-shrink: 0;
    border-bottom: 1px solid #eef0f4;
    z-index: 50;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.topbar__left {
    display: flex;
    align-items: center;
}

.topbar__logo {
    font-size: 15px;
    font-weight: 700;
    color: #1e1e2a;
    text-decoration: none;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    transition: background 0.15s;
}

.topbar__logo:hover {
    background: #f5f7fb;
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.topbar__link {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #6f7480;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar__link:hover {
    background: #f5f7fb;
    color: #1e1e2a;
}

.topbar__link--active {
    background: #f0edff;
    color: #6c5ce7;
}

.topbar__link--active:hover {
    background: #e8e3ff;
    color: #5a4bd1;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Адаптив */
@media (max-width: 600px) {
    .topbar {
        padding: 0 12px;
        height: 52px;
        gap: 12px;
    }
    .topbar__link {
        padding: 6px 10px;
        font-size: 12px;
    }
    .topbar__logo {
        font-size: 13px;
        padding: 4px 8px;
    }
}