/*
Theme Name: VedStyleNews
Description: Версия 9.0. Стабильный минимализм, встроенный фронтенд кабинета автора без плагинов.
Author: Levinov Aleksey
Version: 9.0
Text Domain: vedomosti-theme
*/

/* ==============================================
   1. ПЕРЕМЕННЫЕ И ТЕМЫ (ЦВЕТА)
============================================== */
:root { 
    --bg-main: #ffffff; 
    --text-main: #1a1a1a; 
    --border-light: #eaeaea; 
    --border-dark: #000000; 
    --meta-text: #666666; 
    --accent: #d32f2f; 
    --btn-bg: #1a1a1a; 
    --btn-text: #ffffff; 
    --card-bg: #fdfdfd; 
    --nav-border: #eee; 
    --ticker-bg: #f5f5f5; 
    --glass-bg: rgba(255, 255, 255, 0.4); 
    --glass-border: rgba(0, 0, 0, 0.08); 
}

[data-theme="dark"] { 
    --bg-main: #0e0e0e; 
    --text-main: #e0e0e0; 
    --border-light: #262626; 
    --border-dark: #444444; 
    --meta-text: #999999; 
    --accent: #ff4d4d; 
    --btn-bg: #e0e0e0; 
    --btn-text: #0e0e0e; 
    --card-bg: #161616; 
    --nav-border: #222; 
    --ticker-bg: #1c1c1c; 
    --glass-bg: rgba(14, 14, 14, 0.5); 
    --glass-border: rgba(255, 255, 255, 0.08); 
}

/* ==============================================
   2. БАЗОВЫЕ НАСТРОЙКИ И ТИПОГРАФИКА
============================================== */
*, *::before, *::after { 
    box-sizing: border-box !important; 
} 

html, body { 
    width: 100%; 
    max-width: 100%; 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden; 
    -webkit-text-size-adjust: 100%; 
    scroll-behavior: smooth;
} 

body { 
    font-family: 'PT Serif', -apple-system, BlinkMacSystemFont, sans-serif; 
    color: var(--text-main); 
    background-color: var(--bg-main); 
    line-height: 1.6; 
    transition: background-color 0.2s, color 0.2s; 
} 

h1, h2, h3, h4, h5, h6, .nav-menu { 
    font-family: 'Roboto', -apple-system, sans-serif; 
    margin-top: 0; 
} 

a { 
    color: var(--text-main); 
    text-decoration: none; 
    transition: color 0.2s ease-in-out; 
} 

a:hover { 
    color: var(--accent); 
} 

img, iframe, video { 
    max-width: 100% !important; 
    height: auto !important; 
    display: block; 
} 

h1, h2, h3, h4, h5, h6, p, a, span, div, .entry-content, .article-body { 
    overflow-wrap: break-word !important; 
    word-wrap: break-word !important; 
    word-break: normal !important; 
} 

.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 16px; 
    position: relative; 
}

/* ==============================================
   3. ШАПКА, МЕНЮ И ЛЕНТА НОВОСТЕЙ (TICKER)
============================================== */
.breaking-ticker { 
    background: var(--ticker-bg); 
    border-bottom: 1px solid var(--border-light); 
    padding: 8px 0; 
    font-family: 'Roboto', sans-serif; 
    font-size: 13px; 
    overflow: hidden; 
} 

.ticker-wrapper { 
    display: flex; 
    align-items: center; 
} 

.ticker-label { 
    background: var(--accent); 
    color: #fff; 
    padding: 2px 8px; 
    font-weight: bold; 
    text-transform: uppercase; 
    font-size: 11px; 
    margin-right: 15px; 
    border-radius: 2px; 
    flex-shrink: 0; 
} 

.ticker-content-slider { 
    white-space: nowrap; 
    overflow: hidden; 
    position: relative; 
    flex: 1; 
    height: 20px; 
} 

.ticker-slide { 
    display: inline-block; 
    position: absolute; 
    left: 100%; 
    animation: ticker-loop 25s linear infinite; 
    font-weight: 500; 
} 

