/* --- Responsive --- */
@media (min-width: 769px) { .menu-toggle, .mobile-menu { display: none !important; } }

@media (max-width: 768px) {
    /* ОТКЛЮЧАЕМ ЛИШНЕЕ */
    .top-nav { display: none !important; }
    .menu-toggle { display: flex !important; }
    
    /* СЕТКИ */
    .hero-grid, .grid-news, .text-news, .list-news, .footer-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .side-news { border:0; padding:0; }
    .single-post-wrap { max-width: 100%; }
    .list-news .img-box { width: 120px !important; height: 80px !important; flex: 0 0 120px !important; }
    .footer-grid { display: flex; flex-direction: column; gap: 30px; }
    
    /* АТОМНЫЙ FIXED */
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        z-index: 2147483647 !important; /* Максимально возможный z-index */
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        border-bottom: 4px solid var(--red) !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    /* Компенсация */
    body { 
        padding-top: 60px !important; 
    }

    /* Админ-бар (если есть) */
    body.admin-bar header {
        top: 46px !important;
    }
    
    .header-flex { 
        height: 60px !important; 
        justify-content: space-between !important; 
        align-items: center !important;
        padding: 0 10px !important;
        display: flex !important;
    }

    .logo { 
        font-size: 20px !important; 
        padding: 0 12px !important; 
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
    }

    .header-informer { 
        display: flex !important; 
        margin: 0 !important; 
        gap: 8px !important; 
        font-size: 10px !important;
    }
    .header-controls { margin: 0 !important; display: flex !important; }
    .search-trigger, .menu-toggle, .theme-toggle { width: 44px !important; height: 60px !important; }
}

/* --- Adsense Fixes --- */
.grid-news > .google-auto-placed, .text-news > .google-auto-placed, .list-news > .google-auto-placed, .hero-grid > .google-auto-placed {
    grid-column: 1 / -1 !important; width: 100% !important; margin: 20px 0 !important;
}
.google-auto-placed { text-align: center !important; width: 100% !important; }
.hero-grid .google-auto-placed, .hero-grid ins.adsbygoogle { display: none !important; }
@media (min-width: 992px) { .grid-news.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
