.burger {
    display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; margin-left: 12px;
    background: none; border: 1px solid var(--border); cursor: pointer;
}
.burger span { display: block; width: 100%; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
header.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .burger span:nth-child(2) { opacity: 0; }
header.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

html.nav-lock { overflow: hidden; }

@media (max-width: 900px) {
    .burger { display: flex; }
    header { gap: 8px; padding: 0 12px; }
    .header-right { margin-left: auto; gap: 0; }
    .header-socials { gap: 0; }
    .header-socials .social-icon {
        width: 44px;
        height: 44px;
    }
    header.nav-open nav {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 64px; left: 0; right: 0;
        background: rgba(17,17,17,.98); border-bottom: 1px solid var(--border);
        padding: 4px 5% 12px; backdrop-filter: blur(8px);
        max-height: calc(100vh - 64px); max-height: calc(100svh - 64px); overflow-y: auto;
    }
    header.nav-open nav a { padding: 14px 0; border-bottom: 1px solid #222; font-size: 15px; }
    header.nav-open nav a::after { display: none; }
}


@media (max-width: 360px) {
    header { padding: 0 8px; }
    .brand { font-size: 12px; letter-spacing: 0; }
    .header-socials { gap: 0; }
    .header-socials .social-icon {
        width: 44px;
        height: 44px;
    }
    .burger { margin-left: 4px; }
}
