/* ============================================================
   1. ПЕРЕМЕННЫЕ И БАЗА
   ============================================================ */
:root {
    --accent: #dc143c;
    --accent-dark: #8b0000;
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --card: #ffffff;
    --text: #0a0a0a;
    --text-muted: #666;
    --border: #e0e0e0;
    --header-bg: #0a0a0a;
    --header-text: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --radius: 14px;
    --transition: .25s ease;
}
[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-alt: #141414;
    --card: #161616;
    --text: #f0f0f0;
    --text-muted: #999;
    --border: #2a2a2a;
    --header-bg: #000000;
    --shadow: 0 4px 30px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   2. ХЕДЕР
   ============================================================ */
.site-header {
    background: var(--header-bg);
    color: var(--header-text);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(220,20,60,.25);
    backdrop-filter: blur(10px);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 14px 24px;
}
.logo-img { height: 40px; width: auto; }
.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    display: inline-flex;
    align-items: center;
}
.logo-text::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 24px;
    background: var(--accent);
    margin-right: 10px;
    border-radius: 2px;
}

.search-wrap { position: relative; max-width: 520px; justify-self: center; width: 100%; }
.search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all var(--transition);
}
.search-input::placeholder { color: rgba(255,255,255,.5); }
.search-input:focus { border-color: var(--accent); background: rgba(255,255,255,.12); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.5); }
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-height: 420px;
    overflow-y: auto;
    display: none;
    z-index: 200;
}
.search-results.active { display: block; }
.search-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg-alt); }
.search-item-title { font-weight: 600; margin-bottom: 4px; color: var(--accent); }
.search-item-excerpt { font-size: 13px; color: var(--text-muted); }
.search-empty { padding: 16px; text-align: center; color: var(--text-muted); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle,
.user-btn,
.admin-btn {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.theme-toggle:hover,
.user-btn:hover,
.admin-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.user-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.btn-login:hover { background: var(--accent-dark); color: #fff; }

/* ============================================================
   3. LAYOUT
   ============================================================ */
.site-main { padding: 32px 24px; max-width: 1400px; margin: 0 auto; }
.layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

/* ============================================================
   4. САЙДБАР
   ============================================================ */
.site-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    overflow: hidden;
    transition: box-shadow .25s;
}
.sidebar-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
[data-theme="dark"] .sidebar-card { box-shadow: 0 2px 12px rgba(0,0,0,.3); }
[data-theme="dark"] .sidebar-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.5); }

/* Профиль пользователя */
.user-card {
    position: relative;
    text-align: center;
    padding: 28px 20px 20px;
    background: linear-gradient(180deg, rgba(220,20,60,.08), transparent 70%);
}
.user-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}
.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 30px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(220,20,60,.3);
    border: 3px solid var(--card);
    position: relative;
    z-index: 1;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar.guest {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.user-avatar.big { width: 100px; height: 100px; font-size: 40px; }
.user-name { font-weight: 700; font-size: 17px; margin-bottom: 4px; color: var(--text); }
.user-role {
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    background: rgba(220,20,60,.1);
    padding: 3px 12px;
    border-radius: 999px;
    display: inline-block;
}
.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    margin-top: 8px;
    transition: all .2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(220,20,60,.25);
}
.btn-block:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220,20,60,.4);
}
.btn-block.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}
.btn-block.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--accent);
    color: var(--accent);
}

/* Меню в сайдбаре */
.sidebar-card .menu-title {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 18px 20px 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
.sidebar-card .menu-title i { color: var(--accent); font-size: 14px; }
.site-menu { list-style: none; padding: 8px; margin: 0; }
.site-menu li { margin-bottom: 2px; }
.site-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
    text-decoration: none;
}
.site-menu a:hover {
    background: linear-gradient(90deg, rgba(220,20,60,.08), transparent);
    color: var(--accent);
    padding-left: 16px;
}
.site-menu a > i:first-child {
    font-size: 13px;
    color: var(--accent);
    width: 16px;
    text-align: center;
}
.site-menu .cat-count {
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: auto;
    font-weight: 600;
    border: 1px solid var(--border);
}
.cat-tree-menu .cat-children {
    list-style: none;
    padding-left: 16px;
    margin: 2px 0;
    border-left: 2px solid var(--border);
    margin-left: 12px;
}

/* ============================================================
   5. ПАРТНЁРЫ
   ============================================================ */
.partners-card { padding: 0; }
.partners-grid {
    display: grid;
    gap: 8px;
    padding: 12px;
    grid-template-columns: repeat(2, 1fr);
}
.partner-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all .25s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
    min-height: 84px;
}
.partner-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220,20,60,.08), transparent);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.partner-tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 8px 20px rgba(220,20,60,.18);
    background: var(--card);
}
.partner-tile:hover::before { opacity: 1; }
.partner-tile img {
    max-width: 100%;
    max-height: 32px;
    object-fit: contain;
    display: block;
    transition: filter .25s;
    position: relative;
    z-index: 1;
    filter: grayscale(.15);
}
.partner-tile:hover img { filter: grayscale(0); }
.partner-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(220,20,60,.3);
}
.partner-name {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    position: relative;
    z-index: 1;
    width: 100%;
    word-break: break-word;
}
.partner-desc {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    position: relative;
    z-index: 1;
}

/* ============================================================
   6. СЛАЙДЕР
   ============================================================ */
.hero-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 460px;
    margin-bottom: 40px;
    background: var(--bg-alt);
    box-shadow: var(--shadow);
}
.slides { position: relative; height: 100%; }
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
    overflow: hidden;
}
.slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1.15); }
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.1) 100%);
}
.slide-content {
    position: relative;
    z-index: 2;
    padding: 60px 48px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    max-width: 640px;
}
.slide-title { font-size: 36px; margin: 12px 0; line-height: 1.15; }
.slide-title a { color: #fff; }
.slide-title a:hover { color: var(--accent); }
.slide-excerpt { color: rgba(255,255,255,.8); margin: 0 0 16px; }
.slide-meta { display: flex; gap: 20px; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    width: fit-content;
    transition: all var(--transition);
}
.btn-read:hover { background: var(--accent-dark); color: #fff; transform: translateX(4px); }
.badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 48px;
    display: flex;
    gap: 8px;
    z-index: 5;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}
.dot.active { background: var(--accent); border-color: var(--accent); transform: scale(1.3); }
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    cursor: pointer;
    z-index: 5;
    transition: all var(--transition);
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* ============================================================
   7. КАРТОЧКИ СТАТЕЙ (сетка)
   ============================================================ */
.section-title { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 24px; }
.section-title i { color: var(--accent); }
.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.article-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(220,20,60,.15);
    border-color: var(--accent);
}
.card-image img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 18px; margin: 0; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { color: var(--text-muted); font-size: 14px; margin: 0; }
.card-footer {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.card-footer i { color: var(--accent); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
}
.page-link.active,
.page-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   8. ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.breadcrumbs { margin-bottom: 20px; font-size: 13px; }
.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}
.breadcrumbs li:not(:last-child)::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--text-muted);
    opacity: .5;
}
.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li:last-child span { color: var(--text); font-weight: 600; }

/* ============================================================
   9. СТРАНИЦА СТАТЬИ — ЕДИНЫЙ БЛОК (без дубликатов)
   ============================================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    z-index: 9999;
    transition: width .1s linear;
    box-shadow: 0 0 8px rgba(220,20,60,.6);
}

.article-page .layout { align-items: flex-start; }

.article-single {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    min-width: 0;
}

/* Hero баннер */
.article-hero {
    position: relative;
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 32px;
    display: flex;
    align-items: flex-end;
}
.article-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.8) saturate(.9);
    transition: transform 8s ease;
}
.article-hero:hover .article-hero-bg { transform: scale(1.03); }
.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.65) 60%, rgba(0,0,0,.92) 100%);
}
.article-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: #fff;
    width: 100%;
}
.article-hero-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cat-color, var(--accent));
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.article-hero-title {
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 20px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
    font-weight: 800;
    letter-spacing: -.5px;
    overflow-wrap: break-word;
}
.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,.85);
    margin-bottom: 20px;
}
.article-hero-meta i { color: var(--accent); margin-right: 4px; }
.hero-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.hero-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.4);
}
.hero-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-dot { opacity: .4; }
.article-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Hero без баннера */
.article-plain-header {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
}
.article-plain-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cat-color, var(--accent));
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-bottom: 14px;
}
.article-plain-title {
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -.5px;
    overflow-wrap: break-word;
}
.article-plain-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.article-plain-meta i { color: var(--accent); }

