/* Изолированная компоновка по референсу; фон темы не наследуется. */
#footer .tc-footer-compact {
    display: block !important;
    position: relative;
    background: radial-gradient(ellipse at 45% 0, #123e28 0, #082f1c 75%) !important;
    color: #e4e6cd !important;
    padding: 32px 24px 36px;
    border-radius: 28px 28px 0 0;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden
}

#footer .tc-footer-compact:before, #footer .tc-footer-compact:after {
    display: none !important
}

#footer .tc-footer-compact .tc-footer-inner {
    width: 100%;
    margin: 0 auto;
    background: transparent !important;
    color: inherit !important;
    border: 0;
    box-sizing: border-box
}

#footer .tc-footer-compact * {
    box-sizing: border-box
}

#footer .tc-footer-compact a, #footer .tc-footer-compact p, #footer .tc-footer-compact summary {
    color: #e4e6cd !important
}

#footer .tc-footer-compact a {
    text-decoration: none
}

#footer .tc-footer-compact a:hover {
    color: #f1d47f !important
}

#footer .tc-footer-compact :focus-visible {
    outline: 2px solid #e4c575;
    outline-offset: 4px
}

#footer .tc-footer-benefits {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    border: 1px solid #b7b78066;
    border-radius: 16px;
    padding: 20px 12px;
    margin-bottom: 24px
}

#footer .tc-footer-benefits > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 12px;
    border-right: 1px solid #b7b78066
}

#footer .tc-footer-benefits > div:last-child {
    border: 0
}

#footer .tc-footer-benefits svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: #d9c47b
}

#footer .tc-footer-benefits span {
    font-size: 14px;
    line-height: 1.35
}

#footer .tc-footer-nav {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 0 18px;
    background: #ffffff03;
    border-radius: 14px;
    margin: 0 0 24px
}

#footer .tc-footer-group {
    min-width: 0;
    padding: 0;
    border: 0
}

#footer .tc-footer-group summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #b7b78066
}

#footer .tc-footer-group summary::-webkit-details-marker {
    display: none
}

#footer .tc-footer-group summary:after {
    content: '';
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin: 0 4px 5px 0;
    flex-shrink: 0
}

#footer .tc-footer-group[open] summary:after {
    transform: rotate(225deg);
    margin-top: 6px
}

#footer .tc-footer-group ul {
    margin: 0;
    padding: 12px 0 18px;
    list-style: none;
    background: transparent !important
}

#footer .tc-footer-group li {
    padding: 0;
    margin: 8px 0;
    list-style: none;
    font-size: 13px;
    background: transparent !important
}

#footer .tc-footer-group li:before {
    display: none
}

#footer .tc-footer-main {
    display: grid;
    grid-template-columns:150px minmax(0, 1fr) 150px;
    gap: 36px;
    align-items: center;
    padding: 0 18px 26px;
    background: transparent !important
}

#footer .tc-footer-brand {
    display: block;
    width: 150px;
    line-height: 0
}

#footer .tc-footer-brand img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain
}

#footer .tc-footer-main p {
    margin: 0;
    padding-left: 30px;
    border-left: 1px solid #b7b78088;
    font-size: 17px;
    line-height: 1.55;
    max-width: 680px
}

#footer .tc-footer-anniversary {
    position: relative;
    width: 150px;
    min-height: 125px;
    text-align: center;
    padding-top: 10px;
    color: #e2c36d
}

#footer .tc-footer-anniversary strong {
    display: block;
    font: italic 66px/1 Georgia, serif;
    color: inherit !important
}

#footer .tc-footer-anniversary span {
    font: 22px/1 Georgia, serif;
    color: inherit
}

#footer .tc-footer-anniversary small {
    font: 13px/1.4 Arial, sans-serif
}

#footer .tc-laurel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none
}

#footer .tc-footer-services {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 24px 18px;
    border-top: 1px solid #b7b78066;
    border-bottom: 1px solid #b7b78066
}

