/* ============================================================
   ОБЩИЕ СТИЛИ ДЛЯ САЙТА МГНОВ
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ЖЕСТКАЯ ФИКСАЦИЯ ЭКРАНА: Запрет горизонтального скролла
   (clip не создаёт scroll-контейнер, поэтому position: sticky у шапки работает) */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    --bg-body: #FAFAF9;
    --bg-card: #FFFFFF;
    --text-primary: #0A0A0A;
    --text-secondary: #737373;
    --accent: #FFD700;
    --danger: #EF4444;
    --border: #E5E5E5;
    --bg-dark: #0A0A0A;
    --text-on-dark: #FFFFFF;
    --font-serif: 'Newsreader', serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.25s ease;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);

    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}
a:hover {
    color: var(--accent);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== БАЗОВАЯ ЗАЩИТА ОТ ВЫЛЕЗАНИЯ ДЛЯ ВСЕХ ЭЛЕМЕНТОВ ===== */
h1, h2, h3, h4, h5, h6,
.item-title,
.article-title,
.news-title,
.urgent-block h2,
p, span, div, a {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
}

/* Изображения и медиа тоже не должны вылезать */
img, video, iframe, table {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== ШАПКА ===== */
header {
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 30px;
}

.logo-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.logo .lightning {
    font-size: 2.4rem;
    line-height: 1;
    color: var(--accent);
}
.slogan {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: -4px;
    margin-left: 4px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    font-size: 0.95rem;
    font-weight: 500;
}
nav a {
    color: var(--text-secondary);
}
nav a:hover {
    color: var(--text-primary);
}
nav a.active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

.search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid var(--border);
    transition: border var(--transition);
}
.search:focus-within {
    border-color: var(--accent);
}
.search input {
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 4px 0;
    color: var(--text-primary);
    outline: none;
    width: 140px;
}
.search input::placeholder {
    color: var(--text-secondary);
}
.search button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 4px;
}
.search button:hover {
    color: var(--text-primary);
}

/* ===== ДАТА-БАР ===== */
.date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 10px 0 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.date-bar .left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.date-bar .live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--danger);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.date-bar .live::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}
.date-bar .time {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-primary);
}
.date-bar .date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
.date-bar .currency, .date-bar .weather {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 4px 14px;
    border-radius: 30px;
    border: 1px solid var(--border);
}
.date-bar .currency span { color: var(--text-secondary); }
.date-bar .weather .icon { font-size: 1rem; }
.date-bar .weather .temp { font-weight: 500; }

/* ===== РЕКЛАМНЫЕ БЛОКИ ===== */
.ad-block-top, .bottom-ad {
    margin: 16px 0 24px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.bottom-ad { margin: 20px 0 40px; padding: 28px 20px; font-size: 0.95rem; }

/* ===== БЛОК «СРОЧНО» ===== */
.urgent-block {
    position: relative;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 28px 32px;
    margin: 24px 0 32px;
    border-radius: 8px;
    overflow: hidden;
    isolation: isolate;
}
.urgent-block::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    pointer-events: none;
}
.urgent-block > * { position: relative; z-index: 1; }
.urgent-block .badge {
    display: inline-block;
    background: var(--danger);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 2px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.urgent-block .rubric { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); font-weight: 500; margin-bottom: 6px; }
