* {
    box-sizing: border-box;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    min-height: 92px;
    padding: 16px clamp(24px, 6vw, 90px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    background: transparent;
    border: none;
    box-shadow: none;
}

.site-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #0f172a;
}

.site-logo {
    width: clamp(66px, 8vw, 95px);
    height: clamp(66px, 8vw, 95px);
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.12));
}

.site-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1;
}

.site-title span {
    font-size: clamp(21px, 2.2vw, 25px);
    font-weight: 400;
    letter-spacing: 0;
    color: #ffffff;
    margin-left: 0.35em;
}

.site-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0);
    background: rgba(255, 255, 255, 0);
    color: #ffffff;
    cursor: pointer;
   
}

.site-menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.site-header .site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.site-header .site-nav-link {
    min-height: 44px;
    padding: 0 17px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    transition:
        transform 0.16s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.site-header .site-nav-outline {
    background: #ffffff;
    color: #334155;
    border: 1px solid #dbeafe;
}

.site-header .site-nav-outline:hover {
    background: #eff6ff;
    color: #2563eb;
}

.site-header .site-nav-primary {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
}

.site-header .site-nav-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.site-header .site-nav-link:active,
.site-menu-toggle:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .site-header {
        position: absolute;
        min-height: 74px;
        padding: 12px 16px;
        background: linear-gradient(
            to bottom,
            rgba(3, 10, 35, 0.82),
            rgba(3, 10, 35, 0.16)
        );
    }

    .site-logo {
        width: 54px;
        height: 54px;
    }

    .site-title span {
        font-size: 21px;
        margin-left: 0.15em;
    }

    .site-menu-toggle {
        display: inline-flex;
    }

    .site-header .site-nav {
        position: absolute;
        top: calc(100% - 2px);
        left: 16px;
        right: 16px;

        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;

        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 18px;
        background: rgba(5, 12, 38, 0.92);
        box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(16px);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition:
            opacity 0.18s ease,
            transform 0.18s ease,
            visibility 0.18s ease;
    }

    .site-header.is-menu-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .site-header .site-nav-link {
        width: 100%;
        min-height: 48px;
    }

    .site-header.is-menu-open .site-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.is-menu-open .site-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-menu-open .site-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 420px) {
    .site-header {
        padding: 10px 12px;
    }

    .site-brand {
        gap: 7px;
    }

    .site-logo {
        width: 48px;
        height: 48px;
    }

    .site-title span {
        font-size: 19px;
    }

    .site-header .site-nav {
        left: 12px;
        right: 12px;
    }
}
