/* Сброс стилей для футера */
.footer * {
    text-align: left;
    box-sizing: border-box;
    direction: ltr;
    min-width: 0;
    width: auto;
}

/* Основные стили футера */
.footer {
    background-color: #FFFFFF;
    padding: 60px 20px 0;
    color: #666;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Логотип */
.footer-logo .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.footer-logo .logo-text {
    color: #000;
    font-size: 1.6em;
    font-weight: 600;
}

/* Заголовки секций */
.footer-section h3 {
    color: #1C2526;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Списки ссылок */
.footer-about ul,
.footer-contacts ul {
    list-style: none;
    padding: 0;
}

.footer-about li,
.footer-contacts li {
    margin-bottom: 10px;
}

.footer-about a,
.footer-contacts a {
    color: #666;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.footer-about a:hover,
.footer-contacts a:hover {
    color: #1C2526;
}

.footer-contacts .contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    stroke: #666;
}

/* Копирайт */
.footer-copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #E5E5E5;
    width: 100%;
    background-color: #FFFFFF;
    margin-top: 40px;
    /* Ограничиваем ширину и центрируем блок на ПК */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-copyright p {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

/* Адаптивность для планшетов (≤768px) */
@media (max-width: 768px) {
    .footer {
        padding: 30px 10px 0;
    }

    .container {
        max-width: 100%;
        padding: 0 10px;
        overflow-x: hidden;
    }

    .footer * {
        text-align: center !important;
        direction: ltr !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
        max-width: 100%;
    }

    .footer-section {
        align-items: center !important;
        text-align: center !important;
        width: 100%;
        max-width: 100%;
    }

    .footer-logo .logo {
        justify-content: center !important;
        margin: 0 auto !important;
    }

    .footer-logo .logo-img {
        width: 35px;
        height: 35px;
    }

    .footer-logo .logo-text {
        font-size: 1.4em;
    }

    .footer-section h3 {
        font-size: 1.1em;
        text-align: center !important;
    }

    .footer-about ul,
    .footer-contacts ul {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        width: 100%;
        max-width: 100%;
    }

    .footer-about li,
    .footer-contacts li {
        margin-bottom: 8px;
        width: 100%;
    }

    .footer-about a,
    .footer-contacts a {
        display: block !important;
        text-align: center !important;
        width: 100%;
    }

    .footer-contacts .contact-icon {
        width: 18px;
        height: 18px;
    }

    .footer-copyright {
        padding: 15px 0;
        margin-top: 20px;
    }
}

/* Адаптивность для мобильных (≤480px) */
@media (max-width: 480px) {
    .footer {
        padding: 20px 5px 0;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-logo .logo-img {
        width: 50px;
        height: 50px;
    }

    .footer-logo .logo-text {
        font-size: 1.4em;
    }

    .footer-section h3 {
        font-size: 1em;
    }

    .footer-about a,
    .footer-contacts a {
        font-size: 0.9em;
    }

    .footer-contacts .contact-icon {
        width: 16px;
        height: 16px;
    }

    .footer-copyright {
        padding: 10px 0;
        margin-top: 15px;
    }
}