.urgent-block .rubric a { color: inherit; }
.urgent-block .rubric a:hover { color: var(--accent); }
.urgent-block h2 { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; line-height: 1.2; margin: 6px 0 10px; }
.urgent-block h2 a { color: #fff; }
.urgent-block h2 a:hover { color: var(--accent); }
.urgent-block .desc { font-size: 1.05rem; color: rgba(255, 255, 255, 0.8); max-width: 720px; margin-bottom: 14px; }
.urgent-block .desc a { color: inherit; }
.urgent-block .desc a:hover { color: var(--accent); }
.urgent-block .meta { display: flex; align-items: center; gap: 18px; font-family: var(--font-mono); font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.urgent-block .meta a { color: var(--accent); font-family: var(--font-sans); font-weight: 500; }
.urgent-block .meta a:hover { text-decoration: underline; }

/* ===== ОСНОВНАЯ СЕТКА ===== */
.main-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    margin: 8px 0 40px;
}

/* ===== ЛЕНТА НОВОСТЕЙ ===== */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.feed-header h2 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; }
.feed-header .count {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 2px 12px;
    border-radius: 30px;
    border: 1px solid var(--border);
}
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
    background: var(--bg-card);
    padding: 18px 0 18px 14px; /* левый отступ, чтобы красная линия не прилипала к тексту */
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border var(--transition);
}
.news-item:first-of-type { padding-top: 0; }
.news-item:last-of-type { border-bottom: none; }
.news-item a { display: block; }
.news-item .item-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
    font-size: 0.8rem; color: var(--text-secondary); font-family: var(--font-mono); margin-bottom: 4px;
}
.news-item .item-meta .time { font-weight: 500; color: var(--text-primary); }
.news-item .item-meta .date-label { color: var(--text-secondary); }
.news-item .item-meta .rubric { font-family: var(--font-sans); font-weight: 500; color: var(--text-secondary); }
.news-item .item-meta .rubric a { color: inherit; }
.news-item .item-meta .rubric a:hover { color: var(--accent); }
.news-item .item-meta .urgent-tag {
    background: var(--danger); color: #fff; font-size: 0.65rem; font-weight: 700;
    padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.4;
}
.news-item .item-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; line-height: 1.3; margin: 2px 0 4px; }
.news-item .item-title a { display: inline; transition: color var(--transition); }
.news-item .item-title a::after { content: ' →'; opacity: 0; transition: opacity var(--transition); font-weight: 400; }
.news-item .item-title a:hover::after { opacity: 1; }
.news-item .item-desc { font-size: 0.95rem; color: var(--text-secondary); max-width: 90%; margin-top: 2px; }
.news-item .item-desc a { color: inherit; }
.news-item .item-desc a:hover { color: var(--text-primary); }

/* ✅ ПРАВИЛО: Жирный заголовок для важных новостей */
.news-item .item-title.is-urgent,
.news-item .item-title:has(.urgent-tag) {
    font-weight: 700 !important;
}

.show-more {
    display: inline-block; margin-top: 24px; padding: 10px 32px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 40px;
    font-family: var(--font-sans); font-weight: 500; font-size: 0.95rem;
    color: var(--text-primary); cursor: pointer; transition: all var(--transition); text-align: center;
}
.show-more:hover { background: var(--accent); border-color: var(--accent); color: var(--text-primary); }

/* ===== САЙДБАР ===== */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar .ad-block {
    background: var(--bg-card); border: 1px dashed var(--border); border-radius: 8px;
    padding: 24px 20px; text-align: center; color: var(--text-secondary); font-size: 0.9rem;
    min-height: 120px; display: flex; align-items: center; justify-content: center;
}
.sidebar .popular, .sidebar .channels, .sidebar .editorial {
    background: var(--bg-card); border-radius: 8px; padding: 20px 20px; border: 1px solid var(--border);
}
.sidebar .popular h3, .sidebar .channels h3, .sidebar .editorial h3 {
    font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.sidebar .popular ol { list-style: none; counter-reset: pop; display: flex; flex-direction: column; gap: 10px; }
.sidebar .popular ol li { counter-increment: pop; display: flex; align-items: baseline; gap: 10px; font-size: 0.9rem; line-height: 1.4; }
.sidebar .popular ol li::before {
    content: counter(pop); font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem;
    color: var(--accent); background: var(--bg-body); padding: 0 8px; border-radius: 20px; min-width: 24px; text-align: center;
}
.sidebar .popular ol li a { color: var(--text-primary); }
.sidebar .popular ol li a:hover { color: var(--accent); }
.sidebar .channels .channel-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.sidebar .channels .channel-row a { font-weight: 500; color: var(--text-secondary); font-size: 0.9rem; }
.sidebar .channels .channel-row a:hover { color: var(--accent); }
.sidebar .editorial p { color: var(--text-secondary); font-size: 0.9rem; }
.sidebar .editorial a { color: var(--text-primary); font-weight: 500; }
.sidebar .editorial a:hover { color: var(--accent); }

/* ✅ ФУТЕР: СТИЛИ УДАЛЕНЫ ОТСЮДА — УПРАВЛЯЮТСЯ ИЗ /components/site-footer.php */

/* ===== СТРАНИЦА НОВОСТИ ===== */
.news-article {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 24px 28px;
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 40px auto;
}

.news-article .article-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #1e1e2a;
}

