/* ===== Footer ===== */
.footer {
    background: var(--blue);
    color: var(--white);
    padding: 51px var(--container-pad);
    overflow: hidden;
}

.footer__inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
    max-width: calc(var(--container) - 2 * var(--container-pad));
    margin: 0 auto;
}

.footer__brand {
    flex: 0 1 335px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.footer__logo {
    width: 66px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.footer__copyright {
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
    line-height: 18px;
}

.footer__developers {
    display: flex;
    align-items: center;
    width: 231px;
    height: 73px;
    max-width: 100%;
    flex: none;
    gap: 16px;
    padding: 13.5px 16.5px 11.5px 15px;
    border-radius: 100px;
    border: 1.5px solid #ffffff;
    margin-top: auto;
}

.footer__developers-logo {
    --size: 44px;

    width: var(--size);
    height: var(--size);
    flex: none;
}

.footer__developers-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer__developers-content {
    font-family: var(--developer-family);
    font-size: 11px;
    line-height: 138%;
    font-weight: 500;
    color: #ffffff;
}

.footer__developers-content a {
    text-decoration: underline;
}

.footer__col {
    flex: 0 0 auto;
}

.footer__heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 24px;
}

.footer__links li + li {
    margin-top: 15px;
}

.footer__links a {
    font-size: 16px;
    line-height: normal;
    font-weight: 500;
    color: var(--white);
    transition: opacity var(--transition);
}

.footer__links a:hover {
    color: var(--light-blue);
}

.footer__col--contacts {
    flex: 1 1 300px;
    max-width: 417px;
}

.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__contact {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer__contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer__contact a,
.footer__contact span {
    font-size: 25px;
    font-weight: 500;
    color: var(--white);
    line-height: normal;
    word-break: break-word;
}

.footer__contact a:hover {
    opacity: 0.8;
}

.footer__socials {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 42px;
    flex-wrap: wrap;
}

.footer__socials a img {
    width: auto;
    height: 48px;
    object-fit: contain;
    transition: opacity var(--transition);
}

.footer__socials a:hover svg {
    opacity: 0.7;
}

@media (max-width: 1440px) {
    .footer__contact a,
    .footer__contact span {
        font-size: 20px;
    }
}

@media (max-width: 1280px) {
    .footer__contact a,
    .footer__contact span {
        font-size: 16px;
    }

    .footer__socials a img {
        height: 36px;
    }
}

@media (max-width: 1170px) {
    .footer__inner {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer__brand {
        flex: 0 0 100%;
    }

    .footer__col--contacts {
        flex: 0 0 100%;
    }

    .footer {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 15px;
    }

    .footer__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .footer__brand {
        align-items: center;
        text-align: center;
        flex: none;
        min-height: auto;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--light-blue);
    }

    .footer__col {
        text-align: center;
        flex: none;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--light-blue);
    }

    .footer__col--contacts {
        flex: none;
    }

    .footer__heading {
        margin-bottom: 15px;
    }

    .footer__contact-list {
        align-items: center;
    }

    .footer__contact {
        align-items: center;
        gap: 10px;
        text-align: left;
        max-width: 90%;
    }

    .footer__contact:first-child .footer__contact-icon {
        width: 21px;
        height: 21px;
    }

    .footer__contact a, .footer__contact span {
        font-size: 18px;
    }

    .footer__socials {
        justify-content: center;
        gap: 34px;
        margin-top: 20px;
    }

    .footer__socials a svg {
        width: 36px;
        height: 36px;
    }

    .footer__bottom {
        display: flex;
        justify-content: center;
    }
}