/* Рейтинг и избранное */
.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
}
.hero-rating .star-rating { display: inline-flex; gap: 2px; }
.hero-rating .star {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.35);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    transition: all .15s;
}
.hero-rating .star:hover,
.hero-rating .star.hovered,
.hero-rating .star.active {
    color: #fbbf24;
    transform: scale(1.15);
}
.hero-rating-info { color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600; }
.hero-fav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
    font-family: inherit;
}
.hero-fav:hover { background: rgba(255,255,255,.25); color: #fff; }
.hero-fav.active { background: var(--accent); border-color: var(--accent); }
.hero-fav.active i { animation: heartBeat .5s; }
.hero-fav-light {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}
.hero-fav-light:hover { background: var(--card); color: var(--accent); }
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Сетка тела статьи */
.article-body-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
    padding: 40px;
    max-width: 1140px;
    margin: 0 auto;
    align-items: start;
    min-width: 0;
}

/* === КОНТЕНТ СТАТЬИ — защита от выхода за рамки === */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}
.article-content * { max-width: 100%; box-sizing: border-box; }
.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child { margin-bottom: 0; }

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    overflow-wrap: break-word;
    word-break: break-word;
    scroll-margin-top: 90px;
    line-height: 1.3;
}
.article-content h1 { font-size: 32px; margin: 32px 0 16px; }
.article-content h2 {
    font-size: 26px;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    max-width: 100%;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { font-size: 21px; margin: 28px 0 12px; }
.article-content h4 { font-size: 18px; margin: 24px 0 10px; }

.article-content p {
    margin: 0 0 18px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: color .2s;
}
.article-content a:hover {
    color: var(--accent-dark);
    text-decoration-thickness: 2px;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin: 0 0 20px;
    overflow-wrap: break-word;
}
.article-content li {
    margin-bottom: 8px;
    overflow-wrap: break-word;
    word-break: break-word;
}
.article-content li > ul,
.article-content li > ol { margin-top: 8px; margin-bottom: 8px; }

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.article-content iframe,
.article-content video,
.article-content embed,
.article-content object {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.article-content iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.article-content .table-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: 12px;
}
.article-content .table-wrap table { margin: 0; }
.article-content th {
    background: var(--bg-alt);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    white-space: nowrap;
}
.article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    overflow-wrap: break-word;
    word-break: break-word;
}
.article-content tr:last-child td { border-bottom: none; }

.article-content code {
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: .9em;
    color: var(--accent);
    border: 1px solid var(--border);
    overflow-wrap: break-word;
    word-break: break-word;
}
.article-content pre {
    background: #1a1a1a;
    color: #eee;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #2a2a2a;
    max-width: 100%;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}
.article-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
}
.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    background: var(--bg-alt);
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--text);
    font-size: 18px;
    overflow-wrap: break-word;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content figure { margin: 24px 0; max-width: 100%; }
.article-content figcaption {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    overflow-wrap: break-word;
}
.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 32px 0;
}

/* TOC */
.article-toc {
    position: sticky;
    top: 100px;
    background: linear-gradient(180deg, var(--card), var(--bg-alt));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
    font-size: 13px;
    align-self: start;
}
.toc-head {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.toc-head::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,.15), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.1), transparent 50%);
    pointer-events: none;
}
.toc-head i { font-size: 14px; position: relative; z-index: 1; }
.toc-list {
    list-style: none;
    padding: 12px 8px;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.toc-list::-webkit-scrollbar { width: 4px; }
.toc-list::-webkit-scrollbar-track { background: transparent; }
.toc-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.toc-item { margin-bottom: 2px; position: relative; }
.toc-item a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 12px 8px 16px;
    border-radius: 8px;
    line-height: 1.4;
    font-size: 13px;
    transition: all .15s;
    border-left: 3px solid transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.toc-item a:hover {
    background: var(--bg);
    color: var(--accent);
    border-left-color: var(--accent);
}
.toc-item a.active {
    background: rgba(220,20,60,.08);
    color: var(--accent);
    font-weight: 700;
    border-left-color: var(--accent);
}
.toc-item.toc-h3 a { padding-left: 32px; font-size: 12px; opacity: .85; }
.toc-item.toc-h3 a.active { opacity: 1; font-weight: 600; }
.toc-item.toc-h3 a::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .4;
    transform: translateY(-50%);
}

/* Блок «Поделиться» */
.article-share-block {
    margin: 32px 40px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(220,20,60,.08), rgba(139,0,0,.03));
    border: 1px solid rgba(220,20,60,.2);
    border-radius: 16px;
    text-align: center;
}
.share-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.share-title i { color: var(--accent); }
.share-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    padding: 0;
}
.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    color: #fff;
}
.share-tg:hover { background: #0088cc; border-color: #0088cc; }
.share-vk:hover { background: #4a76a8; border-color: #4a76a8; }
.share-tw:hover { background: #000; border-color: #000; }
.share-ok:hover { background: #ee8208; border-color: #ee8208; }
.share-wa:hover { background: #25d366; border-color: #25d366; }
.share-copy:hover { background: var(--accent); border-color: var(--accent); }
.share-btn.copied { background: #10b981; border-color: #10b981; color: #fff; }

/* Блок автора */
.author-box {
    margin: 32px 40px;
    padding: 24px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    gap: 20px;
    align-items: center;
}
.author-box-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--card);
    box-shadow: 0 4px 16px rgba(220,20,60,.25);
}
.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box-info { flex: 1; min-width: 0; }
.author-box-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 4px;
}
.author-box-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 6px;
}
.author-box-name:hover { color: var(--accent); }
.author-box-bio {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 8px;
}
.author-box-stats { font-size: 12px; color: var(--text-muted); }
.author-box-stats i { color: var(--accent); }
.author-box-btn {
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.author-box-btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

/* Комментарии */
.comments-section {
    margin: 32px 40px;
    padding: 32px;
    background: var(--bg-alt);
    border-radius: 16px;
    border: 1px solid var(--border);
}
.comments-title {
    margin: 0 0 20px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.comments-title i { color: var(--accent); }
.comments-count {
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
}
.comment-form {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.comment-form textarea,
.comment-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}
.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comment-user-info {
    padding: 10px 14px;
    background: rgba(220,20,60,.1);
    color: var(--accent);
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}
.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.reply-notice {
    background: rgba(220,20,60,.1);
    color: var(--accent);
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.reply-notice button {
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 16px;
}
.comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.comment-avatar-letter {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-content {
    color: var(--text);
    font-size: 14px;
    margin: 8px 0;
    padding-left: 52px;
}
.comment-reply {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    margin-left: 52px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.comment-reply:hover { text-decoration: underline; }
.comment-login-prompt {
    text-align: center;
    padding: 30px;
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}
.comment-login-prompt i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}
.comment-login-prompt p { margin: 0 0 16px; color: var(--text-muted); }

/* Рекомендуемые */
.recommended-section {
    margin: 32px 40px 40px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.rec-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all .25s;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}
.rec-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(220,20,60,.15);
    color: var(--text);
}
.rec-image {
    height: 130px;
    background: var(--bg-alt);
    overflow: hidden;
    position: relative;
}
.rec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.rec-card:hover .rec-image img { transform: scale(1.05); }
.rec-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 28px;
}
.rec-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rec-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 700;
}
.rec-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.rec-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.rec-meta i { color: var(--accent); font-size: 10px; }

/* Плавающие кнопки на мобильных */
.article-float-share {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 900;
}
.article-float-share button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(220,20,60,.4);
    transition: all .2s;
}
.article-float-share button:hover { transform: scale(1.1); }
.article-float-share button.active { background: #10b981; }

/* ============================================================
   10. АВТОРИЗАЦИЯ / ФОРМЫ
   ============================================================ */
.auth-box {
    max-width: 420px;
    margin: 40px auto;
    background: var(--card);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.auth-box h1 { margin-top: 0; }
.auth-box label {
    display: block;
    margin: 14px 0 6px;
    font-size: 14px;
    color: var(--text-muted);
}
.auth-box input,
.profile-box input,
.profile-box textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}
.auth-box input:focus,
.profile-box input:focus,
.profile-box textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(220,20,60,.4); }
.btn-danger {
    display: inline-block;
    padding: 10px 20px;
    background: #b91c1c;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
}
.btn-danger:hover { background: #7f1d1d; color: #fff; }
.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all .2s;
}
.btn-secondary:hover { background: var(--card); color: var(--accent); border-color: var(--accent); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert.err { background: #3d0a13; color: #ff6b8a; }
.alert.ok { background: #0d3d13; color: #6bff8a; }
[data-theme="light"] .alert.err { background: #fee; color: #b91c1c; }
[data-theme="light"] .alert.ok { background: #efe; color: #166534; }
.muted { color: var(--text-muted); font-size: 14px; }
.empty { color: var(--text-muted); text-align: center; padding: 40px; }
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
    gap: 12px;
    flex-wrap: wrap;
}
.auth-links a { color: var(--accent); }

/* OAuth */
.oauth-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    box-sizing: border-box;
}
.oauth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    color: var(--text);
}
.oauth-yandex {
    background: #fc3f1d;
    color: #fff;
    border-color: #fc3f1d;
}
.oauth-yandex:hover {
    background: #e03715;
    color: #fff;
    box-shadow: 0 6px 20px rgba(252,63,29,.35);
}
.oauth-yandex svg { flex-shrink: 0; }
.oauth-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.oauth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}
.oauth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    background: var(--card);
}

/* ============================================================
   11. ПРОФИЛЬ
   ============================================================ */
.profile-page { padding: 0; background: transparent; border: none; }
.profile-hero-v2 {
    position: relative;
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}
.profile-cover-v2 {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.profile-cover-default {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark), #2a0505);
}
.profile-cover-default::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 50%, rgba(255,255,255,.15), transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,.1), transparent 50%);
}
.profile-hero-v2-content {
    padding: 0 28px 24px;
    display: flex;
    gap: 24px;
    align-items: flex-end;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}
