:root {
    --primary: #fffaf6;
    --accent: #b76e1b;
    --text: #4a4a4a;
    --bg-white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --radius: 20px;
}

.footer {
    background-color: var(--primary);
    padding: 60px 20px 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

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

.footer-brand, .footer-nav, .footer-social-groups, .footer-contact {
    flex: 1 1 200px; /* Позволяет блокам сжиматься и растягиваться */
}

.footer-logo {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-title {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* Немного увеличим для удобства нажатия */
    height: 44px;
    background-color: var(--bg-white);
    color: var(--accent); /* Цвет иконки через currentColor */
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px; /* Отступ внутри круга для иконки */
}

/* Стилизация SVG внутри круга */
.social-link svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor; /* Позволяет иконке менять цвет вместе с текстом ссылки */
}

.social-link:hover {
    background-color: var(--accent);
    color: var(--bg-white); /* Цвет иконки станет белым при наведении */
    transform: translateY(-4px);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-brand, .footer-nav, .footer-social-groups, .footer-contact {
        flex: 1 1 100%;
    }
}