#footer {
    border-top: 1px solid var(--light-gray);
    background: var(--bg-color);
    color: var(--dark-gray);
    font-size: 0.78rem;
    margin-top: auto;
}

.footer-container {
    padding: 3vh 2vw;
}

.links-list {
    list-style: none;
    flex-wrap: wrap;
}

.links-list li:not(:last-child)::after {
    content: "|";
    margin-left: .5rem;
}

.links-list li a {
    color: var(--dark-gray);
    text-wrap-mode: nowrap;
    font-size: 0.78rem;
}

.links-list li a:hover {
    color: var(--primary-bg-color);
}

#footer-logo {
    width: 12rem;
    height: auto;
}

.footer-contacts {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.5rem;
}

.footer-contacts > a {
    display: flex;
    gap: 0.7rem;
    text-decoration: none;
    align-items: center;
    border-radius: 0.3rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--primary-bg-color);
    color: var(--primary-bg-color);
}

.footer-contacts > a:last-child {
    border: none;
}

.footer-contacts > a:last-child:hover {
    border: none;
    background: initial;
    color: var(--primary-bg-color);
    text-decoration: underline;
}

.footer-contacts > a:hover {
    background: var(--primary-bg-color);
    border: 1px solid var(--bg-color);
    color: var(--bg-color);
}

.footer-contacts > a:nth-child(3) {
    grid-column: 1 / 3;
}

@media screen and (max-width: 1024px) {
    .footer-container > * {
        flex-direction: column;
    }
}