.profile-avatar-v2 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 800;
    overflow: hidden;
    border: 5px solid var(--card);
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    flex-shrink: 0;
}
.profile-avatar-v2 img { width: 100%; height: 100%; object-fit: cover; }
.profile-info-v2 { flex: 1; padding-bottom: 4px; min-width: 200px; }
.profile-info-v2 h1 { margin: 0 0 8px; font-size: 26px; }
.profile-meta-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}
.profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}
.profile-meta-item:hover { color: var(--accent); }
.profile-meta-item i { color: var(--accent); font-size: 12px; }
.profile-actions-v2 {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 8px;
}
.role-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card-v2 {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}
.stat-card-v2:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(220,20,60,.15);
    color: var(--text);
}
.stat-icon-v2 {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin-bottom: 4px;
}
.stat-value-v2 { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label-v2 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-tabs-v2 {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-alt);
    padding: 6px;
    border-radius: 14px;
    overflow-x: auto;
    border: 1px solid var(--border);
}
.profile-tab-v2 {
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-tab-v2:hover { background: var(--card); color: var(--text); }
.profile-tab-v2.active {
    background: var(--card);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.tab-badge {
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 999px;
    font-weight: 700;
}
.profile-tab-v2.active .tab-badge { background: var(--accent); color: #fff; }

.profile-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
}
.profile-panel h2 {
    margin: 0 0 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile-panel h2 i { color: var(--accent); }

.field-label {
    display: block;
    margin: 16px 0 6px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.field-input,
.field-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .15s;
}
.field-input:focus,
.field-textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.field-textarea { resize: vertical; min-height: 80px; }
.file-input {
    padding: 10px;
    background: var(--bg-alt);
    border: 1px dashed var(--border);
    border-radius: 10px;
    width: 100%;
    color: var(--text-muted);
    font-size: 13px;
    box-sizing: border-box;
    cursor: pointer;
}
.file-input:hover { border-color: var(--accent); }

/* Image upload */
.image-upload-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    margin-bottom: 12px;
}
.image-upload-box {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}
.image-upload-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}
.image-upload-preview {
    width: 100%;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 28px;
    margin-bottom: 10px;
    transition: all .2s;
    overflow: hidden;
}
.image-upload-preview.avatar-preview {
    aspect-ratio: 1;
    max-width: 180px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}
.image-upload-preview.cover-preview { aspect-ratio: 16 / 6; }
.image-upload-preview[data-empty="1"] {
    background: linear-gradient(135deg, rgba(220,20,60,.1), rgba(139,0,0,.05));
    color: var(--accent);
}
.image-upload-actions { display: flex; gap: 6px; align-items: center; }
.btn-upload-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
}
.btn-upload-small:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-remove-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
}
.btn-remove-small:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

/* Избранное */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.fav-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all .2s;
    text-decoration: none;
    color: var(--text);
}
.fav-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--text);
}
.fav-card-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}
.fav-card-image img { width: 100%; height: 100%; object-fit: cover; }
.fav-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fav-card-title {
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}
.fav-card-meta { font-size: 11px; color: var(--text-muted); margin-top: auto; }
.fav-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    font-size: 14px;
    transition: all .15s;
    align-self: flex-start;
}
.fav-remove:hover { color: var(--accent); background: rgba(220,20,60,.1); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 48px;
    color: var(--accent);
    opacity: .4;
    margin-bottom: 16px;
    display: block;
}
.empty-state p { margin: 0; font-size: 15px; }

/* Пользователи */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.user-card-v2 {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.user-card-v2:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(220,20,60,.15);
}
.user-card-v2-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    overflow: hidden;
    text-decoration: none;
}
.user-card-v2-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-card-v2-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
}
.user-card-v2-name:hover { color: var(--accent); }
.user-card-v2-meta { font-size: 11px; color: var(--text-muted); }

.users-list { display: flex; flex-direction: column; gap: 10px; }
.user-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all .2s;
}
.user-row:hover { border-color: var(--accent); background: var(--card); }
.user-row-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}
.user-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-row-info { flex: 1; min-width: 0; }
.user-row-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
}
.user-row-name:hover { color: var(--accent); }
.user-row-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.btn-follow,
.btn-follow-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.btn-follow:hover,
.btn-follow-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220,20,60,.4);
    color: #fff;
}
.btn-follow.following,
.btn-follow-small.following {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}
.btn-follow.following:hover,
.btn-follow-small.following:hover {
    background: var(--bg);
    color: var(--accent);
    border-color: var(--accent);
}
.btn-follow-small { padding: 7px 14px; font-size: 12px; }
.btn-follow .followers-count {
    background: rgba(255,255,255,.25);
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
}
.btn-follow.following .followers-count { background: var(--bg); color: var(--text-muted); }

/* Публичный профиль */
.profile-cover {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 140px;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.profile-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(220,20,60,.15), rgba(139,0,0,.05));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    overflow: hidden;
}
.profile-avatar-big {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(220,20,60,.4);
    border: 4px solid var(--card);
}
.profile-avatar-big img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-info { flex: 1; position: relative; z-index: 1; }
.profile-hero-info h1 { margin: 0 0 6px; font-size: 28px; }
.profile-hero-info p { margin: 4px 0; color: var(--text-muted); font-size: 14px; }
.profile-hero-info p i { color: var(--accent); width: 16px; }
.profile-bio { margin: 8px 0 12px; color: var(--text); font-size: 14px; line-height: 1.6; }
.profile-stats-row { display: flex; gap: 28px; margin: 16px 0; }
.profile-stat { text-align: center; }
.profile-stat strong { display: block; font-size: 20px; color: var(--accent); font-weight: 800; }
.profile-stat span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
    position: relative;
    background: var(--footer-bg, #050505);
    color: #ddd;
    margin-top: 80px;
    padding: 0;
    overflow: hidden;
}
.footer-decor {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-dark), var(--accent), transparent);
}
.footer-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220,20,60,.25) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}
.footer-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, black, transparent);
}
.footer-newsletter {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px 24px;
}
.newsletter-inner {
    background: linear-gradient(135deg, rgba(220,20,60,.12), rgba(139,0,0,.08));
    border: 1px solid rgba(220,20,60,.3);
    border-radius: 20px;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}
.newsletter-inner h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.newsletter-inner h3 i { color: var(--accent); }
.newsletter-inner p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }
.newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    min-width: 300px;
    flex: 0 1 400px;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
    width: 52px;
    height: 52px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background .2s;
}
.newsletter-form button:hover { background: var(--accent-dark); }
.newsletter-msg {
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
    color: #10b981;
    font-size: 13px;
    text-align: center;
}

.footer-grid {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 24px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer-col-brand { padding-right: 20px; }
.footer-logo { max-height: 50px; margin-bottom: 16px; }
.footer-brand-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}
.footer-brand-text i { color: var(--accent); }
.footer-tagline {
    color: rgba(255,255,255,.6);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
}
.footer-col h4 {
    color: #fff;
    margin: 0 0 16px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col h4 i { color: var(--accent); font-size: 13px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.footer-col a i { font-size: 10px; opacity: .6; }
.footer-latest a { font-size: 13px; }

.socials { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.socials a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
}
.socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 8px 24px rgba(220,20,60,.4);
}

.footer-legal {
    background: rgba(0,0,0,.3);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: relative;
    z-index: 2;
}
.footer-legal-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
}
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-legal-links a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .2s;
}
.footer-legal-links a:hover { color: var(--accent); }
.footer-sep { color: rgba(255,255,255,.2); }
.footer-legal-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    color: rgba(255,255,255,.4);
    flex-wrap: wrap;
}
.footer-legal-meta span { display: inline-flex; align-items: center; gap: 6px; }
.footer-legal-meta i { color: var(--accent); opacity: .7; }

