.site-footer {
    position: relative;
    width: calc(100vw - 56px);
    margin-inline: calc((100% - (100vw - 56px)) / 2);
    margin-top: 76px;
    padding: 0;
    color: #2f3947;
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    text-align: right;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(78, 70, 58, .28), transparent);
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(170px, .65fr) minmax(230px, .8fr);
    gap: 22px;
    padding: 28px;
    border: 1px solid #cfc6b7;
    border-radius: 8px;
    background: #d9d2c3;
    box-shadow: 0 18px 45px rgba(78, 70, 58, .14);
    backdrop-filter: none;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #111827;
    text-decoration: none;
}

.footer-brand img {
    width: 92px;
    height: 58px;
    object-fit: contain;
    filter:
        drop-shadow(1px 0 0 rgba(255, 255, 255, .85))
        drop-shadow(-1px 0 0 rgba(255, 255, 255, .85))
        drop-shadow(0 1px 0 rgba(255, 255, 255, .85))
        drop-shadow(0 -1px 0 rgba(255, 255, 255, .85));
}

.footer-brand strong {
    display: block;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.5;
}

.footer-brand small {
    display: block;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
}

.footer-brand-block p {
    max-width: 520px;
    margin: 16px 0 0;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    line-height: 2;
}

.footer-links,
.footer-contact {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links strong,
.footer-contact strong {
    margin-bottom: 4px;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
}

.footer-links a,
.footer-contact a {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
    text-decoration: none;
}

.footer-links a {
    width: fit-content;
    transition: color .2s ease, transform .2s ease;
}

.footer-links a:hover {
    color: #12324a;
    transform: translateX(-3px);
}

.footer-contact a {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid rgba(78, 70, 58, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .42);
}

.footer-contact a:hover {
    background: rgba(255, 255, 255, .62);
}

.footer-contact span {
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 16px 4px 0;
}

.footer-bottom > strong {
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 18px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(18, 50, 74, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .42);
    color: #12324a;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.footer-social a:hover {
    background: #fff;
}

@media (max-width: 860px) {
    .site-footer {
        width: calc(100vw - 24px);
        margin-inline: calc((100% - (100vw - 24px)) / 2);
        margin-top: 44px;
    }

    .footer-shell {
        grid-template-columns: 1fr;
        padding: 20px;
    }

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

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

@media (max-width: 560px) {
    .footer-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-brand img {
        width: 86px;
        height: 50px;
    }
}
