.footer-main {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 3rem 0 2rem;
    border-top: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(62, 109, 38, 0.02) 0%, 
        rgba(62, 109, 38, 0.01) 50%, 
        transparent 100%);
    pointer-events: none;
}

.footer-logo-text {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-heading {
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-link-primary {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-link-primary:hover {
    color: var(--text-color);
    background: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transform: translateX(0);
}

.footer-phone {
    margin-bottom: 1rem;
}

.footer-phone-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-phone-link:hover {
    color: var(--text-color);
    background: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(62, 109, 38, 0.3);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.footer-social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 109, 38, 0.3);
}

.footer-social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: var(--icon-filter, none);
    transition: all 0.3s ease;
    transform-origin: center;
}

.footer-social-link:hover .footer-social-icon {
    transform: scale(2);
}

/* Tooltip для социальных сетей */
.footer-social-link::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark, #333);
    color: var(--text-light-inverted, #fff);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.footer-social-link::after {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bg-dark, #333);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.footer-social-link:hover::before,
.footer-social-link:hover::after {
    opacity: 1;
    visibility: visible;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-legal-link {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--primary-color);
}

/* Responsive design for footer */
@media (max-width: 768px) {
    .footer-main {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 1.5rem;
        gap: 1.5rem;
    }
    
    .footer-social-link {
        width: 48px;
        height: 48px;
    }
    
    .footer-social-icon {
        width: 24px;
        height: 24px;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .footer-legal-link {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Dark theme styles */
[data-theme='dark'] .footer-main {
    background: var(--bg-color);
    border-top-color: var(--primary-color);
}

[data-theme='dark'] .footer-main::before {
    background: linear-gradient(135deg, 
        rgba(255, 214, 0, 0.03) 0%, 
        rgba(62, 109, 38, 0.02) 50%, 
        transparent 100%);
}

[data-theme='dark'] .footer-social-link {
    background: var(--bg-light);
    border-color: var(--border-color);
}

[data-theme='dark'] .footer-social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme='dark'] .footer-social-icon {
    filter: brightness(0.8);
}

[data-theme='dark'] .footer-social-link:hover .footer-social-icon {
    filter: brightness(0) invert(1);
}

[data-theme='dark'] .footer-social-link::before {
    background: var(--bg-light, #555);
    color: var(--text-color, #fff);
}

[data-theme='dark'] .footer-social-link::after {
    border-top-color: var(--bg-light, #555);
}