.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(980px, calc(100vw - 5rem));
    margin: 0 auto;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    align-items: start;
    gap: 0;
}

.text-link,
.footer-links a,
.footer-details a {
    color: var(--accent-dark);
}

.site-footer {
    padding: 2.1rem 0 2rem;
    border-top: 1px solid var(--line);
    background: #f7f4ef;
    font-size: 0.8rem;
}

.footer-company p,
.footer-details {
    margin: 0;
}

.footer-company {
    display: grid;
    gap: 0.1rem;
    align-content: start;
    justify-items: start;
    width: 170px;
    line-height: 1.25;
    justify-self: start;
}

.footer-links {
    display: grid;
    gap: 0.1rem;
    justify-items: start;
    width: 120px;
    line-height: 1.25;
}

.footer-details {
    display: flex;
    justify-content: flex-end;
    padding-left: 0;
    justify-self: end;
}

.footer-company a,
.footer-links a {
    color: #111;
}

.footer-links a {
    text-decoration: none;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 1.5rem 0 1.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        width: calc(100vw - 2rem);
        gap: 1.2rem;
    }

    .footer-company,
    .footer-links {
        width: auto;
    }

    .footer-details {
        justify-self: start;
        justify-content: flex-start;
        padding-left: 0;
    }
}
