#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: grid;
    grid-template-columns: 1fr 191px 1fr;
    align-items: center;
    justify-content: space-between;
    padding: 18px 64px 0;
}

.header_links,
.header_ather {
    display: flex;
    gap: 16px;
}

#darkModeToggle {
    height: 28px;
    padding: 0;
}

.header_links {
    justify-content: flex-start;
}

.header_ather {
    justify-content: flex-end;
    align-items: center;

}

.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:hover {
    text-shadow: 1px 2px 1px #00000026, 1px 1px 1px #0000004D;
}

.header_ather a {
    padding: 16px 8px;
    font-family: Evolventa Bold;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    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: 28px;
    height: 28px;
    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: 28px;
    height: 28px;
    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: 191px;
    height: 57px;
    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: 56px;
    left: 0px;
    z-index: 3;
    display: none;
    background: linear-gradient(249.17deg, #F4F4F4 0%, #F5F5F5 85.7%);
    min-width: 56px;
    height: fit-content;
    min-height: 82px;
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0px 2px 6px 2px #00000026, 0px 1px 2px 0px #0000004D;
}

body.dark .dropdown-content {
    background: url(../assets/paper_head.jpg);
}

.dropdown-content ul {
    list-style-type: none;
    border: 1px dotted #997759;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.dropdown-content ul li a {
    padding: 0;
}

.dropdown>a::after {
    display: inline;
    content: "\f107";
    font-family: FontAwesome;
    margin-left: 8px;
    font-size: 18px;
    transition: .2s linear;
}

.dropdown>a.active::after {
    transform: rotate(180deg);
}

.burger_menu {
    display: none;
}

.dropdown_mini {
    display: none;
}

#burger {
    visibility: hidden;
    display: none;
}

.header_wrapper label {
    display: none;
}

.header_wrapper nav {
    display: none;
}

@media (max-width: 1580px) {

    .header_ather a {
        font-size: 16px;
        line-height: 11px;
    }

    .header_ather {
        gap: 0px;
    }

    .header_ather {
        justify-content: flex-start;
        align-items: center;
    }

    .header_logo {
        order: 2;
    }

    .header_ather {
        order: 1;
    }

    .header_wrapper label {
        display: block;
    }

    .header_wrapper nav {
        display: block;
    }

    #burger {
        display: block;
        order: 3;
    }

    .header_links,
    .hide_header {
        display: none;
    }

    .dropdown_mini {
        display: block;
        font-family: Evolventa Bold;
        font-size: 18px;
        line-height: 24px;
        text-align: center;
        color: var(--primary-black);
        text-transform: uppercase;
    }

    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;
    }

    .header_ather ul{
        display: none;
    }

    .burger_menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        width: 100%;
        padding: 64px 16px 30px;
        top: 86px;
        z-index: 2;
        align-items: center;
        left: 0;
        gap: 16px;
        background-image: url(../assets/white-paper.jpg);
        border-radius: 0 0 5px 5px;
        font-family: Evolventa Bold;
        font-size: 22px;
        line-height: 24px;
        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;
    }

    input+label {
        position: absolute;
        top: 40px;
        right: 40px;
        height: 18px;
        width: 27px;
        z-index: 5;
    }

    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 input+label span {
        background: #E7E7E7;
    }

    input+label span:first-child {
        top: 3px;
    }

    input+label span:last-child {
        top: 16px;
    }

    label:hover {
        cursor: pointer;
    }

    input:checked+label span {
        opacity: 0;
        top: 50%;
    }

    input:checked+label span:first-child {
        opacity: 1;
        transform: rotate(405deg);
    }

    input:checked+label span:last-child {
        opacity: 1;
        transform: rotate(-405deg);
    }

    input~nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0px;
        z-index: 2;
        transition: 0.3s;
        transition-delay: 0.3s;
        overflow: hidden;
    }

    input~nav>ul {
        text-align: center;
        position: absolute;
        top: 35%;
        left: 20%;
        right: 20%;
    }

    input~nav>ul>li {
        opacity: 0;
        transition: 0.3s;
        transition-delay: 0s;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    input:checked~nav {
        height: 100vh;
        transition-delay: 0s;
    }

    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;
        font-size: 18px !important;
        font-style: normal;
        line-height: 22px;
        text-transform: uppercase;
        width: 100%;
        padding: 0 8px;
        display: flex;
        justify-content: space-between;
        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;
    }

}

@media (max-width: 900px) {

    .header_logo a {
        width: 140px;
        height: 42px;
    }

    #header {
        height: 64px;
    }

    .header_wrapper {
        padding: 11px 16px 0;
        grid-template-columns: 1fr 140px 1fr;
    }

    .header_ather a {
        padding: 8px 8px;
    }

    .header_logo {
        width: 140px;
        height: 42px;
        overflow: hidden;
        margin: 0 auto;
    }

    input+label {
        top: 24px;
        right: 16px;
    }

    .burger_menu {
        top: 59px;
    }
}