/* Footer Contact Enhancement CSS - Максимальная контрастность */

/* Основные стили для footer с высоким контрастом */
#footer {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    padding: 60px 0 40px 0 !important;
}

/* Принудительные стили для всех заголовков в footer */
#footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6 {
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}

/* Стили для основного текста в footer */
#footer p, #footer li, #footer span {
    color: #f0f0f0 !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
}

/* Стили для мелкого текста */
#footer small, #footer .small {
    color: #e0e0e0 !important;
    font-size: 0.875rem !important;
}

/* Стили для ссылок с максимальным контрастом */
#footer a {
    color: #93c5fd !important;
    text-decoration: underline !important;
    transition: color 0.3s ease !important;
}

#footer a:hover, #footer a:focus {
    color: #dbeafe !important;
    text-decoration: underline !important;
}

/* Специальные стили для контактной секции */
.contact-info {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.contact-info h6 {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.contact-info p {
    color: #ffffff !important;
    font-size: 1rem !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Эмодзи иконки стили */
.contact-info p:has-text("📧"), 
.contact-info p:has-text("📞"), 
.contact-info p:has-text("📍") {
    font-size: 1.1rem !important;
}

/* Стили для социальных ссылок */
#footer .org-social-link, 
#footer .social-link {
    color: #93c5fd !important;
    background: rgba(147, 197, 253, 0.1) !important;
    border: 1px solid #93c5fd !important;
    border-radius: 5px !important;
    padding: 8px 12px !important;
    display: inline-block !important;
    margin: 4px !important;
    transition: all 0.3s ease !important;
}

#footer .org-social-link:hover, 
#footer .social-link:hover {
    background: #93c5fd !important;
    color: #1a1a1a !important;
    transform: translateY(-2px) !important;
}

/* Newsletter секция стили - предотвращение конфликтов */
.newsletter-section {
    background: #f8f9fa !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-top: 20px !important;
}

.newsletter-section h4 {
    color: #333333 !important;
    font-weight: 600 !important;
}

.newsletter-section p {
    color: #666666 !important;
}

.newsletter-input {
    background: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #93c5fd !important;
    border-radius: 4px !important;
    padding: 10px 15px !important;
}

.newsletter-button {
    background: #007bff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
}

.newsletter-success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
    border-radius: 4px !important;
    padding: 10px !important;
    margin-top: 10px !important;
}

/* Принудительные стили для всех элементов footer (кроме newsletter) */
#footer *:not(.newsletter-section):not(.newsletter-section *) {
    color: inherit !important;
}

/* Стили для разделителей */
#footer hr {
    border-color: #4a4a4a !important;
    margin: 30px 0 !important;
}

/* Accessibility стили для фокуса */
#footer a:focus, 
#footer button:focus {
    outline: 3px solid #93c5fd !important;
    outline-offset: 2px !important;
}

/* High contrast mode медиа-запросы */
@media (prefers-contrast: high) {
    #footer {
        background-color: #000000 !important;
        border-top: 3px solid #ffffff !important;
    }
    
    #footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6,
    #footer p, #footer li, #footer span, .contact-info p {
        color: #ffffff !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
    }
    
    #footer a {
        color: #ffffff !important;
        background: #0066cc !important;
        padding: 2px 4px !important;
        border-radius: 3px !important;
    }
}

/* Responsive стили */
@media (max-width: 768px) {
    #footer {
        padding: 40px 0 30px 0 !important;
    }
    
    .contact-info p {
        font-size: 0.95rem !important;
        word-break: break-word !important;
    }
    
    #footer .col-lg-4 {
        margin-bottom: 30px !important;
    }
}

/* Print стили */
@media print {
    #footer {
        background: #ffffff !important;
        color: #000000 !important;
        border-top: 2px solid #000000 !important;
    }
    
    #footer *, .contact-info * {
        color: #000000 !important;
    }
    
    #footer a {
        color: #000000 !important;
        text-decoration: underline !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #footer *, #footer a, #footer .org-social-link, #footer .social-link {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    #footer {
        background-color: #0a0a0a !important;
    }
}

/* Принудительная видимость для критически важных элементов */
.contact-info, .contact-info *, 
#footer .col-lg-4:last-child, 
#footer .col-lg-4:last-child * {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Специальная обработка для inline элементов */
.contact-info span, .contact-info strong, .contact-info em {
    display: inline !important;
}

