.site-footer.footer-redesign {
    position: relative;
    padding: calc(var(--home-section-gap, 6rem)/2) 0 38px;
    background: #080b09;
    color: #edf3e6;
    border: 0
}

.footer-composition {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 2fr);
    gap: 0;
    align-items: start;
    direction: ltr
}

.footer-social-column {
    position: relative;
    z-index: 2;
    padding: 56px 24px 0 0;
    direction: ltr;
    min-width: 0
}

.footer-instagram-banner {
    position: relative;
    isolation: isolate;
    display: flex;
    direction: rtl;
    align-items: center;
    min-height: 180px;
    width: calc(100% + 100px);
    padding: 26px 26px 26px 155px;
    color: #edf6df;
    background: radial-gradient(ellipse at 15% 50%, #9ebf5014, transparent 65%), linear-gradient(115deg, #233026, #121a15);
    border: 1px solid #476135;
    border-radius: 42px 60px 60px 42px;
    box-shadow: 0 10px 28px #0003;
    overflow: visible
}

.footer-instagram-banner::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background-image: radial-gradient(#b3c69524 1px, transparent 1.5px);
    background-size: 12px 12px;
    mask-image: linear-gradient(90deg, #000, transparent 70%)
}

.footer-instagram-art {
    position: absolute;
    left: 24px;
    top: -10px;
    display: grid;
    place-items: center;
    width: 135px;
    height: 145px;
    border-radius: 34px;
    transform: rotate(-15deg);
    background: linear-gradient(140deg, #9bb46b, #4a682e 50%, #253c1d);
    border: 1px solid #9bb77450;
    box-shadow: -5px 8px 0 #1c2d17, -12px 21px 24px #0006, inset 3px 3px 9px #c1d49b50
}

.footer-instagram-art svg {
    width: 90px;
    height: 90px;
    fill: none;
    stroke: #f8ffed;
    stroke-width: 1.7;
    filter: drop-shadow(0 3px 1px #2c4d1680)
}

.footer-instagram-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0
}

.footer-instagram-copy>small {
    font-size: 14px;
    color: #a9c08d;
    font-weight: 700
}

.footer-instagram-copy>strong {
    font-size: 24px;
    line-height: 1.55;
    font-weight: 800;
    max-width: 12em;
    color: #f1f9df
}

.footer-instagram-copy>span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 34px;
    margin-top: 4px;
    padding: 6px 14px;
    border: 1px solid #b9df7440;
    border-radius: 20px;
    background: #d6f7a10d;
    color: #e0f0cd;
    font-size: 12px
}

.footer-instagram-banner:hover {
    border-color: #a7cf4a
}

.footer-instagram-banner:hover .footer-instagram-art {
    transform: rotate(-10deg) translateY(-4px)
}

.footer-social-list {
    display: flex;
    direction: rtl;
    flex-direction: column;
    gap: 10px;
    margin: 28px 55px 0 0
}

.footer-social-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #2d3530;
    border-radius: 30px;
    background: #121714;
    color: #b6c5aa;
    font-size: 13px;
    line-height: 1.8;
    transition: border-color .2s, color .2s, background .2s
}

.footer-social-list a:hover {
    border-color: #789d3b;
    background: #1b231d;
    color: #def4b7
}

.footer-social-list a>svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: #b7e600;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round
}

.footer-social-list i {
    margin-right: auto;
    font-style: normal;
    font-size: 17px;
    color: #74925c
}

.footer-main {
    direction: rtl;
    min-width: 0
}

.footer-cap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 100px;
    padding: 20px 36px 20px 115px;
    background: linear-gradient(110deg, #121714, #1b201d);
    border: 1px solid #2a332d;
    border-bottom: 0;
    border-radius: 40px 40px 0 0;
    margin-inline: 30px
}

.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #e9f0df
}

.footer-brand-link img {
    width: auto;
    height: 54px;
    max-width: 110px;
    object-fit: contain
}

.footer-brand-link>span:not(.footer-brand-caption) {
    font: 900 25px Arial, sans-serif
}

.footer-brand-link b {
    color: #b7e600
}

.footer-brand-caption {
    font-size: 12px;
    color: #95a68a;
    line-height: 1.8
}

.footer-support-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a4b598;
    font-size: 12px;
    line-height: 1.8;
    flex-wrap: wrap
}

.footer-support-phone svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #b7e600;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round
}