.footer-bottom {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px 30px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,.6);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-motto { font-style: italic; }
.footer-motto i { color: var(--accent); animation: heartbeat 1.5s infinite; }
.footer-motto .glow {
    background: linear-gradient(135deg, #dc143c, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.footer-top {
    color: rgba(255,255,255,.6);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}
.footer-top:hover { color: var(--accent); }

/* ============================================================
   13. ИНФО-СТРАНИЦЫ
   ============================================================ */
.info-page-v2 {
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.info-hero-v2 {
    position: relative;
    padding: 60px 40px 50px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(220,20,60,.15), rgba(139,0,0,.05));
    border-bottom: 1px solid var(--border);
}
.info-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(220,20,60,.25), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(139,0,0,.15), transparent 50%);
    pointer-events: none;
    filter: blur(30px);
}
.info-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, black, transparent);
}
.info-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.info-hero-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #fff;
    box-shadow: 0 12px 32px rgba(220,20,60,.4);
    transform: rotate(-3deg);
    transition: transform .3s;
}
.info-hero-icon:hover { transform: rotate(0deg) scale(1.05); }
.info-hero-label {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
    padding: 4px 12px;
    background: rgba(220,20,60,.1);
    border-radius: 999px;
}
.info-hero-v2 h1 { font-size: 40px; margin: 0 0 12px; line-height: 1.15; }
.info-hero-sub { color: var(--text-muted); font-size: 16px; line-height: 1.6; margin: 0; }
.legal-meta-v2 {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}
.legal-meta-v2 span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0,0,0,.2);
    border-radius: 999px;
}
.legal-meta-v2 i { color: var(--accent); }

.info-content-v2,
.legal-content-v2 {
    padding: 40px;
    line-height: 1.8;
    font-size: 16px;
    max-width: 900px;
    margin: 0 auto;
    overflow-wrap: break-word;
    word-break: break-word;
}
.info-content-v2 h2,
.legal-content-v2 h2 {
    color: var(--text);
    font-size: 24px;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.info-content-v2 h2:first-child,
.legal-content-v2 h2:first-child { margin-top: 0; }
.info-content-v2 h3,
.legal-content-v2 h3 {
    color: var(--text);
    font-size: 18px;
    margin: 24px 0 12px;
}
.info-content-v2 p,
.legal-content-v2 p { color: var(--text); margin: 0 0 16px; }
.info-content-v2 ul,
.info-content-v2 ol,
.legal-content-v2 ul,
.legal-content-v2 ol {
    color: var(--text);
    margin: 0 0 16px;
    padding-left: 24px;
}
.info-content-v2 li,
.legal-content-v2 li { margin-bottom: 8px; }
.info-content-v2 a,
.legal-content-v2 a {
    color: var(--accent);
    text-decoration: underline;
    overflow-wrap: anywhere;
}
.info-content-v2 strong,
.legal-content-v2 strong { color: var(--text); font-weight: 700; }
.info-content-v2 code,
.legal-content-v2 code {
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--accent);
    font-size: 14px;
}

.info-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 0 40px 40px;
}
.info-value-card {
    padding: 28px 24px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    transition: all .25s;
}
.info-value-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(220,20,60,.15);
}
.info-value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.info-value-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.info-value-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.info-cta,
.faq-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    margin: 0 40px 40px;
    background: linear-gradient(135deg, rgba(220,20,60,.1), rgba(139,0,0,.05));
    border: 1px solid rgba(220,20,60,.25);
    border-radius: 16px;
    flex-wrap: wrap;
}
.info-cta h3,
.faq-cta h3 { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.info-cta p,
.faq-cta p { margin: 0; color: var(--text-muted); font-size: 14px; }
.faq-cta-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* Контакты */
.contact-grid-v2 {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    padding: 40px;
}
.contact-side {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    height: fit-content;
}
.contact-side-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-item-v2 {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.contact-item-v2:last-of-type { border-bottom: none; }
.contact-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.contact-item-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 3px;
    font-weight: 600;
}
.contact-item-v2 a,
.contact-item-v2 span {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    word-break: break-word;
}
.contact-item-v2 a:hover { color: var(--accent); }
.contact-socials-v2 {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
}
.contact-form-v2 h2 {
    font-size: 22px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-form-v2 h2 i { color: var(--accent); }
.contact-form label {
    display: block;
    margin: 14px 0 6px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    resize: vertical;
    transition: border-color .15s;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-map-v2 { padding: 0 40px 40px; }
.contact-map-v2 iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 16px;
    display: block;
}

/* File upload */
.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: var(--bg-alt);
    margin-top: 8px;
}
.file-upload-zone:hover,
.file-upload-zone.drag {
    border-color: var(--accent);
    background: rgba(220,20,60,.05);
}
.file-upload-icon { font-size: 32px; color: var(--accent); margin-bottom: 8px; }
.file-upload-text { color: var(--text); font-size: 14px; margin-bottom: 4px; }
.file-upload-text strong { color: var(--accent); }
.file-upload-hint { color: var(--text-muted); font-size: 12px; }
.file-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text);
}
.file-item i { color: var(--accent); }
.file-item span:nth-child(2) { flex: 1; word-break: break-all; }
.file-size { color: var(--text-muted); font-size: 11px; white-space: nowrap; }

/* Реклама — карточки блоков */
.advertising-page .info-hero-v2 {
    background: linear-gradient(135deg, rgba(220,20,60,.15), rgba(139,0,0,.05));
}
.adv-section {
    padding: 40px;
    border-bottom: 1px solid var(--border);
}
.adv-section:last-child { border-bottom: none; }
.adv-section-head { text-align: center; margin-bottom: 32px; }
.adv-section-head h2 {
    margin: 0 0 8px;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.adv-section-head h2 i { color: var(--accent); }
.adv-section-head p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0 auto;
    max-width: 700px;
}
.adv-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.adv-block-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all .25s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.adv-block-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(220,20,60,.15);
}
.adv-block-preview {
    height: 120px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    position: relative;
}
.preview-line { height: 5px; background: var(--border); border-radius: 2px; }
.preview-line.short { width: 60%; }
.preview-banner {
    height: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 4px;
    margin-top: auto;
    opacity: .7;
}
.sidebar-preview { flex-direction: row; gap: 6px; }
.preview-sidebar { flex: 1; background: var(--accent); opacity: .3; border-radius: 6px; }
.header-preview .preview-header {
    height: 20px;
    background: var(--border);
    border-radius: 3px;
    margin-bottom: 4px;
}
.footer-preview .preview-footer {
    height: 16px;
    background: var(--border);
    border-radius: 3px;
    margin-top: auto;
}
.native-preview { justify-content: center; align-items: flex-start; gap: 6px; }
.preview-badge {
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
}
.adv-block-info h3 {
    margin: 0 0 6px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.adv-block-info h3 i { color: var(--accent); font-size: 14px; }
.adv-block-info p { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.adv-block-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
}
.adv-block-meta span { display: inline-flex; align-items: center; gap: 4px; }
.adv-block-meta i { color: var(--accent); font-size: 10px; }

.adv-legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.adv-legal-card { padding: 24px; border-radius: 16px; border: 1px solid; }
.adv-legal-ok { background: rgba(16,185,129,.05); border-color: rgba(16,185,129,.25); }
.adv-legal-no { background: rgba(220,20,60,.05); border-color: rgba(220,20,60,.25); }
.adv-legal-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.adv-legal-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.adv-legal-ok .adv-legal-icon { background: rgba(16,185,129,.15); color: #10b981; }
.adv-legal-no .adv-legal-icon { background: rgba(220,20,60,.15); color: #dc143c; }
.adv-legal-head h3 { margin: 0; font-size: 18px; color: var(--text); }
.adv-legal-list { list-style: none; padding: 0; margin: 0; }
.adv-legal-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}
.adv-legal-list li i { flex-shrink: 0; margin-top: 3px; font-size: 11px; }
.adv-legal-ok .adv-legal-list li i { color: #10b981; }
.adv-legal-no .adv-legal-list li i { color: #dc143c; }
.adv-legal-list strong { color: var(--accent); }

.adv-requirements {
    background: linear-gradient(135deg, rgba(220,20,60,.08), rgba(139,0,0,.03));
    border: 1px solid rgba(220,20,60,.2);
    border-radius: 20px;
    padding: 32px;
}
.adv-requirements h2 {
    margin: 0 0 12px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.adv-requirements h2 i { color: var(--accent); }
.adv-requirements-intro {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.6;
}
.adv-requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.adv-req-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    position: relative;
}
.adv-req-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
    opacity: .2;
    line-height: 1;
    margin-bottom: 8px;
}
.adv-req-card h3 { margin: 0 0 6px; font-size: 14px; color: var(--text); }
.adv-req-card p { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.adv-contact-form-wrap {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
}
.adv-contact-header { text-align: center; margin-bottom: 24px; }
.adv-contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 20px rgba(220,20,60,.35);
}
.adv-contact-header h2 { margin: 0 0 6px; font-size: 22px; }
.adv-contact-header p { margin: 0; color: var(--text-muted); font-size: 13px; }
.adv-form label {
    display: block;
    margin: 14px 0 6px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.adv-form input,
.adv-form textarea,
.adv-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color .15s;
}
.adv-form input:focus,
.adv-form textarea:focus,
.adv-form select:focus { outline: none; border-color: var(--accent); }

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all .2s;
}
.faq-item:hover { border-color: var(--accent); }
.faq-item[open] { border-color: var(--accent); box-shadow: 0 4px 16px rgba(220,20,60,.1); }
.faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--card); }
.faq-q {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}
.faq-q i {
    color: var(--accent);
    font-size: 12px;
    transition: transform .25s;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.faq-item[open] .faq-q i { transform: rotate(45deg); }
.faq-a {
    padding: 0 22px 20px 50px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Карта сайта */
.sitemap-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 32px 40px 0;
}
.sitemap-quick-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: all .25s;
}
.sitemap-quick-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(220,20,60,.15);
    color: var(--text);
}
.sitemap-quick-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.sitemap-quick-item strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.sitemap-quick-item span { font-size: 11px; color: var(--text-muted); }

