#footer > *:not(.tzar-footer-custom) {
    display: none !important;
}

.tzar-footer-custom {
    background: #1d3b22;
    color: rgba(255, 255, 255, .82);
    padding: 46px 0 0;
    position: relative;
    overflow: hidden;
}

.tzar-footer-custom:before,
.tzar-footer-custom:after {
    content: "";
    position: absolute;
    bottom: 18px;
    width: 210px;
    height: 120px;
    pointer-events: none;
    opacity: .12;
    background: radial-gradient(ellipse at bottom, transparent 35%, #d7a84c 36%, transparent 37%),
    radial-gradient(ellipse at bottom, transparent 48%, #d7a84c 49%, transparent 50%);
}

.tzar-footer-custom:before {
    left: -58px;
}

.tzar-footer-custom:after {
    right: -58px;
    transform: scaleX(-1);
}

.tzar-footer-custom a {
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
}

.tzar-footer-custom a:hover {
    color: #d7a84c;
}

.tzar-footer-custom a.tzar-footer-custom__title,
.tzar-footer-custom a.tzar-footer-custom__title:visited,
.tzar-footer-custom a.tzar-footer-custom__title:hover {
    color: #d7a84c !important;
}

.tzar-footer-custom__inner {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.tzar-footer-custom__grid {
    display: grid;
    grid-template-columns: minmax(210px, 1.4fr) repeat(3, minmax(140px, .9fr)) minmax(190px, 1.05fr);
    gap: 0;
    align-items: flex-start;
}

.tzar-footer-custom__brand,
.tzar-footer-custom__column {
    min-width: 0;
    padding: 0 28px;
    min-height: 214px;
}

.tzar-footer-custom__brand {
    padding-left: 0;
}

.tzar-footer-custom__column {
    border-left: 1px solid rgba(215, 168, 76, .22);
}

.tzar-footer-custom__logo {
    display: inline-flex;
    max-width: 178px;
}

.tzar-footer-custom__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.tzar-footer-custom__brand-text {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.65;
    margin-top: 24px;
    max-width: 235px;
}

.tzar-footer-custom__decor {
    background: linear-gradient(90deg, #d7a84c, transparent 38%, #d7a84c 50%, transparent 62%, #d7a84c);
    height: 1px;
    margin: 22px 0 26px;
    max-width: 178px;
    opacity: .75;
    position: relative;
}

.tzar-footer-custom__decor:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42px;
    height: 12px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #d7a84c 0 2px, transparent 3px);
    background-size: 10px 10px;
}

.tzar-footer-custom__social {
    display: block;
    gap: 8px;
    margin-top: 0;
    overflow: hidden;
    width: 145px;
}

.tzar-footer-custom__social .social-icons,
.tzar-footer-custom__social .social {
    display: block;
    margin: 0;
    padding: 0;
    max-width: 100%;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.tzar-footer-custom__social div,
.tzar-footer-custom__social ul,
.tzar-footer-custom__social li {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.tzar-footer-custom__social ul.social-icons,
.tzar-footer-custom__social .social-icons ul {
    display: grid;
    grid-template-columns: repeat(3, 43px);
    gap: 8px;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
}

.tzar-footer-custom__social .social-icons li {
    flex: 0 0 auto;
    list-style: none;
    margin: 0;
}

.tzar-footer-custom__social .social-icons li a,
.tzar-footer-custom__social .social li a,
.tzar-footer-custom__social a {
    align-items: center;
    background-color: #333 !important;
    background-image: url("/bitrix/templates/aspro_max/images/svg/social.svg?v=1") !important;
    background-repeat: no-repeat !important;
    border: 0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #fff !important;
    display: flex;
    height: 43px !important;
    justify-content: center;
    margin: 0 !important;
    opacity: 1 !important;
    padding: 0 !important;
    width: 43px !important;
}

.tzar-footer-custom__social .social-icons li a:hover,
.tzar-footer-custom__social .social li a:hover,
.tzar-footer-custom__social a:hover {
    color: #fff !important;
    opacity: .9 !important;
}

.tzar-footer-custom__social .social-icons li.vk a {
    background-color: #2f80ed !important;
    background-position: 0 -188px !important;
}

.tzar-footer-custom__social .social-icons li.telegram a {
    background-color: #2fa7df !important;
    background-position: -329px -329px !important;
}

.tzar-footer-custom__social .social-icons li.odn a {
    background-color: #ff8a00 !important;
    background-position: -47px -188px !important;
}

.tzar-footer-custom__social .social-icons li.whats a {
    background-color: #63bd53 !important;
    background-position: -329px -235px !important;
}

.tzar-footer-custom__social .social-icons li.viber a {
    background-color: #333 !important;
    background-position: -329px -188px !important;
}

.tzar-footer-custom__social .social-icons li.instagram a {
    background-color: #333 !important;
    background-position: -141px -329px !important;
}

.tzar-footer-custom__social .social-icons li.ytb a {
    background-color: #333 !important;
    background-position: -94px -329px !important;
}

.tzar-footer-custom__social .social-icons li:nth-child(1) a {
    background-color: #2f80ed !important;
}

.tzar-footer-custom__social .social-icons li:nth-child(2) a {
    background-color: #2fa7df !important;
}

.tzar-footer-custom__social .social-icons li:nth-child(3) a {
    background-color: #ff8a00 !important;
}

.tzar-footer-custom__social .social-icons li:nth-child(5) a {
    background-color: #63bd53 !important;
}

.tzar-footer-custom__social .social-icons li:nth-child(6) a {
    background-color: #333 !important;
}

.tzar-footer-custom__social .social-icons li.max a,
.tzar-footer-custom__social .social-icons li[class*="max"] a {
    background-color: #6b63ff !important;
    background-image: none !important;
}

.tzar-footer-custom__social .social-icons li.max a,
.tzar-footer-custom__social .social-icons li.max a:hover,
.tzar-footer-custom__social .social-icons li[class*="max"] a,
.tzar-footer-custom__social .social-icons li[class*="max"] a:hover,
.tzar-footer-custom__social li.max a,
.tzar-footer-custom__social li.max a:hover,
.tzar-footer-custom__social li[class*="max"] a,
.tzar-footer-custom__social li[class*="max"] a:hover {
    position: relative;
    background-color: #6b63ff !important;
    background-image: none !important;
}

.tzar-footer-custom__social li.max a:before {
    content: "MAX";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
}

.tzar-footer-custom__social li.max a img,
.tzar-footer-custom__social li.max a svg,
.tzar-footer-custom__social li.max a:hover img,
.tzar-footer-custom__social li.max a:hover svg,
.tzar-footer-custom__social li[class*="max"] a img,
.tzar-footer-custom__social li[class*="max"] a svg,
.tzar-footer-custom__social li[class*="max"] a:hover img,
.tzar-footer-custom__social li[class*="max"] a:hover svg {
    filter: brightness(0) invert(1) !important;
    opacity: 0;
}

.tzar-footer-custom__social > a {
    display: grid;
    place-items: center;
    border: 1px solid #d7a84c;
    border-radius: 50%;
    color: #d7a84c;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.tzar-footer-custom__social img,
.tzar-footer-custom__social svg {
    display: block;
    max-height: 18px;
    max-width: 18px;
    transform: none !important;
    transition: none !important;
}

.tzar-footer-custom__social svg path,
.tzar-footer-custom__social svg use {
    fill: currentColor !important;
}

.tzar-footer-custom__social img {
    filter: brightness(0) invert(1);
}

.tzar-footer-custom__social a:hover img {
    filter: brightness(0) invert(1);
}

.tzar-footer-custom__title,
.tzar-footer-custom__pay-title {
    color: #d7a84c;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 22px;
}

.tzar-footer-custom__title {
    display: inline-block;
}

.tzar-footer-custom__title:after {
    content: "";
    background: #d7a84c;
    display: block;
    height: 1px;
    margin-top: 12px;
    width: 20px;
}

.tzar-footer-custom__menu {
    display: grid;
    gap: 11px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tzar-footer-custom__menu li {
    margin: 0;
    padding: 0;
}

.tzar-footer-custom__menu li:before {
    display: none;
}

.tzar-footer-custom__menu a {
    color: rgba(255, 255, 255, .84);
    display: inline-block;
    font-size: 13px;
    line-height: 1.35;
}

.tzar-footer-custom__menu--documents {
    gap: 25px;
}

.tzar-footer-custom__menu--documents a {
    display: grid;
    grid-template-columns: 29px max-content;
    gap: 10px;
    align-items: center;
    justify-content: start;
}

.tzar-footer-custom__menu--documents a:before {
    content: "";
    border: 1px solid #d7a84c;
    border-radius: 4px;
    display: block;
    width: 29px;
    height: 29px;
    background: linear-gradient(#d7a84c, #d7a84c) 8px 9px / 13px 1px no-repeat,
    linear-gradient(#d7a84c, #d7a84c) 8px 14px / 13px 1px no-repeat,
    linear-gradient(#d7a84c, #d7a84c) 8px 19px / 9px 1px no-repeat;
}

.tzar-footer-custom__bottom {
    border-top: 1px solid rgba(215, 168, 76, .72);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-top: 44px;
    min-height: 66px;
    padding: 13px 0;
}

.tzar-footer-custom__copyright {
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    line-height: 1.55;
    max-width: 760px;
}

.tzar-footer-custom__payments {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.tzar-footer-custom__payments .tzar-footer-custom__pay-title {
    margin: 0;
    font-size: 13px;
    color: #d7a84c;
}

.tzar-footer-custom__pays {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
}

.tzar-footer-custom__pays i {
    background-color: #fff;
    border-radius: 4px;
    margin: 0;
}

@media (max-width: 1199px) {
    .tzar-footer-custom__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 34px;
    }

    .tzar-footer-custom__brand,
    .tzar-footer-custom__column {
        padding: 0 22px;
    }

    .tzar-footer-custom__brand {
        padding-left: 0;
    }

    .tzar-footer-custom__column:nth-child(4) {
        border-left: 0;
        padding-left: 0;
    }

    .tzar-footer-custom__bottom {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 991px) {
    .tzar-footer-custom__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tzar-footer-custom__column:nth-child(3),
    .tzar-footer-custom__column:nth-child(5) {
        border-left: 0;
        padding-left: 0;
    }

    .tzar-footer-custom__column:nth-child(4) {
        border-left: 1px solid rgba(215, 168, 76, .22);
        padding-left: 22px;
    }

    .tzar-footer-custom__copyright {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .tzar-footer-custom {
        padding-top: 34px;
    }

    .tzar-footer-custom__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tzar-footer-custom__brand,
    .tzar-footer-custom__column {
        border-left: 0;
        min-height: 0;
        padding: 0;
    }

    .tzar-footer-custom__brand {
        align-items: center;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .tzar-footer-custom__column:nth-child(4) {
        border-left: 0;
        padding-left: 0;
    }

    .tzar-footer-custom__logo {
        max-width: 168px;
    }

    .tzar-footer-custom__brand-text,
    .tzar-footer-custom__decor,
    .tzar-footer-custom__social {
        margin-left: auto;
        margin-right: auto;
    }

    .tzar-footer-custom__decor {
        width: 100%;
    }

    .tzar-footer-custom__menu {
        gap: 9px;
        display: none;
    }

    .tzar-footer-custom a {
        margin-bottom: 0px;
    }

    .tzar-footer-custom__menu--documents {
        gap: 16px;
    }

    .tzar-footer-custom__bottom {
        justify-items: center;
        margin-top: 34px;
        text-align: center;
    }

    .tzar-footer-custom__payments {
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }

    .tzar-footer-custom__payments .tzar-footer-custom__pay-title,
    .tzar-footer-custom__pays {
        justify-content: center;
        text-align: center;
    }

    .tzar-footer-custom__title:after {
        display: none;
    }
}

.tzar-promo-popup[hidden] {
    display: none !important;
}

.tzar-promo-popup {
    align-items: center;
    box-sizing: border-box;
    display: flex !important;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 10050;
}

.tzar-promo-popup__backdrop {
    background: rgba(2, 16, 10, .78);
    inset: 0;
    position: absolute;
    z-index: 0;
}

.tzar-promo-popup__dialog {
    background: #fbf2e6 url("/images/popup-delivery-bg.jpg") center / cover no-repeat;
    border: 1px solid rgba(203, 154, 69, .95);
    border-radius: 20px;
    box-shadow: 0 26px 72px rgba(0, 0, 0, .4);
    box-sizing: border-box;
    color: #0f301f;
    min-height: 505px;
    max-height: calc(100vh - 36px);
    max-width: min(940px, calc(100vw - 36px));
    overflow: hidden;
    position: relative;
    width: min(940px, calc(100vw - 36px));
    z-index: 1;
}

.tzar-promo-popup__close {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border: 0;
    border-radius: 50%;
    color: #17281c;
    cursor: pointer;
    display: flex;
    font-family: Arial, sans-serif;
    font-size: 31px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 17px;
    top: 17px;
    transition: transform .22s ease, background-color .22s ease, color .22s ease;
    width: 44px;
    z-index: 3;
}

.tzar-promo-popup__close:hover {
    background: #fff;
    color: #063d2d;
    transform: rotate(90deg) scale(1.04);
}

.tzar-promo-popup__content {
    box-sizing: border-box;
    min-height: 505px;
    padding: 52px 36px 42px 50px;
    position: relative;
    width: 50%;
    z-index: 2;
}

.tzar-promo-popup__badge {
    align-items: center;
    background: #063d2d;
    border: 1px solid rgba(210, 161, 70, .7);
    border-radius: 999px;
    box-shadow: 0 5px 12px rgba(6, 61, 45, .22);
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 11px;
    line-height: 1;
    margin: 0 0 16px 0;
    padding: 12px 22px 13px;
    white-space: nowrap;
}

.tzar-promo-popup__badge span {
    border: 2px solid #d3ac5a;
    border-radius: 2px;
    display: inline-block;
    height: 11px;
    position: relative;
    width: 17px;
}

.tzar-promo-popup__badge span:before {
    background: #d3ac5a;
    content: "";
    height: 2px;
    left: 3px;
    position: absolute;
    top: 3px;
    width: 12px;
}

.tzar-promo-popup__badge span:after {
    border: 2px solid #d3ac5a;
    border-left: 0;
    border-top: 0;
    content: "";
    height: 6px;
    position: absolute;
    right: -7px;
    top: 4px;
    transform: skewX(-18deg);
    width: 6px;
}

.tzar-promo-popup__title {
    color: #0b3324;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 44px;
    font-weight: 400;
    line-height: 1.03;
    margin: 0;
    max-width: 430px;
    text-align: left;
}

.tzar-promo-popup__divider {
    height: 20px;
    margin: 11px 0 17px;
    max-width: 390px;
    position: relative;
}

.tzar-promo-popup__divider:before,
.tzar-promo-popup__divider:after {
    background: rgba(196, 149, 67, .5);
    content: "";
    height: 1px;
    position: absolute;
    top: 50%;
    width: calc(50% - 22px);
}

.tzar-promo-popup__divider:before {
    left: 0;
}

.tzar-promo-popup__divider:after {
    right: 0;
}

.tzar-promo-popup__divider {
    background: radial-gradient(circle at center, #c99742 0 3px, transparent 4px);
}

.tzar-promo-popup__list {
    color: #111;
    font-size: 15px;
    line-height: 1.36;
    list-style: none;
    margin: 0 0 17px;
    padding: 0;
}

.tzar-promo-popup__list li {
    margin: 0 0 11px;
    padding-left: 10px;
    position: relative;
}

.tzar-promo-popup__list li:before {
    background: #073b2b;
    border-radius: 50%;
    content: "" !important;
    height: 6px;
    left: 15px;
    position: absolute;
    top: .6em;
    width: 6px;
}

.tzar-promo-popup__note {
    align-items: center;
    color: #6b5840;
    display: grid;
    font-size: 12px;
    grid-template-columns: 36px 1fr;
    line-height: 1.35;
    margin: 5px 0 21px;
}

.tzar-promo-popup__note-icon {
    color: #c59a43;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.tzar-promo-popup__note-icon svg {
    display: block;
    height: 100%;
    width: 100%;
}

.tzar-promo-popup__note p {
    margin: 0;
}

.tzar-promo-popup__actions {
    display: grid;
    gap: 16px;
    grid-template-columns: 1.5fr 1fr;
}

.tzar-promo-popup__primary,
.tzar-promo-popup__secondary {
    align-items: center;
    border-radius: 9px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 600;
    justify-content: center;
    min-height: 55px;
    overflow: hidden;
    padding: 0 20px;
    position: relative;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}

.tzar-promo-popup__primary {
    background: #023c2b;
    border: 1px solid #023c2b;
    box-shadow: 0 8px 18px rgba(2, 60, 43, .22);
    color: #fff !important;
}

.tzar-promo-popup__primary:before {
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .28) 45%, transparent 70%);
    content: "";
    height: 120%;
    left: -75%;
    position: absolute;
    top: -10%;
    transform: skewX(-20deg);
    pointer-events: none;
    width: 55%;
}

.tzar-promo-popup__primary:hover {
    background: #064f39;
    box-shadow: 0 13px 25px rgba(2, 60, 43, .3);
    color: #fff !important;
    transform: translateY(-2px);
}

.tzar-promo-popup__primary:hover:before {
    animation: tzarPromoButtonShine .8s ease;
}

.tzar-promo-popup__secondary {
    background: rgba(255, 255, 255, .25);
    border: 1px solid rgba(190, 151, 82, .55);
    color: #102d20;
}

.tzar-promo-popup__secondary:hover {
    background: rgba(255, 255, 255, .58);
    border-color: rgba(190, 151, 82, .86);
    color: #063d2d;
    transform: translateY(-2px);
}

@keyframes tzarPromoButtonShine {
    from {
        left: -75%;
    }

    to {
        left: 130%;
    }
}

body.tzar-promo-popup-open {
    overflow: hidden;
}

@media (max-width: 1023px) {
    .tzar-promo-popup {
        padding: 12px;
    }

    .tzar-promo-popup__dialog {
        background-size: cover;
        max-width: min(560px, calc(100vw - 24px));
        overflow-y: auto;
        width: min(560px, calc(100vw - 24px));
        background-position: -450px;
    }

    .tzar-promo-popup__dialog:before {
        /*background: linear-gradient(180deg, rgba(255, 244, 231, 0), #fff4e8 82%);*/
        content: "";
        display: block;
        height: 270px;
    }

    .tzar-promo-popup__content {
        /*background: #fff4e8;*/
        min-height: 0;
        padding: 0 34px 32px;
        width: 100%;
    }

    .tzar-promo-popup__badge {
        margin: 0 0 24px;
    }

    .tzar-promo-popup__title {
        font-size: 40px;
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .tzar-promo-popup {
        align-items: flex-start;
        overflow-y: auto;
        padding: 8px;
    }

    .tzar-promo-popup__dialog {
        background-image:
            linear-gradient(90deg, #fbf2e6 0%, rgba(251, 242, 230, .98) 34%, rgba(251, 242, 230, .82) 54%, rgba(251, 242, 230, 0) 78%),
            url("/images/popup-delivery-bg.jpg");
        background-position:
            left top,
            -500px center;
        background-repeat: no-repeat;
        background-size:
            100% 100%,
            auto 100%;
        border-radius: 16px;
        border: none;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
        width: calc(100vw - 16px);
    }

    .tzar-promo-popup__dialog:before {
        height: clamp(152px, 38vw, 218px);
    }

    .tzar-promo-popup__content {
        margin-top: -30px !important;
    }

    .tzar-promo-popup__close {
        float: right;
        height: 38px;
        margin: 10px 10px -48px 0;
        position: absolute;
        right: 0px;
        top: 0px;
        width: 38px;
    }

    .tzar-promo-popup__content {
        clear: both;
        padding: 0 18px 18px;
    }

    .tzar-promo-popup__badge {
        font-size: 12px;
        margin-bottom: 12px;
        padding: 9px 14px 10px;
    }

    .tzar-promo-popup__title {
        font-size: 24px;
        line-height: 1.05;
        max-width: 250px;
    }

    .tzar-promo-popup__divider {
        height: 14px;
        margin: 8px 0 10px;
    }

    .tzar-promo-popup__list {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 12px;
        max-width: 250px;
    }

    .tzar-promo-popup__list li {
        margin-bottom: 7px;
        padding-left: 16px;
    }

    .tzar-promo-popup__note {
        font-size: 11px;
        grid-template-columns: 28px 1fr;
        margin: 0 0 13px;
        max-width: 225px;
    }

    .tzar-promo-popup__note-icon {
        height: 22px;
        width: 22px;
    }

    .tzar-promo-popup__actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tzar-promo-popup__primary,
    .tzar-promo-popup__secondary {
        font-size: 13px;
        min-height: 45px;
        padding: 0 14px;
        width: 100%;
    }
}
