.ak-footer {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    margin-top: 0;
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    margin-left: calc(50% - 50vw);
    padding: clamp(34px, 5vw, 58px) 18px 20px;
    color: #eef2f6;
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 103, 32, .18), transparent 34%),
        radial-gradient(circle at 84% 14%, rgba(255, 255, 255, .08), transparent 28%),
        linear-gradient(135deg, #121722 0%, #0d1119 52%, #090c12 100%);
    isolation: isolate;
}

.ak-footer,
.ak-footer * {
    box-sizing: border-box;
}

/* Full-bleed fix: the module can sit inside a Helix/Joomla container,
   but the footer background itself must cover the whole viewport width. */
.ak-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: inherit;
}

.ak-footer a {
    color: inherit;
    text-decoration: none;
}

.ak-footer__glow {
    position: absolute;
    inset: auto -120px -190px auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(255, 89, 36, .12);
    filter: blur(20px);
    z-index: -1;
}

.ak-footer__inner {
    width: min(100%, var(--ak-footer-max, 1180px));
    margin: 0 auto;
}

.ak-footer__top {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(160px, .82fr) minmax(160px, .82fr) minmax(230px, 1fr);
    gap: clamp(20px, 3vw, 34px);
    align-items: start;
}

.ak-footer__brand,
.ak-footer__col,
.ak-footer__trust {
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .045);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
}

.ak-footer__brand,
.ak-footer__col {
    min-height: 100%;
    border-radius: 24px;
    padding: 22px;
}

.ak-footer__brand-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ak-footer__logo,
.ak-footer__logo-mark {
    width: var(--ak-footer-logo-w, 54px);
    height: var(--ak-footer-logo-h, 54px);
    flex: 0 0 var(--ak-footer-logo-w, 54px);
    border-radius: var(--ak-footer-logo-radius, 17px);
    padding: var(--ak-footer-logo-padding, 0px);
    border: var(--ak-footer-logo-border-w, 0px) solid var(--ak-footer-logo-border-color, #ffffff);
    background: var(--ak-footer-logo-bg, #ffffff);
    overflow: hidden;
}

.ak-footer__logo {
    display: block;
    object-fit: var(--ak-footer-logo-fit, contain);
}

.ak-footer__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: -.06em;
    color: #fff;
    background: linear-gradient(135deg, #ff6b2b, #c6291b);
    box-shadow: 0 12px 28px rgba(255, 93, 38, .24);
}

.ak-footer__name {
    font-size: 32px;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -.04em;
}

.ak-footer__micro {
    margin-top: 4px;
    color: rgba(238, 242, 246, .64);
    font-size: 13px;
}

.ak-footer__about {
    margin: 18px 0 0;
    max-width: 520px;
    color: rgba(238, 242, 246, .76);
    font-size: 15px;
    line-height: 1.62;
}

.ak-footer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ak-footer__btn,
.ak-footer__messenger,
.ak-footer__route {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ak-footer__btn {
    padding: 10px 14px;
}

.ak-footer__btn:hover,
.ak-footer__messenger:hover,
.ak-footer__route:hover,
.ak-footer__links a:hover,
.ak-footer__legal a:hover {
    color: #fff;
}

.ak-footer__btn:hover,
.ak-footer__messenger:hover,
.ak-footer__route:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 111, 43, .54);
    background: rgba(255, 111, 43, .12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.ak-footer__btn--primary {
    border-color: rgba(255, 111, 43, .58);
    background: linear-gradient(135deg, #ff6b2b, #d9311e);
    box-shadow: 0 13px 28px rgba(255, 83, 32, .22);
}

.ak-footer__btn-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 11px;
    font-weight: 900;
}

.ak-footer__col h3 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -.02em;
}

.ak-footer__links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ak-footer__links a,
.ak-footer__links span,
.ak-footer__contact-line,
.ak-footer__copy,
.ak-footer__note,
.ak-footer__legal a,
.ak-footer__legal span {
    color: rgba(238, 242, 246, .72);
}

.ak-footer__links a,
.ak-footer__links span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.35;
    transition: color .18s ease, transform .18s ease;
}

.ak-footer__links a::before,
.ak-footer__links span::before {
    content: '';
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 999px;
    background: rgba(255, 111, 43, .84);
}

.ak-footer__links a:hover {
    transform: translateX(2px);
}

.ak-footer__contacts {
    display: grid;
    gap: 12px;
}

.ak-footer__contact-line {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.ak-footer__contact-line > span:first-child {
    color: #ff7a37;
    font-weight: 900;
}

.ak-footer__contact-line a {
    color: #fff;
    font-weight: 800;
}

.ak-footer__route {
    width: fit-content;
    margin-top: 4px;
    padding: 10px 15px;
}


/* Route button style cloned from mod_agentkeys_home_team_v1.2.0. Behavior: desktop direct Yandex web route, mobile popup chooser. */
.ak-footer__route-team-copy {
    margin-top: 4px;
}

.ak-footer .akteam-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.ak-footer .akteam-icon svg {
    width: 22px;
    height: 22px;
}

.ak-footer .akteam-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: 999px;
    text-decoration: none !important;
    font-family: inherit;
    font-weight: 850;
    font-size: 15.5px;
    line-height: 1.18;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.ak-footer .akteam-btn-route {
    border: 1px solid rgba(255,90,31,.58);
    background: linear-gradient(135deg, #ff5a1f, #ff7a1a);
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(255,90,31,.20);
}

.ak-footer .akteam-btn-route:hover,
.ak-footer .akteam-btn-route:focus {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(255,90,31,.26);
    outline: none;
}

.ak-footer__brand-request-btn {
    border: 1px solid rgba(255,90,31,.58);
}


@media (max-width: 560px) {
    .ak-footer .akteam-btn {
        min-height: 46px;
        font-size: 15px;
        line-height: 1.2;
        padding: 12px 16px;
    }
}

.ak-footer .akteam-route-mobile {
    display: none;
    margin-top: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #fff7f2;
    border: 1px solid rgba(255,90,31,.16);
}

.ak-footer .akteam-route-mobile span {
    display: block;
    margin-bottom: 7px;
    color: #667085;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.ak-footer .akteam-route-mobile a {
    display: inline-flex;
    margin: 0 6px 6px 0;
    padding: 7px 9px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(255,90,31,.18);
    color: #c43a0a;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 850;
}

.ak-footer .akteam-route-mobile a:hover,
.ak-footer .akteam-route-mobile a:focus {
    color: #c43a0a;
    border-color: rgba(255,90,31,.34);
    outline: none;
}

.ak-footer__trust {
    margin-top: 20px;
    padding: 16px;
    border-radius: 22px;
}

.ak-footer__trust-title {
    margin-bottom: 12px;
    color: rgba(238, 242, 246, .74);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ak-footer__trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ak-footer__trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    border-radius: 16px;
    padding: 9px 11px;
    color: rgba(255, 255, 255, .83);
    background: rgba(255, 255, 255, .055);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 750;
}

.ak-footer__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 111, 43, .9);
    font-weight: 900;
}

.ak-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.ak-footer__copy,
.ak-footer__legal,
.ak-footer__note {
    font-size: 13px;
    line-height: 1.45;
}

.ak-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
}

.ak-footer__legal a {
    transition: color .18s ease;
}

.ak-footer__top-link {
    color: #fff !important;
    font-weight: 800;
}

.ak-footer__note {
    margin-top: 12px;
    color: rgba(238, 242, 246, .56);
}

