#header {
    width: 100%;
    height: 90px;
    background-image: url(../assets/white-paper.jpg);
    position: fixed;
    z-index: 6000;
}

body.dark #header {
    background-image: url(../assets/paper_head.jpg);
}

.heder_divider {
    background-image: url(../assets/papdiv.png);
    position: absolute;
    width: 100%;
    height: 16px;
    bottom: -8px;
    z-index: 2;
}

body.dark .heder_divider {
    background-image: url(../assets/cut_b.png);
}

.header_wrapper {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 64px 0;
    font-family: Evolventa Bold;
    font-size: 18px;
    line-height: 24px;
    text-transform: uppercase;
    position: relative;
}

.header_left {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.header_left a {
    transition: all 0.3s ease;
}

.header_left a:hover {
    color: #AA0909;
}

.dark .header_left a:hover {
    color: #BD9C49;
}

.header_text {
    padding: 0 8px;
}

.header_logo {
    padding: 0 10px;
}

.header_links,
.header_ather {
    display: flex;
    gap: 16px;
}

#darkModeToggle {
    height: 28px;
    padding: 0 10px;
}

.header_links {
    justify-content: flex-start;
}

.header_ather {
    justify-content: flex-end;
    align-items: center;
}

.header_ather .dropdown-content ul li a {
    padding: 12px;
}

#header .dropdown-content ul li {
    margin: 4px 0;
}

.header_left .dropdown-content ul li a {
    padding: 12px 8px;
}

.header_ather .dropdown-content ul {
    padding: 0 4px;
}

.header_links a {
    padding: 16px 8px;
    font-family: Evolventa Bold;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    color: var(--primary-black);
    text-transform: uppercase;
    transition: all 0.3s ease-out;
}

body.dark .header_links a {
    color: #E7E7E7;
}

.header_links a:hover {
    color: #AA0909;
}

body.dark .header_links a:hover {
    color: #BD9C49;
}

.header_ather a {
    transition: all 0.3s ease-out;
}

.header_ather a {
    padding: 16px 8px;
    font-family: Evolventa Bold;
    text-align: center;
    color: var(--primary-black);
    text-transform: uppercase;
}

body.dark .header_ather a {
    color: #E7E7E7;
}

.fa-sun-o {
    background: url(../assets/light.svg) !important;
    width: 30px;
    height: 22px;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    transition: 0.3s ease;
}

.fa-sun-o:hover {
    filter: brightness(0) saturate(100%) invert(60%) sepia(56%) saturate(385%) hue-rotate(5deg) brightness(92%) contrast(96%);
}

.fa-moon-o:hover {
    filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(3859%) hue-rotate(356deg) brightness(81%) contrast(98%);
}

.fa-moon-o {
    background: url(../assets/dark.svg) !important;
    width: 30px;
    height: 22px;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    transition: 0.3s ease;
}

.fa-moon-o:before {
    content: "" !important;
}

.fa-sun-o:before {
    content: "" !important;
}

.header_ather a:hover {
    color: #AA0909;
}

body.dark .header_ather a:hover {
    color: #BD9C49;
}

.header_ather button:hover {
    transform: scale(1.01);
}

.header_logo a {
    background-image: url(../assets/logo_w.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    width: 160px;
    height: 48px;
    transition: all 0.3s ease;
}

.header_logo a:hover {
    transform: scale(1.02);
}

body.dark .header_logo a {
    background-image: url(../assets/logo_d.png);
}

.dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
}