#footer .tc-footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0
}

#footer .tc-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700
}

#footer .tc-footer-social img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1)
}

#footer .tc-social-vk {
    background: #2187fb
}

#footer .tc-social-ok {
    background: #ff9200
}

#footer .tc-social-max {
    background: #7250ff
}

#footer .tc-social-zen {
    background: #69b749
}

#footer .tc-footer-social a {
    transition: background-color .18s ease
}

#footer .tc-footer-compact .tc-footer-social a:hover, #footer .tc-footer-compact .tc-footer-social a:focus-visible {
    color: #fff !important
}

#footer .tc-footer-social .tc-social-vk:hover, #footer .tc-footer-social .tc-social-vk:focus-visible {
    background: #126bd0
}

#footer .tc-footer-social .tc-social-ok:hover, #footer .tc-footer-social .tc-social-ok:focus-visible {
    background: #d97800
}

#footer .tc-footer-social .tc-social-max:hover, #footer .tc-footer-social .tc-social-max:focus-visible {
    background: #5937db
}

#footer .tc-footer-social .tc-social-zen:hover, #footer .tc-footer-social .tc-social-zen:focus-visible {
    background: #4f9233
}

@media (prefers-reduced-motion: reduce) {
    #footer .tc-footer-social a {
        transition: none
    }
}

#footer .tc-footer-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 28px;
    min-height: 48px;
    border-left: 1px solid #b7b78088
}

#footer .tc-footer-payments i {
    display: block;
    margin: 0;
    background-image: url('/bitrix/templates/aspro_max/images/svg/payment.svg?v=1');
    background-repeat: no-repeat;
    background-color: transparent !important;
    opacity: 1;
    flex-shrink: 0
}

#footer .tc-footer-payments .visa {
    width: 32px;
    height: 10px;
    background-position: -40px -304px
}

#footer .tc-footer-payments .mir {
    width: 36px;
    height: 20px;
    background-position: -357px -298px
}

#footer .tc-footer-payments .mastercard {
    width: 24px;
    height: 16px;
    background-position: -279px -300px
}

#footer .tc-footer-payments .yookassa {
    width: 25px;
    height: 18px;
    background-position: -534px -299px
}

#footer .tc-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 18px 0;
    font-size: 13px
}

#footer .tc-footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap
}

@media (max-width: 767px) {
    #footer .tc-footer-compact {
        padding: 24px 10px 42px;
        border-radius: 24px 24px 0 0
    }

    #footer .tc-footer-benefits {
        padding: 10px 4px;
        margin-bottom: 14px;
        border-radius: 12px
    }

    #footer .tc-footer-benefits > div {
        gap: 4px;
        padding: 0 4px
    }

    #footer .tc-footer-benefits svg {
        width: 20px;
        height: 20px
    }

    #footer .tc-footer-benefits span {
        font-size: 8px
    }

    #footer .tc-footer-nav {
        display: block;
        padding: 0 7px;
        margin-bottom: 16px
    }

    #footer .tc-footer-group summary {
        font-size: 16px;
        padding: 11px 0
    }

    #footer .tc-footer-main {
        grid-template-columns:80px minmax(0, 1fr) 76px;
        gap: 12px;
        padding: 0 7px 18px
    }

    #footer .tc-footer-brand {
        width: 80px
    }

    #footer .tc-footer-main p {
        padding-left: 14px;
        font-size: 10px;
        line-height: 1.55
    }

    #footer .tc-footer-anniversary {
        width: 76px;
        min-height: 82px;
        padding-top: 8px
    }

    #footer .tc-footer-anniversary strong {
        font-size: 36px
    }

    #footer .tc-footer-anniversary span {
        font-size: 15px
    }

    #footer .tc-footer-anniversary small {
        font-size: 9px
    }

    #footer .tc-footer-services {
        gap: 18px;
        padding: 12px 12px
    }

    #footer .tc-footer-social {
        gap: 10px
    }

    #footer .tc-footer-social a {
        width: 29px;
        height: 29px;
        border-radius: 6px;
        font-size: 8px
    }

    #footer .tc-footer-social img {
        width: 18px;
        height: 18px
    }

    #footer .tc-footer-payments {
        gap: 12px;
        min-height: 29px;
        padding-left: 16px
    }

    #footer .tc-footer-payments i {
        zoom: .8
    }

    #footer .tc-footer-bottom {
        padding: 12px 8px 0;
        gap: 12px;
        font-size: 9px;
        align-items: flex-start
    }

    #footer .tc-footer-links {
        gap: 8px;
        justify-content: flex-end
    }

    #footer .tc-footer-links a + a {
        padding-left: 8px;
        border-left: 1px solid #b7b78088
    }
}