.ak-footer--soft {
    color: #1d2630;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 103, 32, .14), transparent 34%),
        linear-gradient(180deg, #fff7f3 0%, #f5f7fb 100%);
}

.ak-footer--soft .ak-footer__brand,
.ak-footer--soft .ak-footer__col,
.ak-footer--soft .ak-footer__trust {
    background: rgba(255, 255, 255, .78);
    border-color: rgba(20, 30, 42, .08);
    box-shadow: 0 18px 46px rgba(18, 28, 40, .08);
}

.ak-footer--soft .ak-footer__name,
.ak-footer--soft .ak-footer__col h3,
.ak-footer--soft .ak-footer__contact-line a,
.ak-footer--soft .ak-footer__btn:hover,
.ak-footer--soft .ak-footer__messenger:hover,
.ak-footer--soft .ak-footer__route:hover {
    color: #111827;
}

.ak-footer--soft .ak-footer__about,
.ak-footer--soft .ak-footer__micro,
.ak-footer--soft .ak-footer__links a,
.ak-footer--soft .ak-footer__links span,
.ak-footer--soft .ak-footer__contact-line,
.ak-footer--soft .ak-footer__copy,
.ak-footer--soft .ak-footer__note,
.ak-footer--soft .ak-footer__legal a,
.ak-footer--soft .ak-footer__legal span,
.ak-footer--soft .ak-footer__trust-title {
    color: rgba(17, 24, 39, .66);
}

.ak-footer--soft .ak-footer__trust-item {
    color: rgba(17, 24, 39, .78);
    background: rgba(17, 24, 39, .045);
}

.ak-footer--soft .ak-footer__btn,
.ak-footer--soft .ak-footer__messenger,
.ak-footer--soft .ak-footer__route {
    color: #111827;
    border-color: rgba(17, 24, 39, .1);
    background: rgba(17, 24, 39, .04);
}

.ak-footer--soft .ak-footer__btn--primary {
    color: #fff;
}

@media (max-width: 1100px) {
    .ak-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ak-footer__brand {
        grid-column: 1 / -1;
    }

    .ak-footer__trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ak-footer {
        padding: 28px 14px 18px;
        margin-top: 0;
    }

    .ak-footer__top,
    .ak-footer__trust-grid {
        grid-template-columns: 1fr;
    }

    .ak-footer__brand,
    .ak-footer__col {
        border-radius: 20px;
        padding: 18px;
    }

    .ak-footer__name {
        font-size: 27px;
    }

    .ak-footer__about {
        font-size: 14px;
    }

    .ak-footer__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ak-footer__actions .ak-footer__btn--primary,
    .ak-footer__actions .ak-footer__brand-request-btn {
        grid-column: 1 / -1;
    }

    .ak-footer__btn,
    .ak-footer__messenger,
    .ak-footer__route {
        min-height: 44px;
    }

    .ak-footer__bottom {
        display: grid;
        gap: 12px;
    }

    .ak-footer__legal {
        justify-content: flex-start;
    }

    .ak-footer__route-team-copy,
    .ak-footer .akteam-btn-route {
        width: 100%;
    }

    .ak-footer .akteam-btn-route {
        white-space: nowrap;
    }

    
@media (max-width: 560px) {
    .ak-footer .akteam-btn {
        min-height: 46px;
        font-size: 15px;
        line-height: 1.2;
        padding: 12px 16px;
    }
}

.ak-footer .akteam-route-mobile {
        display: none;
    }
}

@media (max-width: 420px) {
    .ak-footer__actions {
        grid-template-columns: 1fr;
    }
}


.ak-footer__messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 12px 0 16px;
}

.ak-footer__messenger {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}


.ak-footer__yandex-badge {
    margin-top: 18px;
    width: fit-content;
    max-width: 100%;
}

.ak-footer__contacts .ak-footer__yandex-badge {
    margin-top: 10px;
}

.ak-footer__yandex-row {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.ak-footer__yandex-title {
    margin-bottom: 8px;
    color: rgba(238, 242, 246, .64);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.ak-footer__yandex-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    line-height: 0;
}

.ak-footer__yandex-code iframe,
.ak-footer__yandex-code img,
.ak-footer__yandex-code svg,
.ak-footer__yandex-code > a,
.ak-footer__yandex-code > div {
    display: block;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px !important;
}

.ak-footer__yandex-code iframe {
    display: block;
    border: 0;
}

.ak-footer--soft .ak-footer__yandex-title {
    color: rgba(17, 24, 39, .58);
}



/* Shared route popup: hidden on desktop unless opened on mobile by JS. It does not change the existing button/card style. */
.akteam-route-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
}

.akteam-route-modal.is-open {
    display: flex;
}

.akteam-route-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(16, 24, 40, .54);
    cursor: pointer;
}

.akteam-route-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 390px);
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, .08);
    box-shadow: 0 24px 70px rgba(16, 24, 40, .28);
    color: #101828;
}

.akteam-route-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(16, 24, 40, .06);
    color: #101828;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.akteam-route-modal__title {
    margin: 0 38px 6px 0;
    color: #101828;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 900;
}

.akteam-route-modal__text {
    margin: 0 0 14px;
    color: #667085;
    font-size: 14px;
    line-height: 1.45;
}

.akteam-route-modal__actions {
    display: grid;
    gap: 9px;
}

.akteam-route-modal__actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 90, 31, .20);
    background: #fff7f2;
    color: #c43a0a !important;
    text-decoration: none !important;
    font-size: 15px;
    line-height: 1;
    font-weight: 850;
}

.akteam-route-modal__actions a:hover,
.akteam-route-modal__actions a:focus {
    border-color: rgba(255, 90, 31, .42);
    background: #fff0e7;
    color: #a93108 !important;
    outline: none;
}

body.ak-route-modal-open {
    overflow: hidden;
}

@media (min-width: 769px) {
    .akteam-route-modal.is-open {
        display: none;
    }
}

/* v1.0.17: app-style messenger icons for WhatsApp / Telegram. */
.ak-footer .ak-footer__messengers {
    --ak-footer-messenger-size: 44px;
    --ak-footer-messenger-radius: 12px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 16px;
}

.ak-footer .ak-footer__messenger,
.ak-footer--soft .ak-footer__messenger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 6px;
    width: var(--ak-footer-messenger-size);
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: calc(var(--ak-footer-messenger-radius) + 4px);
    background: transparent;
    color: rgba(238, 242, 246, .86);
    box-shadow: none;
    text-decoration: none !important;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: 0;
}

.ak-footer .ak-footer__messenger:hover,
.ak-footer .ak-footer__messenger:focus,
.ak-footer--soft .ak-footer__messenger:hover,
.ak-footer--soft .ak-footer__messenger:focus {
    transform: translateY(-2px);
    border-color: transparent;
    background: transparent;
    color: #fff;
    box-shadow: none;
    outline: none;
}