.sitemap-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px 40px 32px;
}
.sitemap-stat {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}
.sitemap-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin: 0 auto 10px;
}
.sitemap-stat-num { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1; }
.sitemap-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.sitemap-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 0 40px 24px;
}
.sitemap-alphabet-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 8px;
}
.sitemap-letter {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.sitemap-letter:hover,
.sitemap-letter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.sitemap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 40px 24px; }
.sitemap-block {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin: 0 40px 20px;
}
.sitemap-grid .sitemap-block { margin: 0; }
.sitemap-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent);
}
.sitemap-block-head h2 {
    margin: 0;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sitemap-block-head h2 i { color: var(--accent); }
.sitemap-block-count {
    background: var(--accent);
    color: #fff;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.sitemap-cats-list,
.sitemap-pages-list { list-style: none; padding: 0; margin: 0; }
.sitemap-cats-list li,
.sitemap-pages-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sitemap-cats-list li:last-child,
.sitemap-pages-list li:last-child { border-bottom: none; }
.sitemap-cats-list a,
.sitemap-pages-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: all .2s;
}
.sitemap-cats-list a:hover,
.sitemap-pages-list a:hover { color: var(--accent); padding-left: 6px; }
.sitemap-cats-list a span:not(.sitemap-badge),
.sitemap-pages-list a span { flex: 1; }
.sitemap-badge {
    background: var(--card);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 600;
}
.sitemap-block-articles { padding: 24px 40px; margin: 0 40px 24px; }
.sitemap-search { position: relative; margin-bottom: 20px; }
.sitemap-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.sitemap-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .15s;
}
.sitemap-search input:focus { outline: none; border-color: var(--accent); }
.sitemap-articles-list { max-height: 600px; overflow-y: auto; padding-right: 8px; }
.sitemap-articles-list::-webkit-scrollbar { width: 6px; }
.sitemap-articles-list::-webkit-scrollbar-track { background: var(--card); border-radius: 3px; }
.sitemap-articles-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.sitemap-letter-group { margin-bottom: 20px; }
.sitemap-letter-head {
    font-size: 18px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 8px;
    padding: 6px 12px;
    background: rgba(220,20,60,.08);
    border-radius: 8px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}
.sitemap-letter-group ul { list-style: none; padding: 0; margin: 0; }
.sitemap-letter-group li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sitemap-letter-group li:last-child { border-bottom: none; }
.sitemap-letter-group a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}
.sitemap-letter-group a:hover { color: var(--accent); }
.sitemap-article-title { flex: 1; line-height: 1.4; }
.sitemap-article-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}
.sitemap-article-meta i { color: var(--accent); }
.sitemap-empty { text-align: center; padding: 40px; color: var(--text-muted); }
.sitemap-empty i { font-size: 40px; opacity: .3; margin-bottom: 12px; display: block; }

