.footer-grid {
    grid-template-columns: minmax(220px, 1.35fr) minmax(130px, .8fr) minmax(130px, .8fr) 132px;
    gap: 36px;
}

.footer-grid > .footer-license {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.enamad-badge {
    width: 112px;
    min-height: 112px;
    display: grid;
    place-items: center;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.enamad-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.enamad-badge img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100px;
}

@media (max-width: 780px) {
    .site-footer {
        display: block;
        padding: 20px 0 calc(96px + env(safe-area-inset-bottom));
    }

    .footer-grid {
        display: block;
    }

    .footer-grid > div:not(.footer-license) {
        display: none;
    }

    .footer-grid > .footer-license {
        gap: 8px;
    }

    .enamad-badge {
        width: 96px;
        min-height: 96px;
        border-radius: 16px;
    }

    .enamad-badge img {
        max-height: 84px;
    }

    .site-footer > p {
        margin: 12px 16px 0;
    }
}
