/* ===== АНИМИРОВАННЫЙ ФУТЕР SECRETKA ===== */

.footer {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    border-top: 3px solid #8B4513;
    overflow: hidden;
    margin-top: 60px;
}

/* Анимированный фон */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.footer-noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.03) 0%, transparent 50%);
    animation: noiseShift 8s ease-in-out infinite alternate;
}

.footer-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(139, 69, 19, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 69, 19, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.footer-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(139, 69, 19, 0.02) 2px,
        rgba(139, 69, 19, 0.02) 4px
    );
    animation: scanlineMove 3s linear infinite;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #8B4513;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 1.2s; }
.particle:nth-child(3) { left: 50%; animation-delay: 2.4s; }
.particle:nth-child(4) { left: 70%; animation-delay: 3.6s; }
.particle:nth-child(5) { left: 90%; animation-delay: 4.8s; }

/* Основной контент */
.footer-content {
    position: relative;
    z-index: 2;
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

/* Брендинг */
.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #8B4513;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.3);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.footer-logo-text h3 {
    color: #8B4513;
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
}

.footer-tagline {
    color: #d4d4c4;
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.footer-description {
    color: #999;
    line-height: 1.6;
    margin-top: 15px;
    font-size: 0.95rem;
}

/* Навигация */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: #8B4513;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #8B4513, transparent);
    animation: underlineGlow 2s ease-in-out infinite alternate;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.footer-column ul li:hover {
    transform: translateX(10px);
}

.footer-column ul li a {
    color: #d4d4c4;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-column ul li a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #8B4513;
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #8B4513;
    text-shadow: 0 0 5px rgba(139, 69, 19, 0.5);
}

.footer-column ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Статистика */
.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(139, 69, 19, 0.5);
    border: 1px solid rgba(139, 69, 19, 0.7);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(139, 69, 19, 0.6);
    border-color: rgba(139, 69, 19, 0.8);
    transform: translateY(-2px);
}

.stat-number {
    color: #8B4513;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
}

.stat-label {
    color: #d4d4c4;
    font-size: 0.85rem;
}

/* Социальные ссылки */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d4d4c4;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid rgba(139, 69, 19, 0.4);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
}

.social-link:hover {
    color: #8B4513;
    border-color: #8B4513;
    background: rgba(139, 69, 19, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
}

.social-icon {
    font-size: 1.1rem;
}

/* Разделитель */
.footer-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8B4513, transparent);
    animation: dividerPulse 3s ease-in-out infinite;
}

.divider-icon {
    font-size: 1.5rem;
    color: #8B4513;
    animation: iconSpin 10s linear infinite;
}

/* Нижняя секция */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(139, 69, 19, 0.2);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-copyright,
.footer-legal {
    color: #999;
    font-size: 0.85rem;
}

.separator {
    margin: 0 8px;
    opacity: 0.5;
}

.footer-tech {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.tech-info {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.tech-label {
    color: #666;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.tech-value {
    color: #8B4513;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.status-online {
    animation: statusBlink 2s ease-in-out infinite;
}

/* Секретное сообщение */
.footer-secret {
    margin-top: 30px;
    text-align: center;
}

.secret-message {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(139, 69, 19, 0.05);
    border: 1px dashed rgba(139, 69, 19, 0.3);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #8B4513;
    opacity: 0.7;
    animation: secretGlow 4s ease-in-out infinite alternate;
}

/* Эффекты */
.footer-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.laser-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #8B4513, transparent);
    animation: laserSweep 8s ease-in-out infinite;
    opacity: 0.6;
}

.data-stream {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0.3;
}

.data-bit {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #8B4513;
    animation: dataBlink 1s ease-in-out infinite;
}

.data-bit:nth-child(1) { animation-delay: 0s; }
.data-bit:nth-child(2) { animation-delay: 0.2s; }
.data-bit:nth-child(3) { animation-delay: 0.4s; }
.data-bit:nth-child(4) { animation-delay: 0.6s; }
.data-bit:nth-child(5) { animation-delay: 0.8s; }

/* ===== АНИМАЦИИ ===== */

@keyframes noiseShift {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(10px) translateY(5px); }
}

@keyframes gridMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(50px) translateY(50px); }
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes particleFloat {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(100px) scale(0.5); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(-20px) scale(1); 
    }
}

@keyframes logoGlow {
    0% { box-shadow: 0 0 20px rgba(139, 69, 19, 0.3); }
    100% { box-shadow: 0 0 30px rgba(139, 69, 19, 0.6); }
}

@keyframes underlineGlow {
    0% { box-shadow: 0 0 5px rgba(139, 69, 19, 0.3); }
    100% { box-shadow: 0 0 10px rgba(139, 69, 19, 0.6); }
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes secretGlow {
    0% { 
        opacity: 0.7; 
        text-shadow: 0 0 5px rgba(139, 69, 19, 0.3); 
    }
    100% { 
        opacity: 0.9; 
        text-shadow: 0 0 10px rgba(139, 69, 19, 0.6); 
    }
}

@keyframes laserSweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

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

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 1200px) {
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-nav .footer-column:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-tech {
        text-align: center;
    }
    
    .tech-info {
        justify-content: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo-text h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 40px 0 20px;
    }
    
    .footer-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo-text h3 {
        font-size: 1.3rem;
    }
    
    .footer-stats {
        gap: 10px;
    }
    
    .stat-item {
        padding: 8px 12px;
    }
    
    .social-link {
        padding: 6px 10px;
    }
}