.sitemap-footer-links {
    padding: 24px 40px 40px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.sitemap-footer-links h3 {
    margin: 0 0 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sitemap-footer-links h3 i { color: var(--accent); }
.sitemap-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.sitemap-footer-grid a {
    padding: 10px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all .2s;
}
.sitemap-footer-grid a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.sitemap-footer-grid a i { color: var(--accent); width: 16px; text-align: center; }

/* ============================================================
   14. COOKIE
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    padding: 20px 24px;
    transform: translateY(120%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    max-width: 900px;
    margin: 0 auto;
}
.cookie-banner.active { transform: translateY(0); }
.cookie-inner { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cookie-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.cookie-content { flex: 1; min-width: 200px; }
.cookie-content h3 { margin: 0 0 4px; font-size: 15px; color: var(--text); }
.cookie-content p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.cookie-link { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cookie-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-settings { background: transparent; }
.cookie-settings:hover { background: var(--bg-alt); border-color: var(--accent); color: var(--accent); }
.cookie-reject:hover { background: var(--bg); border-color: var(--text-muted); }
.cookie-accept,
.cookie-save {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(220,20,60,.3);
}
.cookie-accept:hover,
.cookie-save:hover { box-shadow: 0 6px 20px rgba(220,20,60,.5); color: #fff; }

.cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.cookie-modal.active { display: flex; }
.cookie-modal-box {
    background: var(--card);
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0,0,0,.6);
}
.cookie-modal-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cookie-modal-head h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.cookie-modal-head h3 i { color: var(--accent); }
.cookie-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}
.cookie-modal-close:hover { color: var(--text); background: var(--bg-alt); }
.cookie-modal-body { padding: 20px 24px; }
.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
}
.cookie-toggle strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.cookie-toggle p { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.cookie-cb {
    appearance: none;
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.cookie-cb::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.cookie-cb:checked { background: var(--accent); }
.cookie-cb:checked::after { transform: translateX(20px); }
.cookie-switch-locked {
    width: 44px;
    height: 24px;
    background: rgba(220,20,60,.2);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 11px;
    flex-shrink: 0;
}
.cookie-modal-actions {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ============================================================
   15. РЕКЛАМА / ADS
   ============================================================ */
.ads-block { margin: 20px 0; }
.ads-block .ad-item { margin-bottom: 16px; }
.ads-block .ad-item:last-child { margin-bottom: 0; }
.ads-block img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
.ad-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-align: center;
    opacity: .6;
}

/* ============================================================
   16. МОДАЛКИ
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.modal.active { display: flex; }
.modal-box {
    background: var(--card);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0,0,0,.6);
}
.modal-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-head h3 { margin: 0; font-size: 18px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.modal-head h3 i { color: var(--accent); }
.modal-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 20px; padding: 6px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px 24px; overflow-y: auto; }

/* Suggest article modal */
.modal-suggest {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.modal-suggest.active { display: flex; }
.modal-suggest-box {
    background: var(--card);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal-suggest-head {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-suggest-head h3 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.modal-suggest-head h3 i { color: var(--accent); }
.modal-suggest-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}
.modal-suggest-close:hover { color: var(--text); background: var(--bg-alt); }
.modal-suggest-body { padding: 24px; }
.modal-suggest-body label {
    display: block;
    margin: 14px 0 6px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.modal-suggest-body input,
.modal-suggest-body textarea,
.modal-suggest-body select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    box-sizing: border-box;
}
.modal-suggest-body textarea { resize: vertical; min-height: 120px; }
.modal-suggest-body input:focus,
.modal-suggest-body textarea:focus,
.modal-suggest-body select:focus { outline: none; border-color: var(--accent); }
.modal-suggest-body .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Suggest FAB */
.suggest-article-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(220,20,60,.4);
    transition: all .25s;
}
.suggest-article-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 40px rgba(220,20,60,.55);
}

/* ============================================================
   17. МЕДИА / GALLERY / SLIDER
   ============================================================ */
.article-slider,
.article-gallery { display: grid; gap: 10px; margin: 24px 0; }
.article-slider {
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.article-slider img {
    scroll-snap-align: start;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}
.article-gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.article-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform .25s;
}
.article-gallery img:hover { transform: scale(1.03); }

/* ============================================================
   18. АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    .site-sidebar { position: static; order: 2; }
    .article-body-wrap { grid-template-columns: minmax(0, 1fr) 240px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-cards-row { grid-template-columns: 1fr 1fr; }
    .adv-legal-grid { grid-template-columns: 1fr; }
    .image-upload-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
    .article-body-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
    .article-toc { position: static; max-height: none; order: -1; margin-bottom: 20px; }
    .toc-list { max-height: 300px; }
    .toc-item a { white-space: normal; }
}
@media (max-width: 900px) {
    .article-hero { min-height: 320px; border-radius: 16px; margin-bottom: 24px; }
    .article-hero-content { padding: 24px 20px; }
    .article-hero-title { font-size: 26px; margin-bottom: 14px; }
    .article-hero-meta { font-size: 12px; gap: 8px; }
    .article-hero-actions { gap: 8px; }
    .article-share-block,
    .author-box,
    .comments-section,
    .recommended-section { margin-left: 20px; margin-right: 20px; }
    .author-box { flex-direction: column; text-align: center; }
    .author-box-info { text-align: center; }
    .comments-section { padding: 20px; }
    .contact-grid-v2 { grid-template-columns: 1fr; }
    .info-content-v2,
    .legal-content-v2,
    .contact-grid-v2 { padding: 24px; }
    .info-hero-v2 { padding: 40px 24px; }
    .info-hero-v2 h1 { font-size: 28px; }
    .info-hero-icon { width: 68px; height: 68px; font-size: 26px; }
    .info-values,
    .sitemap-sections-v2 { padding: 0 24px 24px; }
    .sitemap-sections-v2 { padding: 24px; }
    .info-cta,
    .faq-cta { margin: 0 24px 24px; padding: 20px; }
    .faq-list { padding: 24px; }
    .contact-map-v2 { padding: 0 24px 24px; }
    .legal-footer-v2 { padding: 20px 24px 24px; }
    .footer-legal-inner { flex-direction: column; text-align: center; justify-content: center; }
    .footer-legal-links { justify-content: center; }
    .adv-section { padding: 24px; }
    .adv-blocks-grid { grid-template-columns: 1fr; }
    .adv-contact-form-wrap { padding: 24px; }
    .adv-requirements { padding: 24px; }
    .sitemap-grid { grid-template-columns: 1fr; }
    .sitemap-quick,
    .sitemap-stats,
    .sitemap-alphabet { padding-left: 24px; padding-right: 24px; }
    .sitemap-block { margin: 0 24px 16px; padding: 20px; }
    .sitemap-block-articles { margin: 0 24px 16px; padding: 20px; }
    .sitemap-footer-links { padding: 20px 24px 24px; }
    .sitemap-grid { padding: 0 24px 16px; }
    .article-float-share { display: flex; }
    .profile-hero { flex-direction: column; text-align: center; padding: 28px 20px; }
    .profile-panel { padding: 20px; }
    .profile-hero-v2-content { flex-direction: column; align-items: center; text-align: center; padding: 0 20px 20px; }
    .profile-info-v2 h1 { font-size: 22px; }
    .profile-meta-v2 { justify-content: center; }
    .profile-hero-info h1 { font-size: 22px; }
    .recommended-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header-inner { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 16px; }
    .logo-text { font-size: 18px; }
    .search-input { font-size: 13px; }
    .slide-title { font-size: 24px; }
    .slide-content { padding: 32px 24px; }
    .hero-slider { height: 380px; }
    .site-main { padding: 20px 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .auth-box, .profile-box { padding: 24px; }
    .profile-head { flex-direction: column; text-align: center; }
    .article-content { font-size: 16px; line-height: 1.7; }
    .article-content h1 { font-size: 26px; }
    .article-content h2 { font-size: 21px; margin: 28px 0 12px; }
    .article-content h3 { font-size: 18px; }
    .article-content h4 { font-size: 16px; }
    .article-content blockquote { font-size: 16px; padding: 12px 16px; }
    .article-content pre { font-size: 12px; padding: 14px; }
    .article-content table { font-size: 13px; }
    .article-content th,
    .article-content td { padding: 8px 10px; }
    .article-content ul,
    .article-content ol { padding-left: 20px; }
    .article-plain-header { padding: 24px 20px; }
    .article-plain-title { font-size: 26px; }
    .article-plain-meta { font-size: 12px; }
    .article-hero-title { font-size: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .newsletter-inner { padding: 24px; }
    .newsletter-form { min-width: auto; flex: 1 1 100%; }
}
@media (max-width: 600px) {
    .cookie-inner { flex-direction: column; align-items: stretch; }
    .cookie-icon { display: none; }
    .cookie-actions { justify-content: stretch; }
    .cookie-btn { flex: 1; justify-content: center; }
    .sitemap-letter-group a { flex-direction: column; align-items: flex-start; gap: 4px; }
    .sitemap-article-meta { font-size: 10px; }
    .sitemap-quick { grid-template-columns: 1fr 1fr; }
    .sitemap-stats { grid-template-columns: 1fr 1fr; }
    .partners-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .modal-suggest-body .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .recommended-grid { grid-template-columns: 1fr; }
    .favorites-grid { grid-template-columns: 1fr; }
    .info-hero-v2 h1 { font-size: 22px; }
    .info-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .faq-cta { flex-direction: column; text-align: center; }
    .article-hero { min-height: 260px; }
    .article-hero-title { font-size: 22px; }
    .article-content { font-size: 15px; line-height: 1.7; }
    .article-content h2 { font-size: 20px; }
    .article-content h3 { font-size: 17px; }
    .article-content pre { font-size: 12px; padding: 14px; }
    .article-content table { font-size: 13px; }
    .article-content th,
    .article-content td { padding: 8px 10px; }
    .hero-rating .star { font-size: 14px; }
    .hero-fav span { display: none; }
    .share-btn { width: 40px; height: 40px; font-size: 14px; }
    .suggest-article-fab {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }
    .suggest-article-fab span { display: none; }
    .stats-cards-row { grid-template-columns: 1fr 1fr; }
}
/* ============================================================
   ГЛАВНАЯ — СЛАЙДЕР V2
   ============================================================ */
.hero-slider-v2 {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 520px;
    margin-bottom: 48px;
    background: #0a0a0a;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    isolation: isolate;
}

.slider-track-v2 {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-v2 {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
    overflow: hidden;
}
.slide-v2.active { opacity: 1; pointer-events: auto; z-index: 1; }

.slide-v2-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 9s ease;
    filter: brightness(.85) saturate(1);
}
.slide-v2.active .slide-v2-bg { transform: scale(1.18); }

.slide-v2-bg-default {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 60%, #2a0505 100%);
}
.slide-v2-bg-default::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 40%, rgba(255,255,255,.15), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255,255,255,.1), transparent 50%);
}

.slide-v2-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.75) 40%, rgba(0,0,0,.3) 70%, rgba(0,0,0,.1) 100%);
    z-index: 1;
}

.slide-v2-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 56px 56px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    max-width: 720px;
}

.slide-v2-top {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.slide-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.slide-v2-featured {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251,191,36,.15);
    border: 1px solid rgba(251,191,36,.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-v2-title {
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -.5px;
    text-shadow: 0 4px 24px rgba(0,0,0,.5);
    overflow-wrap: break-word;
}
.slide-v2-title a {
    color: #fff;
    text-decoration: none;
    transition: color .25s;
}
.slide-v2-title a:hover { color: var(--accent); }

.slide-v2-excerpt {
    color: rgba(255,255,255,.82);
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
    max-width: 600px;
    overflow-wrap: break-word;
}

.slide-v2-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    margin-bottom: 24px;
}
.slide-v2-meta i { color: var(--accent); margin-right: 4px; }

.slide-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    width: fit-content;
    transition: all .25s;
    box-shadow: 0 8px 24px rgba(220,20,60,.4);
    text-decoration: none;
}
.slide-v2-btn:hover {
    transform: translateY(-2px) translateX(4px);
    box-shadow: 0 12px 32px rgba(220,20,60,.6);
    color: #fff;
}

/* Стрелки */
.slider-v2-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0,0,0,.4);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    cursor: pointer;
    z-index: 5;
    font-size: 16px;
    transition: all .25s;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.slider-v2-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.08);
}
.slider-v2-arrow.prev { left: 20px; }
.slider-v2-arrow.next { right: 20px; }

/* Точки */
.slider-v2-dots {
    position: absolute;
    bottom: 28px;
    left: 56px;
    display: flex;
    gap: 10px;
    z-index: 5;
}
.slider-v2-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
}
.dot-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    transition: all .3s;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.slider-v2-dot:hover .dot-inner { background: rgba(255,255,255,.7); }
.slider-v2-dot.active .dot-inner {
    background: var(--accent);
    width: 28px;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(220,20,60,.6);
}