.ticker-slide a { 
    color: var(--text-main); 
    transition: color 0.2s; 
} 

.ticker-slide a:hover { 
    color: var(--accent); 
    text-decoration: underline; 
} 

@keyframes ticker-loop { 
    0% { left: 100%; transform: translateX(0); } 
    100% { left: 0; transform: translateX(-100%); } 
}

.site-header { 
    border-bottom: 2px solid var(--border-dark); 
    padding: 20px 0; 
    margin-bottom: 25px; 
} 

.header-top { 
    display: flex; 
    justify-content: flex-end; 
    margin-bottom: -25px; 
    position: relative; 
    z-index: 99; 
} 

#theme-toggle { 
    background: none; 
    color: var(--text-main); 
    border: none; 
    padding: 6px; 
    font-size: 26px; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    transition: transform 0.2s ease; 
    line-height: 1; 
} 

#theme-toggle:hover { 
    transform: scale(1.15); 
    color: var(--accent); 
} 

.site-branding { 
    text-align: center; 
    margin-bottom: 15px; 
} 

.site-title { 
    font-size: 46px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin: 0; 
} 

.site-description { 
    font-size: 13px; 
    color: var(--meta-text); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 5px; 
}

.header-widget-area { 
    margin-top: 15px; 
    display: flex; 
    justify-content: center; 
    width: 100%; 
} 

.header-widget { 
    text-align: center; 
    width: 100%; 
} 

.header-widget ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 15px 25px; 
} 

.header-widget ul li a { 
    font-family: 'Roboto', sans-serif; 
    font-weight: 700; 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: var(--text-main); 
} 

.header-widget ul li a:hover { 
    color: var(--accent); 
} 

.header-widget .widget-title { 
    display: none; 
}

.menu-toggle { 
    display: none !important; 
}

.main-navigation ul { 
    list-style: none; 
    padding: 10px 0; 
    margin: 0; 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 15px 25px; 
    border-top: 1px solid var(--nav-border); 
    border-bottom: 1px solid var(--nav-border); 
} 

.main-navigation a { 
    font-weight: 700; 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

/* Кнопка "Личный кабинет" в верхней панели */
.top-bar-cabinet-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--meta-text, #666666);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    margin-left: 15px;
}

.top-bar-cabinet-btn svg {
    width: 15px;
    height: 15px;
}

.top-bar-cabinet-btn:hover {
    color: var(--accent, #d32f2f);
}

/* ==============================================
   4. КНОПКИ, ЭЛЕМЕНТЫ УПРАВЛЕНИЯ И ФОРМЫ
============================================== */
.btn-more, 
#load-more-btn, 
.comment-form input[type="submit"], 
.menu-toggle, 
.audio-player-btn, 
.font-controls button, 
.comment-reply-link { 
    font-family: 'Roboto', -apple-system, sans-serif !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 1px !important; 
    font-size: 12px !important; 
    padding: 12px 26px !important; 
    border-radius: 4px !important; 
    border: none; 
    cursor: pointer; 
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.1s ease !important; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    line-height: 1 !important; 
}

.btn-more, 
#load-more-btn, 
.comment-form input[type="submit"], 
.menu-toggle { 
    background-color: var(--btn-bg) !important; 
    color: var(--btn-text) !important; 
} 

.btn-more:hover, 
#load-more-btn:hover, 
.comment-form input[type="submit"]:hover, 
.menu-toggle:hover { 
    background-color: var(--accent) !important; 
    color: #ffffff !important; 
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.15); 
} 

.btn-more:active, 
#load-more-btn:active, 
.comment-form input[type="submit"]:active { 
    transform: scale(0.98); 
} 

.audio-player-btn, 
.font-controls button, 
.comment-reply-link { 
    background-color: var(--ticker-bg) !important; 
    color: var(--text-main) !important; 
    border: 1px solid var(--border-light) !important; 
    padding: 8px 16px !important; 
    font-size: 11px !important; 
} 