@media (max-width: 359px) {
    #footer .tc-footer-services {
        gap: 10px;
        padding-inline: 4px
    }

    #footer .tc-footer-social {
        gap: 6px
    }

    #footer .tc-footer-payments {
        gap: 8px;
        padding-left: 8px
    }

    #footer .tc-footer-main {
        gap: 8px;
        grid-template-columns:70px minmax(0, 1fr) 66px
    }

    #footer .tc-footer-brand {
        width: 70px
    }

    #footer .tc-footer-anniversary {
        width: 66px
    }
}

/* Меню на одном фоне с футером; на десктопе раскрыто постоянно. */
#footer .tc-footer-compact .tc-footer-nav, #footer .tc-footer-compact .tc-footer-group, #footer .tc-footer-compact .tc-footer-group summary, #footer .tc-footer-compact .tc-footer-group ul {
    background: transparent !important;
    box-shadow: none !important
}

@media (min-width: 768px) {
    #footer .tc-footer-compact .tc-footer-group summary {
        cursor: default
    }

    #footer .tc-footer-compact .tc-footer-group summary:after {
        display: none
    }
}

/* Ширина и боковые поля наследуются от основного контейнера сайта. */
#footer .tc-footer-compact {
    padding: 24px 0 28px
}

#footer .tc-footer-group summary {
    font-size: 15px;
    padding: 14px 0
}

#footer .tc-footer-benefits {
    padding: 16px 10px;
    margin-bottom: 20px
}

#footer .tc-footer-benefits span {
    font-size: 13px
}

#footer .tc-footer-main {
    grid-template-columns:130px minmax(0, 1fr) 130px;
    gap: 28px;
    padding-bottom: 22px
}

#footer .tc-footer-brand {
    width: 130px
}

#footer .tc-footer-main p {
    font-size: 14px;
    padding-left: 24px
}

#footer .tc-footer-anniversary {
    width: 130px;
    min-height: 110px
}

#footer .tc-footer-services {
    padding: 18px
}

@media (max-width: 767px) {
    #footer .tc-footer-compact {
        padding: 20px 0 28px
    }

    #footer .tc-footer-compact .tc-footer-inner {
        padding: 0 16px
    }

    #footer .tc-footer-benefits {
        padding: 10px 4px;
        margin-bottom: 14px
    }

    #footer .tc-footer-benefits span {
        font-size: 8px
    }

    #footer .tc-footer-group summary {
        font-size: 15px;
        padding: 11px 0
    }

    #footer .tc-footer-main {
        grid-template-columns:74px minmax(0, 1fr) 70px;
        gap: 10px;
        padding-bottom: 16px
    }

    #footer .tc-footer-brand {
        width: 74px
    }

    #footer .tc-footer-main p {
        font-size: 10px;
        padding-left: 12px
    }

    #footer .tc-footer-anniversary {
        width: 70px;
        min-height: 80px
    }

    #footer .tc-footer-services {
        padding: 12px 8px
    }
}
