#main-footer {
    background: #0D111A;
    width: 100%;
    overflow: hidden;
}

#main-footer nav {
    width: 100%;
}

.footer_content {
    display: flex;
    padding: 64px 64px 54px;
    justify-content: space-between;
    margin: 0 auto;
    gap: 16px;
    max-width: 1308px;
    width: 100%;
}

.footer_afterline {
    max-width: 1308px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 18px 64px 45px;
    color: #D1D1D1;
    font-family: 'OpenSans-Regular';
    font-size: 18px;
    font-style: normal;
    line-height: normal;
}

.footer_content li {
    cursor: pointer;
}

.footer_content li a {
    transition: all 0.3s ease;
}

.footer_content li a svg path {
    transition: all 0.3s ease;
}

.footer_discript a {
    transition: all 0.3s ease;
}

.footer_discript a:hover {
    color: #00CC7E;
}

.footer_first {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer_first ul {
    list-style: none;
}

.footer_first a {
    color: #D1D1D1;
    font-family: 'OpenSans-Medium';
    font-size: 16px;
    font-style: normal;
    line-height: 24px;
}

.footer_first a:hover {
    color: #00CC7E;
}

.footer_nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: fit-content;
}

.footer_title {
    color: #FFF;
    font-family: 'Albertusnova';
    font-size: 32px;
    font-style: normal;
    line-height: 24px;
}

.footer_items {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.footer_item {
    display: flex;
    width: 136px;
    height: 50px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    border: 2px solid #3E5568;
    background: linear-gradient(180deg, #25283A 0%, #13151E 100%);
    color: #FFF;
    text-align: center;
    font-family: 'OpenSans-Regular';
    font-size: 16px;
    font-style: normal;
    line-height: 110%;
    cursor: pointer;
    transition: all 0.6s ease;
    will-change: transform;
    transform: translateZ(0);
    position: relative;
}

.footer_item:hover {
    transform: scale(1.05) translateZ(0);
}

.footer_item::before {
    content: '';
    border-radius: 6px;
    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(180deg, #2D3146 0%, #161924 100%);
    z-index: -1;
    opacity: 0;
    transition: all 0.6s ease;
}

.footer_item:hover::before {
    opacity: 1;
}

.footer_items .footer_item:last-child {
    border: 2px solid #01e09c52;
    background: linear-gradient(180deg, #0C2B22 0%, #191E1D 100%);
}

.footer_items .footer_item:last-child:hover {
    transform: scale(1.05) translateZ(0);
}

.footer_items .footer_item:last-child::before {
    background: linear-gradient(180deg, #10382C 0%, #202624 100%);
}

.footer_items .footer_item:last-child:hover::before {
    opacity: 1;
}

.footer_discript {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.social_links {
    display: flex;
    list-style: none;
    gap: 32px;
    padding: 0;
}

.social_links li path {
    fill: #080808;
}

.footer_lastblock {
    display: flex;
    flex-direction: column;
    gap: 37px;
    padding: 0 84px 0 166px;
}

.footer_line {
    height: 1px;
    width: calc(100% - 128px);
    margin: 0 auto 16px;
    background: #161E24;
}

.right_part {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.popup_wrapper {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: #0d111ae6;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.6s ease;
}

.popup_body,
.alternative_popup_body {
    display: flex;
    width: 100%;
    max-width: 576px;
    max-height: 417px;
    height: 100%;
    padding: 40px;
    flex-direction: column;
    border-radius: 12px;
    border: 2px solid #3E5568;
    background: linear-gradient(180deg, #25283A 0%, #13151E 100%);
    position: relative;
    gap: 24px;
    position: absolute;
    transition: opacity 0.3s ease, z-index 0s linear 0.3s;
}

.popup_body {
    z-index: 10;
    opacity: 1;
}

.alternative_popup_body {
    z-index: -1;
    opacity: 0;
}

.popup_bodies {
    width: 100%;
    max-width: 576px;
    max-height: 417px;
    height: 100%;
    position: relative;
}

.popup_first {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 359px;
}

.popup_title {
    color: #FDFEFF;
    font-family: 'Albertusnova';
    font-size: 22px;
    font-style: normal;
    line-height: 110%;
}

.popup_after_title {
    color: #D1D1D1;
    font-family: 'OpenSans-Regular';
    font-size: 14px;
    font-style: normal;
    line-height: 120%;
}

.popup_second {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 359px;
}

.popup_third {
    max-width: 359px;
    color: #d1d1d1a3;
    font-size: 14px;
    font-style: normal;
    line-height: 120%;
}

.popup_second_text {
    color: #FDFEFF;
    font-family: 'OpenSans-Medium';
    font-size: 16px;
    font-style: normal;
    line-height: 110%;
}

.submit-form.submit-email.btn-black,
.neon_but {
    display: flex;
    height: 42px;
    padding: 9px 64px;
    color: #56FFAE;
    font-family: 'OpenSans-Bold';
    font-size: 16px;
    font-style: normal;
    line-height: normal;
    text-transform: uppercase;
    border-radius: 48px;
    border: 2px solid #00A070;
    background: #25382F;
    box-shadow: 0px 0px 32px 0px #00ff991a;
    margin-top: 24px;
    cursor: pointer;
    transition: all 0.6s ease;
    width: fit-content;
}

.neon_but {
    margin-top: auto;
}

.submit-form.submit-email.btn-black:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 50.4px 0px #00ff9933;
}

.popup_girl {
    position: absolute;
    right: -110px;
    bottom: 0;
    pointer-events: none;
    max-width: 382px;
    z-index: 11;
}

.popup_close_wrapper {
    width: 24px;
    height: 24px;
    position: absolute;
    right: -40px;
    top: -40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup_close {
    width: 24px;
    height: 24px;
    background: url(../assets/close.svg) center / cover no-repeat;
    transition: all 0.3s ease;
}

.popup_close_wrapper:hover .popup_close {
    transform: scale(1.05);
}

.field-sendpulsedoubleoptin-email {
    margin-bottom: 16px;
}

@media (max-width: 1285px) {

    .footer_content {
        padding: 64px 32px 54px;
        gap: 16px;
        max-width: 960px;
    }

    .footer_title {
        font-size: 26px;
        font-style: normal;
        line-height: 29px;
    }

    .footer_nav {
        max-width: 432px;
    }

    .footer_items {
        flex-wrap: wrap;
    }

    .footer_afterline {
        max-width: 960px;
        padding: 18px 32px 45px;
    }

    .footer_afterline {
        font-size: 16px;
        font-style: normal;
        line-height: normal;
    }

}

@media (max-width: 740px) {
    .footer_content {
        padding: 64px 16px 54px;
        gap: 64px;
        max-width: 100%;
        flex-direction: column;
    }

    .footer_nav {
        max-width: 100%;
        width: 100%;
    }

    .footer_item {
        width: 100%;
    }

    .footer_items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer_items .footer_item:last-child {
        grid-column: 1 / -1;
    }

    .footer_afterline {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer_line {
        width: calc(100% - 32px);
    }

    .popup_bodies {
        margin: 0 16px;
    }

    .popup_body,
    .alternative_popup_body {
        padding: 24px;
    }

    .popup_girl {
        display: none;
    }

    .popup_first {
        max-width: 100%;
    }

    .popup_second {
        max-width: 100%;
    }

    .popup_close_wrapper {
        width: 100%;
        height: 44px;
        right: 0;
        top: auto;
        bottom: -60px;
        border-radius: 8px;
        border: 2px solid #3e556852;
        background: #13151E;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

}