.audio-player-btn:hover, 
.font-controls button:hover, 
.comment-reply-link:hover { 
    background-color: var(--accent) !important; 
    color: #ffffff !important; 
    border-color: var(--accent) !important; 
}

#load-more-btn { 
    display: flex !important; 
    margin: 40px auto 20px auto !important; 
    padding: 18px 50px !important; 
    font-size: 15px !important; 
    min-width: 250px; 
    justify-content: center; 
    border-radius: 6px !important; 
    letter-spacing: 1.5px !important; 
}

/* ==============================================
   5. РЕКЛАМНЫЕ БЛОКИ
============================================== */
.ad-widget-area { 
    margin: 25px auto; 
    text-align: center; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    background: rgba(128, 128, 128, 0.02); 
    border: 1px dashed var(--border-light); 
    padding: 18px; 
    min-height: 90px; 
    position: relative; 
    border-radius: 6px; 
} 

.ad-widget-area::before { 
    content: 'РЕКЛАМА'; 
    display: block; 
    font-family: 'Roboto', sans-serif; 
    font-size: 9px; 
    font-weight: 700; 
    color: var(--meta-text); 
    letter-spacing: 1.5px; 
    position: absolute; 
    top: 3px; 
    left: 8px; 
    opacity: 0.6; 
} 

.ad-top-billboard-container { margin-top: 5px; margin-bottom: 30px; } 
.ad-in-feed-container { margin: 35px 0; } 
.ad-sidebar-container { margin-top: 30px; margin-bottom: 15px; } 
.ad-in-article-container { margin: 30px 0; border-left: none; border-right: none; }

/* ==============================================
   6. КАРТОЧКИ ЗАПИСЕЙ И СЕТКА (BENTO)
============================================== */
.site-content { 
    display: grid; 
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); 
    gap: 40px; 
    width: 100%; 
} 

.bento-heading, 
.regular-posts-title { 
    font-size: 20px; 
    font-weight: 900; 
    text-transform: uppercase; 
    border-left: 4px solid var(--border-dark); 
    padding-left: 10px; 
    margin-bottom: 20px; 
    margin-top: 0; 
} 

.bento-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr; 
    gap: 24px; 
    margin-bottom: 40px; 
} 

.bento-main-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-light); 
    padding: 24px; 
    border-radius: 8px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); 
} 

.bento-sub-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 16px; 
} 

.bento-sub-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-light); 
    border-radius: 6px; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bento-sub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.04);
}

.bento-sub-thumbnail {
    display: block;
    width: 100%;
    height: 140px; 
    background: var(--ticker-bg);
    overflow: hidden;
}

.bento-sub-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.bento-sub-thumbnail:hover img {
    transform: scale(1.05); 
}

.bento-sub-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    flex: 1;
}

.bento-sub-content h3 { 
    font-size: 16px; 
    line-height: 1.35; 
    margin: auto 0; 
    font-family: 'PT Serif', serif; 
    font-weight: 700; 
}

.bento-sub-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: var(--meta-text);
    font-weight: 500;
    margin-top: auto; 
}

.post-card { 
    margin-bottom: 45px; 
    padding-bottom: 25px; 
    border-bottom: 1px solid var(--border-light); 
    width: 100%; 
} 

.post-card h2 { 
    font-size: 24px; 
    line-height: 1.2; 
    margin: 15px 0 10px 0; 
}

.skeleton-card { 
    margin: 20px auto 40px auto; 
    width: 100%; 
}

/* ==============================================
   7. МИНИАТЮРЫ ЗАПИСЕЙ И МЕТАДАННЫЕ
============================================== */
.post-thumbnail-wrapper { 
    position: relative; 
    overflow: hidden; 
    border-radius: 4px; 
    background: var(--ticker-bg); 
    width: 100%; 
    aspect-ratio: 16 / 9; 
} 

.post-thumbnail-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.4s ease, opacity 0.3s; 
} 

