/* ===================================
   FOOTER
   layout/footer.css
   =================================== */

footer {
    background-image:
        linear-gradient(135deg, rgba(44, 90, 160, 0.95), rgba(34, 70, 130, 0.95)),
        url('/images/main-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 50px 0 30px;
    position: relative;
    overflow: hidden;
}

/* Декоративный элемент */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Контейнер футера */
.footer-content {
    position: relative;
    z-index: 1;
}

/* Заголовки в футере */
footer h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Описание компании */
.footer-about {
    margin-bottom: 2rem;
}

.footer-about p {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Логотип в футере */
.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

/* Ссылки в футере */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    margin-right: 8px;
    font-size: 0.9em;
}

/* Контактная информация */
.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-contact-item i {
    font-size: 1.1rem;
    margin-right: 12px;
    color: var(--accent-color);
}

.footer-contact-item a {
    color: white;
    transition: var(--transition-base);
}

.footer-contact-item a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Социальные сети */
.footer-social {
    margin-top: 2rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    color: white;
}

.social-link i {
    font-size: 1.1rem;
}

/* Нижняя часть футера */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-rights {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Newsletter форма */
.footer-newsletter {
    margin-top: 2rem;
}

.footer-newsletter p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.newsletter-input {
    flex: 1;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    transition: var(--transition-base);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
}

.newsletter-btn {
    padding: 10px 25px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
}

.newsletter-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Разделитель колонок */
.footer-column {
    position: relative;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .footer-column:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 1px;
        background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
    }
}

/* Волновой разделитель сверху */
.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.footer-wave .shape-fill {
    fill: var(--light-color);
}

/* Адаптивность */
@media (max-width: 991px) {
    footer {
        padding: 40px 0 25px;
    }

    .footer-column {
        margin-bottom: 2rem;
    }

    .footer-column::after {
        display: none;
    }
}

@media (max-width: 768px) {
    footer {
        text-align: center;
    }

    footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a::before {
        display: none;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-input,
    .newsletter-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 30px 0 20px;
    }

    footer h5 {
        font-size: 1.1rem;
    }

    .footer-logo {
        height: 40px;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .footer-copyright,
    .footer-rights {
        font-size: 0.85rem;
    }
}