/* AppFooter parity for landing and exchange-flow screens. Loaded after legacy layers. */

html body.onek-body .onek-footer .onek-footer__logo-slot {
    display: contents;
}

html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__topnav a {
    width: auto;
    height: auto;
    display: block;
    padding: 0;
    border-bottom: 1px solid transparent;
    color: #fff;
    font-family: Gilroy, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: normal;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transform: none;
    transition: all .3s ease-in-out;
}

html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__topnav a:hover,
html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__topnav a:focus-visible,
html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__topnav a:active {
    color: #fff;
    padding: 4px 0;
    border-bottom-color: #fff;
    text-decoration: none;
    transform: none;
}

html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__socials .onek-footer-icon {
    background-color: #5d87b9;
    color: #fff;
    transform: none;
    transition: all .3s ease-in-out;
}

html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__socials .onek-footer-icon:hover,
html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__socials .onek-footer-icon:focus-visible,
html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__socials .onek-footer-icon:active {
    background-color: #257add;
    color: #fff;
    box-shadow: none;
    transform: none;
}

@media (max-width: 720px) {
    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__top {
        gap: 0;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__topnav {
        gap: 0;
        margin-top: 36px;
        padding: 0;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__topnav a {
        margin: 12px 0;
    }
}

@media (min-width: 721px) and (max-width: 1280px) {
    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-rate-strip--footer {
        width: 100%;
        height: 46px;
        min-height: 46px;
        margin-top: 8px;
        border-top: 0;
        border-bottom: 0;
        background: #0f0f0f;
        font-size: 12px;
        line-height: 46px;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-rate-strip--footer .onek-rate-strip__track {
        height: 46px;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer {
        position: relative;
        width: calc(100% - 28px);
        height: 928px;
        min-height: 928px;
        margin: 0 14px;
        padding: 41px 0 32px;
        box-sizing: border-box;
        overflow: hidden;
        background: #171818;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__top {
        position: relative;
        width: 100%;
        max-width: none;
        height: 327px;
        min-height: 327px;
        display: block;
        margin: 0;
        padding: 0;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-logo--footer {
        position: absolute;
        z-index: 2;
        top: 735px;
        left: 16px;
        width: 63px;
        height: 60px;
        margin: 0;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-logo--footer .onek-logo__image {
        width: 63px;
        height: 56px;
        object-fit: contain;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__socials {
        position: absolute;
        top: 0;
        left: 50%;
        width: 288px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 32px;
        padding: 0 16px;
        box-sizing: border-box;
        transform: translateX(-50%);
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__socials .onek-footer-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        margin: 0;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__topnav {
        position: absolute;
        top: 76px;
        left: 50%;
        width: 240px;
        height: 205px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        transform: translateX(-50%);
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__topnav a {
        margin: 12px 0;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__directions {
        width: calc(100% - 216px);
        max-width: none;
        height: 360px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        margin: 32px 0 0 101px;
        padding: 0;
        border: 0;
        box-sizing: border-box;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__directions .onek-footer__direction-col {
        width: 100%;
        height: 360px;
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__directions .onek-footer__direction-col h3,
    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__directions .onek-footer__direction-col a {
        width: 100%;
        height: 24px;
        min-height: 24px;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
        color: #f1f2f4;
        font-size: 12px;
        line-height: 24px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__directions .onek-footer__direction-col h3 {
        font-weight: 700;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__directions .onek-footer__direction-col a {
        font-weight: 400;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__bottom {
        width: calc(100% - 32px);
        max-width: none;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 20px;
        margin: 16px 16px 60px;
        padding: 0 10px 0 0;
        border: 0;
        box-sizing: border-box;
        color: #fff;
        font-size: 12px;
        font-weight: 500;
        line-height: 12px;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__bottom > * {
        color: inherit;
        font-weight: inherit;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__separator {
        display: inline;
    }
}

/* Mobile/tablet social artwork: one blue disc plus one exact white SVG. */
@media (max-width: 1280px) {
    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__socials a.onek-footer-icon--telegram,
    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__socials a.onek-footer-icon--telegram-card {
        background-color: #5d87b9;
        background-image: none;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer-icon--telegram::before,
    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer-icon--telegram-card::before {
        content: "";
        display: block;
        border: 0;
        background-color: transparent;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        -webkit-mask: none;
        mask: none;
        transform: none;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer-icon--telegram::before {
        width: 25px;
        height: 31px;
        background-image: url('../images/contacts-telegram-cash-icon.svg');
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer-icon--telegram-card::before {
        width: 25px;
        height: 32px;
        background-image: url('../images/contacts-telegram-cashless-icon.svg');
    }
}

@media (min-width: 1281px) {
    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__top {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        min-height: 105.5px;
        margin-bottom: 31px;
        padding-bottom: 45px;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__logo-slot {
        display: flex;
        flex: 0 0 269.6875px;
        align-items: center;
        width: 269.6875px;
        height: 59.5px;
        margin: 0;
        padding: 0;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-logo--footer {
        position: relative;
        display: block;
        align-items: normal;
        width: 91px;
        height: 59.5px;
        flex: 0 0 91px;
        margin: 0;
        line-height: 16px;
        perspective: 64px;
        perspective-origin: 45.5px 29.75px;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-logo--footer::before {
        content: "";
        position: absolute;
        top: 0;
        right: auto;
        bottom: 0;
        left: 0;
        width: 91px;
        height: 59.5px;
        background: #fff;
        opacity: .2;
        filter: blur(16px);
        transform: matrix3d(1, 0, 0, 0, 0, -.0305045, .348668, 0, 0, -.996195, -.0871557, 0, 0, 35.7, 0, 1);
        transform-origin: 45.5px 29.75px;
        transition: .3s;
        pointer-events: none;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-logo--footer:hover::before,
    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-logo--footer:focus-visible::before {
        opacity: 1;
        filter: blur(8px);
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-logo--footer::after {
        content: none;
        display: none;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-logo--footer .onek-logo__image {
        display: inline;
        width: 91px;
        height: 56px;
        object-fit: contain;
        vertical-align: baseline;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__topnav {
        position: static;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: auto;
        height: auto;
        display: flex;
        flex: 0 1 auto;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        margin: 0 110px 0 0;
        padding: 0;
        transform: none;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__topnav a {
        margin: 0 12px;
        white-space: normal;
    }

    html body.onek-body:is(.onek-landing-page, .onek-exchange-route, .onek-exchange-step) .onek-footer .onek-footer__socials {
        position: static;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 288px;
        height: 40px;
        display: flex;
        flex: 0 0 288px;
        align-items: center;
        justify-content: flex-end;
        gap: 32px;
        margin: 0;
        padding: 0;
        transform: none;
    }
}
