#header {
    width: 100%;
    height: 90px;
    background-image: url(../assets/white-paper.jpg);
    position: fixed;
    z-index: 50;
    transition: transform .3s ease;
}

#header.hide {
    transform: translateY(-110%);
}

.heder_divider {
    background-image: url(../assets/papdiv.png);
    position: absolute;
    width: 100%;
    height: 16px;
    bottom: -8px;
    z-index: 2;
}

.header_wrapper {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 18px 64px 0;
    gap: 38px;
}

.header_logo {
    order: 1;
    padding: 0 10px;
}

.header_links {
    order: 2;
}

.header_ather {
    order: 3;
    margin-left: auto;
}


.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;
}

.header_links a:hover {
    color: #AA0909;
}

.header_ather a {
    transition: all 0.3s ease-out;
    white-space: nowrap;
}

.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;
}

.header_ather a:hover {
    color: #AA0909;
}

.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: 163px;
    height: 52px;
    transition: all 0.3s ease;
}

.header_logo a:hover {
    transform: scale(1.02);
}

.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;
}

.dropdown-content ul {
    list-style-type: none;
    border: 2px solid #997759;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 4px;
}

.dropdown-content ul li a {
    padding: 0;
}

.dropdown>a::after {
    display: inline-block;
    content: "";
    font-size: 24px !important;
    transition: .2s linear;
    background-image: url(../assets/arrow1.svg);
    width: 24px;
    margin-left: 6px;
    height: 16px;
    background-position: center;
    filter: none;
}

.dropdown-item {
    text-transform: none !important;
    font-family: Evolventa Bold;
    font-size: 16px !important;
    font-style: normal;
    line-height: 24px;
    padding: 2px 8px !important;
    display: block;
}

.dropdown>a.active::after {
    transform: rotate(180deg);

}

.dropdown>a:hover::after {
    filter: brightness(0) saturate(100%) invert(10%) sepia(94%) saturate(5572%) hue-rotate(9deg) brightness(84%) contrast(106%);
}

.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: 1500px) {
    #header {
        height: 72px;
    }

    .header_wrapper {
        padding: 10px 64px 0;
        gap: 21px;
    }
}

@media (max-width: 1400px) {
    .header_wrapper {
        padding: 9px 54px 0;
        gap: 12px;
    }

    .header_links a,
    .header_ather a {
        font-size: 16px;
        line-height: 24px;
    }

    .red_mini_but {
        min-height: 46px;
        height: 46px;
        width: 238px;
        font-size: 15.23px;
        line-height: 20.307px;
    }
}

@media (max-width: 1000px) {
    .header_ather {
        margin-left: 0;
    }

    .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: 1;
    }

    .header_ather {
        order: 2;
    }

    .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;
    }

    .burger_menu a {
        transition: all 0.3s ease;
    }

    .burger_menu a:hover {
        color: #AA0909;
    }

    .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;
    }

    .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;
    }

    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;
    }

    .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;
    }

    .header_logo a {
        width: 140px;
        height: 42px;
    }

    #header {
        height: 64px;
    }

    .header_wrapper {
        padding: 11px 16px 0;
    }

    .header_ather a {
        padding: 8px 8px;
    }

    .header_logo {
        width: 155px;
        height: 42px;
        overflow: hidden;
    }

    input+label {
        top: 24px;
        right: 16px;
    }

    .burger_menu {
        top: 59px;
    }
}