.ak-footer .ak-footer__messenger-icon {
    display: grid;
    place-items: center;
    width: var(--ak-footer-messenger-size);
    height: var(--ak-footer-messenger-size);
    flex: 0 0 var(--ak-footer-messenger-size);
    border-radius: var(--ak-footer-messenger-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
    transition: box-shadow .18s ease, transform .18s ease;
}

.ak-footer .ak-footer__messenger:hover .ak-footer__messenger-icon,
.ak-footer .ak-footer__messenger:focus .ak-footer__messenger-icon {
    box-shadow: 0 12px 24px rgba(0, 0, 0, .24);
}

.ak-footer .ak-footer__messenger-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ak-footer .ak-footer__messenger-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.ak-footer .ak-footer__messenger--whatsapp .ak-footer__messenger-fallback {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.ak-footer .ak-footer__messenger--telegram .ak-footer__messenger-fallback {
    background: linear-gradient(135deg, #2aabee, #229ed9);
}

.ak-footer .ak-footer__messenger-label {
    display: none;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.ak-footer .ak-footer__messengers--labels .ak-footer__messenger-label {
    display: block;
}

.ak-footer--soft .ak-footer__messenger {
    color: rgba(22, 29, 39, .72);
}

.ak-footer--soft .ak-footer__messenger:hover,
.ak-footer--soft .ak-footer__messenger:focus {
    color: #111827;
}


/* v1.0.19: rollback to v1.0.17 contact tile layout + built-in clean contact SVG icons. */
.ak-footer .ak-footer__contact-line {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.ak-footer .ak-footer__contact-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    color: #ff7a37;
    opacity: .95;
}

.ak-footer .ak-footer__contact-icon svg {
    display: block;
    width: 21px;
    height: 21px;
}

.ak-footer .ak-footer__contact-line--phone {
    align-items: center;
}

.ak-footer .ak-footer__contact-line--phone .ak-footer__contact-icon {
    margin-top: 0;
}

.ak-footer .ak-footer__contact-line--phone a,
.ak-footer .ak-footer__contact-line--phone > span:last-child {
    font-size: 15px;
    line-height: 1.25;
}

.ak-footer--soft .ak-footer__contact-icon {
    color: #f26322;
}

@media (max-width: 560px) {
    .ak-footer .ak-footer__contact-line {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 12px;
    }
    .ak-footer .ak-footer__contact-icon {
        width: 26px;
        height: 26px;
    }
    .ak-footer .ak-footer__contact-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* v1.0.20: Yandex map replaces the old Catalog column when map code is configured. */
.ak-footer__top--with-map {
    grid-template-columns: minmax(280px, 1.25fr) minmax(160px, .72fr) minmax(250px, 1.05fr) minmax(230px, 1fr);
}

.ak-footer__map-col {
    overflow: hidden;
}

.ak-footer__map {
    display: grid;
    gap: 12px;
}

.ak-footer__map-preview,
.ak-footer__map-frame {
    width: 100%;
    min-height: var(--ak-footer-map-h, 220px);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .055);
}

.ak-footer__map-preview {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 18px;
    text-align: center;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 111, 43, .28), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
}

.ak-footer__map-preview::before,
.ak-footer__map-preview::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.ak-footer__map-preview::before {
    inset: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, .14);
}

.ak-footer__map-preview::after {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 111, 43, .11);
    filter: blur(2px);
}

.ak-footer__map-icon,
.ak-footer__map-text,
.ak-footer__map-button {
    position: relative;
    z-index: 1;
}

.ak-footer__map-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #ff6b2b, #d9311e);
    box-shadow: 0 14px 28px rgba(255, 93, 38, .22);
}

.ak-footer__map-icon svg {
    width: 24px;
    height: 24px;
}

.ak-footer__map-text {
    max-width: 240px;
    color: rgba(238, 242, 246, .80);
    font-size: 13.5px;
    line-height: 1.45;
    font-weight: 700;
}

.ak-footer__map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 90, 31, .55);
    border-radius: 16px;
    background: linear-gradient(135deg, #ff5a1f, #ff7a1a);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(255, 90, 31, .18);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ak-footer__map-button:hover,
.ak-footer__map-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(255, 90, 31, .24);
    outline: none;
}

.ak-footer__map.is-loaded .ak-footer__map-preview {
    display: none;
}

.ak-footer__map-frame {
    display: block;
    line-height: 0;
    background: rgba(255, 255, 255, .08);
}

.ak-footer__map-frame[hidden] {
    display: none;
}

.ak-footer__map-frame iframe,
.ak-footer__map-frame > iframe,
.ak-footer__map-frame > div,
.ak-footer__map-frame > a,
.ak-footer__map-frame img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-height: var(--ak-footer-map-h, 220px) !important;
    border: 0 !important;
    border-radius: 18px;
}

.ak-footer__map-frame iframe {
    height: var(--ak-footer-map-h, 220px) !important;
}

.ak-footer--soft .ak-footer__map-preview,
.ak-footer--soft .ak-footer__map-frame {
    border-color: rgba(20, 30, 42, .08);
    background: rgba(17, 24, 39, .045);
}

.ak-footer--soft .ak-footer__map-preview {
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 111, 43, .18), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .55));
}

.ak-footer--soft .ak-footer__map-preview::before {
    border-color: rgba(17, 24, 39, .10);
}

.ak-footer--soft .ak-footer__map-text {
    color: rgba(17, 24, 39, .70);
}

@media (max-width: 980px) {
    .ak-footer__top--with-map {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .ak-footer__map-preview,
    .ak-footer__map-frame,
    .ak-footer__map-frame iframe,
    .ak-footer__map-frame > iframe,
    .ak-footer__map-frame > div,
    .ak-footer__map-frame > a,
    .ak-footer__map-frame img {
        min-height: var(--ak-footer-map-hm, 280px) !important;
    }

    .ak-footer__map-frame iframe {
        height: var(--ak-footer-map-hm, 280px) !important;
    }
}

/* v1.0.22: rebuilt footer layout — three main tiles: brand / map / contacts; sitemap block below. */
.ak-footer__top.ak-footer__top--three,
.ak-footer__top.ak-footer__top--three.ak-footer__top--with-map {
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1.05fr) minmax(250px, .92fr);
    gap: clamp(18px, 2.6vw, 28px);
    align-items: stretch;
}

.ak-footer__top--three .ak-footer__brand,
.ak-footer__top--three .ak-footer__col {
    min-width: 0;
}

.ak-footer__map-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.ak-footer__map-col h3 {
    margin-bottom: 0;
}

.ak-footer__map-intro {
    color: rgba(238, 242, 246, .72);
    font-size: 13.5px;
    line-height: 1.42;
    font-weight: 650;
}

.ak-footer__map--inline {
    margin-top: 2px;
}

.ak-footer__map-empty {
    display: grid;
    place-items: center;
    min-height: var(--ak-footer-map-h, 250px);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    color: rgba(238, 242, 246, .70);
    background: rgba(255, 255, 255, .055);
    border: 1px dashed rgba(255, 255, 255, .14);
    font-size: 13px;
    line-height: 1.45;
}

.ak-footer__map-badge {
    margin-top: 12px;
}

.ak-footer__map-badge .ak-footer__yandex-badge {
    margin-top: 0;
}

.ak-footer__sitemap {
    margin-top: 20px;
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .045);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .16);
    backdrop-filter: blur(8px);
}

.ak-footer__sitemap-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.ak-footer__sitemap-title {
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -.02em;
}

.ak-footer__sitemap-subtitle {
    color: rgba(238, 242, 246, .56);
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 700;
    text-align: right;
}

.ak-footer__sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ak-footer__sitemap-group {
    min-width: 0;
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .07);
}

.ak-footer__sitemap-group-title {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .90);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ak-footer__sitemap-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ak-footer__sitemap-links a,
.ak-footer__sitemap-links span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(238, 242, 246, .72);
    font-size: 13.5px;
    line-height: 1.32;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
}

.ak-footer__sitemap-links a::before,
.ak-footer__sitemap-links span::before {
    content: '';
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 999px;
    background: rgba(255, 111, 43, .84);
}

.ak-footer__sitemap-links a:hover,
.ak-footer__sitemap-links a:focus {
    color: #fff;
    transform: translateX(2px);
    outline: none;
}

.ak-footer--soft .ak-footer__map-intro,
.ak-footer--soft .ak-footer__sitemap-subtitle,
.ak-footer--soft .ak-footer__sitemap-links a,
.ak-footer--soft .ak-footer__sitemap-links span {
    color: rgba(17, 24, 39, .66);
}

.ak-footer--soft .ak-footer__sitemap,
.ak-footer--soft .ak-footer__sitemap-group {
    border-color: rgba(20, 30, 42, .08);
    background: rgba(255, 255, 255, .78);
}

.ak-footer--soft .ak-footer__sitemap-title,
.ak-footer--soft .ak-footer__sitemap-group-title,
.ak-footer--soft .ak-footer__sitemap-links a:hover,
.ak-footer--soft .ak-footer__sitemap-links a:focus {
    color: #111827;
}

.ak-footer--soft .ak-footer__map-empty {
    color: rgba(17, 24, 39, .66);
    border-color: rgba(17, 24, 39, .10);
    background: rgba(17, 24, 39, .045);
}