/* Прогресс */
.slider-v2-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,.1);
    z-index: 4;
    overflow: hidden;
}
.slider-v2-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #fbbf24);
    transition: width linear;
}

/* ============================================================
   КАРУСЕЛЬ «ПОСЛЕДНИЕ СТАТЬИ»
   ============================================================ */
.carousel-section {
    margin-bottom: 48px;
}

.carousel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}
.carousel-head .section-title { margin: 0; }

.carousel-controls {
    display: flex;
    gap: 8px;
}
.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all .2s;
    font-family: inherit;
}
.carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220,20,60,.3);
}
.carousel-btn:active { transform: translateY(0); }

.carousel-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 3px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.carousel-track:active { cursor: grabbing; }

.carousel-card {
    flex: 0 0 300px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    transition: all .25s;
    cursor: pointer;
    position: relative;
}
.carousel-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(220,20,60,.18);
}

.carousel-card-image {
    display: block;
    position: relative;
    height: 170px;
    overflow: hidden;
    background: var(--bg-alt);
}
.carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.carousel-card:hover .carousel-card-image img { transform: scale(1.06); }
.carousel-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 36px;
    opacity: .85;
}
.carousel-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    z-index: 2;
}

.carousel-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.carousel-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.carousel-card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color .2s;
}
.carousel-card-title a:hover { color: var(--accent); }

.carousel-card-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.carousel-card-meta i { color: var(--accent); }
.carousel-card-views {
    font-weight: 700;
    color: var(--accent);
}

/* Мобильные контролы */
.carousel-mobile-controls {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 12px;
}
.carousel-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all .2s;
}
.carousel-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 999px;
}

/* ============================================================
   БЛОКИ КАТЕГОРИЙ
   ============================================================ */
.cat-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    transition: box-shadow .25s;
}
.cat-block:hover { box-shadow: 0 8px 30px rgba(0,0,0,.06); }

.cat-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.cat-block-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cat-block-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.cat-block-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}
.cat-block-count {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.cat-block-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
}
.cat-block-all:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateX(2px);
}

.cat-block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.cat-mini-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: all .2s;
}
.cat-mini-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(220,20,60,.15);
    color: var(--text);
}
.cat-mini-image {
    height: 110px;
    overflow: hidden;
    background: var(--bg);
}
.cat-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.cat-mini-card:hover .cat-mini-image img { transform: scale(1.05); }
.cat-mini-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    opacity: .7;
}
.cat-mini-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.cat-mini-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cat-mini-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.cat-mini-meta i { color: var(--accent); font-size: 10px; }

/* ============================================================
   АДАПТИВ ГЛАВНОЙ
   ============================================================ */
@media (max-width: 1024px) {
    .hero-slider-v2 { height: 460px; border-radius: 20px; }
    .slide-v2-content { padding: 40px 40px 48px; }
    .slide-v2-title { font-size: 34px; }
}

@media (max-width: 900px) {
    .hero-slider-v2 { height: 420px; margin-bottom: 32px; }
    .slide-v2-content { padding: 32px 28px 40px; }
    .slide-v2-title { font-size: 28px; }
    .slide-v2-excerpt { font-size: 14px; }
    .slider-v2-dots { left: 28px; bottom: 20px; }
    .slider-v2-arrow { width: 44px; height: 44px; font-size: 14px; }
    .slider-v2-arrow.prev { left: 12px; }
    .slider-v2-arrow.next { right: 12px; }

    .carousel-card { flex: 0 0 260px; }
    .carousel-card-image { height: 150px; }
    .carousel-mobile-controls { display: flex; }
    .cat-block-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .cat-block { padding: 20px; }
}

@media (max-width: 600px) {
    .hero-slider-v2 { height: 360px; border-radius: 16px; }
    .slide-v2-content { padding: 24px 20px 32px; }
    .slide-v2-title { font-size: 22px; margin-bottom: 10px; }
    .slide-v2-excerpt { font-size: 13px; margin-bottom: 14px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .slide-v2-meta { font-size: 11px; gap: 12px; margin-bottom: 16px; }
    .slide-v2-btn { padding: 10px 20px; font-size: 13px; }
    .slider-v2-dots { left: 20px; bottom: 16px; gap: 6px; }
    .slider-v2-dot { width: 22px; height: 22px; }
    .slider-v2-dot.active .dot-inner { width: 22px; }
    .slider-v2-arrow { width: 38px; height: 38px; font-size: 12px; }
    .slider-v2-arrow.prev { left: 8px; }
    .slider-v2-arrow.next { right: 8px; }

    .carousel-card { flex: 0 0 220px; }
    .carousel-card-image { height: 130px; }
    .carousel-card-body { padding: 12px; }
    .carousel-card-title { font-size: 13px; -webkit-line-clamp: 2; }
    .carousel-card-meta { font-size: 11px; gap: 10px; }
    .carousel-controls { display: none; }

    .cat-block { padding: 16px; }
    .cat-block-head { padding-bottom: 12px; margin-bottom: 16px; }
    .cat-block-icon { width: 40px; height: 40px; font-size: 16px; border-radius: 11px; }
    .cat-block-title { font-size: 16px; }
    .cat-block-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-mini-image { height: 90px; }
    .cat-mini-body { padding: 10px; }
    .cat-mini-title { font-size: 12px; }
    .cat-mini-meta { font-size: 10px; }
}

@media (max-width: 400px) {
    .cat-block-grid { grid-template-columns: 1fr; }
    .cat-mini-card { flex-direction: row; }
    .cat-mini-image { width: 100px; height: auto; flex-shrink: 0; }
    .cat-mini-body { padding: 10px 12px; }
}
/* ============================================================
   ХЕШТЕГИ — стили (добавить в конец style.css)
   ============================================================ */

.article-tags-block {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.article-tags-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-tags-label i { color: var(--accent); }
.article-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--tag-color), color-mix(in srgb, var(--tag-color) 60%, black));
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--tag-color) 30%, transparent);
    position: relative;
    overflow: hidden;
}
.article-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
    opacity: 0;
    transition: opacity .25s;
}
.article-tag:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--tag-color) 50%, transparent);
}
.article-tag:hover::before { opacity: 1; }
.tag-hash { opacity: .8; font-weight: 900; margin-right: 2px; }

.tags-sidebar-card { padding: 0; }
.sidebar-tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; }
.sidebar-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 6px 11px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.sidebar-tag-hash { color: var(--tag-color); font-weight: 900; font-size: 12px; }
.sidebar-tag-count {
    background: var(--card);
    color: var(--text-muted);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 3px;
    font-weight: 700;
    border: 1px solid var(--border);
    transition: all .2s;
}
.sidebar-tag:hover {
    background: var(--tag-color);
    border-color: var(--tag-color);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--tag-color) 40%, transparent);
}
.sidebar-tag:hover .sidebar-tag-hash { color: #fff; }
.sidebar-tag:hover .sidebar-tag-count {
    background: rgba(255,255,255,.25);
    color: #fff;
    border-color: transparent;
}
.sidebar-tags-all {
    display: block;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    text-align: center;
    transition: all .2s;
}
.sidebar-tags-all:hover { background: rgba(220,20,60,.05); color: var(--accent); }
.sidebar-tags-all i { font-size: 11px; margin-left: 4px; }

.top-tags-section {
    margin-bottom: 40px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(220,20,60,.05), rgba(139,0,0,.02));
    border: 1px solid rgba(220,20,60,.15);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.top-tags-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220,20,60,.2), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}
.top-tags-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.top-tags-head .section-title { margin: 0; }
.top-tags-head .section-title i { color: #f59e0b; animation: fire 2s infinite; }
@keyframes fire {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.top-tags-sub { font-size: 13px; color: var(--text-muted); }
.top-tags-cloud { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.top-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
.top-tag-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--tag-color), color-mix(in srgb, var(--tag-color) 60%, black));
    opacity: 0;
    transition: opacity .25s;
    z-index: 0;
}
.top-tag-item > * { position: relative; z-index: 1; }
.top-tag-rank {
    background: var(--tag-color);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: -.5px;
}
.top-tag-name { color: var(--text); transition: color .25s; }
.top-tag-count {
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 999px;
    font-weight: 700;
    transition: all .25s;
}
.top-tag-item:hover {
    border-color: var(--tag-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--tag-color) 35%, transparent);
    color: #fff;
}
.top-tag-item:hover::before { opacity: 1; }
.top-tag-item:hover .top-tag-name { color: #fff; }
.top-tag-item:hover .top-tag-rank { background: rgba(255,255,255,.25); }
.top-tag-item:hover .top-tag-count {
    background: rgba(255,255,255,.25);
    color: #fff;
}

.tag-page-hero {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 32px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tag-color) 15%, var(--card)), var(--card));
    border: 2px solid color-mix(in srgb, var(--tag-color) 30%, var(--border));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.tag-page-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, color-mix(in srgb, var(--tag-color) 30%, transparent), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}