.dropdown-content {
    position: absolute;
    top: 32px;
    left: 0px;
    z-index: 3;
    display: none;
    background: linear-gradient(249.17deg, #F4F4F4 0%, #F5F5F5 85.7%);
    min-width: 56px;
    height: fit-content;
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 0 4px 1px #676565;
}

body.dark .dropdown-content {
    background: url(../assets/paper_head.jpg);
}

.dropdown-content ul {
    list-style-type: none;
    border: 2px solid #997759;
    border-radius: 10px;
    padding: 8px 4px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dropdown>a::after {
    display: inline-block;
    content: "";
    margin-left: 4px;
    font-size: 24px !important;
    transition: .2s linear;
    background-image: url(../assets/arrow_drop.svg);
    width: 24px;
    height: 24px;
    filter: none;
    margin-left: 0px;
    height: 13px;
    background-position: center;
}

.header_ather .dropdown-content {
    top: 50px;
}

.dropdown>a.active::after {
    transform: rotate(180deg);
}

.dropdown>a:hover::after {
    filter: brightness(0) saturate(100%) invert(12%) sepia(68%) saturate(5294%) hue-rotate(355deg) brightness(93%) contrast(100%) !important;
}

body.dark .dropdown>a::after {
    filter: brightness(0) saturate(100%) invert(98%) sepia(10%) saturate(373%) hue-rotate(220deg) brightness(117%) contrast(81%);
}

body.dark .dropdown>a:hover::after {
    filter: brightness(0) saturate(100%) invert(66%) sepia(36%) saturate(625%) hue-rotate(5deg) brightness(89%) contrast(86%) !important;
}

.dropdown_mini {
    display: none;
}


.header_wrapper label {
    display: none;
}

.header_wrapper nav {
    display: none;
}

.header_ather .red_but {
    min-width: 245px;
}

.hide_show {
    display: none;
}

.active_server {
    padding: 0 8px;
}

#burger {
    visibility: hidden;
    display: none;
}

@media (max-width: 1600px) {

    .header_wrapper {
        font-size: 14px;
        line-height: 24px;
        text-transform: uppercase;
        padding: 12px 64px 0;
    }

    .header_logo a {
        width: 142px;
        height: 42px;
    }

    #header {
        height: 75px;
    }

    .header_left {
        gap: 8px;
    }

    .header_logo {
        padding: 0 30px 0 10px;
    }
}

