.footer {
    background-color: var(--background-dark-grey);
    padding: 30px 0 40px;
    margin-bottom: auto;
    color: var(--color-white);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: auto;
    padding: 0 15px;
}

.footer-content {
    background-color: var(--background-medium-grey);
    border-radius: 20px;
    padding: 40px;
}

.footer-main {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 40px;
}

/* Блок контактов */
.footer-contacts {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo {
    display: block;
    width: 160px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.2s;
}

.contact-link:hover {
    opacity: 0.8;
    color: var(--color-white);
}

/* Блок навигации */
.footer-navigation {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    min-width: 0;
}

.nav-column {
    flex: 1;
    text-decoration: none;
    min-width: 200px;
    width: 200px;
}

.nav-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 16px;
    color: var(--color-white);
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
}

.nav-title a {
    color: var(--color-white);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.nav-links li {
    width: 100%;
    overflow: visible;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    opacity: 0.8;
    transition: opacity 0.2s;
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
    display: block;
}

.nav-links a:hover {
    opacity: 1;
}

/* Разделительная линия */
.footer-divider {
    height: 1px;
    background-color: var(--background-light-transparent-10); /* Assuming rgba(255, 255, 255, 0.1) is light */
    margin: 40px 0;
}

/* Нижняя часть футера */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    font-size: 14px;
}

.copyright {
    opacity: 0.6;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
}

.footer-link:hover {
    opacity: 0.8;
}

/* Медиа-запросы */
@media (max-width: 1199px) {
    .footer-main {
        gap: 40px;
    }

    .nav-column {
        min-width: 180px;
    }
    .footer-container{
        max-width: 960px;
    }
}

@media (max-width: 959px) {
    .footer-content {
        padding: 30px;
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-contacts {
        flex: none;
        width: 100%;
    }

    .footer-navigation {
        flex-wrap: wrap;
        gap: 30px;
    }

    .nav-column {
        flex: 0 0 calc(50% - 15px);
        min-width: 0;
        width: calc(50% - 15px);
    }
}

@media (max-width: 639px) {
    .footer {
        padding: 40px 0 30px;
    }

    .footer-content {
        padding: 20px;
    }

    .footer-main {
        gap: 30px;
    }

    .footer-navigation {
        gap: 20px;
    }

    .nav-column {
        flex: 0 0 100%;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
