.site-header,
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(165deg, #c9085c, #b50c33);
    color: #f3e0eb;
    padding: 18px clamp(20px, 5vw, 64px);
}

.site-header-logo,
header .logo {
    flex: 0 0 auto;
}

.site-header-logo a,
header .logo a {
    color: #f3e0eb;
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-header-nav,
header nav {
    min-width: 0;
}

.site-header-nav ul,
header nav ul {
    list-style: none;
    display: flex;  /* Use Flexbox to align items */
    flex-wrap: wrap;
    justify-content: center; /* Center the items */
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.site-header-nav li,
header nav ul li {
    margin: 0;
}

.site-header-nav a,
header nav ul a {
    display: block;
    color: #f3e0eb;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 50px;
    transition: background 0.3s ease, color 0.3s ease;
}

.site-header-nav a:hover,
.site-header-nav a:focus-visible,
header nav ul a:hover,
header nav ul a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.site-header-nav a:active,
header nav ul a:active {
    background: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
    .site-header,
    header {
        flex-direction: column;
        gap: 12px;
        padding: 18px 16px;
    }

    .site-header-nav,
    header nav {
        width: 100%;
    }

    .site-header-nav ul,
    header nav ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
        gap: 6px;
        width: min(100%, 560px);
        margin: 0 auto;
    }

    .site-header-nav a,
    header nav ul a {
        text-align: center;
        padding: 10px 8px;
    }
}
