:root {
    --hl-site-nav-height: 68px;
    --hl-site-nav-content-gap: 25px;
    --hl-site-nav-background: #161c22;
    --hl-site-nav-hover: #202830;
    --hl-site-nav-active: #252d35;
    --hl-site-nav-text: #c6cbd1;
    --hl-site-nav-accent: #ff6845;
}

.hl-site-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    min-height: var(--hl-site-nav-height);
    border: 0;
    border-bottom: 1px solid #10151a;
    background: var(--hl-site-nav-background);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    color: var(--hl-site-nav-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

.hl-site-nav *,
.hl-site-nav *::before,
.hl-site-nav *::after {
    box-sizing: border-box;
}

.hl-site-nav button,
.hl-site-nav a {
    font: inherit;
    letter-spacing: 0;
}

.hl-site-nav__inner {
    position: relative;
    display: flex;
    align-items: center;
    width: min(calc(100% - 40px), 1380px);
    height: var(--hl-site-nav-height);
    margin: 0 auto;
}

.hl-site-nav__brand {
    position: relative;
    display: block;
    flex: 0 0 154px;
    width: 154px;
    height: 44px;
    margin-right: 22px;
    overflow: hidden;
}

.hl-site-nav__brand img {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 154px;
    height: auto;
    transform: translateY(-50%);
}

.hl-site-nav__collapse {
    display: flex !important;
    flex: 1 1 auto;
    align-items: stretch;
    align-self: stretch;
    min-width: 0;
    height: auto !important;
    padding: 0;
    overflow: visible !important;
    border: 0;
    box-shadow: none;
}

.hl-site-nav__primary,
.hl-site-nav__account,
.hl-site-nav .dropdown-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hl-site-nav__primary {
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
}

.hl-site-nav__primary > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.hl-site-nav__link {
    position: relative;
    display: inline-flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--hl-site-nav-text);
    font-size: 14px;
    font-weight: 620;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease;
}

.hl-site-nav__link:hover,
.hl-site-nav__link:focus,
.hl-site-nav__primary > .open > .hl-site-nav__link {
    background: var(--hl-site-nav-hover);
    color: #fff;
    text-decoration: none;
}

.hl-site-nav__primary > .active > .hl-site-nav__link {
    background: var(--hl-site-nav-active);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hl-site-nav__primary > .active > .hl-site-nav__link::after {
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--hl-site-nav-accent);
    content: "";
    transform: translateX(-50%);
}

.hl-site-nav__chevron {
    width: 12px;
    height: 12px;
    margin-left: 6px;
    transition: transform 160ms ease;
}

.hl-site-nav__primary > .open .hl-site-nav__chevron,
.hl-site-nav__account > .open .hl-site-nav__chevron {
    transform: rotate(180deg);
}

.hl-site-nav .dropdown-menu {
    top: calc(100% - 5px);
    min-width: 152px;
    padding: 6px;
    border: 1px solid #e0e3e7;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 32, 42, 0.16);
}

.hl-site-nav .dropdown-menu > li > a {
    display: block;
    padding: 10px 12px;
    border-radius: 5px;
    color: #3f4954;
    font-size: 13px;
    font-weight: 580;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.hl-site-nav .dropdown-menu > li > a:hover,
.hl-site-nav .dropdown-menu > li > a:focus,
.hl-site-nav .dropdown-menu > .active > a,
.hl-site-nav .dropdown-menu > .active > a:hover,
.hl-site-nav .dropdown-menu > .active > a:focus {
    background: #fff2ed;
    color: #d83a16;
}

.hl-site-nav .dropdown-menu > .divider {
    height: 1px;
    margin: 5px 6px;
    background: #eceef0;
}

.hl-site-nav__account {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding-left: 18px;
}

.hl-site-nav__account > li {
    position: relative;
}

.hl-site-nav__register-link,
.hl-site-nav__login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--hl-site-nav-text);
    font-size: 13px;
    font-weight: 620;
    text-decoration: none;
}