.news-article .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #6c757d;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.news-article .article-body {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}

.news-article .article-body p {
    margin-bottom: 20px !important;
    display: block !important;
}

.news-article .article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin: 30px 0 15px;
    font-weight: 600;
    color: #1e1e2a;
}

.news-article .article-body h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin: 25px 0 12px;
    font-weight: 600;
    color: #1e1e2a;
}

.news-article .article-body ul,
.news-article .article-body ol {
    margin: 15px 0 15px 25px;
}

.news-article .article-body li {
    margin-bottom: 8px;
}

.news-article .article-body a {
    color: #dc3545;
    text-decoration: underline;
}

.news-article .article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* ===== ГЛАВНОЕ ФОТО НОВОСТИ И ПОДПИСЬ ===== */
.news-image-wrapper {
    margin: 20px 0 12px 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f1f1;
}

.news-image {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.news-image:hover {
    opacity: 0.98;
}

.image-caption {
    font-family: var(--font-sans) !important;
    font-size: 0.75rem !important;
    font-style: italic !important; /* ГАРАНТИРОВАННЫЙ КУРСИВ */
    color: #64748b !important;     /* ЯВНЫЙ СЕРЫЙ ЦВЕТ */
    margin: 8px 0 20px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    display: block !important;
}

.image-caption strong {
    font-weight: 600;
    color: #64748b;
    font-style: normal;
}

/* ✅ КНОПКА "НАЗАД" */
.news-back-link {
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 1px solid #eee !important;
}

.news-back-link a {
    color: #dc3545 !important;
    font-weight: 600 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.news-back-link a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ НОВОСТЕЙ === */
@media (max-width: 768px) {
    .news-article {
        margin: 24px auto;
        padding: 18px 16px;
    }
    .news-article .article-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    .news-article .article-body {
        font-size: 1rem;
        line-height: 1.6;
    }
    .news-article .article-body p {
        margin-bottom: 16px !important;
    }
    .news-article .article-body h2 {
        font-size: 1.3rem;
        margin: 24px 0 12px;
    }
    .news-article .article-body h3 {
        font-size: 1.15rem;
        margin: 20px 0 10px;
    }
    .news-article .article-body img {
        border-radius: 6px;
        margin: 16px 0;
    }
    
    /* Адаптация главного фото для мобильных */
    .news-image-wrapper {
        margin: 16px -16px 10px -16px;
        border-radius: 0;
    }
    
    .news-image {
        max-height: 280px;
        border-radius: 0;
    }
    
    .image-caption {
        font-size: 0.7rem;
        margin: 0 0 16px 0;
        padding: 0 4px;
    }
}

@media (max-width: 480px) {
    .news-article {
        padding: 16px 12px !important;
    }
    .news-article .article-title {
        font-size: 1.6rem !important;
        font-family: var(--font-sans) !important;
        letter-spacing: -0.02em !important;
    }
    .news-article .article-body {
        font-size: 0.95rem;
        line-height: 1.55;
    }
    
    .news-image-wrapper {
        margin: 14px -12px 8px -12px;
    }
    
    .news-image {
        max-height: 220px;
    }
    
    .image-caption {
        font-size: 0.65rem;
    }
}

@media (max-width: 360px) {
    .news-article .article-title {
        font-size: 1.5rem !important;
    }
    .news-article .article-body {
        font-size: 0.9rem;
    }
}

/* ============================================================
   АДАПТИВНОСТЬ (УМЕНЬШЕННЫЙ ШРИФТ НА ВСЕХ МОБИЛЬНЫХ)
   ============================================================ */

@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 2fr 1fr; gap: 30px; }
}

/* ⚡ СРЕДНИЕ МОБИЛЬНЫЕ (до 768px) */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    header { flex-direction: column; align-items: stretch; gap: 12px; }
    .logo-group { align-items: center; }
    .logo { font-size: 1.9rem; }
    .logo .lightning { font-size: 2.1rem; }
    nav { justify-content: center; gap: 8px 16px; font-size: 0.85rem; }
    .search { max-width: 260px; margin: 0 auto; }
    .search input { width: 100%; }
    .date-bar { flex-direction: column; align-items: stretch; gap: 8px; }
    .date-bar .left, .date-bar .currency, .date-bar .weather { justify-content: center; }
    .main-grid { grid-template-columns: 1fr; gap: 30px; }
    .urgent-block { padding: 20px 18px; }
    .urgent-block h2 { font-size: 1.3rem; }
    .feed-header h2 { font-size: 1.3rem; }
    .news-item .item-desc { max-width: 100%; }
    .news-item .item-title { font-size: 1.05rem; }
}

