footer {
    background-color: var(--footer-bg-color);
    padding: 75px 40px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    padding-left: var(--sidebar-width);
    width: 100vw;
    left: calc(var(--sidebar-width) * -1);
}

footer * {
    color: var(--muted-text-color);
    text-decoration: none;
}
footer a,
footer a * {
    transition: color var(--transition-duration) var(--transition-easing);
}

footer a:hover,
footer a:hover * {
    color: var(--secondary-text-color);
}

footer .logo-with-form {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer .logo-with-form img {
    display: flex;
    width: 187px;
    height: auto;
}

footer .logo-with-form form {
    display: flex;
    gap: 20px;
}

footer .logo-with-form input {
    width: 300px;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 0 25px;
    font-size: 14px;
    color: var(--primary-text-color);
}

footer .logo-with-form input:focus-visible {
    outline: 0;
}

footer .main-btn {
    background: none;
    border: 1px solid var(--btn-bg-color);
    color: var(--secondary-text-color);
    transition: all var(--transition-duration) var(--transition-easing);
}

footer .main-btn:hover {
    color: black;
}

footer .contacts {
    display: flex;
    flex-direction: column;
    gap: 34px;
    max-width: 335px;
}

footer .contacts a {
    display: flex;
    align-items: center;
    gap: 15px;
}

footer .links {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

footer .socials {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    min-height: 100%;
    gap: 10px;
}

footer .socials .socials-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

@media (max-width: 1400px) {
    footer {
        padding: 75px 40px;
        flex-direction: column;
    }

    footer .logo-with-form {
        align-items: center;
        gap: 20px;
    }

    footer .contacts,
    footer .links {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        max-width: none;
    }

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

@media (max-width: 1024px) {
    footer {
        gap: 40px;
    }
    footer .contacts {
        flex-direction: column;
    }

    footer .links {
        gap: 10px;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    footer {
        padding: 33px var(--container-padding-x) 40px;
        gap: 22px;
    }
    footer .logo-with-form {
        position: relative;
        width: 100%;
        align-items: center;
        gap: 28px;
    }

    footer .logo-with-form form {
        width: 100%;
    }
    footer .logo-with-form input {
        width: 100%;
    }

    footer .logo-with-form button {
        position: absolute;
        right: 0;
        border: 0;
        padding-right: 0;
        padding-left: 10px;
        bottom: 4px;
    }

    footer .contacts {
        gap: 25px;
    }

    footer .contacts a {
        align-items: flex-start;
    }

    footer a {
        font-size: 13px;
    }

    footer .links {
        margin-top: 15px;
    }

    footer .socials {
        margin-top: 25px;
        gap: 34px;
        font-size: 13px;
    }

    footer .socials .socials-list {
        gap: 22px;
    }
}
