.footer .footer__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
}

.footer .footer__container > div {
    padding: calc(var(--pixel) * 60);
    padding-bottom: calc(var(--pixel) * 52);
}

.footer__first {
    display: flex;
    flex-direction: column;
    gap: calc(var(--pixel) * 45);
    background: linear-gradient(180deg, #0a1b2d 50%, #8a7e94 187.91%);
    color: var(--color-ivory-white);
}

.footer__first__up {
    max-width: calc(var(--pixel) * 420);
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    color: inherit;
}

.footer .body-3:first-child {
    color: var(--color-solar-gold);
}

.footer__first__up h2,
.footer__first__down h3,
.footer__first__up .body-2,
.footer__first__up .footer__badge {
    color: inherit;
}

.footer__hr {
    width: 100%;
    max-width: calc(var(--pixel) * 420);
    height: 1px;
    background-color: var(--color-solar-gold);
}

.footer__first__badges {
    display: flex;
    flex-direction: row;
    gap: var(--gap-sm);
}

.footer__badge {
    padding: calc(var(--pixel) * 10);
    border: solid 1px var(--color-solar-gold);
}

.footer__first__down {
    display: flex;
    max-width: calc(var(--pixel) * 420);
    flex-direction: row;
    justify-content: space-between;
}

.footer__contact {
    background-color: var(--color-bg-badge);
    border: solid 1px var(--color-light-grey);
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    overflow: hidden;
    position: relative;
    scroll-margin-top: 40px;
}

.footer__contact__list {
    display: flex;
    flex-direction: row;
    gap: var(--gap-md);
}

.footer__contact__list a {
    display: block;
    text-decoration: none;
}

.footer__call,
.footer__contacts {
    display: flex !important;
    flex-direction: row;
    gap: calc(var(--pixel) * 5);
}

.footer__call__number {
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 1px var(--color-sapphire-deep);
    color: var(--color-sapphire-deep) !important;
    line-height: 0.96em;
    padding: calc(var(--pixel) * 12) calc(var(--pixel) * 10);
    height: calc(var(--pixel) * 39);
}

.footer .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--pixel) * 39);
    height: calc(var(--pixel) * 39);
    background-color: var(--color-sapphire-deep);
}
.footer .icon::before {
    content: '';
    display: block;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon--phone::before {
    width: calc(var(--pixel) * 16);
    height: calc(var(--pixel) * 16);
    background-image: url('../img/phone.svg');
}

.icon--wa::before {
    width: calc(var(--pixel) * 18);
    height: calc(var(--pixel) * 18);
    background-image: url('../img/wa.svg');
}

.icon--tg::before {
    width: calc(var(--pixel) * 17);
    height: calc(var(--pixel) * 13);
    background-image: url('../img/tg.svg');
}

.icon--inst::before {
    width: calc(var(--pixel) * 17);
    height: calc(var(--pixel) * 17);
    background-image: url('../img/inst.svg');
}

.footer__contact__decor {
    font-size: calc(var(--pixel) * 200);
    opacity: 0.1;
    position: absolute;
    line-height: 1em;
    font-style: italic;
    pointer-events: none;
}

.footer__contact__decor-1 {
    left: calc(var(--pixel) * -51);
    bottom: calc(var(--pixel) * 52);
}

.footer__contact__decor-2 {
    left: calc(var(--pixel) * 40);
    bottom: calc(var(--pixel) * -107);
}

@media (max-width: 1439px) {
    .footer .footer__container {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .footer__hr {
        max-width: unset;
    }

    .footer__first__down {
        max-width: unset;
    }
}

@media (max-width: 767px) {
    .footer .footer__container {
        gap: 0;
    }

    .footer .footer__container > div {
        padding: calc(var(--pixel) * 45) calc(var(--pixel) * 20);
    }

    .footer__first {
        gap: calc(var(--pixel) * 35);
    }

    .footer__first__up {
        max-width: calc(var(--pixel) * 274);
    }

    .footer__first__up .body-2 {
        font-size: var(--fs-body-3);
        max-width: calc(var(--pixel) * 262);
    }

    .footer__first__down {
        max-width: calc(var(--pixel) * 300);
        flex-direction: column;
        gap: var(--gap-sm);
    }

    .footer__first__down .h3 {
        font-style: italic;
        font-size: calc(var(--pixel) * 45);
    }

    .footer__contact {
        border: none;
    }

    .footer__contact__list {
        flex-direction: column;
    }

    .footer__contact__decor {
        font-size: calc(var(--pixel) * 145);
    }

    .footer__contact__decor-1 {
        left: calc(var(--pixel) * -53);
        bottom: calc(var(--pixel) * 70);
    }

    .footer__contact__decor-2 {
        left: calc(var(--pixel) * 13);
        bottom: calc(var(--pixel) * -45);
    }
}

/* ── Footer bottom nav ────────────────────────────────────────────────────── */

.footer__bottom-nav {
    margin-top: auto;
    padding-top: calc(var(--pixel) * 24);
    border-top: 1px solid rgba(245, 240, 230, 0.15);
}

.footer__bottom-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--pixel) * 8) calc(var(--pixel) * 24);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__bottom-nav__list li a {
    font-size: var(--fs-body-3);
    color: rgba(245, 240, 230, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.04em;
}

.footer__bottom-nav__list li a:hover {
    color: var(--color-solar-gold);
}

.grecaptcha-badge {
    display: none !important;
    opacity: 0 !important;
}

@media (max-width: 767px) {
    .footer__bottom-nav__list {
        gap: calc(var(--pixel) * 8) calc(var(--pixel) * 16);
    }
}
