:root {
    --bg-nav: #f6f7f9;
    --nav-surface: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --accent: #f5c518;          /* тёплый жёлтый как на скрине */
    --accent-hover: #e4b200;
    --border: #e5e7eb;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Фон страницы под хедером */
.navbar {
    background: var(--bg-nav);
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Плавающая "капсула" */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--nav-surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

/* Лого / название */
.site-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.site-title:hover {
    opacity: 0.8;
}

.site-title .icon {
    width: 26px;
    height: 26px;
}

/* Правая часть */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Имя пользователя — как лёгкая текстовая ссылка */
.user-greeting {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.user-greeting .icon-sm {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Основная кнопка */
.btn-login,
.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.6rem;
    border-radius: 999px; /* pill */
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent);
    color: #111;
    border: none;
    transition: all 0.25s ease;
}

.btn-login:hover,
.btn-logout:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 197, 24, 0.35);
}

.btn-login .icon-sm,
.btn-logout .icon-sm {
    width: 14px;
    height: 14px;
}

/* Адаптив */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-container {
        padding: 0.8rem 1.2rem;
        border-radius: 14px;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .user-greeting span {
        display: none;
    }

    .btn-login span,
    .btn-logout span {
        display: none;
    }

    .btn-login,
    .btn-logout {
        padding: 0.6rem;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}