.post-thumbnail-wrapper:hover img { 
    transform: scale(1.03); 
    opacity: 0.9; 
} 

.no-thumbnail-placeholder { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    height: 100%; 
    text-decoration: none; 
    padding: 20px; 
    text-align: center; 
} 

.no-thumbnail-placeholder span { 
    display: inline-block; 
    padding: 10px 15px; 
    border: 1px dashed var(--meta-text); 
    color: var(--meta-text); 
    font-family: 'Roboto', sans-serif; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border-radius: 4px; 
    opacity: 0.7; 
}

.post-meta-bar { 
    display: flex; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 14px; 
    font-family: 'Roboto', sans-serif; 
    font-size: 13px; 
    color: var(--meta-text); 
    border-top: 1px solid var(--border-light); 
    padding-top: 12px; 
    margin-top: 15px; 
    width: 100%; 
} 

.post-meta-bar > * { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    line-height: 1; 
    white-space: nowrap; 
} 

.post-meta-bar .meta-category a { 
    color: var(--accent); 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 11px; 
    letter-spacing: 0.5px; 
} 

.like-btn { 
    background: none; 
    border: none; 
    color: var(--meta-text); 
    cursor: pointer; 
    font-family: 'Roboto', sans-serif; 
    font-size: 13px; 
    padding: 0; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    transition: color 0.2s, transform 0.1s; 
    line-height: 1; 
} 

.like-btn:hover { 
    color: var(--accent); 
    transform: scale(1.05); 
} 

.like-btn.liked { 
    color: var(--accent); 
    font-weight: bold; 
}

/* ==============================================
   8. СТРАНИЦА ЗАПИСИ (SINGLE POST)
============================================== */
.single-layout { 
    display: flex; 
    gap: 30px; 
    position: relative; 
    margin-top: 20px; 
    width: 100%; 
    max-width: 100%; 
} 

.single-header-actions { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    flex-wrap: wrap !important; 
    gap: 15px !important; 
    margin-bottom: 25px !important; 
    border-bottom: 1px solid var(--border-light) !important; 
    padding-bottom: 12px !important; 
    width: 100% !important; 
} 

.single-header-actions .post-meta-bar { 
    border-top: none !important; 
    padding-top: 0 !important; 
    margin-top: 0 !important; 
    width: auto !important; 
}

.share-sidebar { 
    width: 44px; 
    flex-shrink: 0; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    position: sticky; 
    top: 25px; 
    height: max-content; 
    background: var(--glass-bg) !important; 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid var(--glass-border) !important; 
    padding: 8px 2px; 
    border-radius: 30px; 
    align-items: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
} 

.share-sidebar a { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    font-size: 16px; 
}

.article-body { 
    flex: 1; 
    min-width: 0; 
    max-width: 100%; 
    width: 100%; 
    font-size: 17px; 
    text-align: justify; 
} 

.article-body > p:first-of-type::first-letter { 
    font-size: 4.2em; 
    font-weight: 900; 
    float: left; 
    margin-top: 0.05em; 
    margin-right: 0.12em; 
    color: var(--accent); 
    font-family: 'Roboto', sans-serif; 
    line-height: 0.8; 
} 

.article-body blockquote { 
    font-style: italic; 
    font-size: 22px; 
    color: var(--accent); 
    border-left: 4px solid var(--accent); 
    padding-left: 24px; 
    margin: 35px 0; 
    font-family: 'PT Serif', serif; 
    line-height: 1.5; 
} 

.author-box { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    background: var(--ticker-bg); 
    border: 1px solid var(--border-light); 
    padding: 20px; 
    border-radius: 6px; 
    margin-top: 40px; 
    width: 100%; 
} 

.author-avatar img { 
    border-radius: 50%; 
    width: 70px; 
    height: 70px; 
    object-fit: cover; 
} 

.author-info h3 { 
    margin: 0 0 5px 0; 
    font-size: 18px; 
    font-weight: 700; 
} 