@media (max-width: 1350px) {

    .header_wrapper {
        padding: 12px 32px 0;
    }

    .header_wrapper label {
        display: block;
    }

    .header_left {
        gap: 8px;
        width: 100%;
        justify-content: space-between;
    }

    .hide_header {
        display: none;
    }

    #burger {
        display: block;
        order: 3;
    }

    body.dark .burger_menu {
        color: #FFFFFF;
    }

    .burger_menu a {
        transition: all 0.3s ease;
    }

    .burger_menu a:hover {
        color: #AA0909;
    }

    body.dark .burger_menu a:hover {
        color: #BD9C49;
    }

    .burger_menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        width: 100%;
        padding: 64px 16px 30px;
        top: 65px !important;
        z-index: 2;
        align-items: center;
        left: 0 !important;
        right: auto !important;
        gap: 16px;
        background-image: url(../assets/white-paper.jpg);
        border-radius: 0 0 5px 5px;
        font-family: Evolventa Bold;
        text-align: center;
        color: var(--primary-black);
        text-transform: uppercase;
        height: calc(100vh - 86px);
        list-style-type: none;
        justify-content: space-between;
        height: calc(100vh - 60px);
    }

    .last_burger {
        gap: 30px !important;
    }

    body.dark .burger_menu {
        background-image: url(../assets/paper_head.jpg);
    }

    .burgernav {
        margin: 0 8px;
    }

    .header_wrapper nav {
        display: block;
    }

    #header input+label {
        position: absolute;
        top: 26px;
        right: 32px;
        height: 18px;
        width: 27px;
        z-index: 5;
    }

    #header input+label span {
        position: absolute;
        width: 100%;
        height: 2px;
        top: 50%;
        margin-top: -1px;
        left: 0;
        display: block;
        background: black;
        transition: 0.5s;
    }

    body.dark #header input+label span {
        background: #E7E7E7;
    }

    #header input+label span:first-child {
        top: 3px;
    }

    #header input+label span:last-child {
        top: 16px;
    }

    #header label:hover {
        cursor: pointer;
    }

    #header input:checked+label span {
        opacity: 0;
        top: 50%;
    }

    #header input:checked+label span:first-child {
        opacity: 1;
        transform: rotate(405deg);
    }

    #header input:checked+label span:last-child {
        opacity: 1;
        transform: rotate(-405deg);
    }

    #header input~nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0px;
        z-index: 2;
        transition: 0.3s;
        transition-delay: 0.3s;
        overflow: hidden;
    }

    #header input~nav>ul {
        text-align: center;
        position: absolute;
        top: 35%;
        left: 20%;
        right: 20%;
    }

    #header input~nav>ul>li {
        opacity: 0;
        transition: 0.3s;
        transition-delay: 0s;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .header_text {
        padding: 0;
    }

    .active_server {
        padding: 0;
    }

    #header input:checked~nav {
        height: 100vh;
        transition-delay: 0s;
    }

    #header input:checked~nav>ul>li {
        opacity: 1;
        transition-delay: 0.3s;
        width: 100%;
    }

    .burgernav * {
        width: 100%;
    }

    .burgernav .dropdown {
        width: 100%;
    }

    .burgernav .dropdown a {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .burgernav .dropdown .active {
        color: #AA0909 !important;
    }

    .burgernav .dropdown .active::after {
        filter: brightness(0) saturate(100%) invert(12%) sepia(68%) saturate(5294%) hue-rotate(355deg) brightness(93%) contrast(100%) !important;
    }

    body.dark .burgernav .dropdown .active {
        color: #BD9C49 !important;
    }

    body.dark .burgernav .dropdown .active::after {
        filter: brightness(0) saturate(100%) invert(66%) sepia(36%) saturate(625%) hue-rotate(5deg) brightness(89%) contrast(86%) !important;
    }

    body.dark .burger_line {
        background: #151513;
        box-shadow: 0px 1px 0px 0px #080808, 0px -1px 0px 0px rgb(0 0 0 / 31%), 0px -1.5px 1px 0px #494949 inset, 0px -3.009px 0.602px 0px rgb(75 74 74 / 30%) inset, 0px 1.505px 3.009px 0px rgba(0, 0, 0, 0.40) inset;
        height: 2px;
        width: 100%;
    }

    .dropdown-content li {
        margin: 4px 0;
    }

    .burgernav .dropdown-content {
        padding: 0 !important;
        position: relative;
        display: none;
        background: inherit !important;
        white-space: nowrap;
        border-radius: 0;
        top: 10px;
        box-shadow: none;
    }

    .burgernav .dropdown-content ul {
        border: none !important;
        border-radius: 0;
        padding: 0 !important;
    }

    #main-header ul li.dropdown>a.active::after {
        transform: rotate(180deg);
    }

    .burgernav ul {
        padding: 0;
    }

    .burger_menu .burgernav:last-child {
        padding: 0 7px 6px !important;
    }

    .burger_line {
        background: #E7E7E7;
        box-shadow: 0px 1px 0px 0px #FFF, 0px -1px 0px 0px rgba(0, 0, 0, 0.25), 0px -1.5px 1px 0px #FFF inset, 0px -3.009px 0.602px 0px rgba(255, 255, 255, 0.30) inset, 0px 1.505px 3.009px 0px rgba(0, 0, 0, 0.40) inset;
        height: 2px;
        width: 100%;
    }

    .burgernav {
        font-family: Evolventa Bold;
        text-transform: uppercase;
        width: 100%;
        padding: 0 8px;
        display: flex;
        justify-content: center;
        transition: all 0.3s ease;
        cursor: pointer;
    }


    .burgernav:hover::after {
        filter: brightness(0) saturate(100%) invert(12%) sepia(68%) saturate(5294%) hue-rotate(355deg) brightness(93%) contrast(100%) !important;
    }

    body.dark .burgernav:hover::after {
        filter: brightness(0) saturate(100%) invert(66%) sepia(36%) saturate(625%) hue-rotate(5deg) brightness(89%) contrast(86%) !important;
    }

    .dropdown-content {
        position: static;
        top: 0;
        left: 0;
        z-index: 3;
        display: none;
        background: none;
        min-width: 56px;
        height: fit-content;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .dropdown-content ul {
        list-style-type: none;
        border: none;
        width: 100%;
        height: 100%;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 16px 0;
    }

    .last_burger_part {
        align-items: center;
    }

}

@media (max-width: 860px) {
    .header_wrapper {
        padding: 12px 16px 0;
    }

    #header input+label {
        right: 16px;
    }
}