nav{
    display: flex;
    justify-content: space-between;
    height: 70px;
    align-items: center;
    backdrop-filter: blur(10px);
    width: 100%;
    border-radius: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    padding: 10px 20px;
    background-color: #282d4369;
    z-index: 999;
    gap: 14px;
}
.nav-logo{
    display: flex;
    align-items: center;
}
.nav-logo > h1{
    font-family: "Unformital";
    font-size: 50px;
    color:#148EFF;
}
.nav-left{
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    position: relative;
}

.nav-left > ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    min-width: 0;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    z-index: 4;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 2;
}

.nav-center__link {
    display: block;
    pointer-events: auto;
}

@media (min-width: 561px) {
    nav {
        top: 12px;
        left: 16px;
        right: 16px;
        width: auto;
        border-radius: 10px;
    }

    .nav-center {
        position: static;
        left: auto;
        transform: none;
        pointer-events: auto;
        z-index: 4;
        order: 1;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .nav-left {
        order: 2;
    }

    .nav-left > ul {
        overflow-x: visible;
        scrollbar-width: none;
        padding-bottom: 0;
    }

    .nav-right {
        order: 3;
    }
}

.mobile-nav-toggle {
    display: none;
    width: 34px;
    height: 34px;
    border: 1px solid #55729b;
    border-radius: 5px;
    background: rgba(17, 29, 47, 0.8);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-toggle > span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

nav.is-menu-open .mobile-nav-toggle > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

nav.is-menu-open .mobile-nav-toggle > span:nth-child(2) {
    opacity: 0;
}

nav.is-menu-open .mobile-nav-toggle > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
.nav-left > ul > li > a {
    padding: 10px;
}
.nav-left > ul > li > a:hover {
    backdrop-filter: blur(5px);
    background-color: #ffffff35;
    border-radius: 5px;
    transition: background 0.3s;
}

.nkk-net > a{
    display: grid;
    grid-template-columns: 50px 80px;
    justify-content: center;
    align-items: center;
    background-color: #101723;
    padding: 10px;
    margin: 0px 10px;
    border-radius: 5px;
}

.nkk-net > a:hover{
    background-color: #1c456a;
    transition: background 0.3s;
}

.profile, .nav-right, .nav-left > ul{
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-right{
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.profile{
    cursor: pointer;
    display: grid;
    grid-template-columns: 30px 150px 1px;
    background-color: #148EFF;
    border-radius: 5px;
    padding: 10px;
    border: none;
}

#profileAvatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

#profileLabel {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header{
    height: 600px;
    margin-top: 0;
    padding: 0 50px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(100% - 120px);
    height: 100%;
    border-radius: 5px;
    display: grid;
    place-items: start start;
    padding: 32px 50px 56px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateX(calc(-50% + 220px)) scale(0.92);
    transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
    filter: saturate(0.8);
    pointer-events: none;
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    filter: saturate(1);
    pointer-events: auto;
    z-index: 3;
}

.hero-slide.is-prev {
    opacity: 0.72;
    transform: translateX(calc(-150% + 20px)) scale(0.96);
    z-index: 2;
}

.hero-slide.is-next {
    opacity: 0.72;
    transform: translateX(calc(50% - 20px)) scale(0.96);
    z-index: 2;
}

.hero-slide.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-slide__inner {
    width: min(860px, 100%);
    margin-top: 100px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: left;
}

.hero-slide__title {
    font-size: 32px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-slide__text {
    margin-top: 10px;
    color: #d4e0f2;
    line-height: 1.45;
    white-space: pre-line;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-slide__list {
    margin: 8px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 5px;
    color: #d4e0f2;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-slider__dot {
    position: relative;
    width: 52px;
    height: 5px;
    padding: 0;
    border: none;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hero-slider__dot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    transform-origin: left center;
    transform: scaleX(0);
}

.hero-slider__dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-slider__dot.is-active {
    background: rgba(255, 255, 255, 0.3);
}

.hero-slider__dot.is-active.is-progressing::before {
    animation: heroSliderDotFill var(--dot-progress-duration, 8000ms) linear forwards;
}

.hero-slider.is-paused .hero-slider__dot.is-active.is-progressing::before {
    animation-play-state: paused;
}

@keyframes heroSliderDotFill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 100px;
    border: 1px solid #85868A;
    border-radius: 5px;
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: border-color 0.3s;
}

.hero-slider__arrow:hover {
    background: transparent;
    border-color: #b3c4dc;
}

.hero-slider__arrow--prev {
    left: 10px;
}

.hero-slider__arrow--next {
    right: 10px;
}

.profile-menu {
    position: relative;
}

.auth-modal {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    z-index: 1200;
}

.auth-modal.is-open {
    display: block;
}

.auth-modal__dialog {
    position: relative;
    width: min(360px, calc(100vw - 30px));
    border: 1px solid #3b5073;
    border-radius: 5px;
    background: #101723;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    padding: 24px;
}

.auth-modal__dialog::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #101723;
    border-left: 1px solid #3b5073;
    border-top: 1px solid #3b5073;
    transform: rotate(45deg);
}

body.nav-drawer-open {
    overflow: hidden;
}

.auth-modal__close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #8ca0be;
    cursor: pointer;
}

.auth-modal__close:hover {
    color: #ffffff;
}

.auth-modal__subtitle {
    color: #9eb0ca;
    margin: 6px 0 18px;
}

.auth-modal__user-view {
    display: grid;
    gap: 12px;
}

.auth-modal__user-view[hidden] {
    display: none;
}

.auth-modal__user-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
}

.auth-modal__user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.auth-modal__user-meta {
    min-width: 0;
}

.auth-modal__user-login {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-modal__user-name {
    margin: 3px 0 0;
    color: #9eb0ca;
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-modal__form {
    display: grid;
    gap: 10px;
}

.auth-modal__message {
    min-height: 18px;
    font-size: 13px;
    color: #ff8b8b;
}

.auth-modal__message.success {
    color: #81d4a6;
}

.auth-modal__label {
    color: #c4d3e8;
    font-size: 14px;
}

.auth-modal__input {
    width: 100%;
    height: 42px;
    background: #0c1320;
    border: 1px solid #33445f;
    border-radius: 5px;
    padding: 0 12px;
    color: #ffffff;
}

.auth-modal__input:focus {
    outline: none;
    border-color: #148EFF;
}

.auth-modal__submit {
    margin-top: 10px;
    height: 44px;
    border: 1px solid #75BBFC;
    border-radius: 5px;
    background: #148EFF;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.auth-modal__submit:hover {
    background: #2a9cff;
}

.auth-modal__profile-link,
.auth-modal__logout {
    width: 100%;
    height: 44px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #d5e5ff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.auth-modal__profile-link {
    text-decoration: none;
}

.auth-modal__profile-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.auth-modal__logout:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

@media (max-width: 768px) {
    nav {
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        padding: 10px 12px;
        height: auto;
        flex-wrap: nowrap;
        row-gap: 0;
    }

    .nav-left {
        width: auto;
        flex: 1;
        justify-content: flex-start;
        gap: 10px;
    }

    .nav-left > ul {
        width: auto;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
        gap: 4px;
        padding-bottom: 3px;
        white-space: nowrap;
    }

    .nav-left > ul > li {
        flex: 0 0 auto;
    }

    .nav-left > ul > li > a {
        font-size: 13px;
        padding: 8px 10px;
    }

    .nav-logo > h1 {
        font-size: 36px;
    }

    .nav-right {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }

    .nkk-net {
        display: none;
    }

    .profile {
        grid-template-columns: 24px minmax(70px, 1fr) 10px;
        padding: 8px;
        max-width: 220px;
    }

    #profileAvatar {
        width: 18px;
        height: 18px;
    }

    header {
        height: 600px;
        margin-top: 0;
        padding: 0 12px;
    }

    .hero-slide {
        width: calc(100% - 24px);
        padding: 24px 18px 46px;
    }

    .hero-slide__inner {
        padding: 0;
    }

    .hero-slide__title {
        font-size: 24px;
    }

    .hero-slide__text,
    .hero-slide__list {
        font-size: 14px;
    }

    .hero-slider__arrow {
        width: 30px;
        height: 70px;
    }

    .hero-slider__arrow--prev {
        left: 4px;
    }

    .hero-slider__arrow--next {
        right: 4px;
    }

    .hero-slider__dot {
        width: 34px;
        height: 4px;
    }

    .auth-modal {
        right: -6px;
    }

    .auth-modal__dialog {
        padding: 20px;
    }
}

@media (max-width: 560px) {
    nav {
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        padding: 8px 8px 10px;
        overflow: visible;
    }

    nav::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(4, 10, 18, 0.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 1;
    }

    nav.is-menu-open::after {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-left {
        width: auto;
        flex: 1;
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
    }

    .nav-logo img {
        width: 36px;
        height: 36px;
        object-fit: contain;
    }

    .nav-logo > h1 {
        font-size: 30px;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        z-index: 6;
    }

    .nav-left > ul {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        width: min(300px, calc(100vw - 54px));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        white-space: normal;
        overflow-y: auto;
        padding: 72px 10px 14px;
        border-right: 1px solid #3a5479;
        border-radius: 0;
        background: rgba(9, 16, 28, 0.98);
        gap: 6px;
        transform: translateX(-105%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.24s ease, opacity 0.24s ease;
        z-index: 5;
    }

    nav.is-menu-open .nav-left > ul {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-left > ul > li > a {
        display: block;
        width: 100%;
        font-size: 13px;
        padding: 9px 10px;
    }

    .nav-right {
        width: auto;
        margin-left: auto;
        z-index: 6;
    }

    .profile {
        grid-template-columns: 20px 0 10px;
        max-width: none;
        padding: 7px 8px;
    }

    #profileLabel {
        display: none;
    }

    #profileAvatar {
        width: 16px;
        height: 16px;
    }

    header {
        height: 530px;
        margin-top: 0;
        padding: 0 6px;
    }

    .hero-slide {
        width: calc(100% - 12px);
        padding: 18px 12px 34px;
    }

    .hero-slide__title {
        font-size: 19px;
    }

    .hero-slide__text {
        font-size: 12px;
        line-height: 1.35;
    }

    .hero-slider__arrow {
        display: none;
    }

    .hero-slider__dots {
        bottom: 8px;
        gap: 5px;
    }

    .hero-slider__dot {
        width: 22px;
        height: 3px;
    }

    .auth-modal__dialog {
        width: min(340px, calc(100vw - 36px));
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        border: none;
        border-left: 1px solid #3b5073;
        padding: 16px 14px 20px;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(105%);
        transition: transform 0.24s ease;
        z-index: 1202;
    }

    .auth-modal {
        position: fixed;
        inset: 0;
        height: 100vh;
        height: 100dvh;
        display: block;
        right: auto;
        background: rgba(4, 10, 18, 0.58);
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 1200;
    }

    .auth-modal.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .auth-modal.is-open .auth-modal__dialog {
        transform: translateX(0);
    }

    .auth-modal__dialog::before {
        display: none;
    }
}

@media (max-width: 480px) {
    nav {
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        padding: 8px;
    }

    .profile {
        grid-template-columns: 18px 0 10px;
        max-width: none;
        padding: 6px 7px;
    }

    #profileLabel {
        display: none;
    }

    header {
        height: 515px;
        margin-top: 0;
        padding: 0 5px;
    }

    .hero-slide {
        width: calc(100% - 10px);
        padding: 16px 11px 30px;
    }

    .hero-slide__title {
        font-size: 18px;
    }

    .hero-slide__text {
        font-size: 12px;
        line-height: 1.35;
    }

    .hero-slider__dots {
        bottom: 8px;
        gap: 5px;
    }

    .hero-slider__dot {
        width: 20px;
        height: 3px;
    }
}

@media (max-width: 420px) {
    header {
        height: 500px;
        margin-top: 0;
    }

    .hero-slide {
        padding: 16px 10px 30px;
    }

    .hero-slide__title {
        font-size: 17px;
    }

    .hero-slide__text {
        font-size: 11.5px;
    }

    .hero-slider__dot {
        width: 18px;
        height: 2px;
    }

    .auth-modal__dialog {
        width: min(300px, calc(100vw - 20px));
    }
}