@media (max-width: 1080px) {
    .ak-footer__top.ak-footer__top--three,
    .ak-footer__top.ak-footer__top--three.ak-footer__top--with-map {
        grid-template-columns: 1fr 1fr;
    }

    .ak-footer__top--three .ak-footer__map-col {
        grid-column: span 1;
    }

    .ak-footer__sitemap-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ak-footer__top.ak-footer__top--three,
    .ak-footer__top.ak-footer__top--three.ak-footer__top--with-map {
        grid-template-columns: 1fr;
    }

    .ak-footer__sitemap-head {
        display: grid;
        gap: 4px;
    }

    .ak-footer__sitemap-subtitle {
        text-align: left;
    }

    .ak-footer__sitemap-grid {
        grid-template-columns: 1fr;
    }

    .ak-footer__map-empty {
        min-height: var(--ak-footer-map-hm, 280px);
    }
}


/* v1.0.23: move WhatsApp / Telegram under working hours and align with contact text column. */
.ak-footer .ak-footer__contacts .ak-footer__messengers--contact-indent {
    margin: 10px 0 18px calc(24px + 12px);
    padding-top: 2px;
    justify-content: flex-start;
}

.ak-footer .ak-footer__contacts .ak-footer__contact-line--hours + .ak-footer__messengers--contact-indent {
    margin-top: 10px;
}

@media (max-width: 560px) {
    .ak-footer .ak-footer__contacts .ak-footer__messengers--contact-indent {
        margin-left: calc(26px + 12px);
        margin-top: 12px;
    }
}


/* v1.0.24: Yandex good-place badge moved to Brand tile next to the request button. */
.ak-footer__actions--brand {
    align-items: center;
    gap: 12px;
}

.ak-footer__brand-badge {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.ak-footer__actions--brand .ak-footer__yandex-badge {
    margin-top: 0;
    max-width: 100%;
}

.ak-footer__actions--brand .ak-footer__yandex-title {
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    line-height: 1.2;
}

@media (max-width: 560px) {
    .ak-footer__actions--brand {
        align-items: flex-start;
    }
}


/* v1.0.25: keep Yandex badge inline with the request button on desktop.
   The badge can be wider than the brand tile, so we compact only this inline placement. */
@media (min-width: 681px) {
    .ak-footer__actions--brand {
        display: grid;
        grid-template-columns: max-content minmax(118px, 166px);
        align-items: center;
        justify-content: start;
        column-gap: 12px;
        row-gap: 10px;
        flex-wrap: nowrap;
    }

    .ak-footer__actions--brand .ak-footer__brand-request-btn {
        min-width: 0;
        flex: 0 0 auto;
    }

    .ak-footer__brand-badge {
        width: min(166px, 100%);
        max-width: 166px;
        min-width: 0;
        overflow: hidden;
        justify-content: flex-start;
    }

    .ak-footer__actions--brand .ak-footer__yandex-badge,
    .ak-footer__actions--brand .ak-footer__yandex-code {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .ak-footer__actions--brand .ak-footer__yandex-title {
        display: none;
    }

    .ak-footer__actions--brand .ak-footer__yandex-code iframe,
    .ak-footer__actions--brand .ak-footer__yandex-code img,
    .ak-footer__actions--brand .ak-footer__yandex-code svg,
    .ak-footer__actions--brand .ak-footer__yandex-code > a,
    .ak-footer__actions--brand .ak-footer__yandex-code > div {
        max-width: 100% !important;
    }
}

@media (max-width: 680px) {
    .ak-footer__actions--brand {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
    }

    .ak-footer__brand-badge {
        max-width: 100%;
    }
}

/* v1.0.29: callback button restored as a native #agentkey-callback link;
   Yandex badge is boxed so its iframe/script cannot create horizontal page scroll. */
.ak-footer,
.ak-footer__inner,
.ak-footer__top,
.ak-footer__brand,
.ak-footer__col,
.ak-footer__actions--brand {
    min-width: 0;
}

.ak-footer {
    overflow-x: hidden;
}

.ak-footer__actions--brand {
    max-width: 100%;
}

.ak-footer__brand-badge {
    min-width: 0;
    overflow: hidden;
    contain: paint;
}

.ak-footer__brand-badge .ak-footer__yandex-badge,
.ak-footer__brand-badge .ak-footer__yandex-code {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    contain: paint;
}

.ak-footer__brand-badge .ak-footer__yandex-code iframe,
.ak-footer__brand-badge .ak-footer__yandex-code img,
.ak-footer__brand-badge .ak-footer__yandex-code svg,
.ak-footer__brand-badge .ak-footer__yandex-code > a,
.ak-footer__brand-badge .ak-footer__yandex-code > div {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.ak-footer__brand-badge .ak-footer__yandex-code iframe {
    width: 100% !important;
}

@media (min-width: 681px) {
    .ak-footer__actions--brand {
        grid-template-columns: max-content minmax(96px, 148px);
        max-width: 100%;
    }

    .ak-footer__brand-badge {
        width: min(148px, 100%);
        max-width: 148px;
    }
}

@media (max-width: 680px) {
    .ak-footer__brand-badge {
        width: 100%;
        max-width: 180px;
    }
}


/* v1.0.29: brand CTA stack + Yandex badge below the request button. */
.ak-footer__actions--brand {
    display: block !important;
    max-width: 100%;
}
.ak-footer__brand-cta-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
}
.ak-footer__brand-badge--under {
    width: min(260px, 100%);
    max-width: 100%;
    overflow: hidden;
    contain: paint;
}
.ak-footer__brand-badge--under .ak-footer__yandex-badge,
.ak-footer__brand-badge--under .ak-footer__yandex-code {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    contain: paint;
}
.ak-footer__brand-badge--under .ak-footer__yandex-title {
    display: none;
}
.ak-footer__brand-badge--under .ak-footer__yandex-code iframe,
.ak-footer__brand-badge--under .ak-footer__yandex-code img,
.ak-footer__brand-badge--under .ak-footer__yandex-code svg,
.ak-footer__brand-badge--under .ak-footer__yandex-code > a,
.ak-footer__brand-badge--under .ak-footer__yandex-code > div {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
.ak-footer__brand-badge--under .ak-footer__yandex-code iframe {
    width: 100% !important;
}

/* v1.0.29: Footer popup shell for the copied Hero form. */
.ak-footer-callback-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}
.ak-footer-callback-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.ak-footer-callback-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 12, 18, .68);
    backdrop-filter: blur(6px);
    cursor: pointer;
}
.ak-footer-callback-modal__dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: min(92vh, 820px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(10px) scale(.985);
    transition: transform .18s ease;
}
.ak-footer-callback-modal.is-open .ak-footer-callback-modal__dialog {
    transform: translateY(0) scale(1);
}
.ak-footer-callback-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(32, 38, 50, .12);
    color: #202632;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.ak-footer-callback-modal__close:hover,
.ak-footer-callback-modal__close:focus {
    background: rgba(255, 90, 31, .14);
    outline: none;
}
body.ak-footer-callback-open {
    overflow: hidden;
}
.ak-footer__callback-card {
    width: 100%;
}

