:root {
    --whatsapp: #25d366;
    --whatsapp-dark: #128c4a;
    --telegram: #2aabee;
    --telegram-dark: #1677a8;
    --max-dark: #4b2fb3;
}

.footer {
    position: relative;
    margin-top: 64px;
    background-color: color-mix(in srgb, var(--body-black) 72%, black);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.35);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--first) 0%, var(--third) 100%);
}

.footer .footer-top {
    padding: 56px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer .footer-top > .wrapper,
.footer .footer-bottom > .wrapper {
    max-width: 1170px;
}

.footer .footer-logo {
    display: inline-block;
}

.footer .footer-logo img {
    display: block;
    width: 251px;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.footer .footer-tagline {
    max-width: 260px;
    margin: 16px 0 22px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.footer .footer-title {
    position: relative;
    margin: 6px 0 22px;
    padding-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.footer .footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--first) 0%, var(--third) 100%);
}

.footer .footer-menu a,
.footer .footer-contact-item a,
.footer .footer-contact-item span {
    color: rgba(255, 255, 255, 0.82);
}

.footer .footer-menu a:hover,
.footer .footer-contact-item a:hover {
    color: var(--first);
}

.footer .footer-social {
    display: flex;
    gap: 14px;
    margin: 0;
}

a.footer-social__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
    font-size: 21px;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

a.footer-social__btn--whatsapp {
    background: var(--whatsapp);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 var(--whatsapp-dark), 0 8px 14px rgba(0, 0, 0, 0.35);
}

a.footer-social__btn--telegram {
    background: var(--telegram);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 var(--telegram-dark), 0 8px 14px rgba(0, 0, 0, 0.35);
}

a.footer-social__btn--max {
    box-shadow: 0 4px 0 var(--max-dark), 0 8px 14px rgba(0, 0, 0, 0.35);
}

a.footer-social__btn--max img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    clip-path: none;
}

a.footer-social__btn:hover,
a.footer-social__btn:focus-visible {
    transform: translateY(3px);
    outline: none;
}

a.footer-social__btn--whatsapp:hover,
a.footer-social__btn--whatsapp:focus-visible {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 0 var(--whatsapp-dark), 0 4px 8px rgba(0, 0, 0, 0.3);
}

a.footer-social__btn--telegram:hover,
a.footer-social__btn--telegram:focus-visible {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 0 var(--telegram-dark), 0 4px 8px rgba(0, 0, 0, 0.3);
}

a.footer-social__btn--max:hover,
a.footer-social__btn--max:focus-visible {
    box-shadow: 0 1px 0 var(--max-dark), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.footer .footer-bottom {
    padding: 18px 0;
    background: rgba(0, 0, 0, 0.18);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

@media screen and (max-width: 767px) {
    .footer .footer-social {
        justify-content: center;
    }

    .footer .footer-logo img {
        margin: 0 auto;
    }

    .footer .footer-tagline {
        margin-left: auto;
        margin-right: auto;
    }
}

:root {
    --max-from: #40c2fd;
    --max-mid: #3f5ffc;
    --max-to: #8241e4;
}

a.footer-social__btn--max {
    background: linear-gradient(45deg, var(--max-from) 0%, var(--max-mid) 45%, var(--max-to) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 var(--max-dark), 0 8px 14px rgba(0, 0, 0, 0.35);
}

a.footer-social__btn--max img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

a.footer-social__btn--max:hover,
a.footer-social__btn--max:focus-visible {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 0 var(--max-dark), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.footer::before {
    content: none;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 -1px 0 rgba(0, 0, 0, 0.45),
        0 -24px 48px rgba(0, 0, 0, 0.4);
}

/* 01.12.2026: футер на телефоне — логотип, подпись и мессенджеры по левому краю;
   «Материалы» и «Разделы» двумя колонками рядом, «Контакты» во всю ширину */
@media screen and (max-width: 576px) {
    .footer .footer-col {
        width: 50%;
    }

    .footer .footer-col--logo,
    .footer .footer-col--contacts {
        width: 100%;
        text-align: left;
    }

    .footer .footer-logo img {
        margin: 0 0 16px;
    }

    .footer .footer-tagline {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    .footer .footer-social {
        justify-content: flex-start;
    }
}
