*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --header-height: 88px;
    --container-width: 1200px;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --menu-bg: rgba(10, 12, 20, 0.96);
    --menu-border: rgba(255, 255, 255, 0.08);
    --toggle-border: rgba(255, 255, 255, 0.2);
    --toggle-bg: rgba(255, 255, 255, 0.06);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
    --font-main: Arial, Helvetica, sans-serif;
}

/* =========================
   HEADER
========================= */
.site-header {
    position: absolute;
    /* important */
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--header-height);
    background: transparent;
    /* important */
    z-index: 1000;
    overflow: visible;
}

.header-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent;
    /* important */
}

.container {
    width: min(100% - 40px, var(--container-width));
    margin-inline: auto;
}

.header-inner {
    position: relative;
    z-index: 2;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* =========================
   LOGO
========================= */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* =========================
   NAVIGATION
========================= */
.nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    position: relative;
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1.4px;
    transition: color 0.25s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--text-color);
}

.nav-list a.active {
    font-weight: 700;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.25s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

/* =========================
   TOGGLE BUTTON
========================= */
.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--toggle-border);
    border-radius: 10px;
    background: var(--toggle-bg);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    backdrop-filter: blur(8px);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* =========================
   TABLET / MOBILE
========================= */
@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        width: min(280px, 100%);
        padding: 14px;
        border: 1px solid var(--menu-border);
        border-radius: 16px;
        background: var(--menu-bg);
        box-shadow: var(--shadow-soft);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        width: 100%;
        padding: 12px 10px;
        border-radius: 10px;
        font-size: 0.86rem;
        letter-spacing: 1px;
    }

    .nav-list a:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-list a::after {
        display: none;
    }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 600px) {
    :root {
        --header-height: 78px;
    }

    .container {
        width: min(100% - 24px, var(--container-width));
    }

    .logo-img {
        height: 36px;
    }
}