#header {
    width: 100%;
    position: fixed;
    z-index: 50;
    transition: transform .3s ease;
    background: #181b1899;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#header.hide {
    transform: translateY(-110%);
}

.header_links a:hover .mem {
    opacity: 1;
}

.mem {
    position: absolute;
    background: url(../assets/sila.jpg) center / cover no-repeat;
    width: 300px;
    aspect-ratio: 1/1;
    top: 75px;
    left: -75px;
    opacity: 0;
    transition: all 0.3s ease;
}

.header_wrapper {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 64px 0;
}

.header_logo {
    order: 1;
    padding: 8px 10px 0;
}

.header_links {
    order: 2;
}

.header_ather {
    order: 3;
    margin-left: auto;
}

.header_links,
.header_ather {
    display: flex;
    gap: 25px;
    padding: 8px 0;
}

.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;
    padding: 16px 8px;
    font-family: 'Inter Medium';
    font-size: 16px;
    line-height: 24px;
    position: relative;
}

.header_links a:hover {
    color: #83FF94;
}

.header_links a.active {
    color: #83FF94;
}

.header_ather a {
    transition: all 0.3s ease-out;
    white-space: nowrap;
}

.header_ather a {
    text-align: center;
}

.header_ather a:hover {
    color: #83FF94;
}

.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: 60px;
    left: -24px;
    z-index: 3;
    display: none;
    border-radius: 8px;
    border: 2px solid #256C51;
    background: #12261F;
    box-shadow: 0 0 16px 0 #3596256b inset, 0 0 12px 0 #3596ac66 inset;
    min-width: 173px;
    height: fit-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: 14px;
    background: url(../assets/wave.svg) top / cover no-repeat;
}

.dropdown-content ul li a {
    padding: 0;

}

.dropdown-content ul li {
    width: 100%;
}

.dropdown>a::after {
    display: inline-block;
    content: "";
    background: url(../assets/arrow_drop.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: 21px;
    height: 15px;
    background: url(../assets/little.svg) center / contain no-repeat;
    transform: none !important;
    opacity: 0;
    transition: all 0.3s ease;
    right: 0;
    top: 3px;
    aspect-ratio: 21/15;
}

.dropdown-item:hover::after {
    opacity: 1;
}

.dropdown>a.active::after {
    transform: rotate(180deg);

}

.dropdown>a:hover::after {
    filter: brightness(0) saturate(100%) invert(100%) sepia(58%) saturate(2132%) hue-rotate(53deg) brightness(102%) contrast(100%);
}

.burger_menu {
    display: none;
}

.dropdown_mini {
    display: none;
}

#burger {
    visibility: hidden;
    display: none;
}

.header_wrapper label {
    display: none;
}

.header_wrapper nav {
    display: none;
}

.all_but {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 52px;
    padding: 2px;
    position: relative;
    cursor: pointer;
}

.header_in_but {
    padding: 14px 50px !important;
}

.all_but::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 52px;
    padding: 2px;
    background: linear-gradient(180deg, #49ab79 0%, #49ab79 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.all_in_but {
    box-shadow: 0 0 16px 0 #88ee96 inset;
    padding: 14px 38px;
    text-align: center;
    text-shadow: 0 0 14.82px #0a132166;
    font-family: 'Inter Medium';
    font-size: 18px;
    line-height: normal;
    border-radius: 52px;
    z-index: 2;
    position: relative;
    width: 100%;
    color: #88EE96;
    text-align: center;
    text-shadow: 0 0 14.82px #88ee9666;
    font-size: 18px;
    line-height: normal;
}

.all_in_but span {
    position: relative;
    z-index: 4;
}

.all_in_but::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 52px;
    background: linear-gradient(180deg, #46a776 0%, #46a776 100%);
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
    transition: all 0.3s ease;
}

.all_but:hover .all_in_but::before {
    opacity: 0.7;
}