.footer-support-phone b {
    font-size: 14px;
    font-weight: 500;
    color: #e0ead7;
    letter-spacing: .04em
}

.footer-panel {
    position: relative;
    min-height: 385px;
    padding: 28px 26px 24px;
    border: 1px solid #303932;
    border-radius: 30px;
    background: linear-gradient(135deg, #151a17, #101411);
    box-shadow: 0 15px 35px #0002
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.1fr .9fr 1fr 1.2fr;
    gap: 24px;
    direction: rtl
}

.footer-columns>* {
    min-width: 0
}

.footer-columns h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 18px;
    color: #e6eedf;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.9
}

.footer-columns h3>span {
    color: #b7e600;
    font: 20px Arial, sans-serif
}

.footer-columns h3>svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    fill: none;
    stroke: #b7e600;
    stroke-width: 1.6
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0
}

.footer-links>a {
    position: relative;
    display: block;
    padding: 7px 12px 7px 0;
    color: #9fad96;
    font-size: 13px;
    line-height: 1.9;
    transition: color .2s;
    overflow-wrap: anywhere
}

.footer-links>a::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    right: 0;
    top: 18px;
    background: #54674a;
    border-radius: 50%
}

.footer-links>a:hover {
    color: #d5f389
}

.footer-links>a:hover::before {
    background: #b7e600
}

.footer-award-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 8px;
    align-items: center
}

.footer-award-grid img {
    width: 100%;
    height: 73px;
    object-fit: contain;
    max-width: 110px;
    margin: auto;
    filter: drop-shadow(0 3px 5px #0003)
}

.footer-contact-card {
    padding-top: 124px;
    display: flex;
    flex-direction: column;
    gap: 18px
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px
}

.footer-contact-item>svg {
    width: 28px;
    height: 28px;
    padding: 5px;
    box-sizing: content-box;
    flex-shrink: 0;
    border: 1px solid #3b512e;
    border-radius: 10px;
    background: #b7e6000a;
    fill: none;
    stroke: #b7e600;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.footer-contact-item>div {
    min-width: 0
}

.footer-contact-item div>span {
    display: block;
    color: #819174;
    font-size: 12px;
    margin-bottom: 5px
}

.footer-contact-item address,
.footer-contact-item a {
    font-style: normal;
    color: #c2cfb7;
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere
}

.footer-contact-item a {
    display: inline-block;
    min-height: 28px;
    letter-spacing: .03em
}

.footer-agent {
    margin: 0;
    color: #7e9271;
    font-size: 11px;
    line-height: 1.9
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    margin-top: 22px;
    border-top: 1px solid #2c3b25
}

.footer-member-invite {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

.footer-member-invite>span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a5b797;
    font-size: 12px;
    line-height: 1.8
}

.footer-member-invite svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #a6c75d;
    stroke-width: 1.6
}

.footer-member-invite .btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 40px;
    padding: 8px 14px;
    background: #b7e600;
    color: #18210e;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #b7e600
}

.footer-member-invite .btn:hover {
    background: #d0f43f
}

.footer-copyright {
    max-width: 220px;
    margin: 0;
    color: #809173;
    font-size: 11px;
    line-height: 1.9
}

.footer-redesign a:focus-visible {
    outline: 2px solid #b7e600;
    outline-offset: 5px
}

.footer-instagram-art {
    transition: transform .3s
}

.footer-instagram-banner {
    transition: border-color .2s
}

@media(max-width:1150px) {
    .footer-composition {
        grid-template-columns: minmax(0, .85fr) minmax(0, 2fr)
    }

    .footer-social-column {
        padding-right: 18px
    }

    .footer-instagram-banner {
        padding-left: 118px;
        width: calc(100% + 70px)
    }

    .footer-instagram-art {
        width: 105px;
        height: 115px;
        left: 16px;
        border-radius: 27px;
        top: 12px
    }

    .footer-instagram-art svg {
        width: 72px;
        height: 72px
    }

    .footer-instagram-copy>strong {
        font-size: 21px
    }

    .footer-columns {
        gap: 16px;
        grid-template-columns: 1fr 1fr 1fr
    }

    .footer-contact-card {
        grid-column: 1/-1;
        padding-top: 15px;
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
        border-top: 1px solid #293824
    }

    .footer-agent {
        grid-column: 1/-1
    }

    .footer-cap {
        padding-left: 75px;
        margin-inline: 20px
    }

    .footer-brand-caption {
        display: none
    }

    .footer-panel {
        padding: 24px 20px
    }

    .footer-social-list {
        margin-right: 12px
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start
    }

    .footer-copyright {
        max-width: none
    }
}

