nav.sb-nav, nav.sb-nav * { box-sizing: border-box; }

nav.sb-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 5%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    font-family: 'DM Sans', sans-serif;
    line-height: normal;
}

.sb-nav .sb-logo {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    font-size: 26px;
    font-weight: normal;
    letter-spacing: 3px;
    text-decoration: none;
    white-space: nowrap;
}

.sb-nav .sb-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.sb-nav .sb-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sb-nav .sb-back:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.sb-nav .sb-logo span {
    color: #999999;
}

.sb-nav .sb-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.sb-nav .sb-beat {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2.5px;
    padding-bottom: 9px;
    background: #000000;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 4px 14px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
}

.sb-nav .sb-beat i {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: #ffffff;
    transform-origin: bottom;
    animation: sb-beat 1.1s ease-in-out infinite;
}

.sb-nav .sb-beat i:nth-child(1) { height: 8px;  animation-delay: -0.2s; }
.sb-nav .sb-beat i:nth-child(2) { height: 17px; animation-delay: -0.6s; }
.sb-nav .sb-beat i:nth-child(3) { height: 12px; animation-delay: -0.4s; }
.sb-nav .sb-beat i:nth-child(4) { height: 20px; animation-delay: -0.9s; }
.sb-nav .sb-beat i:nth-child(5) { height: 9px;  animation-delay: -0.1s; }