.author-info p { 
    margin: 0; 
    font-size: 14px; 
    color: var(--meta-text); 
    font-family: 'Roboto'; 
}

.related-posts { 
    margin-top: 50px; 
    border-top: 2px solid var(--border-dark); 
    padding-top: 30px; 
    width: 100%; 
} 

.related-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px; 
    margin-top: 20px; 
} 

.related-item h4 { 
    font-family: 'PT Serif'; 
    font-size: 15px; 
    margin: 10px 0 0 0; 
    font-weight: 700; 
    line-height: 1.3; 
}

/* --- Дизайн Тегов --- */
.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; 
    align-items: center;
    margin: 40px 0 30px 0;
    padding-top: 30px;
    border-top: 2px solid var(--border-light);
}

.single-post-tags-label {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 900;
    color: var(--meta-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
}

.post-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px; 
    margin: 0; 
    background-color: var(--card-bg); 
    border: 1px solid var(--border-light);
    border-radius: 6px; 
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.post-tag-chip span.hash {
    color: var(--accent); 
    margin-right: 4px;
    font-size: 14px;
    opacity: 0.8;
}

.post-tag-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.05); 
}

/* --- Оглавление Статьи (TOC) --- */
.vedomosti-toc { 
    background: var(--card-bg); 
    border: 1px solid var(--border-light); 
    padding: 20px; 
    border-radius: 6px; 
    margin-bottom: 30px; 
    border-top: 3px solid var(--border-dark); 
}

.toc-wrapper {
    background: rgba(128, 128, 128, 0.03); 
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent); 
    border-radius: 4px;
    padding: 20px 25px;
    margin: 0 0 35px 0;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toc-title {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.toc-toggle {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 700;
    color: var(--meta-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s, background 0.2s;
    border-radius: 4px;
}

.toc-toggle:hover {
    color: var(--accent);
    background: rgba(128, 128, 128, 0.08);
}

.toc-body {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-light);
    display: block;
}

.toc-wrapper.is-collapsed .toc-body {
    display: none; 
}

.toc-wrapper.is-collapsed {
    padding-bottom: 20px;
}

.toc-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-body li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.toc-body li:last-child {
    margin-bottom: 0;
}

.toc-body li.toc-item a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.toc-body li.toc-subitem {
    padding-left: 20px;
    position: relative;
}

.toc-body li.toc-subitem::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--meta-text);
    opacity: 0.5;
}

.toc-body li.toc-subitem a {
    font-size: 14px;
    font-weight: 400;
    color: var(--meta-text);
    text-decoration: none;
    transition: color 0.2s;
}

.toc-body a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ==============================================
   9. САЙДБАР
============================================== */
.sidebar-inner { 
    position: sticky; 
    top: 25px; 
    width: 100%; 
} 

.news-ticker-title { 
    font-size: 18px; 
    border-bottom: 2px solid var(--border-dark); 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
} 

.news-ticker-timeline { 
    position: relative; 
    padding-left: 5px; 
    margin-top: 15px; 
} 

.news-ticker-timeline::before { 
    content: ''; 
    position: absolute; 
    left: 49px; 
    top: 6px; 
    bottom: 6px; 
    width: 2px; 
    background: var(--border-light); 
    z-index: 1; 
} 

.ticker-item { 
    display: flex; 
    align-items: flex-start; 
    position: relative; 
    margin-bottom: 22px; 
} 

.ticker-time { 
    width: 38px; 
    font-family: 'Roboto', sans-serif; 
    font-size: 13px; 
    font-weight: 700; 
    color: var(--accent); 
    line-height: 1.2; 
    flex-shrink: 0; 
    text-align: right; 
} 

.ticker-node { 
    width: 8px; 
    height: 8px; 
    background: var(--bg-main); 
    border: 2px solid var(--border-dark); 
    border-radius: 50%; 
    margin: 5px 12px 0 12px; 
    z-index: 2; 
    flex-shrink: 0; 
} 