@media(max-width:800px) {
    .site-footer.footer-redesign {
        padding-bottom: 24px
    }

    .footer-composition {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .footer-social-column {
        padding: 0 0 0;
        order: 2
    }

    .footer-instagram-banner {
        width: 100%;
        padding: 24px 30px 24px 165px;
        min-height: 170px
    }

    .footer-instagram-art {
        width: 125px;
        height: 135px;
        left: 25px;
        top: 6px
    }

    .footer-instagram-art svg {
        width: 85px;
        height: 85px
    }

    .footer-instagram-copy>strong {
        font-size: 24px
    }

    .footer-social-list {
        margin: 22px 0 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .footer-cap {
        padding: 18px 24px;
        margin-inline: 15px;
        min-height: 90px
    }

    .footer-brand-caption {
        display: block
    }

    .footer-main {
        order: 1
    }

    .footer-contact-card {
        gap: 16px
    }

    .footer-panel {
        border-radius: 26px
    }

    .footer-support-phone {
        max-width: 175px
    }

    .footer-bottom-row {
        gap: 14px
    }

    .footer-member-invite {
        justify-content: space-between;
        width: 100%
    }
}

@media(max-width:520px) {
    .footer-cap {
        padding: 16px 18px;
        gap: 12px;
        margin-inline: 10px;
        border-radius: 28px 28px 0 0
    }

    .footer-brand-caption {
        display: none
    }

    .footer-support-phone {
        max-width: 170px;
        gap: 6px;
        justify-content: flex-end;
        font-size: 11px
    }

    .footer-support-phone svg {
        width: 18px;
        height: 18px
    }

    .footer-support-phone b {
        font-size: 13px
    }

    .footer-brand-link img {
        height: 46px;
        max-width: 80px
    }

    .footer-panel {
        padding: 22px 18px
    }

    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px
    }

    .footer-columns h3 {
        font-size: 14px;
        margin-bottom: 10px
    }

    .footer-links>a {
        font-size: 13px;
        padding-block: 8px
    }

    .footer-honors {
        grid-column: 1/-1;
        padding-top: 16px;
        border-top: 1px solid #293824
    }

    .footer-award-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px
    }

    .footer-award-grid img {
        height: 62px
    }

    .footer-contact-card {
        grid-column: 1/-1;
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 20px
    }

    .footer-agent {
        grid-column: auto
    }

    .footer-contact-item address,
    .footer-contact-item a {
        font-size: 14px
    }

    .footer-instagram-banner {
        padding: 24px 18px 24px 128px;
        min-height: 180px;
        border-radius: 30px
    }

    .footer-instagram-art {
        width: 100px;
        height: 110px;
        left: 16px;
        top: 22px;
        border-radius: 26px
    }

    .footer-instagram-art svg {
        width: 70px;
        height: 70px
    }

    .footer-instagram-copy>strong {
        font-size: 21px
    }

    .footer-instagram-copy>small {
        font-size: 12px
    }

    .footer-instagram-copy>span {
        font-size: 11px;
        padding-inline: 10px
    }

    .footer-social-list {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .footer-social-list a {
        font-size: 14px
    }

    .footer-member-invite {
        gap: 12px
    }

    .footer-member-invite .btn {
        width: 100%;
        justify-content: center;
        font-size: 13px;
        min-height: 44px
    }

    .footer-copyright {
        font-size: 12px
    }
}

/* The main surface slopes over the social links, as in the reference. */
@media(min-width:1151px) {
    .footer-composition {
        position: relative;
        display: block
    }

    .footer-main {
        position: relative;
        z-index: 1;
        width: calc(100% - 150px);
        margin-left: auto
    }

    .footer-cap {
        padding: 18px 24px;
        margin-left: 396px;
        margin-right: 30px;
        min-height: 100px;
        gap: 20px;
        border-radius: 30px 30px 0 0
    }

    .footer-social-column {
        position: absolute;
        left: 0;
        top: 54px;
        z-index: auto;
        width: 530px;
        padding: 0
    }

    .footer-instagram-banner {
        z-index: 3;
        width: 100%;
        min-height: 195px;
        padding: 18px 70px 18px 235px;
        background: none;
        border: 0;
        border-radius: 0;
        box-shadow: none
    }

    .footer-instagram-banner::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -2;
        background: url(../img/footer-social-banner.svg?v=2) center/100% 100% no-repeat
    }

    .footer-instagram-banner::before {
        border-radius: 40px;
        mask-image: linear-gradient(90deg, #000, transparent 80%);
        inset: 8px 40px 8px 14px
    }

    .footer-instagram-art {
        width: 165px;
        height: 175px;
        left: 38px;
        top: -8px;
        border-radius: 40px
    }

    .footer-instagram-art svg {
        width: 112px;
        height: 112px
    }

    .footer-instagram-copy {
        gap: 5px
    }

    .footer-instagram-copy>strong {
        font-size: 32px;
        line-height: 1.4
    }

    .footer-instagram-copy>small {
        font-size: 18px;
        line-height: 1.5;
        color: #b8ce97;
        font-weight: 700
    }

    .footer-instagram-copy>span {
        min-height: 32px;
        margin-top: 2px;
        padding-block: 4px;
        line-height: 1.6
    }

    .footer-social-list {
        position: relative;
        z-index: 0;
        width: 100%;
        margin: 30px 0 0;
        gap: 14px
    }

    .footer-social-list a {
        direction: ltr;
        justify-content: flex-start;
        min-height: 50px;
        padding-left: 18px;
        padding-right: 150px
    }

    .footer-social-list a>span {
        direction: rtl;
        text-align: left
    }

    .footer-social-list i {
        display: none
    }

    .footer-panel {
        isolation: isolate;
        border: 0;
        background: none;
        box-shadow: none;
        display: grid;
        grid-template-columns: 350px repeat(3, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 24px;
        direction: ltr;
        padding: 28px 26px 16px
    }

    .footer-panel::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: 0;
        background: url(../img/footer-panel-shape.svg?v=2) center/100% 100% no-repeat;
        pointer-events: none
    }

    .footer-columns {
        display: contents
    }

    .footer-columns>* {
        direction: rtl
    }

    .footer-links:first-child {
        grid-column: 4;
        grid-row: 1
    }

    .footer-links:nth-child(2) {
        grid-column: 3;
        grid-row: 1
    }

    .footer-honors {
        grid-column: 2;
        grid-row: 1
    }

    .footer-columns h3 {
        margin-bottom: 16px;
        font-size: 14px
    }

    .footer-links>a {
        padding-block: 7px;
        font-size: 13px;
        min-height: 35px
    }

    .footer-award-grid {
        gap: 18px 12px
    }

    .footer-award-grid img {
        height: 78px;
        max-width: 100px
    }

    .footer-contact-card {
        grid-column: 1;
        grid-row: 1 / span 2;
        padding: 134px 0 20px 90px;
        gap: 20px
    }

    .footer-contact-item {
        gap: 10px
    }

    .footer-contact-item>svg {
        width: 22px;
        height: 22px;
        padding: 5px
    }

    .footer-contact-item address,
    .footer-contact-item a {
        font-size: 13px;
        line-height: 1.9
    }

    .footer-agent {
        font-size: 11px
    }

    .footer-bottom-row {
        grid-column: 2 / -1;
        grid-row: 2;
        direction: rtl;
        align-self: end;
        align-items: flex-end;
        gap: 24px;
        margin: 0;
        padding: 20px 22px 12px;
        border-top: 1px solid #303932;
        border-left: 1px solid #303932;
        border-radius: 52px 0 0 0;
        min-height: 116px
    }

    .footer-member-invite {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        flex-shrink: 0;
        max-width: 56%;
        width: 310px
    }

    .footer-member-invite>span {
        font-size: 13px;
        justify-content: flex-start;
        line-height: 1.8
    }

    .footer-member-invite .btn {
        justify-content: space-between;
        min-height: 48px;
        border: 1px solid #445832;
        background: #182019;
        color: #d7edb7;
        padding: 10px 16px
    }

    .footer-member-invite .btn>span {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #b7e600;
        color: #1d290e
    }

    .footer-member-invite .btn:hover {
        background: #222c23
    }

    .footer-copyright {
        max-width: 260px;
        align-self: center;
        padding-top: 23px;
        font-size: 12px;
        line-height: 1.9
    }
}

@media(prefers-reduced-motion:reduce) {
    .footer-redesign * {
        transition: none !important
    }
}