.footer {
    background-color: #ffffff;
    color: #f2f7ff;
    padding: 60px 0 24px;
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/skin/ukexpes_skin/frontend/img/layout/images/footer-bg.png?v=1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.4;
}

.footer a {
    color: #dce8ff;
    text-decoration: none;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.footer__nav-wrap {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.footer__nav-wrap .footer__column {
    padding-right: 40px;
    border-right: 1px solid #D9EAFC;
}

.footer__contacts {
    width: 270px;
    flex: 0 0 270px;
}

.footer__title {
    margin: 0 0 16px;
    font-family: Manrope;
    font-weight: 700;
    font-size: 18px;
    line-height: 140%;
    color: #001F48;
    text-wrap: nowrap;
}

.footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__list li {
    margin: 0 0 12px;
    text-wrap: nowrap;
}

.footer__list li:last-child {
    margin-bottom: 0;
}

.footer__list a {
    font-family: Manrope, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 130%;
    color: #001F48;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer__socials {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 22px;
}

.footer__socials a {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid #1E17E0;
    background-color: #1E17E0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.footer__social-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex: 0 0 20px;
    color: #ffffff;
    transition: color 0.2s ease;
}

.footer__contact-links {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.footer__contact-links a {
    font-family: Manrope;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    color: #001F48;
}

@media (hover: hover) {
    .footer__socials a:hover {
        background-color: transparent;
    }

    .footer__socials a:hover .footer__social-icon {
        color: #1E17E0;
    }

    .footer__contact-links a:hover {
        color: #1E17E0;
        text-decoration: none;
    }

    .footer__list a:hover {
        color: #1E17E0;
        text-decoration: none;
        text-shadow: 0 0 0.3px currentColor, 0 0 0.3px currentColor;
    }
}

.footer__bottom {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid #D9EAFC;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer__copyright {
    font-family: Manrope;
    font-weight: 400;
    font-size: 12px;
    line-height: 130%;
    color: #001F48;
}

.footer__developer {
    font-family: Manrope;
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    text-align: right;
    color: #001F48;
}

@font-face {
    font-family: 'Webspark';
    src: url('/skin/ukexpes_skin/frontend/fonts/Webspark-logo-Regular.woff2') format('woff2'),
         url('/skin/ukexpes_skin/frontend/fonts/Webspark-logo-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.footer__developer a {
    color: #000;
    text-decoration: none;
    font-family: Webspark;
    font-size: 23px;
    vertical-align: -0.11em;
    transition: color 0.2s ease;
}

@media (hover : hover) {
    .footer__developer a:hover {
        color: rgba(0, 0, 0, 0.75);
        text-decoration: none;
    }
}

@media (max-width: 1440px) {
    .footer__nav-wrap {
        gap: 24px;
    }

    .footer__nav-wrap .footer__column {
        padding-right: 24px;
    }

    .footer__title {
        font-size: 16px;
    }

    .footer__list a {
        font-size: 14px;
    }

    .footer__contact-links a {
        font-size: 18px;
    }

    .footer__contacts {
        width: 230px;
        flex: 0 0 230px;
    }
}

@media (max-width: 1200px) {
    .footer__nav-wrap {
        gap: 16px;
    }

    .footer__nav-wrap .footer__column {
        padding-right: 16px;
    }

    .footer__list li {
        text-wrap: initial;
    }

    .footer__title {
        text-wrap: initial;
    }

    .footer__contacts {
        width: auto;
        flex: 0 0 auto;
    }

    .footer__contact-links a {
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .footer__top {
        flex-wrap: wrap;
        gap: 24px;
    }

    .footer__contacts {
        width: 100%;
        flex: 0 0 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .footer__nav-wrap {
        flex: 1;
        justify-content: space-between;
    }

    .footer__column.footer__column--legal {
        border: none;
    }

    .footer__socials {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer__top {
        flex-direction: column;
        gap: 0;
    }

    .footer__nav-wrap {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .footer__list a {
        font-size: 16px;
    }

    .footer__title {
        font-size: 18px;
    }

    .footer__nav-wrap .footer__column {
        padding-right: 0;
        padding-bottom: 20px;
        padding-top: 20px;
        border-right: none;
        border-bottom: 1px solid #D9EAFC;
    }

    .footer__nav-wrap .footer__column:first-child {
        padding-top: 0;
    }

    .footer__nav-wrap .footer__column:last-child {
        border-bottom: none;
    }

    .footer__contacts {
        flex-direction: column;
        gap: 20px;
        padding-top: 24px;
        border-top: 1px solid #D9EAFC;
        margin-top: 4px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 32px;
    }

    .footer__developer {
        text-align: left;
    }
}

@media (max-width: 568px) {
    .footer__socials {
        width: 100%;
        justify-content: space-between;
    }
}