.ticker-content { 
    flex: 1; 
    min-width: 0; 
} 

.ticker-content h3 { 
    font-size: 14.5px; 
    margin: 0; 
    font-family: 'PT Serif', serif; 
    font-weight: 500; 
    line-height: 1.4; 
}

.sidebar-comments-title { 
    font-size: 18px; 
    border-bottom: 2px solid var(--border-dark); 
    padding-bottom: 10px; 
    margin: 40px 0 20px 0; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
} 

.sidebar-comments-widget { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
} 

.sidebar-comment-item-minimal { 
    border-bottom: 1px solid var(--border-light); 
    padding-bottom: 14px; 
    position: relative; 
    padding-left: 20px; 
} 

.sidebar-comment-item-minimal:last-child { 
    border-bottom: none; 
    padding-bottom: 0; 
} 

.sidebar-comment-item-minimal::before { 
    content: '💬'; 
    position: absolute; 
    left: 0; 
    top: 2px; 
    font-size: 12px; 
    opacity: 0.5; 
} 

.sc-meta { 
    font-family: 'Roboto', sans-serif; 
    font-size: 12px; 
    color: var(--meta-text); 
    line-height: 1.4; 
    margin-bottom: 4px; 
} 

.sc-meta b { 
    color: var(--text-main); 
    font-weight: 700; 
} 

.sc-meta span { 
    opacity: 0.7; 
    font-size: 11px; 
    margin-left: 5px; 
    font-weight: 400; 
} 

.sc-meta a { 
    color: var(--accent); 
    text-decoration: none; 
    font-weight: 500; 
} 

.sc-meta a:hover { 
    text-decoration: underline; 
} 

.sc-text { 
    font-family: 'PT Serif', serif; 
    font-size: 14px; 
    color: var(--text-main); 
    line-height: 1.4; 
    font-style: normal; 
}

/* ==============================================
   10. КОММЕНТАРИИ К СТАТЬЕ
============================================== */
.comments-area { 
    margin-top: 60px; 
    border-top: 3px solid var(--border-dark); 
    padding-top: 40px; 
    width: 100%; 
} 

.comments-title { 
    font-size: 22px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin-bottom: 40px; 
    display: block; 
    border-bottom: none; 
} 

.comment-list { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 40px 0; 
    width: 100%; 
} 

.comment-list li { 
    margin-bottom: 0; 
} 

.comment-body { 
    background: transparent; 
    padding: 20px 0; 
    border-bottom: 1px solid var(--border-light); 
    position: relative; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
} 

.comment-meta { 
    display: flex; 
    align-items: baseline; 
    gap: 10px; 
    font-family: 'Roboto', sans-serif; 
    margin-bottom: 5px; 
} 

.comment-author b { 
    color: var(--text-main); 
    font-size: 15px; 
    font-weight: 700; 
} 

.comment-metadata { 
    color: var(--meta-text); 
    font-size: 12px; 
} 

.comment-metadata a { 
    color: var(--meta-text); 
    text-decoration: none; 
    transition: color 0.2s; 
} 

.comment-metadata a:hover { 
    color: var(--text-main); 
} 

.comment-content { 
    font-family: 'PT Serif', serif; 
    font-size: 16px; 
    line-height: 1.5; 
    color: var(--text-main); 
    margin-top: 0; 
} 

.comment-content p { 
    margin: 0; 
} 

.reply { 
    margin-top: 8px; 
    display: flex; 
    justify-content: flex-start; 
} 

.children { 
    list-style: none; 
    padding-left: 30px; 
    margin-top: 0; 
    border-left: 2px solid var(--border-light); 
} 

.children .comment-body { 
    border-bottom: none; 
    padding-top: 15px; 
    padding-bottom: 15px; 
}

.comment-respond { 
    background: var(--card-bg); 
    padding: 35px; 
    border-radius: 8px; 
    border: 1px solid var(--border-light); 
    margin-top: 40px; 
    width: 100%; 
} 

.comment-form { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    width: 100%; 
} 

