#header {
    width: 100%;
    position: fixed;
    z-index: 50;
    transition: transform .3s ease;
    padding: 16px 64px 0;
}

#header.hide {
    transform: translateY(-110%);
}

.header_wrapper {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 16px 24px;
    gap: 49px;
    border-radius: 24px;
    background: #FFF;
    backdrop-filter: blur(4px);
}

.header_logo {
    order: 1;
    padding: 3px 10px 0;
}

.header_links {
    order: 2;
}

.header_ather {
    order: 3;
    margin-left: auto;
}

.header_links,
.header_ather {
    display: flex;
    gap: 32px;
}

.header_links {
    justify-content: flex-start;
}

.header_ather {
    justify-content: flex-end;
    align-items: center;

}

.header_links a {
    text-align: center;
    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 {
    text-align: center;
}

.header_ather a:hover {
    color: #AA0909;
}

.header_logo a {
    background-image: url(../assets/logo.svg);
    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);
}

.dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
}

.dropdown-content {
    position: absolute;
    top: 63px;
    left: 0px;
    z-index: 3;
    display: none;
    border-radius: 12px;
    background: #FFF;
    min-width: 173px;
    height: fit-content;
}

.dropdown-content {
    display: none;
}

.dropdown.active .dropdown-content {
    display: block;
}


.dropdown-content ul {
    list-style-type: none;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 24px;
    gap: 12px;
}

.dropdown-content ul li a {
    padding: 0;

}

.dropdown-content ul li {
    width: 100%;
}

.dropdown>a::after {
    display: inline-block;
    content: "";
    transition: .2s linear;
    background: url(../assets/arrow.svg) center / contain no-repeat;
    width: 16px;
    margin-left: 6px;
    height: 12px;
    background-position: center;
    filter: none;
}

.dropdown-item {
    text-transform: none !important;
    line-height: 130%;
    padding: 0 !important;
    display: block;
    position: relative;
    min-width: 100%;
    text-align: start !important;
}

.dropdown-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 10px;
    aspect-ratio: 1/1;
    background: url(../assets/little.svg) center / contain no-repeat;
    transform: none !important;
    opacity: 0;
    transition: all 0.3s ease;
    right: 0;
    top: 6px;
}

.dropdown-item:hover::after {
    opacity: 1;
}

.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;
}

.header_but {
    display: flex;
    padding: 12px 32px;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border-radius: 11px;
    background: #C02231;
    color: #FFF;
    text-align: center;
    font-size: 18px;
    line-height: normal;
    min-width: 189px;
}

.header_but:hover {
    background: #A41825;
    color: #FFF !important;
}

@media (max-width: 1600px) {
    .header_wrapper {
        padding: 9px 16px 6px;
        gap: 33px;
    }

    .dropdown-content {
        top: 54px;
    }
}

@media (max-width: 1400px) {
    .header_logo {
        padding: 1px 10px 0;
    }

    .header_wrapper {
        padding: 12px 16px 7px;
        gap: 32px;
    }

    .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;
        text-align: center;
    }

    .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: #FFF;
        border-radius: 0 0 5px 5px;
        list-style-type: none;
        justify-content: space-between;
        height: calc(100dvh - 90px);
        border-radius: 12px;
    }

    .last_burger {
        gap: 30px !important;
    }

    .burgernav {
        margin: 0 8px;
    }

    input+label {
        position: absolute;
        height: 18px;
        z-index: 5;
        top: 15px;
        right: 20px;
        width: 22px;
    }

    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: #FFEDEF;
        height: 2px;
        width: 100%;
    }

    .burgernav {
        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: 107px;
        height: 32px;
    }

    #header {
        height: 64px;
        padding: 16px 16px 0;
    }

    .header_wrapper {
        padding: 8px 6px 0;
        border-radius: 12px;
    }

    .header_ather a {
        padding: 8px 8px;
    }

    .header_logo {
        width: 155px;
        height: 42px;
        overflow: hidden;
    }

    .burger_menu {
        top: 59px;
    }
}