.hl-site-nav__register-link:hover,
.hl-site-nav__register-link:focus,
.hl-site-nav__login-link:hover,
.hl-site-nav__login-link:focus {
    background: var(--hl-site-nav-hover);
    color: #fff;
    text-decoration: none;
}

.hl-site-nav__profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #3b444d;
    border-radius: 50%;
    background: #232b33;
    color: #fff;
    cursor: pointer;
}

.hl-site-nav__profile:hover,
.hl-site-nav__profile:focus,
.hl-site-nav__account > .open > .hl-site-nav__profile {
    border-color: #59636d;
    background: #2a333c;
}

.hl-site-nav__profile-avatar {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.hl-site-nav__account .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 188px;
}

.hl-site-nav__uid {
    padding: 6px 12px 7px;
    color: #7b858f;
    font-size: 12px;
    line-height: 1.4;
}

.hl-site-nav__toggle {
    position: relative;
    display: none;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 10px;
    padding: 0;
    border: 1px solid #3b444d;
    border-radius: 6px;
    background: #232b33;
    color: #fff;
    cursor: pointer;
}

.hl-site-nav__toggle:hover,
.hl-site-nav__toggle:focus,
.hl-site-nav__toggle[aria-expanded="true"] {
    border-color: #59636d;
    background: #2a333c;
}

.hl-site-nav__menu-icon,
.hl-site-nav__menu-icon::before,
.hl-site-nav__menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

.hl-site-nav__menu-icon {
    position: relative;
}

.hl-site-nav__menu-icon::before {
    position: absolute;
    top: -6px;
}

.hl-site-nav__menu-icon::after {
    position: absolute;
    top: 6px;
}

.hl-site-nav__toggle .notification-number {
    position: absolute;
    top: -4px;
    right: -4px;
}

.hl-site-nav a:focus-visible,
.hl-site-nav button:focus-visible {
    outline: 3px solid rgba(255, 104, 69, 0.34);
    outline-offset: 2px;
}

.base_body {
    padding-top: calc(var(--hl-site-nav-height) + var(--hl-site-nav-content-gap));
}

@media (max-width: 1180px) {
    :root {
        --hl-site-nav-height: 60px;
    }

    .hl-site-nav__inner {
        width: calc(100% - 28px);
    }

    .hl-site-nav__brand {
        flex-basis: 124px;
        width: 124px;
        height: 36px;
        margin-right: 8px;
    }

    .hl-site-nav__brand img {
        width: 124px;
    }

    .hl-site-nav__toggle {
        display: inline-flex;
    }

    .hl-site-nav__collapse.collapse {
        position: absolute;
        top: var(--hl-site-nav-height);
        right: -14px;
        left: -14px;
        display: none !important;
        max-height: calc(100vh - var(--hl-site-nav-height));
        padding: 10px 16px 16px;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border-top: 1px solid #343c44;
        background: var(--hl-site-nav-background);
        box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
    }

    .hl-site-nav__collapse.collapse.in {
        display: block !important;
    }

    .hl-site-nav__primary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
        width: 100%;
    }

    .hl-site-nav__primary > li {
        display: block;
        min-width: 0;
    }

    .hl-site-nav__link {
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0 12px;
    }

    .hl-site-nav__primary > .active > .hl-site-nav__link::after {
        top: 50%;
        bottom: auto;
        left: 4px;
        width: 2px;
        height: 18px;
        transform: translateY(-50%);
    }

    .hl-site-nav__primary .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        min-width: 0;
        margin: 2px 0 6px;
        box-shadow: none;
    }

    .hl-site-nav__account {
        gap: 8px;
        padding-left: 8px;
    }

    .hl-site-nav__register-item {
        display: none;
    }

    .hl-site-nav__login-link {
        min-height: 38px;
        padding: 0 8px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .hl-site-nav__login-link {
        max-width: 70px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hl-site-nav *,
    .hl-site-nav *::before,
    .hl-site-nav *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .hl-site-nav {
        display: none !important;
    }

    .base_body {
        padding-top: 0 !important;
    }
}
