/* ===== ОБНОВЛЕННЫЙ FOOTER.CSS ===== */

/* Добавляем эти стили для приклеивания футера к низу */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1 0 auto;
}

main {
    flex: 1 0 auto;
}

/* Существующие стили футера */
footer {
    background: linear-gradient(to bottom, #f0e6d4, #e6d6b5);
    padding: 3rem 0 1.5rem;
    width: 100%;
    flex: 0 0 auto;
    border-top: 2px solid #d7b98f;
    color: #5c3d09;
    margin-top: auto; /* Добавляем это свойство */
}

/* Остальные существующие стили остаются без изменений */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    padding: 0 1rem;
}

footer h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #5c3d09;
    position: relative;
    padding-bottom: 0.5rem;
}

    footer h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background: #e6b236;
    }

footer p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

    footer ul li {
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
    }

        footer ul li i {
            margin-right: 0.75rem;
            color: #e6b236;
            min-width: 20px;
        }

footer a {
    color: #5c3d09;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

    footer a:hover {
        color: #e6b236;
        transform: translateX(5px);
    }

/* Форма подписки */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.subscribe-input {
    padding: 0.75rem;
    border: 1px solid #d7b98f;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .subscribe-input:focus {
        outline: none;
        border-color: #e6b236;
        box-shadow: 0 0 0 2px rgba(230, 178, 54, 0.2);
    }

.subscribe-btn {
    padding: 0.75rem;
    background: #e6b236;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .subscribe-btn:hover {
        background: #d5a22c;
        transform: translateY(-2px);
    }

/* Социальные иконки */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(176, 136, 65, 0.2);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            background: #e6b236;
            transform: translateY(-3px);
        }

    .social-links i {
        font-size: 1.25rem;
        margin: 0;
    }

/* Нижняя часть футера */
.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e6d6b5;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 767px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .footer-section {
        padding: 0;
    }

    footer h3 {
        margin-top: 1.5rem;
        font-size: 1.1rem;
    }

    footer ul li {
        margin-bottom: 0.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 2rem 0 1rem;
    }

    .footer-container {
        padding: 0 0.5rem;
    }

    footer h3 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
        margin-bottom: 1rem;
    }

    footer p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    footer ul li {
        font-size: 0.9rem;
    }

    .subscribe-form {
        margin-top: 1rem;
    }

    .footer-bottom {
        padding: 1rem 0.5rem 0;
        font-size: 0.8rem;
    }
}