.header_links a::before {
    content: '';
    position: absolute;
    top: -100%;
    width: 54px;
    height: 54px;
    background: url(../assets/hover.png) center / contain no-repeat;
    left: 50%;
    transform: translate(-50%, 0%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.header_links a:hover::before {
    transform: translate(-50%, 40%);
    opacity: 1;
}

@media (max-width: 1600px) {
    .header_logo {
        order: 1;
        padding: 0px 0px 0;
    }

    .header_in_but {
        padding: 10px 34px;
    }

    .header_but {
        min-width: fit-content;
    }
}

@media (max-width: 1400px) {
    .all_in_but {
        font-size: 16px;
        line-height: normal;
        padding: 12px 32px;
    }

    .header_wrapper {
        padding: 0 32px 0;
    }

    .header_logo a {
        width: 128px;
        height: 38px;
    }

    .header_links a {
        font-size: 14px;
        line-height: 24px;
    }

    .header_wrapper {
        gap: 24px;
    }

    .header_links,
    .header_ather {
        gap: 12px;
    }

    .header_in_but {
        font-size: 18px;
    }

    .banner_after_title {
        font-size: 16px;
        line-height: 130%;
        max-width: 516px;
    }
}

@media (max-width: 1200px) {

    .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 {
        padding: 12px 17px 0;
        order: 1;
        z-index: 3;
        width: 175px;
        height: 59px;
        overflow: hidden;
    }

    .header_ather {
        order: 2;
    }

    .header_wrapper label {
        border-radius: 12px;
        background: linear-gradient(180deg, #88EE9605 0%, #88EE9605 100%);
        box-shadow: 0 0 16px 0 #88EE9652 inset;
        width: 52px;
        height: 52px;
        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;
        font-family: 'Inter Medium';
        font-size: 22px;
        line-height: 100%;
    }

    .burger_menu a:hover {
        color: #83FF94;
    }

    .header_ather ul {
        display: none;
    }

    .burger_menu {
        top: 59px;
        display: flex;
        flex-direction: column;
        position: absolute;
        width: 100%;
        padding: 40px 24px 30px;
        z-index: 2;
        align-items: center;
        left: 0;
        gap: 16px;
        border-radius: 0 0 5px 5px;
        list-style-type: none;
        justify-content: space-between;
        height: calc(100dvh - 60px);
        border-radius: 12px;
    }

    .last_burger {
        gap: 10px !important;
        align-items: center;
    }

    input+label {
        position: absolute;
        z-index: 5;
        top: 8px;
        right: 24px;
    }

    input+label span {
        position: absolute;
        width: 24px;
        height: 2px;
        top: 25px;
        margin-top: 0px;
        left: 14px;
        display: block;
        background: #E8F8FF;
        transition: 0.5s;
    }

    input+label span:first-child {
        top: 18px;
    }

    input+label span:last-child {
        top: 32px;
    }

    label:hover {
        cursor: pointer;
    }

    input:checked+label span {
        opacity: 0;
        top: 50%;
    }

    input:checked+label span:first-child {
        opacity: 1;
        transform: rotate(45deg);
    }

    input:checked+label span:last-child {
        opacity: 1;
        transform: rotate(-45deg);
    }

    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: flex-start;
        gap: 16px;
        width: 100%;
    }

    input:checked~nav {
        height: 100vh;
        transition-delay: 0s;
        background: #0a100a;
    }

    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;
        align-items: center;
        width: 100%;
        font-size: 18px;
        line-height: 24px;
    }

    .dropdown {
        position: relative;
        display: flex;
        flex-direction: column-reverse;
        gap: 10px;
    }

    .burgernav .dropdown [data-toggle='dropdown'] {
        border-radius: 100px;
        border: 2px solid #256C51;
        background: #12261F;
        box-shadow: 0 0 16px 0 #3596256b inset, 0 0 12px 0 #3596ac66 inset;
        padding: 9px 32px;
    }

    .burgernav .dropdown .active {
        color: #83FF94 !important;
    }

    .burgernav .dropdown .active::after {
        filter: brightness(0) saturate(100%) invert(100%) sepia(58%) saturate(2132%) hue-rotate(53deg) brightness(102%) contrast(100%) !important;
    }

    #header .dropdown-content li {
        margin: 4px 0;
    }

    .burgernav .dropdown-content {
        position: relative;
        display: block;
        border-radius: 26px;
        display: flex;
        padding: 20px 24px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 20px;
        white-space: nowrap;
        top: auto;
        left: auto;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .dropdown.active .dropdown-content {
        opacity: 1;
        pointer-events: all;
    }

    .burgernav .dropdown-content ul {
        background: none;
        border: none !important;
        border-radius: 0;
        padding: 0 !important;
        gap: 10px;
    }

    #main-header ul li.dropdown>a.active::after {
        transform: rotate(180deg);
    }

    .burgernav ul {
        padding: 0;
    }

    .burger_menu .burgernav:last-child {
        padding: 0 !important;
    }

    .burger_line {
        background: #ffedef08;
        height: 2px;
        width: 100%;
    }

    .burgernav {
        width: 100%;
        padding: 0;
        display: flex;
        justify-content: space-between;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .burgernav:hover::after {
        filter: brightness(0) saturate(100%) invert(100%) sepia(58%) saturate(2132%) hue-rotate(53deg) brightness(102%) contrast(100%) !important;
    }

    .header_logo a {
        width: 152px;
        height: 45px;
    }

    #header {
        height: 70px;
    }

    .header_wrapper {
        padding: 0 6px 0;
        border-radius: 12px;
    }

    .header_ather a {
        padding: 8px 8px;
    }

    .header_but,
    .header_in_but {
        width: 100%;
    }

}