/* Стили для футера */

.footer {
    background: var(--color-darker);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    padding: 80px 0 20px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 215, 0, 0.03) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(0, 255, 157, 0.03) 0%,
            transparent 40%
        );
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-flex;
    align-items: baseline;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo .logo-text {
    color: var(--color-gold);
    font-size: 2rem;
    text-shadow: var(--shadow-gold);
}

.footer-logo .logo-sub {
    color: var(--color-white);
    font-size: 1.5rem;
}

.footer-desc {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.social-link:nth-child(2):hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.4);
}

.social-link:nth-child(3):hover {
    background: #4a76a8;
    color: white;
    border-color: #4a76a8;
    box-shadow: 0 5px 20px rgba(74, 118, 168, 0.4);
}

.social-link:nth-child(4):hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.footer-section h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
}

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

.footer-links li a {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--color-gold);
    transform: translateX(5px);
}

.footer-hours {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-hours li {
    color: var(--color-gray);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

.newsletter-form input::placeholder {
    color: var(--color-gray);
}

.newsletter-form button {
    padding: 12px 16px;
    background: var(--color-neon-green);
    border: none;
    border-radius: var(--border-radius);
    color: var(--color-dark);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom i {
    color: var(--color-neon-green);
    margin: 0 5px;
}

/* Анимация появления футера */
@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-content,
.footer-bottom {
    animation: footerFadeIn 0.8s ease-out both;
}

.footer-content {
    animation-delay: 0.1s;
}

.footer-bottom {
    animation-delay: 0.2s;
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 400px;
        margin: 0 auto 50px;
    }
    
    .footer-section {
        align-items: center;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-links li a:hover {
        transform: translateX(0) scale(1.05);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .footer-content {
        gap: 30px;
    }
    
    .footer-desc {
        font-size: 0.9rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-links li a,
    .footer-hours li {
        font-size: 0.9rem;
    }
    
    .newsletter-form input {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .newsletter-form button {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Поддержка тёмного режима */
@media (prefers-color-scheme: dark) {
    .footer {
        background: var(--color-dark);
    }
    
    .social-link {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .newsletter-form input {
        background: rgba(255, 255, 255, 0.03);
    }
}

/* Эффект свечения в футере */
.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--color-gold) 50%,
        transparent 100%);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}