.tag-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--tag-color), color-mix(in srgb, var(--tag-color) 60%, black));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--tag-color) 45%, transparent);
    position: relative;
    z-index: 1;
}
.tag-hero-content { position: relative; z-index: 1; }
.tag-hero-label {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--tag-color);
    font-weight: 700;
    margin-bottom: 6px;
}
.tag-hero-content h1 { margin: 0 0 6px; font-size: 36px; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.tag-hero-content p { margin: 0; color: var(--text-muted); font-size: 14px; }

.all-tags-wrap { padding: 40px; }
.all-tags-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.all-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.all-tag-hash { color: var(--tag-color); font-weight: 900; margin-right: 2px; }
.all-tag-count {
    background: var(--card);
    color: var(--text-muted);
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 999px;
    font-weight: 700;
    margin-left: 6px;
    border: 1px solid var(--border);
    transition: all .25s;
}
.all-tag-item:hover {
    background: var(--tag-color);
    border-color: var(--tag-color);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--tag-color) 40%, transparent);
}
.all-tag-item:hover .all-tag-hash { color: #fff; }
.all-tag-item:hover .all-tag-count {
    background: rgba(255,255,255,.25);
    color: #fff;
    border-color: transparent;
}

.tags-input-wrap {
    position: relative;
    border: 1px solid #2a2a2a;
    background: #0a0a0a;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    transition: border-color .15s;
    min-height: 48px;
}
.tags-input-wrap:focus-within { border-color: #dc143c; }
.tags-chips { display: contents; }
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #dc143c, #8b0000);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    animation: chipIn .2s ease;
}
@keyframes chipIn {
    from { transform: scale(.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.tag-chip button {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.8);
    cursor: pointer;
    padding: 0;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: background .15s;
}
.tag-chip button:hover { background: rgba(255,255,255,.25); color: #fff; }
.tags-input {
    flex: 1;
    min-width: 120px;
    background: transparent !important;
    border: none !important;
    outline: none;
    padding: 6px !important;
    color: #eee !important;
    font-size: 14px;
}
.tags-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #131313;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    z-index: 50;
    max-height: 260px;
    overflow-y: auto;
}
.tag-suggest-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
    transition: background .15s;
}
.tag-suggest-item:last-child { border-bottom: none; }
.tag-suggest-item:hover { background: #1a1a1a; color: #fff; }
.tag-suggest-count {
    background: #1a1a1a;
    color: #888;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
}
.tags-popular {
    margin-top: 14px;
    padding: 12px;
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
}
.tags-popular-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 700;
}
.tags-popular-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-suggest-btn {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #ccc;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}
.tag-suggest-btn:hover {
    background: #dc143c;
    border-color: #dc143c;
    color: #fff;
}
.tag-cnt {
    background: rgba(255,255,255,.1);
    padding: 0 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .tag-page-hero { flex-direction: column; text-align: center; padding: 24px; }
    .tag-hero-content h1 { font-size: 26px; }
    .tag-hero-icon { width: 64px; height: 64px; font-size: 26px; }
    .top-tags-section { padding: 16px; }
    .top-tag-item { padding: 8px 14px; font-size: 13px !important; }
    .top-tag-rank { font-size: 9px; padding: 1px 6px; }
    .top-tags-head { flex-direction: column; align-items: flex-start; }
    .article-tags-block { padding: 16px; }
    .article-tag { font-size: 12px; padding: 6px 12px; }
    .all-tags-wrap { padding: 24px; }
    .all-tag-item { padding: 8px 14px; }
}
@media (max-width: 500px) {
    .top-tags-cloud { gap: 6px; }
    .top-tag-item { padding: 7px 12px; font-size: 12px !important; gap: 4px; }
    .top-tag-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* === Страница «Обработка персональных данных» === */
.legal-content-v2 h2 {
    scroll-margin-top: 90px;
}
.legal-content-v2 h3 {
    color: var(--accent);
    font-size: 17px;
    margin: 22px 0 10px;
}
.legal-content-v2 table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.legal-content-v2 th {
    background: var(--bg-alt);
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}
.legal-content-v2 td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.legal-content-v2 tr:last-child td { border-bottom: none; }
.legal-content-v2 ul,
.legal-content-v2 ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
.legal-content-v2 li {
    margin-bottom: 6px;
    line-height: 1.65;
}
.legal-content-v2 a {
    color: var(--accent);
    text-decoration: underline;
    overflow-wrap: anywhere;
}
.legal-content-v2 a:hover {
    color: var(--accent-dark);
    text-decoration-thickness: 2px;
}
.legal-content-v2 strong { color: var(--text); font-weight: 700; }
.legal-content-v2 p { margin: 0 0 14px; }

/* Предупреждающий баннер на странице персональных данных */
.personal-data-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(220,20,60,.05));
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    margin-bottom: 24px;
}
.personal-data-notice i {
    color: #f59e0b;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.personal-data-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}
.personal-data-notice strong { color: #f59e0b; }
/* ============================================================
   СЛАЙДЕР V2 + МИНИАТЮРЫ ТОП-СТАТЕЙ
   ============================================================ */
.hero-slider-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    height: 520px;
    margin-bottom: 48px;
    background: transparent;
    box-shadow: none;
    isolation: auto;
}

.slider-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    height: 100%;
    min-width: 0;
}

/* Миниатюры справа */
.slider-thumbs {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    min-height: 0;
}
.slider-thumbs-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    background: linear-gradient(135deg, rgba(220,20,60,.1), rgba(139,0,0,.03));
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.slider-thumbs-head i {
    color: #f59e0b;
    font-size: 13px;
    animation: fire 2s infinite;
}
.slider-thumbs-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.slider-thumbs-list::-webkit-scrollbar { width: 4px; }
.slider-thumbs-list::-webkit-scrollbar-track { background: transparent; }
.slider-thumbs-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.slider-thumb {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-family: inherit;
    transition: all .2s;
    flex-shrink: 0;
    width: 100%;
    align-items: stretch;
}
.slider-thumb:hover {
    background: var(--bg-alt);
    border-color: var(--border);
}
.slider-thumb.active {
    background: linear-gradient(135deg, rgba(220,20,60,.08), transparent);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(220,20,60,.15);
}

.slider-thumb-img {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-alt);
    flex-shrink: 0;
}
.slider-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.slider-thumb:hover .slider-thumb-img img { transform: scale(1.08); }
.slider-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 20px;
    opacity: .8;
}
.slider-thumb-num {
    position: absolute;
    top: 3px;
    left: 3px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 4px;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.slider-thumb.active .slider-thumb-num {
    background: var(--accent);
}

.slider-thumb-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}
.slider-thumb-cat {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    line-height: 1;
    opacity: .85;
}
.slider-thumb-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .2s;
}
.slider-thumb:hover .slider-thumb-title,
.slider-thumb.active .slider-thumb-title {
    color: var(--accent);
}
.slider-thumb-meta {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1;
}
.slider-thumb-meta i {
    color: var(--accent);
    font-size: 9px;
    margin-right: 2px;
}

/* ============================================================
   АДАПТИВ СЛАЙДЕРА С МИНИАТЮРАМИ
   ============================================================ */
@media (max-width: 1200px) {
    .hero-slider-v2 { grid-template-columns: minmax(0, 1fr) 280px; }
    .slider-thumb-img { width: 54px; height: 54px; }
    .slider-thumb-title { font-size: 11px; }
}

@media (max-width: 1024px) {
    .hero-slider-v2 {
        grid-template-columns: 1fr;
        height: auto;
    }
    .slider-main { height: 460px; }
    .slider-thumbs {
        height: auto;
        max-height: none;
    }
    .slider-thumbs-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px;
        gap: 8px;
    }
    .slider-thumb {
        flex: 0 0 200px;
        width: 200px;
    }
}

@media (max-width: 900px) {
    .slider-main { height: 420px; }
}

@media (max-width: 600px) {
    .slider-main { height: 360px; border-radius: 16px; }
    .slider-thumbs { border-radius: 16px; }
    .slider-thumb { flex: 0 0 170px; width: 170px; padding: 6px; }
    .slider-thumb-img { width: 46px; height: 46px; }
    .slider-thumb-title { font-size: 10px; -webkit-line-clamp: 2; }
    .slider-thumbs-head { padding: 10px 12px; font-size: 11px; }
}

@media (max-width: 400px) {
    .slider-thumb { flex: 0 0 150px; width: 150px; }
    .slider-thumb-title { font-size: 10px; }
}