.site-footer-ad {
    margin-top: 36px;
    margin-bottom: 22px;
}

.site-footer-ad__inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.site-footer-ad img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.site-footer-ad iframe,
.site-footer-ad ins,
.site-footer-ad .adrotate,
.site-footer-ad .adrotate-widget,
.site-footer-ad .g,
.site-footer-ad .banners {
    margin-left: auto;
    margin-right: auto;
}

.site-footer {
    background: #ffffff;
    color: #0f1d2f;
    border-top: 1px solid rgba(15, 29, 47, 0.12);
}

.site-footer__inner {
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 2.6rem;
    padding-bottom: 1.1rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(120px, 1fr)) minmax(90px, 0.7fr);
    gap: 28px;
    align-items: start;
}

.site-footer__social-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

.site-footer__social-link {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    padding: 0;
}

.site-footer__social-link img {
    width: 26px;
    height: 26px;
    display: block;
}

.site-footer__logo {
    display: inline-flex;
    margin-bottom: 0.9rem;
}

.site-footer__logo img {
    display: block;
    max-width: 180px;
    height: auto;
}

.site-footer__text {
    max-width: 460px;
    font-size: 1rem;
    line-height: 1.52;
    color: #1f334d;
    margin-bottom: 1rem;
}

.site-footer__forum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.84rem 1.22rem;
    border-radius: 4px;
    text-decoration: none;
    color: #ffffff;
    background-color: #0076b1;
    background-image: linear-gradient(to bottom, #29b7ff 0%, #0076b1 100%);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.site-footer__title {
    font-size: 1.04rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.site-footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.26rem;
}

.site-footer__list a {
    text-decoration: none;
    color: #1c324d;
    display: inline-flex;
    font-size: 0.98rem;
    line-height: 1.4;
    padding: 0.2rem 0;
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
    color: #0a5da8;
}

.site-footer__bottom {
    margin-top: 1.7rem;
    padding-top: 0.9rem;
    border-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.92rem;
    color: #3e5269;
}

.site-footer__bottom a {
    color: #1a3f67;
    text-decoration: none;
    font-weight: 600;
}

.site-footer__bottom a:hover,
.site-footer__bottom a:focus-visible {
    color: #0a5da8;
}

@media (max-width: 1024px) {
    .site-footer__inner {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .site-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
    }
}

@media (max-width: 760px) {
    .site-footer-ad {
        margin-top: 26px;
        margin-bottom: 18px;
    }

    .site-footer__inner {
        padding-top: 2rem;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.15rem;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }

    .site-footer__social-col {
        grid-column: 1 / -1;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 1.35rem;
    }
}

@media (max-width: 560px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}
