.site-header {
    position: relative;
    top: auto;
    z-index: 1200;
    padding: 14px 0 0;
}

.site-header .container {
    width: min(1280px, calc(100% - 24px));
    margin: 0 auto;
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
    padding: 14px 18px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 10px 35px rgba(17, 24, 39, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.75);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d28d9, #111827);
    box-shadow: 0 0 18px rgba(109, 40, 217, 0.28);
    flex-shrink: 0;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-text {
    display: block;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #111827;
    line-height: 1.1;
}

.brand-sub {
    display: block;
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.2;
    white-space: nowrap;
}

.gnb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.gnb-item {
    position: relative;
}

.gnb-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gnb-link:hover {
    background: rgba(17, 24, 39, 0.05);
    color: #111827;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 190px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255,255,255,0.96);
    box-shadow: 0 22px 44px rgba(17, 24, 39, 0.14);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 20;
}

.dropdown-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    transition: background 0.18s ease, color 0.18s ease;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    color: #111827;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-btn-light {
    background: rgba(255,255,255,0.92);
    color: #111827;
    border: 1px solid rgba(17,24,39,0.08);
}

.header-btn-light:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(17,24,39,0.08);
}

.header-btn-dark {
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #fff;
    border: 1px solid #111827;
    box-shadow: 0 10px 24px rgba(17,24,39,0.18);
}

.header-btn-dark:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #111827, #1f2937);
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 24px rgba(17,24,39,0.18);
}

.menu-toggle span {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: all 0.25s ease;
}

.menu-toggle span:first-child {
    top: 18px;
}

.menu-toggle span:last-child {
    top: 26px;
}

.menu-toggle.active span:first-child {
    top: 22px;
    transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active span:last-child {
    top: 22px;
    transform: translateX(-50%) rotate(-45deg);
}

.mobile-menu-wrap {
    display: none;
}

.mobile-menu {
    margin-top: 10px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.10);
}

.mobile-menu-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
}

.mobile-top-btn-light {
    background: #fff;
    color: #111827;
    border: 1px solid rgba(17,24,39,0.08);
}

.mobile-top-btn-dark {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
}

.mobile-nav-list {
    display: grid;
    gap: 8px;
}

.mobile-nav-item {
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(17,24,39,0.06);
    overflow: hidden;
}

.mobile-nav-toggle,
.mobile-direct-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    background: transparent;
    border: 0;
    text-align: left;
}

.mobile-nav-toggle i {
    position: relative;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.mobile-nav-toggle i::before,
.mobile-nav-toggle i::after {
    content: "";
    position: absolute;
    background: #111827;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-toggle i::before {
    top: 5px;
    left: 0;
    width: 12px;
    height: 2px;
}

.mobile-nav-toggle i::after {
    top: 0;
    left: 5px;
    width: 2px;
    height: 12px;
}

.mobile-nav-item.active .mobile-nav-toggle i::after {
    opacity: 0;
    transform: scaleY(0);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    background: #fafafa;
}

.mobile-submenu a {
    display: block;
    padding: 13px 16px 13px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    border-top: 1px solid rgba(17,24,39,0.05);
}

.mobile-submenu a:hover {
    background: #f3f4f6;
    color: #111827;
}

@media (max-width: 1024px) {
    .brand-sub {
        display: none;
    }

    .gnb {
        gap: 2px;
    }

    .gnb-link {
        padding: 0 12px;
        font-size: 14px;
    }

    .header-btn {
        min-width: 84px;
        padding: 0 14px;
    }
}

@media (max-width: 860px) {
    .site-header {
        padding: 10px 0 0;
    }

    .site-header .container {
        width: min(calc(100% - 20px), 1280px);
    }

    .header-shell {
        min-height: 66px;
        padding: 10px 12px;
        border-radius: 20px;
    }

    .gnb {
        display: none;
    }

    .header-actions .header-btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu-wrap.show {
        display: block;
    }

    .mobile-menu-top {
        grid-template-columns: 1fr;
    }
}