.footer {
    background-color: var(--color-primary-background);
}

.footer > .wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: calc(var(--space-xl) * 2);
    padding-top: calc(var(--space-xl) * 2);
    padding-bottom: calc(var(--space-xl) * 2);
}

.footer .col {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    flex: 1;
}

.footer .col:first-child {
    flex: 1.5;
}

.footer .logo img {
    height: 40px;
    width: auto;
    display: block;
    color: var(--color-white);
}

.footer .logo span {
    color: var(--color-white);
    font-size: var(--font-lg);
    font-weight: 700;
    text-decoration: none;
}

.footer .slogan {
    color: var(--color-white-gray);
    font-size: var(--font-xs);
    max-width: 220px;
}

.footer .heading {
    font-size: var(--font-sm);
    color: var(--color-white);
    border-left: 4px solid var(--color-primary);
}

.footer .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer .menu li a {
    color: var(--color-white-gray);
    text-decoration: none;
    font-size: var(--font-xs);
    transition: color .3s ease;
}

.footer .menu li a:hover {
    color: var(--color-white);
}

.footer .contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer .contacts li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-xs);
}

.footer .contacts li svg {
    flex-shrink: 0;
    color: var(--color-white-gray);
}

.footer .contacts li a {
    color: var(--color-white-gray);
    text-decoration: none;
    transition: color .3s ease;
}

.footer .contacts li:hover a {
    color: var(--color-white);
}

.footer .socials {
    display: flex;
    gap: var(--space-md);
}

.footer .socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--color-white) 10%, transparent);
    color: var(--color-white);
    transition: background .3s ease;
    text-decoration: none;
}

.footer .socials a:hover {
    background: var(--color-primary);
}

.footer .socials a svg {
    width: 18px;
    height: 18px;
    color: var(--color-white);
}

.footer .bottom {
    border-top: 1px solid color-mix(in srgb, var(--color-white) 10%, transparent);
}

.footer .bottom .wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.footer .bottom p,
.footer .bottom a {
    font-size: var(--font-xs);
    color: var(--color-white-gray);
    text-decoration: none;
    transition: color .3s ease;
}

.footer .bottom a:hover {
    color: var(--color-white);
}

#footer-contacts {
    outline: 2px solid transparent;
    border-radius: 8px;
    transition: outline-color 0.3s ease, background 0.3s ease;
    padding: var(--space-md);
    margin: calc(var(--space-md) * -1);
}

#footer-contacts.highlight {
    background: rgba(255, 255, 255, 0.08);
    outline-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
    .footer > .wrapper {
        flex-wrap: wrap;
        gap: calc(var(--space-lg) * 2);
    }

    .footer .col:first-child {
        flex: 1 1 100%;
    }

    .footer .col:not(:first-child) {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .footer > .wrapper {
        padding-top: calc(var(--space-lg) * 2);
        padding-bottom: calc(var(--space-lg) * 2);
    }
}

@media (max-width: 620px) {
    .footer .heading {
        padding-left: 0;
        border-left: 0;
    }

    .footer .col,
    .footer .col:not(:first-child) {
        flex: 1 1 100%;
        align-items: center;
        text-align: center;
    }

    .footer .menu {
        align-items: center;
    }

    .footer .slogan {
        max-width: 100%;
    }

    .footer .contacts li {
        justify-content: center;
    }

    .footer .bottom .wrapper {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}
