/* Стили футера */
footer {
    background: var(--main-bg-color); /* Полупрозрачный фон в цветовой гамме сайта */
    color: var(--main-text-color);
    padding: 40px 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    margin: 20px;
    box-sizing: border-box; /* Чтобы padding и margin не влияли на ширину */
}

.footer-column h4 {
    font-size: 1.2rem;
    color: var(--hover-color);
    margin-bottom: 20px;
    text-align: left; /* Текст заголовков слева */
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Текст ссылок слева */
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a,
.footer-contact p a,
.footer-bottom .footer-mobile {
    position: relative; /* Для позиционирования псевдоэлемента */
    color: var(--main-text-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease-in-out; /* Плавный переход цвета и масштаба */
}

.footer-column ul li a::after,
.footer-contact p a::after,
.footer-bottom .footer-mobile::after {
    content: '';
    position: absolute;
    left: 50%; /* Начинаем с центра */
    bottom: -2px; /* Подчеркивание чуть ниже текста */
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--hover-color), transparent); /* Градиент для утончения */
    transition: width 0.4s ease, left 0.4s ease; /* Плавное изменение ширины и положения */
    transform: translateX(-50%); /* Центрируем относительно текста */
}

.footer-column ul li a:hover::after,
.footer-contact p a:hover::after,
.footer-bottom .footer-mobile:hover::after {
    width: 120%; /* Линия выходит за границы текста */
    left: 50%; /* Остается центрированной */
}

.footer-column ul li a:hover,
.footer-contact p a:hover,
.footer-bottom .footer-mobile:hover {
    color: var(--hover-color);
    transform: scale(1.1); /* Увеличение при наведении */
}

.footer-contact p {
    margin: 10px 0;
    text-align: left; /* Текст контактов слева */
}

.footer-contact img {
    margin-top: 20px;
    width: 150px;
    display: block; /* Убираем лишние отступы */
    margin-left: 0; /* Изображение слева */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--main-bg-color); /* Полупрозрачный фон в цветовой гамме сайта */
    padding: 10px 20px;
    border-radius: 16px; /* Скругленные углы снизу */
    box-sizing: border-box;
    width: 100%;
    text-align: left; /* Текст в нижней части слева */
}

.footer-bottom .rights {
    text-align: left; /* Текст копирайта слева */
    flex-grow: 1;
}

.footer-bottom .contact-info {
    text-align: right; /* Контактная информация справа */
    flex-grow: 1;
}

/* Стиль для заголовка "О нас" */
.page-title {
    margin-top: 2%;
    text-align: center;
}

.page-title h1 {
    font-size: 2rem; /* Размер шрифта */
    margin: 0; /* Убираем отступы вокруг заголовка */
    color: #333; /* Цвет текста */
}

/* Медиа-запросы для мобильной версии */
@media (max-width: 1068px) {
    footer {
        padding: 20px; /* Уменьшаем отступы для мобильной версии */
        border-radius: 0; /* Убираем скругления углов */
    }

    .footer-container {
        flex-direction: column;
        align-items: center; /* Центрируем колонки */
    }

    .footer-column {
        margin: 10px 0; /* Уменьшаем отступы между колонками */
        width: 100%; /* Каждая колонка занимает всю ширину */
        text-align: center; /* Центрируем содержимое */
    }

    .footer-column h4 {
        font-size: 1.1rem; /* Уменьшаем размер заголовков */
    }

    .footer-column ul li {
        margin-bottom: 5px; /* Уменьшаем отступы между пунктами списка */
    }

    .footer-contact p {
        margin: 5px 0; /* Уменьшаем отступы между параграфами */
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center; /* Центрируем элементы */
        text-align: center;
        padding: 10px; /* Уменьшаем отступы */
    }

    .footer-bottom .contact-info {
        order: 1;
        margin-bottom: 10px;
        text-align: center; /* Центрируем контактную информацию */
    }

    .footer-bottom .rights {
        order: 2;
        text-align: center; /* Центрируем копирайт */
    }

    .footer-contact img {
        margin-top: 10px; /* Уменьшаем отступ сверху изображения */
        width: 120px; /* Уменьшаем размер логотипа */
    }

    /* Уменьшение эффекта подчеркивания для мобильной версии */
    .footer-column ul li a::after,
    .footer-contact p a::after,
    .footer-bottom .footer-mobile::after {
        height: 1px; /* Более тонкая линия */
        background: linear-gradient(90deg, transparent, var(--hover-color), transparent);
    }

    .footer-column ul li a:hover::after,
    .footer-contact p a:hover::after,
    .footer-bottom .footer-mobile:hover::after {
        width: 110%; /* Линия немного выходит за границы текста */
    }

    /* Анимация увеличения в мобильной версии */
    .footer-column ul li a:hover,
    .footer-contact p a:hover,
    .footer-bottom .footer-mobile:hover {
        transform: scale(1.05); /* Меньшее увеличение для мобильной версии */
        transition: transform 0.3s ease-in-out; /* Плавный переход */
    }
}