/* EMERGENCY FIX - Быстрое исправление всех проблем */

/* 1. ШАПКА (HEADER) */
header, .header, [class*="header"] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 0 !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.header-glass {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.header-glass > div {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

/* 2. GRID СИСТЕМА */
.grid, [class*="grid"] {
    display: grid !important;
    gap: 1.5rem !important;
}

.news-card, [class*="card"] {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.news-card-content, [class*="card-content"] {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.news-card-excerpt, [class*="card-excerpt"] {
    flex-grow: 1 !important;
}

/* 3. АДАПТИВНОСТЬ */
@media (max-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .grid-cols-3, .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    .container, [class*="container"] {
        padding: 0 0.75rem !important;
        max-width: 100% !important;
    }
    
    header .nav:not(.mobile-nav) {
        display: none !important;
    }
    
    .burger-menu {
        display: flex !important;
    }
}

/* 4. КНОПКИ И ИКОНКИ */
.btn, button, [class*="button"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.btn svg, button svg, [class*="button"] svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0 !important;
}

.btn:hover, button:hover, [class*="button"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 5. ОСНОВНЫЕ CSS ФИКСЫ */
* {
    box-sizing: border-box !important;
}

body, h1, h2, h3, h4, h5, h6, p {
    margin: 0 !important;
    padding: 0 !important;
}

/* 6. ВАЖНЫЕ УТИЛИТЫ */
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.m-auto { margin: auto !important; }
.text-center { text-align: center !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }

/* 7. Z-INDEX СЛОИ */
.header-glass { z-index: 50 !important; }
.modal, .dropdown { z-index: 100 !important; }
.tooltip, .popover { z-index: 150 !important; }

/* 8. ПОЗИЦИОНИРОВАНИЕ */
.sticky {
    position: sticky !important;
    top: 0 !important;
}

.fixed {
    position: fixed !important;
}

/* 9. DISPLAY КЛАССЫ */
.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.flex {
    display: flex !important;
}

.grid {
    display: grid !important;
}

/* 10. OVERFLOW */
.container, [class*="container"] {
    overflow: visible !important;
}
