.mg-site-footer {
    margin-top: 48px;
    direction: rtl;
    color: #f6f6f6;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    background: #070707;
}

.mg-site-footer,
.mg-site-footer * {
    box-sizing: border-box;
}

.mg-site-footer a {
    text-decoration: none;
}

.mg-site-footer__inner {
    width: min(calc(100% - 32px), 1180px);
    margin-inline: auto;
    padding: 38px 0;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 190px;
    gap: 36px;
    align-items: flex-start;
}

.mg-footer-brand {
    text-align: center;
}

.mg-footer-brand__logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(247, 213, 106, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.mg-footer-brand__logo img {
    width: 100%;
    height: 100%;
    padding: 4px;
    display: block;
    object-fit: contain;
}

.mg-footer-brand strong,
.mg-footer-brand > span {
    display: block;
}

.mg-footer-brand strong {
    margin-bottom: 8px;
    color: #f7d56a;
    font-size: 1rem;
    line-height: 1.25;
}

.mg-footer-brand > span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.35;
}

.mg-footer-socials {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.mg-footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(247, 213, 106, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.88rem;
    font-weight: 700;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mg-footer-social-link svg {
    width: 18px;
    height: 18px;
    fill: #f7d56a;
}

.mg-footer-social-link:hover {
    transform: translateY(-1px);
    color: #f7d56a;
    border-color: rgba(247, 213, 106, 0.5);
}

.mg-footer-risk h2 {
    margin: 0 0 10px;
    color: #f3d77c;
    font-size: 1.08rem;
}

.mg-footer-risk p {
    margin: 0;
    color: #9f9f9f;
    font-size: 14px;
    line-height: 1.9;
}

.mg-footer-links {
    display: grid;
    gap: 10px;
}

.mg-footer-links a {
    position: relative;
    width: fit-content;
    padding-bottom: 3px;
    color: #ddd;
    font-size: 14px;
    transition: color 0.2s ease;
}

.mg-footer-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #f3d77c;
    transition: width 0.2s ease;
}

.mg-footer-links a:hover {
    color: #f3d77c;
}

.mg-footer-links a:hover::after {
    width: 100%;
}

.mg-site-footer__copyright {
    padding: 14px;
    color: #9f9f9f;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 900px) {
    .mg-site-footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mg-footer-risk {
        text-align: center;
    }

    .mg-footer-links {
        justify-items: center;
    }
}

@media (max-width: 640px) {
    .mg-site-footer__inner {
        width: min(calc(100% - 28px), 1180px);
        padding: 32px 0;
    }

    .mg-footer-brand__logo {
        width: 54px;
        height: 54px;
    }

    .mg-footer-risk p {
        font-size: 13px;
    }
}