/* Copied Hero form styles, scoped only to the footer popup. */
.ak-footer-callback-modal {
    --akh-orange: #ff5a1f;
    --akh-orange-2: #ff7a1a;
    --akh-graphite: #202632;
    --akh-muted: #667085;
}
.ak-footer-callback-modal .akh-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.ak-footer-callback-modal .akh-btn:hover { transform: translateY(-1px); text-decoration: none !important; }
.ak-footer-callback-modal .akh-btn--request { width: 100%; color: #fff !important; background: linear-gradient(135deg, var(--akh-orange), #f04416); box-shadow: 0 16px 38px rgba(255,90,31,.32); }
.ak-footer-callback-modal .akh-btn--request:hover { color: #fff !important; box-shadow: 0 20px 46px rgba(255,90,31,.42); }
.ak-footer-callback-modal .akh-btn--request[disabled] { opacity: .75; cursor: wait; transform: none; }
.ak-footer-callback-modal .akh-hero__form-card {
    position: relative;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255,255,255,.97);
    color: var(--akh-graphite);
    box-shadow: 0 28px 70px rgba(0,0,0,.34);
    border: 1px solid rgba(255,255,255,.72);
    overflow: hidden;
}
.ak-footer-callback-modal .akh-hero__form-card:before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: 24px 0 0 24px; background: linear-gradient(180deg, var(--akh-orange), var(--akh-orange-2)); }
.ak-footer-callback-modal .akh-hero__form-head { margin-bottom: 14px; padding-right: 34px; }
.ak-footer-callback-modal .akh-hero__form-kicker { display: inline-flex; margin-bottom: 9px; padding: 6px 10px; border-radius: 999px; background: rgba(255,90,31,.10); color: #c83a0a; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.ak-footer-callback-modal .akh-hero__form-head h2 { margin: 0; font-size: 24px; line-height: 1.15; color: var(--akh-graphite); font-weight: 850; }
.ak-footer-callback-modal .akh-hero__form-head p { margin: 9px 0 0; color: var(--akh-muted); font-size: 14px; line-height: 1.42; }
.ak-footer-callback-modal .akh-hero-form { display: grid; gap: 11px; }
.ak-footer-callback-modal .akh-hero-form__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ak-footer-callback-modal .akh-hero-field { display: grid; gap: 5px; margin: 0; }
.ak-footer-callback-modal .akh-hero-field span { color: #344054; font-size: 12px; font-weight: 750; line-height: 1.2; }
.ak-footer-callback-modal .akh-hero-field input,
.ak-footer-callback-modal .akh-hero-field textarea {
    width: 100%;
    border: 1px solid #e8ebef;
    border-radius: 13px;
    background: #fff;
    color: #202632;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.ak-footer-callback-modal .akh-hero-field input { min-height: 42px; padding: 9px 11px; }
.ak-footer-callback-modal .akh-hero-field textarea { min-height: 70px; resize: vertical; padding: 10px 11px; }
.ak-footer-callback-modal .akh-hero-field input:focus,
.ak-footer-callback-modal .akh-hero-field textarea:focus { border-color: rgba(255,90,31,.58); box-shadow: 0 0 0 4px rgba(255,90,31,.10); }
.ak-footer-callback-modal .akh-hero-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px; border-radius: 15px; background: #f2f4f7; }
.ak-footer-callback-modal .akh-hero-mode label { margin: 0; cursor: pointer; }
.ak-footer-callback-modal .akh-hero-mode input { position: absolute; opacity: 0; pointer-events: none; }
.ak-footer-callback-modal .akh-hero-mode span { display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 12px; color: #667085; font-size: 14px; font-weight: 850; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.ak-footer-callback-modal .akh-hero-mode label.is-active span { color: #fff; background: #202632; box-shadow: 0 10px 22px rgba(32,38,50,.18); }
.ak-footer-callback-modal .akh-hero-voice { display: grid; gap: 9px; padding: 12px; border: 1px solid rgba(255,90,31,.18); border-radius: 16px; background: rgba(255,90,31,.06); }
.ak-footer-callback-modal .akh-hero-voice__text b { display: block; color: #202632; font-size: 14px; line-height: 1.2; }
.ak-footer-callback-modal .akh-hero-voice__text small { display: block; margin-top: 3px; color: #667085; font-size: 12px; line-height: 1.35; }
.ak-footer-callback-modal .akh-hero-voice__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ak-footer-callback-modal .akh-voice-btn { min-height: 34px; padding: 8px 12px; border: 0; border-radius: 11px; background: #202632; color: #fff; font-size: 13px; font-weight: 850; cursor: pointer; }
.ak-footer-callback-modal .akh-voice-btn--stop { background: #ff5a1f; }
.ak-footer-callback-modal .akh-hero-voice audio { width: 100%; height: 36px; }
.ak-footer-callback-modal .akh-hero-voice__status { min-height: 16px; color: #667085; font-size: 12px; line-height: 1.35; }
.ak-footer-callback-modal .akh-hero-photo { margin-top: 10px; }
.ak-footer-callback-modal .akh-hero-photo__drop {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 90, 31, 0.30);
  border-radius: 14px;
  background: rgba(255, 90, 31, 0.055);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.ak-footer-callback-modal .akh-hero-photo__drop:hover { border-color: rgba(255, 90, 31, 0.75); background: rgba(255, 90, 31, 0.10); }
.ak-footer-callback-modal .akh-hero-photo__drop input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ak-footer-callback-modal .akh-hero-photo__icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 90, 31, .16); position: relative; }
.ak-footer-callback-modal .akh-hero-photo__icon:before { content: ''; position: absolute; left: 9px; top: 11px; width: 20px; height: 16px; border: 2px solid #ff7a3d; border-radius: 5px; }
.ak-footer-callback-modal .akh-hero-photo__icon:after { content: ''; position: absolute; left: 16px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: #ff7a3d; }
.ak-footer-callback-modal .akh-hero-photo__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ak-footer-callback-modal .akh-hero-photo__text b { font-size: 13px; line-height: 1.2; color: #202632; }
.ak-footer-callback-modal .akh-hero-photo__text small { font-size: 11px; line-height: 1.25; color: #667085; }
.ak-footer-callback-modal .akh-hero-photo__preview { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ak-footer-callback-modal .akh-hero-photo__preview[hidden] { display: none !important; }
.ak-footer-callback-modal .akh-hero-photo__preview img { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(232,235,239,.95); }
.ak-footer-callback-modal .akh-hero-photo__preview button { border: 0; border-radius: 999px; padding: 7px 11px; background: #f2f4f7; color: #344054; cursor: pointer; font-size: 12px; }
.ak-footer-callback-modal .akh-hero-photo__preview button:hover { background: rgba(255, 90, 31, .22); color: #202632; }
.ak-footer-callback-modal .akh-hero-consent { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #667085; font-size: 12px; line-height: 1.35; }
.ak-footer-callback-modal .akh-hero-consent input { margin-top: 2px; accent-color: var(--akh-orange); }
.ak-footer-callback-modal .akh-hero-consent a { color: #c83a0a; text-decoration: underline; }
.ak-footer-callback-modal .akh-hero-submit { min-height: 46px; margin-top: 1px; }
.ak-footer-callback-modal .akh-hero-form__message { min-height: 18px; font-size: 13px; line-height: 1.35; }
.ak-footer-callback-modal .akh-hero-form__message.is-success { color: #067647; }
.ak-footer-callback-modal .akh-hero-form__message.is-error { color: #b42318; }
.ak-footer-callback-modal .akh-hero-hp { position: absolute !important; left: -99999px !important; top: auto !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.ak-footer-callback-modal .akh-hero-form__message .akh-hero-success-call { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; padding: 9px 14px; border-radius: 999px; background: #ff5a1f; color: #fff !important; text-decoration: none; font-weight: 700; line-height: 1.1; }
@media (max-width: 575px) {
    .ak-footer-callback-modal { padding: 12px; align-items: flex-start; }
    .ak-footer-callback-modal__dialog { max-height: calc(100vh - 24px); margin-top: 8px; }
    .ak-footer-callback-modal .akh-hero-form__row--two { grid-template-columns: 1fr; }
    .ak-footer-callback-modal .akh-hero__form-card { padding: 18px; border-radius: 20px; }
}

/* Copied Hero success popup styles. */
.akh-success-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}
.akh-success-popup.is-visible { opacity: 1; visibility: visible; }
.akh-success-popup__backdrop { position: absolute; inset: 0; background: rgba(14, 20, 31, .58); backdrop-filter: blur(5px); }
.akh-success-popup__card { position: relative; width: min(460px, 100%); padding: 30px 28px 26px; border-radius: 26px; background: linear-gradient(135deg, #12b76a 0%, #079455 100%); color: #fff; text-align: center; box-shadow: 0 28px 80px rgba(7, 148, 85, .36), 0 18px 50px rgba(0, 0, 0, .20); transform: translateY(10px) scale(.98); transition: transform .18s ease; overflow: hidden; }
.akh-success-popup.is-visible .akh-success-popup__card { transform: translateY(0) scale(1); }
.akh-success-popup__card:before { content: ''; position: absolute; width: 230px; height: 230px; right: -90px; top: -110px; border-radius: 999px; background: rgba(255,255,255,.16); }
.akh-success-popup__card:after { content: ''; position: absolute; width: 160px; height: 160px; left: -70px; bottom: -90px; border-radius: 999px; background: rgba(255,255,255,.10); }
.akh-success-popup__x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.akh-success-popup__x:hover { background: rgba(255,255,255,.28); }
.akh-success-popup__icon { position: relative; z-index: 1; width: 72px; height: 72px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.96); color: #079455; font-size: 42px; font-weight: 900; box-shadow: 0 16px 35px rgba(0,0,0,.14); }
.akh-success-popup h3 { position: relative; z-index: 1; margin: 0; color: #fff; font-size: 28px; line-height: 1.16; font-weight: 900; }
.akh-success-popup p { position: relative; z-index: 1; margin: 10px auto 0; max-width: 360px; color: rgba(255,255,255,.92); font-size: 16px; line-height: 1.45; }
.akh-success-popup__actions { position: relative; z-index: 1; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.akh-success-popup__close,
.akh-success-popup__call { min-height: 42px; padding: 11px 17px; border-radius: 14px; border: 1px solid rgba(255,255,255,.48); font-weight: 850; cursor: pointer; text-decoration: none !important; }
.akh-success-popup__close { background: #fff; color: #067647; }
.akh-success-popup__call { background: rgba(255,255,255,.15); color: #fff !important; }
.akh-success-popup__call:hover,
.akh-success-popup__close:hover { transform: translateY(-1px); }
@media (max-width: 575px) {
  .akh-success-popup__card { padding: 26px 20px 22px; border-radius: 22px; }
  .akh-success-popup h3 { font-size: 24px; }
}


/* v1.0.29: hard containment for the Yandex badge under the request button. */
.ak-footer__brand-cta-stack,
.ak-footer__brand-badge--under,
.ak-footer__brand-badge--under .ak-footer__yandex-badge,
.ak-footer__brand-badge--under .ak-footer__yandex-code {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}
.ak-footer__brand-badge--under {
    display: block;
    width: min(230px, 100%);
    overflow: clip;
}
.ak-footer__brand-badge--under .ak-footer__yandex-code {
    display: block;
    width: 100%;
    overflow: clip;
}
.ak-footer__brand-badge--under .ak-footer__yandex-code iframe,
.ak-footer__brand-badge--under .ak-footer__yandex-code img,
.ak-footer__brand-badge--under .ak-footer__yandex-code svg,
.ak-footer__brand-badge--under .ak-footer__yandex-code > a,
.ak-footer__brand-badge--under .ak-footer__yandex-code > div {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
@supports not (overflow: clip) {
    .ak-footer__brand-badge--under,
    .ak-footer__brand-badge--under .ak-footer__yandex-code { overflow: hidden; }
}


/* v1.0.31: mobile callback modal scroll + clean Yandex badge under CTA.
   This block intentionally overrides older experimental badge/popup rules above. */
.ak-footer-callback-modal {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.ak-footer-callback-modal__dialog {
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

@media (max-width: 575px) {
    .ak-footer-callback-modal {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: max(10px, env(safe-area-inset-top)) 10px max(18px, env(safe-area-inset-bottom));
    }

    .ak-footer-callback-modal__dialog {
        width: 100%;
        max-height: none !important;
        min-height: 0;
        margin: 0 auto;
        overflow: visible !important;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .ak-footer-callback-modal .akh-hero__form-card {
        max-height: none !important;
        overflow: visible !important;
        padding: 17px 16px 18px;
        border-radius: 20px;
    }

    .ak-footer-callback-modal .akh-hero__form-head {
        padding-right: 38px;
    }

    .ak-footer-callback-modal .akh-hero__form-head h2 {
        font-size: 22px;
    }

    .ak-footer-callback-modal .akh-hero-field textarea {
        min-height: 74px;
        max-height: 120px;
    }
}

body.ak-footer-callback-open {
    touch-action: none;
}

body.ak-footer-callback-open .ak-footer-callback-modal {
    touch-action: pan-y;
}

/* Clean badge layout: no extra card/field under the Yandex badge, just the official badge itself. */
.ak-footer__brand-cta-stack {
    align-items: flex-start !important;
    gap: 12px !important;
}

.ak-footer__brand-badge--under {
    display: block !important;
    width: fit-content !important;
    max-width: min(100%, 260px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 0 !important;
    overflow: hidden !important;
    contain: layout paint;
}

.ak-footer__brand-badge--under .ak-footer__yandex-badge,
.ak-footer__brand-badge--under .ak-footer__yandex-code {
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

.ak-footer__brand-badge--under .ak-footer__yandex-title {
    display: none !important;
}

.ak-footer__brand-badge--under .ak-footer__yandex-code iframe,
.ak-footer__brand-badge--under .ak-footer__yandex-code img,
.ak-footer__brand-badge--under .ak-footer__yandex-code svg,
.ak-footer__brand-badge--under .ak-footer__yandex-code > a,
.ak-footer__brand-badge--under .ak-footer__yandex-code > div {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.ak-footer__brand-badge--under .ak-footer__yandex-code iframe {
    border: 0 !important;
}

@media (max-width: 575px) {
    .ak-footer__brand-badge--under {
        max-width: 100% !important;
    }
}


/* v1.0.32: ensure the close button stays visible on mobile.
   We reserve safe space above the card and keep the close control inside that zone. */
.ak-footer-callback-modal__dialog {
    position: relative;
}

@media (max-width: 575px) {
    .ak-footer-callback-modal__dialog {
        padding-top: calc(max(8px, env(safe-area-inset-top)) + 38px);
    }

    .ak-footer-callback-modal__close {
        top: calc(max(8px, env(safe-area-inset-top)) + 4px);
        right: 6px;
        z-index: 8;
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 8px 20px rgba(16, 24, 40, .14);
    }

    .ak-footer-callback-modal .akh-hero__form-card {
        margin-top: 0;
    }
}


/* v1.0.33: configurable radius for footer CTA buttons and Yandex badge. */
.ak-footer .akteam-btn,
.ak-footer .akteam-btn-route,
.ak-footer__brand-request-btn,
.ak-footer__route,
.ak-footer__btn--primary {
    border-radius: var(--ak-footer-cta-radius, 16px) !important;
}

.ak-footer__brand-request-btn,
.ak-footer .akteam-btn-route {
    overflow: hidden;
}

.ak-footer__brand-badge--under,
.ak-footer__brand-badge--under .ak-footer__yandex-badge,
.ak-footer__brand-badge--under .ak-footer__yandex-code,
.ak-footer__yandex-code {
    border-radius: var(--ak-footer-yandex-radius, 14px) !important;
}

.ak-footer__brand-badge--under .ak-footer__yandex-code,
.ak-footer__yandex-code {
    background: #fff !important;
}

.ak-footer__brand-badge--under .ak-footer__yandex-code iframe,
.ak-footer__brand-badge--under .ak-footer__yandex-code img,
.ak-footer__brand-badge--under .ak-footer__yandex-code svg,
.ak-footer__brand-badge--under .ak-footer__yandex-code > a,
.ak-footer__brand-badge--under .ak-footer__yandex-code > div,
.ak-footer__yandex-code iframe,
.ak-footer__yandex-code img,
.ak-footer__yandex-code svg,
.ak-footer__yandex-code > a,
.ak-footer__yandex-code > div {
    border-radius: var(--ak-footer-yandex-radius, 14px) !important;
}


/* v1.0.35: clean Yandex badge logic.
   Admin inserts official Yandex code; the module renders it directly and only clips corners.
   No visual card, no inner title, no extra background/padding under the badge. */
.ak-footer__brand-cta-stack > .ak-footer__yandex-badge,
.ak-footer__yandex-badge {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 0 !important;
    border-radius: var(--ak-footer-yandex-radius, 14px) !important;
    overflow: hidden !important;
    clip-path: inset(0 round var(--ak-footer-yandex-radius, 14px));
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    contain: paint;
}

.ak-footer__yandex-badge > iframe,
.ak-footer__yandex-badge > img,
.ak-footer__yandex-badge > svg,
.ak-footer__yandex-badge > a,
.ak-footer__yandex-badge > div,
.ak-footer__yandex-badge iframe,
.ak-footer__yandex-badge img,
.ak-footer__yandex-badge svg {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: inherit !important;
    overflow: hidden !important;
}

.ak-footer__yandex-badge iframe {
    border: 0 !important;
}

.ak-footer__brand-cta-stack {
    gap: 14px !important;
}


/* v1.0.36: Yandex badge radius setting fix.
   The admin value is now passed to --ak-footer-yandex-radius in the footer tag;
   these final rules override older hardcoded badge radius rules. */
.ak-footer .ak-footer__yandex-badge {
    border-radius: var(--ak-footer-yandex-radius, 14px) !important;
    overflow: hidden !important;
    clip-path: inset(0 round var(--ak-footer-yandex-radius, 14px)) !important;
}
.ak-footer .ak-footer__yandex-badge iframe,
.ak-footer .ak-footer__yandex-badge img,
.ak-footer .ak-footer__yandex-badge svg,
.ak-footer .ak-footer__yandex-badge a,
.ak-footer .ak-footer__yandex-badge div {
    border-radius: var(--ak-footer-yandex-radius, 14px) !important;
}


/* v1.0.38 — Footer buttons styled like Hero Solid CTA orange button.
   Applies to footer "Оставить заявку" and "Проложить маршрут".
   Strict, clear, premium: deep orange, readable text, no cartoon glow. */
.ak-footer .ak-footer-btn,
.ak-footer .akf-btn,
.ak-footer .ak-footer__btn,
.ak-footer .ak-footer-button,
.ak-footer a[class*="route"],
.ak-footer button[class*="route"],
.ak-footer a[class*="callback"],
.ak-footer button[class*="callback"],
.ak-footer a[class*="request"],
.ak-footer button[class*="request"],
.mod-agentkeys-footer .ak-footer-btn,
.mod-agentkeys-footer .akf-btn,
.mod-agentkeys-footer .ak-footer__btn,
.mod-agentkeys-footer .ak-footer-button,
.mod-agentkeys-footer a[class*="route"],
.mod-agentkeys-footer button[class*="route"],
.mod-agentkeys-footer a[class*="callback"],
.mod-agentkeys-footer button[class*="callback"],
.mod-agentkeys-footer a[class*="request"],
.mod-agentkeys-footer button[class*="request"] {
    min-height: 52px !important;
    padding: 13px 18px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(198,75,28,.62) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 42%),
        #b94119 !important;
    color: #fff !important;
    box-shadow:
        0 15px 30px rgba(0,0,0,.21),
        inset 0 1px 0 rgba(255,255,255,.13) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 1px rgba(0,0,0,.22) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        filter .18s ease !important;
}

/* Do not let inner SVG/icon spacing make the label look off-center. */
.ak-footer .ak-footer-btn svg,
.ak-footer .akf-btn svg,
.ak-footer .ak-footer__btn svg,
.ak-footer .ak-footer-button svg,
.ak-footer a[class*="route"] svg,
.ak-footer button[class*="route"] svg,
.ak-footer a[class*="callback"] svg,
.ak-footer button[class*="callback"] svg,
.ak-footer a[class*="request"] svg,
.ak-footer button[class*="request"] svg,
.mod-agentkeys-footer .ak-footer-btn svg,
.mod-agentkeys-footer .akf-btn svg,
.mod-agentkeys-footer .ak-footer__btn svg,
.mod-agentkeys-footer .ak-footer-button svg,
.mod-agentkeys-footer a[class*="route"] svg,
.mod-agentkeys-footer button[class*="route"] svg,
.mod-agentkeys-footer a[class*="callback"] svg,
.mod-agentkeys-footer button[class*="callback"] svg,
.mod-agentkeys-footer a[class*="request"] svg,
.mod-agentkeys-footer button[class*="request"] svg {
    margin-right: 0 !important;
}

.ak-footer .ak-footer-btn::before,
.ak-footer .ak-footer-btn::after,
.ak-footer .akf-btn::before,
.ak-footer .akf-btn::after,
.ak-footer .ak-footer__btn::before,
.ak-footer .ak-footer__btn::after,
.ak-footer .ak-footer-button::before,
.ak-footer .ak-footer-button::after,
.ak-footer a[class*="route"]::before,
.ak-footer a[class*="route"]::after,
.ak-footer button[class*="route"]::before,
.ak-footer button[class*="route"]::after,
.ak-footer a[class*="callback"]::before,
.ak-footer a[class*="callback"]::after,
.ak-footer button[class*="callback"]::before,
.ak-footer button[class*="callback"]::after,
.ak-footer a[class*="request"]::before,
.ak-footer a[class*="request"]::after,
.ak-footer button[class*="request"]::before,
.ak-footer button[class*="request"]::after,
.mod-agentkeys-footer .ak-footer-btn::before,
.mod-agentkeys-footer .ak-footer-btn::after,
.mod-agentkeys-footer .akf-btn::before,
.mod-agentkeys-footer .akf-btn::after,
.mod-agentkeys-footer .ak-footer__btn::before,
.mod-agentkeys-footer .ak-footer__btn::after,
.mod-agentkeys-footer .ak-footer-button::before,
.mod-agentkeys-footer .ak-footer-button::after,
.mod-agentkeys-footer a[class*="route"]::before,
.mod-agentkeys-footer a[class*="route"]::after,
.mod-agentkeys-footer button[class*="route"]::before,
.mod-agentkeys-footer button[class*="route"]::after,
.mod-agentkeys-footer a[class*="callback"]::before,
.mod-agentkeys-footer a[class*="callback"]::after,
.mod-agentkeys-footer button[class*="callback"]::before,
.mod-agentkeys-footer button[class*="callback"]::after,
.mod-agentkeys-footer a[class*="request"]::before,
.mod-agentkeys-footer a[class*="request"]::after,
.mod-agentkeys-footer button[class*="request"]::before,
.mod-agentkeys-footer button[class*="request"]::after {
    content: none !important;
    display: none !important;
}

.ak-footer .ak-footer-btn:hover,
.ak-footer .akf-btn:hover,
.ak-footer .ak-footer__btn:hover,
.ak-footer .ak-footer-button:hover,
.ak-footer a[class*="route"]:hover,
.ak-footer button[class*="route"]:hover,
.ak-footer a[class*="callback"]:hover,
.ak-footer button[class*="callback"]:hover,
.ak-footer a[class*="request"]:hover,
.ak-footer button[class*="request"]:hover,
.mod-agentkeys-footer .ak-footer-btn:hover,
.mod-agentkeys-footer .akf-btn:hover,
.mod-agentkeys-footer .ak-footer__btn:hover,
.mod-agentkeys-footer .ak-footer-button:hover,
.mod-agentkeys-footer a[class*="route"]:hover,
.mod-agentkeys-footer button[class*="route"]:hover,
.mod-agentkeys-footer a[class*="callback"]:hover,
.mod-agentkeys-footer button[class*="callback"]:hover,
.mod-agentkeys-footer a[class*="request"]:hover,
.mod-agentkeys-footer button[class*="request"]:hover {
    color: #fff !important;
    transform: translateY(-2px) !important;
    border-color: rgba(231,91,34,.72) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 42%),
        #c94b1d !important;
    filter: brightness(1.055) !important;
    box-shadow:
        0 19px 38px rgba(0,0,0,.27),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}

@media (max-width: 767px) {
    .ak-footer .ak-footer-btn,
    .ak-footer .akf-btn,
    .ak-footer .ak-footer__btn,
    .ak-footer .ak-footer-button,
    .ak-footer a[class*="route"],
    .ak-footer button[class*="route"],
    .ak-footer a[class*="callback"],
    .ak-footer button[class*="callback"],
    .ak-footer a[class*="request"],
    .ak-footer button[class*="request"],
    .mod-agentkeys-footer .ak-footer-btn,
    .mod-agentkeys-footer .akf-btn,
    .mod-agentkeys-footer .ak-footer__btn,
    .mod-agentkeys-footer .ak-footer-button,
    .mod-agentkeys-footer a[class*="route"],
    .mod-agentkeys-footer button[class*="route"],
    .mod-agentkeys-footer a[class*="callback"],
    .mod-agentkeys-footer button[class*="callback"],
    .mod-agentkeys-footer a[class*="request"],
    .mod-agentkeys-footer button[class*="request"] {
        width: 100% !important;
        min-height: 50px !important;
        font-size: 17px !important;
    }
}


/* v1.0.41 — FOOTER MODALS HARD REWRITE
   Final modal layer. This block targets ONLY real modal classes.
   It also neutralizes old orange button styles inside modal backdrops/close buttons.
*/

/* body locks */
html.ak-footer-any-modal-open,
body.ak-footer-any-modal-open {
    overflow: hidden !important;
}

/* ========================
   CALLBACK MODAL
======================== */
.ak-footer-callback-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483600 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 24px !important;
    margin: 0 !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.ak-footer-callback-modal.is-open {
    display: flex !important;
}

.ak-footer-callback-modal__backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(8, 12, 18, .72) !important;
    background-color: rgba(8, 12, 18, .72) !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.ak-footer-callback-modal__dialog {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: min(560px, calc(100vw - 32px)) !important;
    max-width: min(560px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 48px) !important;
    max-height: calc(100dvh - 48px) !important;
    margin: auto !important;
    padding: 0 !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
}

.ak-footer-callback-modal__close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 20 !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #202632 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .18) !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.ak-footer-callback-modal .akh-hero__form-card {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ========================
   ROUTE MODAL
======================== */
.akteam-route-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483500 !important;
    display: none !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 18px 14px max(18px, env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    background-color: transparent !important;
    box-sizing: border-box !important;
}

.akteam-route-modal.is-open {
    display: flex !important;
}

/* Critical: backdrop is a button, so kill every old button/route style here */
.akteam-route-modal__backdrop,
.akteam-route-modal button.akteam-route-modal__backdrop,
.akteam-route-modal .akteam-route-modal__backdrop.akteam-btn,
.akteam-route-modal .akteam-route-modal__backdrop.akteam-btn-route {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(8, 10, 14, .74) !important;
    background-color: rgba(8, 10, 14, .74) !important;
    background-image: none !important;
    color: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* Critical: dialog is the only white card */
.akteam-route-modal__dialog {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: min(92vw, 420px) !important;
    max-width: min(92vw, 420px) !important;
    max-height: min(78vh, 620px) !important;
    max-height: min(78dvh, 620px) !important;
    margin: 0 auto !important;
    padding: 42px 22px 24px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #202636 !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .42) !important;
    overflow: auto !important;
    box-sizing: border-box !important;
    transform: none !important;
    filter: none !important;
}

/* Critical: close is a small button, not route CTA */
.akteam-route-modal__close,
.akteam-route-modal button.akteam-route-modal__close,
.akteam-route-modal .akteam-route-modal__close.akteam-btn,
.akteam-route-modal .akteam-route-modal__close.akteam-btn-route {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 82, 32, .22) !important;
    background: #fff4ef !important;
    background-color: #fff4ef !important;
    background-image: none !important;
    color: #c53a16 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    text-align: center !important;
    box-shadow: 0 8px 24px rgba(197, 58, 22, .18) !important;
    text-shadow: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.akteam-route-modal__title {
    margin: 0 46px 8px 0 !important;
    color: #1f2634 !important;
    font-size: 22px !important;
    line-height: 1.16 !important;
    font-weight: 900 !important;
}

.akteam-route-modal__text {
    color: #667085 !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
    margin: 0 0 18px !important;
}

.akteam-route-modal__actions {
    display: grid !important;
    gap: 12px !important;
    margin: 0 !important;
}

.akteam-route-modal__actions a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255, 82, 32, .28) !important;
    background: #fff7f2 !important;
    background-color: #fff7f2 !important;
    background-image: none !important;
    color: #c43a17 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
    box-sizing: border-box !important;
}

.akteam-route-modal__actions a:hover,
.akteam-route-modal__actions a:focus {
    background: #fff0e8 !important;
    color: #a92f12 !important;
    border-color: rgba(255, 82, 32, .40) !important;
    outline: none !important;
}

/* desktop: route chooser must not appear; desktop route button works as normal link */
@media (min-width: 769px) {
    .akteam-route-modal.is-open {
        display: none !important;
    }
}

/* mobile callback scroll safety */
@media (max-width: 767.98px) {
    .ak-footer-callback-modal {
        align-items: flex-start !important;
        padding: max(12px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom)) !important;
    }

    .ak-footer-callback-modal__dialog {
        width: min(100%, 430px) !important;
        max-width: min(100%, 430px) !important;
        max-height: none !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }

    .ak-footer-callback-modal .akh-hero__form-card {
        padding: 18px 16px 18px !important;
        border-radius: 22px !important;
    }

    .ak-footer-callback-modal .akh-hero__form-head {
        padding-right: 44px !important;
    }
}


/* v1.0.42 — CALLBACK DESKTOP VISIBLE FIX
   The route modal already works. This block only hardens the footer request popup.
   It supports both .is-open and .ak-footer-callback-open states and uses inline-safe fixed positioning.
*/
.ak-footer-callback-modal.ak-footer-callback-open,
.ak-footer-callback-modal.is-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 24px !important;
    margin: 0 !important;
    overflow: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.ak-footer-callback-modal.ak-footer-callback-open .ak-footer-callback-modal__backdrop,
.ak-footer-callback-modal.is-open .ak-footer-callback-modal__backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(8, 12, 18, .72) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.ak-footer-callback-modal.ak-footer-callback-open .ak-footer-callback-modal__dialog,
.ak-footer-callback-modal.is-open .ak-footer-callback-modal__dialog {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: min(560px, calc(100vw - 32px)) !important;
    max-width: min(560px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 48px) !important;
    max-height: calc(100dvh - 48px) !important;
    margin: auto !important;
    padding: 0 !important;
    overflow: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

.ak-footer-callback-modal.ak-footer-callback-open .akh-hero__form-card,
.ak-footer-callback-modal.is-open .akh-hero__form-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

@media (min-width: 768px) {
    .ak-footer-callback-modal.ak-footer-callback-open,
    .ak-footer-callback-modal.is-open {
        align-items: center !important;
        justify-content: center !important;
    }
}


/* v1.0.43 — Yandex.Metrika informer near Yandex badge */
.ak-footer__metrika-informer {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 88px !important;
    height: 31px !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: .82 !important;
    transition: opacity .16s ease, transform .16s ease !important;
}

.ak-footer__metrika-informer:hover {
    opacity: 1 !important;
    transform: translateY(-1px) !important;
}

.ak-footer__metrika-informer img {
    display: block !important;
    width: 88px !important;
    height: 31px !important;
    border: 0 !important;
}
