/* custom_nav.css */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 28px rgba(74, 67, 77, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1100px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
}

.brand-mark {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(74, 67, 77, 0.1);
    border-radius: 14px;
    background: var(--cute-grad);
    color: var(--ink);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-soft);
}

.brand-name {
    position: relative;
    overflow-wrap: anywhere;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-name::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 5px;
    border-radius: var(--radius-pill);
    background: var(--cute-grad);
    opacity: 0.58;
}

.nav {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    color: rgba(74, 67, 77, 0.76);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nav a:hover {
    border-color: rgba(164, 191, 235, 0.36);
    background: rgba(164, 191, 235, 0.18);
    color: var(--text);
    transform: translateY(-1px);
}

.nav a:active {
    transform: translateY(0);
}

.nav .nav-button {
    border-color: rgba(157, 133, 141, 0.18);
    background: var(--accent-soft);
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(157, 133, 141, 0.12);
}

.nav .nav-button:hover {
    border-color: rgba(157, 133, 141, 0.28);
    background: linear-gradient(135deg, rgba(187, 160, 178, 0.3), rgba(164, 191, 235, 0.26));
}

@media (max-width: 720px) {
    .header-inner {
        width: min(100% - 24px, 1100px);
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }

    .nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-radius: 18px;
    }

    .nav a {
        min-width: 0;
        padding-inline: 8px;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .brand-name {
        font-size: 13px;
    }

    .nav a {
        font-size: 13px;
    }
}