/* ОЧЕНЬ УЗКИЕ ЭКРАНЫ (до 480px) */
@media (max-width: 480px) {
    .container { padding: 0 12px !important; }
    .logo { font-size: 1.7rem; }
    .logo .lightning { font-size: 1.9rem; }
    .slogan { font-size: 0.7rem; }
    .urgent-block { padding: 16px 14px; }
    .urgent-block h2 { font-size: 1.15rem; }
    .feed-header h2 { font-size: 1.2rem; }
    .news-item .item-title { font-size: 0.95rem; line-height: 1.35; }
    
    .sidebar .popular, .sidebar .channels, .sidebar .editorial { 
        padding: 16px 12px; 
    }
    .sidebar .popular h3, .sidebar .channels h3, .sidebar .editorial h3 {
        font-size: 1rem;
    }
}

/* ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 360px) */
@media (max-width: 360px) {
    .container { padding: 0 10px !important; }
    .logo { font-size: 1.6rem; }
    .logo .lightning { font-size: 1.8rem; }
}

/* ============================================================
   УЛУЧШЕНИЯ ЮЗАБИЛИТИ И ДИЗАЙНА (добавлено)
   ============================================================ */

/* Плавная прокрутка для якорей и кнопки «наверх» */
html { scroll-behavior: smooth; }

/* ✅ Карточки новостей: мягкий hover с акцентной полосой слева */
.news-item { border-left: 3px solid transparent; }
.news-item:hover {
    background: #fff;
    border-left-color: var(--danger);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* ✅ Пагинация «Показать ещё»: скрытие должно перебивать инлайн-стиль (display:flex)
   на карточках регионов/рубрик, иначе видны все новости подряд */
.news-item.hidden-news { display: none !important; }

/* ✅ Читаемость текста статьи: оптимальная ширина строки */
.news-article .article-body { max-width: 72ch; }

/* ✅ Доступность: видимый фокус для клавиатуры */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--danger);
    outline-offset: 2px;
}

/* ============================================================
   ШАПКА (вынесена из components/site-header.php, чтобы правки
   применялись на всех страницах без перегенерации news/*.html)
   ============================================================ */

/* Липкая обёртка: шапка + строка LIVE едут плавно, по центру */
.site-header-sticky {
    position: sticky;
    top: 0;
    z-index: 9990;
    background: #ffffff;
}

.agency-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
    transition: opacity 0.2s;
}

.brand-link:hover { opacity: 0.8; }

.brand-logo {
    height: 28px;
    width: auto;
    display: block;
}

.brand-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.brand-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 6px;
    margin-left: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-item:hover { color: #0f172a; }
.nav-item.is-active { color: #dc3545; }

.nav-item.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #dc3545;
    border-radius: 2px;
}

.info-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
    font-family: 'JetBrains Mono', monospace;
}

.info-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #475569;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dc3545;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: #dc3545;
    border-radius: 50%;
    animation: pulse-live 1.5s infinite ease-in-out;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.separator { color: #cbd5e1; font-weight: 300; }
.time-display { font-weight: 600; color: #0f172a; }

/* Адаптивность шапки (мобильные) */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
        padding: 12px 0;
    }

    .brand {
        align-items: center;
        flex-direction: row;
        gap: 8px;
    }

    .brand-text { font-size: 1.3rem; }

    .brand-slogan { display: none; }

    .main-nav {
        gap: 4px;
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        border-top: 1px solid #f1f5f9;
        border-bottom: 1px solid #f1f5f9;
        padding: 8px 0;
    }

    .nav-item {
        font-size: 0.7rem;
        padding: 4px 2px;
        white-space: nowrap;
        flex: 1;
        text-align: center;
    }

    .nav-item.is-active::after {
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
    }

    /* LIVE-бар на мобильных скрыт */
    .info-bar {
        display: none !important;
    }
}