/**
 * Стили для футера сайта
 *
 * @package Empty_Theme
 */

.site-footer {
    background: linear-gradient(135deg, #243b55, #141e30);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0071CE, #00a1ff, #0071CE);
    background-size: 200% auto;
    animation: gradient-flow 5s ease infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Верхняя часть футера */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 30px;
}

/* Колонка с логотипом */
.footer-logo-column {
    flex: 1 1 300px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-site-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.footer-company-info {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
}

.footer-company-info p {
    margin: 0 0 10px 0;
}

/* Колонка с контактами */
.footer-contacts-column {
    flex: 1 1 250px;
}

.footer-column-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #0071CE;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer-icon.phone-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230071CE'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.footer-icon.email-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230071CE'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.footer-contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #0071CE;
}

/* Колонка с меню */
.footer-menu-column {
    flex: 1 1 200px;
}

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

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-menu a::before {
    content: '›';
    margin-right: 5px;
    color: #0071CE;
}

.footer-menu a:hover {
    color: #0071CE;
    transform: translateX(5px);
}

/* Колонка с соцсетями */
.footer-social-column {
    flex: 1 1 200px;
}

.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.footer-social-icon:hover {
    background-color: #0071CE;
    transform: translateY(-3px);
}

.footer-social-icon.facebook:hover {
    background-color: #3b5998;
}

.footer-social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social-icon.telegram:hover {
    background-color: #0088cc;
}

.footer-social-icon.vk:hover {
    background-color: #4c75a3;
}

.footer-social-icon.whatsapp:hover {
    background-color: #25d366;
}

/* Нижняя часть футера */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.footer-copyright {
    flex: 1 1 400px;
    margin-bottom: 15px;
}

.footer-copyright p {
    margin: 0;
    opacity: 0.7;
}

.footer-policy-links {
    flex: 1 1 400px;
    text-align: right;
}

.footer-policy-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-policy-links a:hover {
    opacity: 1;
    color: #0071CE;
}

.footer-divider {
    margin: 0 10px;
    opacity: 0.5;
}

/* Адаптивные стили */
@media (max-width: 992px) {
    .footer-top {
        gap: 40px;
    }

    .footer-logo-column,
    .footer-contacts-column,
    .footer-menu-column,
    .footer-social-column {
        flex: 1 1 40%;
    }
}

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

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-logo-column,
    .footer-contacts-column,
    .footer-menu-column,
    .footer-social-column {
        flex: 1 1 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-copyright,
    .footer-policy-links {
        flex: 1 1 100%;
        text-align: center;
    }

    .footer-policy-links {
        margin-top: 15px;
    }
}