.comment-form-comment { grid-column: span 2; } 
.comment-form-author, .comment-form-email { grid-column: span 1; } 
.comment-form-url, .comment-form-cookies-consent { grid-column: span 2; } 

.comment-form label { 
    display: block; 
    font-family: 'Roboto', sans-serif; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-bottom: 6px; 
    color: var(--meta-text); 
    letter-spacing: 0.5px; 
} 

.comment-form input[type="text"], 
.comment-form input[type="email"], 
.comment-form input[type="url"], 
.comment-form textarea { 
    width: 100%; 
    padding: 14px 16px; 
    border: 1px solid var(--border-light); 
    background: var(--bg-main); 
    color: var(--text-main); 
    font-family: 'PT Serif', serif; 
    font-size: 15px; 
    border-radius: 6px; 
    transition: border-color 0.2s, box-shadow 0.2s; 
} 

.comment-form input[type="text"]:focus, 
.comment-form input[type="email"]:focus, 
.comment-form input[type="url"]:focus, 
.comment-form textarea:focus { 
    outline: none; 
    border-color: var(--accent); 
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1); 
}

/* ==============================================
   11. ФУТЕР И ПАГИНАЦИЯ
============================================== */
.footer-widgets-row { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    text-align: left; 
    padding-bottom: 40px; 
    border-bottom: 1px solid var(--border-light); 
    margin-bottom: 30px; 
    width: 100%; 
} 

.footer-widget-column .widget-title { 
    font-size: 16px; 
    font-weight: 900; 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    letter-spacing: 0.5px; 
    border-left: 3px solid var(--accent); 
    padding-left: 10px; 
    color: var(--text-main); 
} 

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

.footer-widget ul li { 
    margin-bottom: 10px; 
    border-bottom: 1px dotted var(--border-light); 
    padding-bottom: 10px; 
} 

.footer-widget ul li:last-child { 
    border-bottom: none; 
} 

.footer-widget a { 
    font-size: 14px; 
    color: var(--meta-text); 
    font-family: 'Roboto', sans-serif; 
    font-weight: 500; 
} 

.footer-widget p, 
.footer-widget { 
    font-size: 14px; 
    color: var(--meta-text); 
    line-height: 1.6; 
    font-family: 'PT Serif', serif;
} 

.site-footer { 
    border-top: 4px solid var(--border-dark); 
    padding: 30px 0; 
    margin-top: 50px; 
    text-align: center; 
    font-family: 'Roboto', sans-serif; 
    font-size: 13px; 
    width: 100%; 
}

.pagination .nav-links { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
} 

.pagination .page-numbers { 
    padding: 8px 15px; 
    background: var(--card-bg); 
    border: 1px solid var(--border-light); 
    color: var(--text-main); 
    border-radius: 4px; 
    transition: 0.2s; 
} 

.pagination .page-numbers:hover { 
    background: var(--accent); 
    color: #fff; 
    border-color: var(--accent); 
} 

.pagination .current { 
    background: var(--btn-bg); 
    color: var(--btn-text); 
    border-color: var(--btn-bg); 
}

#reading-progress { 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 4px; 
    background: var(--accent); 
    width: 0%; 
    z-index: 9999; 
} 

#back-to-top { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: var(--btn-bg); 
    color: var(--btn-text); 
    width: 45px; 
    height: 45px; 
    border: none; 
    border-radius: 50%; 
    font-size: 20px; 
    cursor: pointer; 
    opacity: 0; 
    visibility: hidden; 
    transition: 0.3s; 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
} 

#back-to-top.visible { 
    opacity: 1; 
    visibility: visible; 
}