nav.sb-nav .sb-nav-links { margin-left: auto; }
.sb-nav .sb-beat-end {
    margin-left: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.sb-nav .sb-beat-end:hover { transform: scale(1.08); border-color: rgba(255,255,255,0.5); }
.sb-nav .sb-beat-end i:nth-child(1) { height: 14px; animation-delay: -0.7s; }
.sb-nav .sb-beat-end i:nth-child(2) { height: 9px;  animation-delay: -0.3s; }
.sb-nav .sb-beat-end i:nth-child(3) { height: 20px; animation-delay: -0.8s; }
.sb-nav .sb-beat-end i:nth-child(4) { height: 11px; animation-delay: -0.5s; }
.sb-nav .sb-beat-end i:nth-child(5) { height: 16px; animation-delay: -0.15s; }

@keyframes sb-beat {
    0%, 100% { transform: scaleY(0.45); }
    50%      { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
    .sb-nav .sb-beat i { animation: none; }
}

.sb-nav .sb-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    width: auto;
    height: auto;
}

.sb-nav .sb-nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.sb-nav .sb-nav-links li {
    margin: 0;
    padding: 0;
}

.sb-nav .sb-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.sb-nav .sb-nav-links a:hover {
    font-size: 15px;
    transition: 0.2s;
    border: solid white 1px;
    border-radius: 8px;
    background-color: white;
    color: black;
}

.sb-nav .sb-btn-login {
    background-color: #ffffff !important;
    color: #000000 !important;
    padding: 10px 24px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 12px !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.sb-nav .sb-btn-login:hover {
    background-color: #e0e0e0 !important;
    transform: translateY(-1px);
}

.sb-nav .sb-btn-lang {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sb-nav .sb-btn-lang:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
}

.sb-nav.sb-has-lang .sb-nav-links { gap: 22px; }
.sb-nav.sb-has-lang .sb-btn-lang { padding: 8px 11px; }
.sb-nav.sb-has-lang .sb-btn-lang #lang-label { display: none; }

@media (max-width: 1500px) {
    .sb-nav .sb-nav-links,
    .sb-nav.sb-has-lang .sb-nav-links { gap: 16px; }
    .sb-nav .sb-nav-links a { letter-spacing: 1px; }
    .sb-nav .sb-logo { font-size: 23px; letter-spacing: 2px; gap: 10px; }
    .sb-nav .sb-btn-login { padding: 10px 18px; }
    .sb-nav .sb-beat { width: 34px; height: 34px; padding-bottom: 8px; }
}

@media (max-width: 1320px) {
    .sb-nav.sb-has-lang .sb-btn-lang #lang-label { display: inline; }
    .sb-nav .sb-logo { font-size: 26px; letter-spacing: 3px; gap: 12px; }
    .sb-nav .sb-beat { width: 38px; height: 38px; padding-bottom: 9px; }

    nav.sb-nav {
        padding: 0 5%;
        height: 64px;
    }

    .sb-nav .sb-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .sb-nav .sb-beat-end { order: 2; margin-left: auto; margin-right: 10px; }

    .sb-nav .sb-nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .sb-nav .sb-nav-links.open {
        max-height: 600px;
    }

    .sb-nav .sb-nav-links li {
        width: 100%;
        text-align: center;
    }

    .sb-nav .sb-nav-links a {
        display: block;
        padding: 16px 5%;
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .sb-nav .sb-nav-links a:hover {
        font-size: 13px;
        border: none;
        border-radius: 0;
        background-color: rgba(255,255,255,0.08);
        color: white;
    }

    .sb-nav .sb-nav-links li:last-child,
    .sb-nav .sb-nav-links li.sb-lang-item {
        padding: 16px 5%;
    }

    .sb-nav .sb-btn-login {
        display: block;
        text-align: center;
        width: 100%;
        padding: 10px 24px;
        border-bottom: 0;
    }

    .sb-nav .sb-btn-lang {
        width: 100%;
        justify-content: center;
        padding: 11px 14px;
    }
}

@media (max-width: 480px) {
    .sb-nav .sb-logo { font-size: 21px; letter-spacing: 2px; }
    .sb-nav .sb-nav-left { gap: 10px; }
    .sb-nav .sb-back { width: 34px; height: 34px; font-size: 14px; }
    .sb-nav .sb-nav-toggle { padding: 8px 0 8px 8px; }
    .sb-nav .sb-logo { gap: 9px; }
    .sb-nav .sb-beat { width: 32px; height: 32px; padding-bottom: 7px; border-radius: 9px; }
    .sb-nav .sb-beat i { width: 2.5px; }
    .sb-nav .sb-beat-end { display: none; }
}

@media (max-width: 380px) {
    .sb-nav .sb-logo {
        font-size: 18px;
        letter-spacing: 1.5px;
    }
    .sb-nav .sb-nav-left { gap: 10px; }
    .sb-nav .sb-back { width: 32px; height: 32px; font-size: 14px; }
    .sb-nav .sb-logo { gap: 7px; }
    .sb-nav .sb-beat { width: 28px; height: 28px; padding-bottom: 6px; gap: 2px; border-radius: 8px; }
}

.sb-nav .sb-beat {
    --s: 1;
    width: auto;
    height: calc(32px * var(--s));
    padding: 0;
    gap: calc(3.5px * var(--s));
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    align-items: flex-end;
}
.sb-nav .sb-beat i { width: calc(4.5px * var(--s)); }
.sb-nav .sb-beat i:nth-child(1) { height: calc(13px * var(--s)); }
.sb-nav .sb-beat i:nth-child(2) { height: calc(26px * var(--s)); }
.sb-nav .sb-beat i:nth-child(3) { height: calc(19px * var(--s)); }
.sb-nav .sb-beat i:nth-child(4) { height: calc(32px * var(--s)); }
.sb-nav .sb-beat i:nth-child(5) { height: calc(15px * var(--s)); }
.sb-nav .sb-beat-end i:nth-child(1) { height: calc(22px * var(--s)); }
.sb-nav .sb-beat-end i:nth-child(2) { height: calc(14px * var(--s)); }
.sb-nav .sb-beat-end i:nth-child(3) { height: calc(32px * var(--s)); }
.sb-nav .sb-beat-end i:nth-child(4) { height: calc(17px * var(--s)); }
.sb-nav .sb-beat-end i:nth-child(5) { height: calc(25px * var(--s)); }
.sb-nav .sb-beat-end:hover { transform: scale(1.12); }

@media (max-width: 1500px) { .sb-nav .sb-beat { --s: 0.9; } }
@media (max-width: 1320px) { .sb-nav .sb-beat { --s: 1; } }
@media (max-width: 480px)  { .sb-nav .sb-beat { --s: 0.8; } }
@media (max-width: 380px)  { .sb-nav .sb-beat { --s: 0.7; } }