/* ==============================================
   12. АДАПТИВНОСТЬ (МЕДИА-ЗАПРОСЫ)
============================================== */
@media (max-width: 992px) { 
    .site-content { 
        display: block !important; 
        width: 100%; 
    } 
    
    .sidebar-news { 
        margin-top: 40px; 
        border-top: 2px solid var(--border-dark); 
        padding-top: 25px; 
        width: 100%; 
    } 
    
    .single-layout { 
        flex-direction: column; 
        width: 100%; 
    } 
    
    .share-sidebar { 
        flex-direction: row; 
        position: static; 
        width: 100%; 
        height: auto; 
        margin-bottom: 20px; 
        justify-content: center; 
        gap: 20px; 
        padding: 10px; 
        border-radius: 8px; 
    } 
    
    /* Жесткий фикс для BENTO карточек на мобильных */
    .bento-grid, 
    .bento-sub-grid { 
        display: flex !important;
        flex-direction: column !important;
        width: 100 !important;
        max-width: 100% !important;
        gap: 20px !important;
    } 
    
    .bento-main-card, 
    .bento-sub-card { 
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important; 
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important; 
        margin-bottom: 20px; 
    } 
}

@media (max-width: 768px) { 
    .site-title { 
        font-size: 32px; 
    } 
    
    .bento-main-card h2 { 
        font-size: 24px; 
    } 
    
    .bento-sub-grid { 
        grid-template-columns: 1fr !important; 
    } 
    
    .menu-toggle { 
        display: block !important; 
        margin-bottom: 0; 
        width: 100%; 
    } 
    
    .main-navigation ul { 
        display: none !important; 
        flex-direction: column; 
        gap: 0; 
        border: 1px solid var(--border-light); 
        border-top: none; 
        border-radius: 0 0 4px 4px; 
        padding: 0; 
        background: var(--card-bg); 
        width: 100%; 
    } 
    
    .main-navigation.toggled ul { 
        display: flex !important; 
    } 
    
    .main-navigation ul li { 
        width: 100%; 
        text-align: center; 
        border-bottom: 1px solid var(--border-light); 
        margin: 0; 
        padding: 0; 
    } 
    
    .main-navigation ul li:last-child { 
        border-bottom: none; 
    } 
    
    .main-navigation ul li a { 
        display: block; 
        padding: 15px; 
        width: 100%; 
    } 
    
    .comment-form { 
        grid-template-columns: 1fr !important; 
    } 
    
    .comment-form-author, 
    .comment-form-email { 
        grid-column: span 2; 
    } 
    
    .footer-widgets-row { 
        grid-template-columns: 1fr !important; 
        gap: 30px; 
    } 
    
    .comment-content, 
    .reply, 
    .children { 
        padding-left: 0 !important; 
    } 
    
    .children { 
        border-left: none !important; 
        padding-left: 15px !important; 
    } 
    
    .top-bar-cabinet-btn .cab-btn-text {
        display: none;
    }
    
    .top-bar-cabinet-btn {
        margin-left: 10px;
    }
    
    .top-bar-cabinet-btn svg {
        width: 18px;
        height: 18px; 
    }

    /* ФИКС КЛИКАБЕЛЬНОСТИ НА МОБИЛЬНЫХ УСТРОЙСТВАХ */
    /* Делаем прозрачные зоны рекламного блока и виджетов шапки "проницаемыми" */
    .ad-top-billboard-container, 
    .header-widget {
        pointer-events: none !important;
    }
    
    /* При этом возвращаем кликабельность элементам внутри них */
    .ad-top-billboard-container *, 
    .header-widget * {
        pointer-events: auto !important;
    }

    /* Вытаскиваем статьи и карточки на верхний слой */
    article:first-of-type,
    .post-card:first-child,
    .post:first-child,
    .bento-main-card,
    .bento-sub-card {
        position: relative !important;
        z-index: 100 !important;
    }

    /* Гарантируем кликабельность самих ссылок внутри карточек */
    .post-card a, 
    .read-more-btn,
    .bento-main-card a,
    .bento-sub-card a {
        position: relative !important;
        z-index: 99 !important;
        pointer-events: auto !important;
    }
}

/* Полное скрытие плавающей плашки reCAPTCHA v3 */
.grecaptcha-badge { 
    visibility: hidden !important; 
}