/* =============================================
   archive.css — CRD GAME V3.0
   Crimson Desert Style · единая вселенная
   
   Версия: 2026-06
   Содержит:
   1. Архив новостей (страницы /news/)
   2. Страница материала (обложка, заголовок, автор)
   3. Комментарии
   4. Картинки в статьях (lightbox, Crimson Desert style)
   5. Двухколоночная вёрстка (фото + текст)
   6. Подписи к фото
   7. Универсальные контент-блоки (.cd-*)
   8. Адаптив страницы материала
============================================= */


/* =============================================
   ╔══════════════════════════════════════════╗
   ║   1. АРХИВ НОВОСТЕЙ — /news/             ║
   ╚══════════════════════════════════════════╝
============================================= */

/* ═══════════════════════════════════════════
   КНОПКА "ДОБАВИТЬ" — фикс позиции (без дёргания)
═══════════════════════════════════════════ */
html body a.pa-add-btn-header,
html body a.pa-add-btn-header:link,
html body a.pa-add-btn-header:visited {
    position: fixed !important;
    top: 22px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(460px) !important;
    margin: 0 !important;
    z-index: 10000 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    height: 42px !important;
    padding: 0 22px !important;
    background: rgba(174, 137, 84, 0.12) !important;
    border: 1px solid rgba(174, 137, 84, 0.5) !important;
    border-radius: 0 !important;
    color: #c5b8aa !important;
    text-decoration: none !important;
    font-family: 'Russo One', sans-serif !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    /* Анимируем ТОЛЬКО цвета и тень — без transform/position */
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease !important;
}
html body a.pa-add-btn-header:hover {
    background: #ae8954 !important;
    border-color: #ae8954 !important;
    color: #14110d !important;
    box-shadow: 0 4px 15px rgba(174, 137, 84, 0.4) !important;
    /* Фиксируем transform чтобы кнопка не сдвинулась при hover */
    transform: translateX(460px) !important;
}
html body a.pa-add-btn-header .material-icons {
    font-size: 16px !important;
    line-height: 1 !important;
    color: inherit !important;
}
@media (max-width: 1280px) {
    html body a.pa-add-btn-header,
    html body a.pa-add-btn-header:hover {
        left: auto !important;
        right: 20px !important;
        transform: none !important;
    }
}
@media (max-width: 992px) {
    html body a.pa-add-btn-header { display: none !important; }
}
/* ═══════════════════════════════════════════
   ШАПКА АРХИВА
═══════════════════════════════════════════ */
body.archive_page #casing { margin-top: 0; }
body.archive_page #content > section { padding-top: 0; }

body.archive_page .board_header {
    text-align: center;
    padding: 70px 20px 0;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}



body.archive_page .board_title {
    font-family: 'Russo One', sans-serif;
    font-size: 50px;
    font-weight: 400;
    color: #c5b8aa;
    margin: 0 0 50px;
    letter-spacing: 12px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    position: relative;
    display: inline-block;
}

/* Декоративные ромбы по бокам заголовка */
body.archive_page .board_title::before,
body.archive_page .board_title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #ae8954;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 8px rgba(174,137,84,0.5);
}
body.archive_page .board_title::before { left: -30px; }
body.archive_page .board_title::after { right: -30px; }

body.archive_page .board_tabs {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(174,137,84,0.2);
}
body.archive_page .board_tabs a {
    font-family: 'Russo One', sans-serif;
    font-size: 12px;
    color: #8a7d6e;
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 8px 4px;
    position: relative;
    transition: color 0.3s ease;
}
body.archive_page .board_tabs a::after {
    content: '';
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ae8954;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(174,137,84,0.5);
}
body.archive_page .board_tabs a:hover { color: #c5b8aa; }
body.archive_page .board_tabs a:hover::after { width: 100%; }
body.archive_page .board_tabs a.active { color: #c5b8aa !important; }
body.archive_page .board_tabs a.active::after { width: 100% !important; }

/* ═══════════════════════════════════════════
   СЕТКА — 3 в ряд
═══════════════════════════════════════════ */
body.archive_page .board_wrap {
    max-width: 1600px;
    margin: 50px auto 0;
    padding: 0 20px;
}
body.archive_page .board_content {
    background: none !important;
    padding: 0 !important;
    border: 0 !important;
}

html body.archive_page .common_thumb_list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 50px 24px !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

/* Растворяем все обёртки uCoz */
html body.archive_page .common_thumb_list > div,
html body.archive_page .common_thumb_list > table,
html body.archive_page .common_thumb_list table,
html body.archive_page .common_thumb_list table.catAllEntries,
html body.archive_page .common_thumb_list tbody,
html body.archive_page .common_thumb_list tr,
html body.archive_page .common_thumb_list td,
html body.archive_page .common_thumb_list td.archiveEntries,
html body.archive_page .common_thumb_list div[id^="entryID"],
html body.archive_page #allEntries {
    display: contents !important;
}
html body.archive_page .common_thumb_list > br,
html body.archive_page .common_thumb_list > hr,
html body.archive_page #myGrid { display: none !important; }

/* ═══════════════════════════════════════════
   КАРТОЧКА
═══════════════════════════════════════════ */
html body.archive_page .common_thumb_list .item_card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;            /* ← НОВОЕ */
}

html body.archive_page .common_thumb_list a.item_box,
html body.archive_page .common_thumb_list a.item_box:link,
html body.archive_page .common_thumb_list a.item_box:visited {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    height: 100% !important;            /* ← НОВОЕ: растягиваем ссылку на всю высоту карточки */
}

/* Двигается только обложка вверх */
html body.archive_page .common_thumb_list .common_thumbnail {
    transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
html body.archive_page .common_thumb_list a.item_box:hover .common_thumbnail {
    transform: translateY(-6px) !important;
    border-color: rgba(174,137,84,0.7) !important;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.4),
        0 16px 32px rgba(0,0,0,0.7),
        inset 0 0 30px rgba(0,0,0,0.3),
        0 0 25px rgba(174,137,84,0.15) !important;
}

/* ОБЛОЖКА 16:9 */
html body.archive_page .common_thumb_list .common_thumbnail {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    padding-top: 56.55% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    background: #14110d !important;
    border: 1px solid rgba(174, 137, 84, 0.3) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.4),
        0 8px 24px rgba(0,0,0,0.5),
        inset 0 0 30px rgba(0,0,0,0.3) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}
html body.archive_page .common_thumb_list .common_thumbnail::after {
    content: '' !important;
    position: absolute !important;
    inset: 4px !important;
    z-index: 3 !important;
    pointer-events: none !important;
    border: 1px solid rgba(174,137,84,0.1) !important;
}

/* Декоративный L-уголок в левом верхнем углу обложки */
html body.archive_page .common_thumb_list .common_thumbnail::before {
    content: '' !important;
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    width: 12px !important;
    height: 12px !important;
    border-top: 2px solid #ae8954 !important;
    border-left: 2px solid #ae8954 !important;
    z-index: 4 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}
html body.archive_page .common_thumb_list a.item_box:hover .common_thumbnail::before {
    opacity: 1 !important;
}

/* IMG */
/* ФИКС: img — прямой потомок .common_thumbnail (без обёртки .news-image-wrap) */
html body.archive_page .common_thumb_list span.common_thumbnail {
    font-size: 0 !important;
    line-height: 0 !important;
}
html body.archive_page .common_thumb_list span.common_thumbnail > img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    vertical-align: top !important;
    display: block !important;
}
/* Отключаем стили .cover-image-wrap для карточек архива */
html body.archive_page .common_thumb_list .common_thumbnail.cover-image-wrap::after {
    content: none !important;
    display: none !important;
}
html body.archive_page .common_thumb_list .common_thumbnail img,
html body.archive_page .common_thumb_list .common_thumbnail > img,
html body.archive_page .common_thumb_list .item_box img {
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    float: none !important;
    vertical-align: middle !important;
    filter: brightness(0.85) contrast(1.05) sepia(0.08) !important;
    transition: transform 0.6s ease, filter 0.4s ease !important;
}
html body.archive_page .common_thumb_list a.item_box:hover img {
    transform: scale(1.05) !important;
    filter: brightness(1) contrast(1.08) sepia(0) !important;
}

/* Убираем все возможные закругления внутри обложки */
html body.archive_page .common_thumb_list .common_thumbnail,
html body.archive_page .common_thumb_list .common_thumbnail *,
html body.archive_page .common_thumb_list .common_thumbnail .news-image-wrap,
html body.archive_page .common_thumb_list .common_thumbnail .news-image-wrap a,
html body.archive_page .common_thumb_list .common_thumbnail .news-image-wrap a.ulightbox,
html body.archive_page .common_thumb_list .common_thumbnail .news-image-wrap img,
html body.archive_page .common_thumb_list .common_thumbnail img {
    border-radius: 0 !important;
}

/* Фикс обёрток .news-image-wrap */
html body.archive_page .common_thumb_list .common_thumbnail .news-image-wrap {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    display: block !important;
    text-align: initial !important;
}
html body.archive_page .common_thumb_list .common_thumbnail .news-image-wrap a.ulightbox {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: none !important;
    pointer-events: none !important;
}
html body.archive_page .common_thumb_list .common_thumbnail .news-image-wrap img {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
}
html body.archive_page .common_thumb_list .common_thumbnail .news-image-caption {
    display: none !important;
}

/* ═══════════════════════════════════════════
   КАТЕГОРИЯ — единый стиль с .crd-card__badge с главной
═══════════════════════════════════════════ */
html body.archive_page .common_thumb_list .item_category {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 5 !important;
    padding: 4px 11px !important;
    background: #ae8954 !important;
    color: #14110d !important;
    font-family: 'Russo One', sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border: 0 !important;
    border-radius: 0 !important;
    line-height: 1.5 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: background-color 0.25s ease, box-shadow 0.25s ease !important;
}

/* При hover карточки — лёгкое усиление бейджа */
html body.archive_page .common_thumb_list a.item_box:hover .item_category {
    box-shadow: 0 4px 12px rgba(0,0,0,0.6), 0 0 12px rgba(174,137,84,0.4) !important;
}
/* ПАНЕЛЬ МОДЕРАТОРА */
html body.archive_page .common_thumb_list .item_moder_panel {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 20 !important;
    opacity: 0 !important;
    transform: translateY(-4px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}
html body.archive_page .common_thumb_list .item_card:hover .item_moder_panel {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
html body.archive_page .common_thumb_list .item_moder_panel:empty {
    display: none !important;
}

/* ═══════════════════════════════════════════
   ТЕКСТОВЫЙ БЛОК КАРТОЧКИ
═══════════════════════════════════════════ */
html body.archive_page .common_thumb_list .info_wrap {
    padding: 18px 4px 0 !important;
    margin: 0 !important;
    background: none !important;
    border: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    flex: 1 1 auto !important;          /* ← НОВОЕ: растягивается на всё свободное место */
}

html body.archive_page .common_thumb_list .info_wrap .title,
html body.archive_page .common_thumb_list .info_wrap p.title {
    font-family: 'Russo One', sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    color: #c5b8aa !important;
    line-height: 1.45 !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    /* Жёсткая высота под 3 строки + обрезка лишнего */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    min-height: calc(1.45em * 2) !important;
    max-height: calc(1.45em * 2) !important;
    transition: color 0.3s ease !important;
}
html body.archive_page .common_thumb_list a.item_box:hover .info_wrap .title {
    color: #ae8954 !important;
}

html body.archive_page .common_thumb_list .info_wrap .desc,
html body.archive_page .common_thumb_list .info_wrap p.desc {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    color: #8a7d6e !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: 2.9em !important;
    word-break: break-word !important;
}
html body.archive_page .common_thumb_list .info_wrap .desc * {
    display: inline !important;
    font: inherit !important;
    color: inherit !important;
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-decoration: none !important;
}
html body.archive_page .common_thumb_list .info_wrap .desc img,
html body.archive_page .common_thumb_list .info_wrap .desc br,
html body.archive_page .common_thumb_list .info_wrap .desc iframe,
html body.archive_page .common_thumb_list .info_wrap .desc video,
html body.archive_page .common_thumb_list .info_wrap .desc table,
html body.archive_page .common_thumb_list .info_wrap .desc figure,
html body.archive_page .common_thumb_list .info_wrap .desc h1,
html body.archive_page .common_thumb_list .info_wrap .desc h2,
html body.archive_page .common_thumb_list .info_wrap .desc h3 { display: none !important; }

html body.archive_page .common_thumb_list .info_wrap .date,
html body.archive_page .common_thumb_list .info_wrap p.date {
    font-family: 'Russo One', sans-serif !important;
    font-size: 10px !important;
    font-style: normal !important;
    color: #6a5d4e !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin: auto 0 0 !important;        /* ← ИЗМЕНЕНО: auto сверху прижимает к низу */
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    align-self: flex-start !important;  /* ← НОВОЕ: дата не растягивается на всю ширину */
    flex-shrink: 0 !important;
}
html body.archive_page .common_thumb_list .info_wrap .date::before {
    content: '' !important;
    display: inline-block !important;
    width: 5px !important;
    height: 5px !important;
    background: #ae8954 !important;
    transform: rotate(45deg) !important;
    box-shadow: 0 0 5px rgba(174,137,84,0.5) !important;
}

/* ═══════════════════════════════════════════
   ПАГИНАЦИЯ АРХИВА
═══════════════════════════════════════════ */
html body.archive_page div#pagesBlock1.catPages1,
html body.archive_page .common_thumb_list div#pagesBlock1.catPages1,
html body.archive_page .board_wrap div#pagesBlock1.catPages1 {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    clear: both !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-top: 1px solid rgba(174,137,84,0.2) !important;
    margin: 50px 0 60px !important;
    padding: 30px 0 0 !important;
    text-align: center !important;
}

html body.archive_page #pagesBlock1.catPages1 a,
html body.archive_page #pagesBlock1.catPages1 b,
html body.archive_page #pagesBlock1.catPages1 .swchItem,
html body.archive_page #pagesBlock1.catPages1 .swchItemA,
html body.archive_page #pagesBlock1.catPages1 a.swchItem,
html body.archive_page #pagesBlock1.catPages1 b.swchItemA,
html body.archive_page #pagesBlock1.catPages1 a.swchItem-next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: none !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(20,17,13,0.4) !important;
    background-color: rgba(20,17,13,0.4) !important;
    background-image: none !important;
    border: 1px solid rgba(174,137,84,0.2) !important;
    border-radius: 0 !important;
    color: #8a7d6e !important;
    font-family: 'Russo One', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 1 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

html body.archive_page #pagesBlock1.catPages1 b,
html body.archive_page #pagesBlock1.catPages1 b.swchItemA,
html body.archive_page #pagesBlock1.catPages1 .swchItemA {
    color: #14110d !important;
    border-color: #ae8954 !important;
    background: #ae8954 !important;
    background-color: #ae8954 !important;
    font-weight: 400 !important;
    box-shadow: 0 4px 12px rgba(174,137,84,0.35) !important;
}

html body.archive_page #pagesBlock1.catPages1 a:hover,
html body.archive_page #pagesBlock1.catPages1 a.swchItem:hover,
html body.archive_page #pagesBlock1.catPages1 a.swchItem-next:hover {
    color: #c5b8aa !important;
    border-color: #ae8954 !important;
    background: rgba(174,137,84,0.15) !important;
    background-color: rgba(174,137,84,0.15) !important;
}

html body.archive_page #pagesBlock1.catPages1 a.swchItem-next {
    width: 52px !important;
    min-width: 52px !important;
    font-size: 18px !important;
    color: #ae8954 !important;
    border-color: rgba(174,137,84,0.4) !important;
}
html body.archive_page #pagesBlock1.catPages1 a.swchItem-next:hover {
    background: #ae8954 !important;
    border-color: #ae8954 !important;
    color: #14110d !important;
}

html body.archive_page #pagesBlock1.catPages1 .swchItemDots,
html body.archive_page #pagesBlock1.catPages1 span.swchItemDots {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: auto !important;
    height: 42px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #6a5d4e !important;
    font-family: 'Russo One', sans-serif !important;
    font-size: 14px !important;
    letter-spacing: 3px !important;
    box-shadow: none !important;
}

html body.archive_page #pagesBlock1.catPages1 a > span,
html body.archive_page #pagesBlock1.catPages1 b > span,
html body.archive_page #pagesBlock1.catPages1 .swchItem > span,
html body.archive_page #pagesBlock1.catPages1 .swchItemA > span,
html body.archive_page #pagesBlock1.catPages1 .swchItemDots > span {
    display: inline !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* ═══════════════════════════════════════════
   АДАПТИВ АРХИВА
═══════════════════════════════════════════ */
@media (max-width: 992px) {
    html body.archive_page .common_thumb_list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 36px 18px !important;
    }
    body.archive_page .board_title {
        font-size: 38px;
        letter-spacing: 8px;
    }
    body.archive_page .board_title::before { left: -22px; }
    body.archive_page .board_title::after { right: -22px; }
    body.archive_page .board_tabs { gap: 30px; }
}

@media (max-width: 600px) {
    body.archive_page .board_header { padding: 50px 15px 0; }
    body.archive_page .board_header::before {
        font-size: 10px;
        letter-spacing: 3px;
    }
    body.archive_page .board_title {
        font-size: 26px;
        letter-spacing: 4px;
        margin-bottom: 35px;
    }
    body.archive_page .board_title::before,
    body.archive_page .board_title::after { display: none; }
    body.archive_page .board_tabs { gap: 18px; }
    body.archive_page .board_tabs a {
        font-size: 11px;
        letter-spacing: 2px;
    }
    body.archive_page .board_wrap { padding: 0 15px; }

    html body.archive_page .common_thumb_list {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    html body.archive_page .common_thumb_list .info_wrap .title {
        font-size: 13px !important;
    }

    html body.archive_page #pagesBlock1.catPages1 a,
    html body.archive_page #pagesBlock1.catPages1 b,
    html body.archive_page #pagesBlock1.catPages1 .swchItem,
    html body.archive_page #pagesBlock1.catPages1 .swchItemA {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 12px !important;
    }
    html body.archive_page #pagesBlock1.catPages1 a.swchItem-next {
        width: 44px !important;
        min-width: 44px !important;
    }
    html body.archive_page #pagesBlock1.catPages1 .swchItemDots {
        height: 36px !important;
    }
}


/* =============================================
   ╔══════════════════════════════════════════╗
   ║   2. СТРАНИЦА МАТЕРИАЛА                  ║
   ╚══════════════════════════════════════════╝
============================================= */

/* --- Обложка с полноразмерным фото --- */
.cover-full {
    position: relative;
    margin: -20px -20px 0 -20px;
    overflow: hidden;
    border-radius: 0;
    border: 1px solid rgba(174,137,84,0.4);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.4),
        0 8px 30px rgba(0,0,0,0.6),
        inset 0 0 60px rgba(0,0,0,0.3);
}

/* Декоративные L-уголки обложки */
.cover-full::before,
.cover-full::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #ae8954;
    z-index: 12;
    pointer-events: none;
}
.cover-full::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}
.cover-full::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.cover-image-wrap {
    position: relative;
    border-radius: 0;
    overflow: hidden;
}
.cover-image-wrap::after {
    content: '';
    position: absolute;
    inset: 5px;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(174,137,84,0.12);
}
.cover-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
    filter: brightness(0.9) sepia(0.08);
}
.cover-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background:
        linear-gradient(to top, rgba(20,17,13,0.95) 0%, rgba(20,17,13,0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}
.cover-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 45px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 45%;
    z-index: 4;
}
.cover-modpanel {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 15;
}

.cover-title-plate {
    position: relative;
    display: inline-block;
    background: rgba(20,17,13,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(174,137,84,0.4);
    border-radius: 0;
    padding: 22px 32px;
    max-width: 100%;
}
/* L-уголки таблички с заголовком */
.cover-title-plate::before,
.cover-title-plate::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #ae8954;
}
.cover-title-plate::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}
.cover-title-plate::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.cover-title {
    font-family: 'Russo One', sans-serif;
    font-size: 34px;
    color: #c5b8aa;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 12px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    word-wrap: break-word;
    line-height: 1.2;
}
.cover-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #8a7d6e;
    font-size: 12px;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.cover-subtitle a {
    color: #ae8954;
    text-decoration: none;
    border-bottom: 1px solid rgba(174,137,84,0.4);
    transition: all 0.25s ease;
}
.cover-subtitle a:hover {
    color: #c5b8aa;
    border-bottom-color: #c5b8aa;
}

/* --- Заголовок без обложки --- */
.entry-header {
    position: relative;
    margin-bottom: 25px;
    padding: 18px 0 18px 22px;
    border: none;
    background: linear-gradient(90deg, rgba(174,137,84,0.12) 0%, transparent 100%);
    border-left: 3px solid #ae8954;
}
.entry-title {
    font-family: 'Russo One', sans-serif;
    font-size: 32px;
    color: #c5b8aa;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.entry-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #8a7d6e;
    font-size: 12px;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}
.entry-meta-top a {
    color: #ae8954;
    text-decoration: none;
    border-bottom: 1px solid rgba(174,137,84,0.4);
    transition: all 0.25s ease;
}
.entry-meta-top a:hover {
    color: #c5b8aa;
    border-bottom-color: #c5b8aa;
}
.entry-content-wrapper {
    background: transparent !important;
    padding: 25px 0 0 0 !important;
    border: none !important;
}
.moder-panel-inline {
    flex-shrink: 0;
}

/* --- Блок автора --- */
.entry-author-footer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 35px;
    padding: 22px 20px;
    background: linear-gradient(135deg, rgba(174,137,84,0.06) 0%, rgba(20,17,13,0.4) 100%);
    border: 1px solid rgba(174,137,84,0.2);
    border-top: 1px solid rgba(174,137,84,0.4);
    border-bottom: 1px solid rgba(174,137,84,0.4);
}
.author-avatar {
    flex-shrink: 0;
    margin-right: 5px;
}
.author-avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ae8954;
    box-shadow: 0 0 12px rgba(174,137,84,0.3);
    display: block;
}
.author-footer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.author-footer-name {
    font-family: 'Russo One', sans-serif;
    font-size: 17px;
    color: #c5b8aa;
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.25s ease;
}
.author-footer-name:hover {
    color: #ae8954;
}
.author-footer-role {
    font-size: 10px;
    color: #ae8954;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Russo One', sans-serif;
}

/* --- Рейтинг + кнопка лайка --- */
.author-rating-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(174,137,84,0.08);
    border: 1px solid rgba(174,137,84,0.3);
    border-radius: 0;
    flex-wrap: wrap;
    margin-left: auto;
}
.rating-star-icon {
    font-size: 16px;
    color: #ae8954;
}
.rating-value-small {
    font-family: 'Russo One', sans-serif;
    font-size: 16px;
    color: #ae8954;
    font-weight: 400;
    letter-spacing: 1px;
}
.rating-sep-small {
    font-size: 13px;
    color: #6a5d4e;
}
.rating-total-small {
    font-family: 'Russo One', sans-serif;
    font-size: 14px;
    color: #c5b8aa;
    letter-spacing: 1px;
}
.rating-stars-compact {
    display: flex;
    align-items: center;
}
.rating-stars-compact img {
    width: 18px !important;
    height: 18px !important;
    margin: 0 1px !important;
}
.like-btn-author {
    padding: 8px 18px !important;
    background: rgba(174,137,84,0.1) !important;
    border: 1px solid #ae8954 !important;
    border-radius: 0 !important;
    color: #ae8954 !important;
    font-family: 'Russo One', sans-serif !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}
.like-btn-author:hover {
    background: #ae8954 !important;
    color: #14110d !important;
    box-shadow: 0 4px 12px rgba(174,137,84,0.4) !important;
}

/* --- Теги --- */
.entry-tags-block {
    padding: 14px 0;
    font-size: 12px;
    color: #8a7d6e;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.entry-tags-block a {
    color: #ae8954;
    text-decoration: none;
    padding: 3px 8px;
    border: 1px solid rgba(174,137,84,0.3);
    margin: 0 4px 4px 0;
    display: inline-block;
    transition: all 0.25s ease;
}
.entry-tags-block a:hover {
    background: #ae8954;
    color: #14110d;
    border-color: #ae8954;
}

/* --- Панель модератора --- */
.author-mod-panel {
    margin-left: auto;
    display: flex;
    gap: 6px;
}
.author-mod-panel a,
.author-mod-panel .u-mpanel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(20,17,13,0.6);
    border: 1px solid rgba(174,137,84,0.3);
    border-radius: 0;
    color: #8a7d6e;
    text-decoration: none;
    transition: all 0.25s ease;
}
.author-mod-panel a:hover,
.author-mod-panel .u-mpanel:hover {
    background: rgba(174,137,84,0.15);
    border-color: #ae8954;
    color: #ae8954;
}
.author-mod-panel .material-icons {
    font-size: 18px;
}
.entry-modpanel {
    display: none;
}


/* =============================================
   ╔══════════════════════════════════════════╗
   ║   3. КОММЕНТАРИИ                         ║
   ╚══════════════════════════════════════════╝
============================================= */

.comments-section {
    margin-top: 40px;
}
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 14px 20px;
    background: linear-gradient(90deg, rgba(174,137,84,0.12) 0%, transparent 100%);
    border-left: 3px solid #ae8954;
}
.comments-title {
    font-family: 'Russo One', sans-serif;
    font-size: 20px;
    color: #c5b8aa;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.comments-stats {
    color: #8a7d6e;
    font-family: 'Russo One', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.comments-stats b {
    color: #ae8954;
    font-weight: 400;
}

/* --- Форма комментария --- */
.comment-form-section {
    position: relative;
    margin-top: 30px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(174,137,84,0.05) 0%, rgba(20,17,13,0.4) 100%) !important;
    border: 1px solid rgba(174,137,84,0.25) !important;
    border-radius: 0;
}
/* L-уголки формы */
.comment-form-section::before,
.comment-form-section::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #ae8954;
}
.comment-form-section::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}
.comment-form-section::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}
.comment-form-title {
    font-family: 'Russo One', sans-serif;
    font-size: 16px;
    color: #ae8954;
    margin: 0 0 22px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* --- Сообщение для гостей --- */
.comment-register-message {
    position: relative;
    margin-top: 30px;
    padding: 35px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(174,137,84,0.05) 0%, rgba(20,17,13,0.4) 100%) !important;
    border: 1px solid rgba(174,137,84,0.2) !important;
    border-radius: 0;
    color: #b8aa9a;
}
.comment-register-message::before,
.comment-register-message::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #ae8954;
}
.comment-register-message::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}
.comment-register-message::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}
.comment-register-links {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 18px;
}
.btn-primary,
.btn-secondary {
    padding: 11px 26px;
    border-radius: 0;
    font-family: 'Russo One', sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
}
.btn-primary {
    background: #ae8954;
    border: 1px solid #ae8954;
    color: #14110d;
}
.btn-primary:hover {
    background: transparent;
    color: #ae8954;
    box-shadow: 0 4px 15px rgba(174,137,84,0.3);
}
.btn-secondary {
    background: transparent;
    border: 1px solid rgba(174,137,84,0.4);
    color: #c5b8aa;
}
.btn-secondary:hover {
    background: rgba(174,137,84,0.1);
    border-color: #ae8954;
    color: #ae8954;
}

/* --- Список комментариев --- */
.comments-page-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
.comments-page-header::before {
    content: 'CRD GAME · ОТЗЫВЫ';
    display: block;
    color: #ae8954;
    font-family: 'Russo One', sans-serif;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.comments-page-title {
    font-family: 'Russo One', sans-serif;
    font-size: 32px;
    color: #c5b8aa;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.comments-page-subtitle {
    font-size: 12px;
    color: #ae8954;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.comments-list-wrapper {
    margin: 24px 0;
}
.comments-list-wrapper .cBlock1,
.comments-list-wrapper .cBlock2 {
    position: relative;
    background: linear-gradient(135deg, rgba(174,137,84,0.04) 0%, rgba(20,17,13,0.5) 100%);
    border: 1px solid rgba(174,137,84,0.2);
    border-left: 3px solid #ae8954;
    border-radius: 0;
    padding: 22px !important;
    margin: 16px 0 !important;
    transition: all 0.25s ease;
}
.comments-list-wrapper .cBlock1:hover,
.comments-list-wrapper .cBlock2:hover {
    border-color: rgba(174,137,84,0.4);
        border-left-color: #ae8954;
    background: linear-gradient(135deg, rgba(174,137,84,0.08) 0%, rgba(20,17,13,0.5) 100%);
}
.comments-list-wrapper .cTop {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(174,137,84,0.15);
}
.comments-list-wrapper .cTop b {
    font-family: 'Russo One', sans-serif;
    font-size: 15px;
    color: #ae8954;
    letter-spacing: 1px;
}
.comments-list-wrapper .cTop a {
    color: #c5b8aa;
    text-decoration: none;
    transition: color 0.25s ease;
}
.comments-list-wrapper .cTop a:hover {
    color: #ae8954;
}
.comments-list-wrapper .cMessage {
    color: #b8aa9a;
    line-height: 1.7;
    font-size: 14px;
}
.comments-list-wrapper .cMessage a {
    color: #ae8954;
    border-bottom: 1px solid rgba(174,137,84,0.3);
    text-decoration: none;
    transition: all 0.25s ease;
}
.comments-list-wrapper .cMessage a:hover {
    color: #c5b8aa;
    border-bottom-color: #c5b8aa;
}
.comments-list-wrapper .cDetails {
    margin-top: 12px;
    font-size: 11px;
    color: #6a5d4e;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* --- Подпись и цитаты --- */
.signatureHr {
    margin-top: 22px;
    border: none;
    border-top: 1px solid rgba(174,137,84,0.15);
}
.signatureView {
    font-size: 13px !important;
    padding: 4px 0 4px 18px !important;
    border-left: 3px solid #ae8954 !important;
    color: #8a7d6e !important;
    margin-top: 24px !important;
    font-style: italic !important;
}
.edited {
    padding-top: 30px;
    font-size: 8pt;
    text-align: right;
    color: #6a5d4e;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.codeMessage,
.quoteMessage,
.uSpoilerText {
    font-size: 13px;
    padding: 14px 18px;
    margin: 0 0 20px;
    background: rgba(20,17,13,0.5);
    border: 1px solid rgba(174,137,84,0.2) !important;
    border-left: 3px solid #ae8954 !important;
    border-radius: 0 !important;
    color: #b8aa9a;
    line-height: 1.6;
}


/* =============================================
   ╔══════════════════════════════════════════╗
   ║   4. КАРТИНКИ В СТАТЬЯХ                  ║
   ╚══════════════════════════════════════════╝
============================================= */

/* --- Картинки в новостях (uCoz обёртка) --- */
.news-image-wrap {
    position: relative;
    margin: 28px 0;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(174,137,84,0.3);
    background: #14110d;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.4),
        0 8px 24px rgba(0,0,0,0.5),
        inset 0 0 30px rgba(0,0,0,0.3);
}
.news-image-wrap:hover {
    border-color: rgba(174,137,84,0.7);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.5),
        0 12px 32px rgba(0,0,0,0.7),
        inset 0 0 40px rgba(0,0,0,0.35),
        0 0 20px rgba(174,137,84,0.15);
}
.news-image-wrap.center {
    max-width: 100%;
}
.news-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    filter: brightness(0.9) sepia(0.05);
    transition: filter 0.4s ease;
}
.news-image-wrap:hover img {
    filter: brightness(1) sepia(0);
}
.news-image-caption {
    padding: 12px 20px;
    background: rgba(20,17,13,0.7);
    color: #8a7d6e;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    border-top: 1px solid rgba(174,137,84,0.2);
    letter-spacing: 0.5px;
}
.news-image-wrap.left {
    max-width: 400px;
    float: left;
    margin: 10px 28px 18px 0;
}
.news-image-wrap.right {
    max-width: 400px;
    float: right;
    margin: 10px 0 18px 28px;
}

/* --- Lightbox-ссылка --- */
a.ulightbox {
    display: block;
    cursor: pointer;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}
a.ulightbox img {
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}
a.ulightbox:hover img {
    opacity: 0.92;
    transform: scale(1.02);
}

/* --- Crimson Desert стиль для статейных картинок --- */
.crd-article-img {
    position: relative;
    display: block;
    margin: 38px auto;
    max-width: 1000px;
    width: 100%;
    border-radius: 0;
    background: #14110d;
    border: 1px solid rgba(174, 137, 84, 0.45);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 8px 30px rgba(0, 0, 0, 0.6),
        inset 0 0 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    line-height: 0;
}
.crd-article-img::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(20, 17, 13, 0.35) 0%,
        rgba(20, 17, 13, 0.10) 25%,
        rgba(20, 17, 13, 0.00) 50%,
        rgba(20, 17, 13, 0.10) 100%);
}
.crd-article-img::after {
    content: '';
    position: absolute;
    inset: 5px;
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(174, 137, 84, 0.12);
}
/* Декоративный L-уголок */
.crd-article-img > a.ulightbox::before,
.crd-article-img > img + span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 14px;
    height: 14px;
    border-top: 2px solid #ae8954;
    border-left: 2px solid #ae8954;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.crd-article-img:hover > a.ulightbox::before,
.crd-article-img:hover > img + span::before {
    opacity: 1;
}
.crd-article-img img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: brightness(0.85) contrast(1.05) sepia(0.08);
    transition: transform 0.6s ease, filter 0.4s ease;
}
.crd-article-img:hover img {
    transform: scale(1.025);
    filter: brightness(0.98) contrast(1.1) sepia(0);
}
.crd-article-img:hover {
    border-color: rgba(174, 137, 84, 0.7);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 12px 40px rgba(0, 0, 0, 0.7),
        inset 0 0 50px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(174, 137, 84, 0.15);
}


/* =============================================
   ╔══════════════════════════════════════════╗
   ║   5. ДВУХКОЛОНОЧНАЯ ВЁРСТКА              ║
   ╚══════════════════════════════════════════╝
============================================= */

.about-row.about-two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
    margin: 24px 0;
}
.about-row.about-two-col .about-col {
    flex: 1 1 0;
    min-width: 0;
}
.about-row.about-two-col .about-col-img {
    flex: 0 0 400px;
    max-width: 400px;
    position: relative;
}
.about-row.about-two-col .about-col-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    border: 1px solid rgba(174,137,84,0.4);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.4),
        0 8px 24px rgba(0,0,0,0.5),
        inset 0 0 30px rgba(0,0,0,0.3);
    filter: brightness(0.9) sepia(0.05);
    transition: filter 0.4s ease, border-color 0.3s ease;
}
.about-row.about-two-col .about-col-img img:hover {
    filter: brightness(1) sepia(0);
    border-color: rgba(174,137,84,0.7);
}


/* =============================================
   ╔══════════════════════════════════════════╗
   ║   6. ПОДПИСИ К ФОТО                      ║
   ╚══════════════════════════════════════════╝
============================================= */

.image-caption-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.image-caption {
    display: table !important;
    margin: 8px auto 20px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-style: italic !important;
    color: #c5b8aa !important;
    padding: 10px 22px !important;
    line-height: 1.5 !important;
    max-width: 90% !important;
    background: rgba(20, 17, 13, 0.6) !important;
    border-left: 3px solid #ae8954 !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.3px !important;
}


/* =============================================
   ╔══════════════════════════════════════════╗
   ║   7. УНИВЕРСАЛЬНЫЕ КОНТЕНТ-БЛОКИ         ║
   ╚══════════════════════════════════════════╝
============================================= */

/* --- Блок "Важно" / callout --- */
.cd-callout {
    position: relative;
    background: linear-gradient(135deg, rgba(174,137,84,0.08) 0%, rgba(20,17,13,0.4) 100%);
    border: 1px solid rgba(174,137,84,0.25);
    border-left: 3px solid #ae8954;
    padding: 18px 22px;
    margin: 24px 0;
    border-radius: 0;
    color: #b8aa9a;
    line-height: 1.7;
}
.cd-callout-title {
    font-family: 'Russo One', sans-serif;
    color: #ae8954;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cd-callout-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ae8954;
    transform: rotate(45deg);
    box-shadow: 0 0 6px rgba(174,137,84,0.6);
}

/* Варианты — в единой тёплой палитре, оттенки золотистого */
.cd-callout.success {
    background: linear-gradient(135deg, rgba(140,160,90,0.08) 0%, rgba(20,17,13,0.4) 100%);
    border-color: rgba(140,160,90,0.3);
    border-left-color: #8ca05a;
}
.cd-callout.success .cd-callout-title { color: #a8bc6e; }
.cd-callout.success .cd-callout-title::before { background: #8ca05a; box-shadow: 0 0 6px rgba(140,160,90,0.6); }

.cd-callout.warning {
    background: linear-gradient(135deg, rgba(200,140,60,0.08) 0%, rgba(20,17,13,0.4) 100%);
    border-color: rgba(200,140,60,0.3);
    border-left-color: #c88c3c;
}
.cd-callout.warning .cd-callout-title { color: #d9a050; }
.cd-callout.warning .cd-callout-title::before { background: #c88c3c; box-shadow: 0 0 6px rgba(200,140,60,0.6); }

.cd-callout.danger {
    background: linear-gradient(135deg, rgba(170,60,50,0.08) 0%, rgba(20,17,13,0.4) 100%);
    border-color: rgba(170,60,50,0.3);
    border-left-color: #aa3c32;
}
.cd-callout.danger .cd-callout-title { color: #c85040; }
.cd-callout.danger .cd-callout-title::before { background: #aa3c32; box-shadow: 0 0 6px rgba(170,60,50,0.6); }

.cd-callout.info {
    background: linear-gradient(135deg, rgba(110,130,150,0.08) 0%, rgba(20,17,13,0.4) 100%);
    border-color: rgba(110,130,150,0.3);
    border-left-color: #6e8296;
}
.cd-callout.info .cd-callout-title { color: #8da0b4; }
.cd-callout.info .cd-callout-title::before { background: #6e8296; box-shadow: 0 0 6px rgba(110,130,150,0.6); }

/* --- Цитата --- */
.cd-quote {
    position: relative;
    background: linear-gradient(135deg, rgba(174,137,84,0.06) 0%, rgba(20,17,13,0.5) 100%);
    border: 1px solid rgba(174,137,84,0.25);
    padding: 28px 32px 28px 80px;
    margin: 28px 0;
    border-radius: 0;
    font-style: italic;
    color: #c5b8aa;
    font-size: 15px;
    line-height: 1.8;
}
.cd-quote::before {
    content: '"';
    position: absolute;
    left: 22px;
    top: 8px;
    font-family: 'Noto Serif', serif;
    font-size: 80px;
    color: #ae8954;
    line-height: 1;
    opacity: 0.4;
}
/* L-уголки цитаты */
.cd-quote::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-right: 2px solid #ae8954;
    border-bottom: 2px solid #ae8954;
}
.cd-quote-author {
    display: block;
    margin-top: 14px;
    color: #ae8954;
    font-style: normal;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Russo One', sans-serif;
}
.cd-quote-author::before {
    content: '— ';
    color: #ae8954;
}

/* --- Карточка --- */
.cd-card {
    position: relative;
    background: linear-gradient(135deg, rgba(174,137,84,0.05) 0%, rgba(20,17,13,0.5) 100%);
    border: 1px solid rgba(174,137,84,0.2);
    border-left: 2px solid rgba(174,137,84,0.55);
    border-radius: 0;
    padding: 22px;
    margin: 16px 0;
    transition: all 0.3s ease;
    overflow: hidden;
}
.cd-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(174,137,84,0.7), transparent);
}
.cd-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -28px;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(174,137,84,0.12);
    transform: rotate(45deg);
    pointer-events: none;
}
.cd-card:hover {
    border-color: rgba(174,137,84,0.5);
    border-left-color: #ae8954;
    background: linear-gradient(135deg, rgba(174,137,84,0.1) 0%, rgba(20,17,13,0.5) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.4), 0 0 18px rgba(174,137,84,0.1);
}
.cd-card-title {
    font-family: 'Russo One', sans-serif;
    color: #c5b8aa;
    font-size: 15px;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cd-card-icon {
    color: #ae8954;
    margin-right: 4px;
}

/* --- Сетка карточек --- */
.cd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

/* --- Таблица --- */
.cd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: rgba(20,17,13,0.5);
    border: 1px solid rgba(174,137,84,0.25);
    border-radius: 0;
    overflow: hidden;
    font-size: 14px;
}
.cd-table th {
    background: #ae8954;
    color: #14110d;
    padding: 14px 18px;
    text-align: left;
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 400;
}
.cd-table td {
    padding: 12px 18px;
    border-top: 1px solid rgba(174,137,84,0.15);
    color: #b8aa9a;
    line-height: 1.6;
}
.cd-table tr:hover td {
    background: rgba(174,137,84,0.05);
    color: #c5b8aa;
}


/* =============================================
   ╔══════════════════════════════════════════╗
   ║   8. АДАПТИВ                             ║
   ╚══════════════════════════════════════════╝
============================================= */

/* --- Страница материала --- */
@media only screen and (max-width: 768px) {
    .cover-full {
        margin: -15px -15px 0 -15px;
        border-radius: 0;
    }
    .cover-full::before,
    .cover-full::after {
        width: 14px;
        height: 14px;
        top: 8px;
        left: 8px;
    }
    .cover-full::after {
        top: auto;
        left: auto;
        bottom: 8px;
        right: 8px;
    }
    .cover-image-wrap {
        border-radius: 0;
    }
    .cover-image-wrap img {
        max-height: none;
        width: 100%;
    }
    .cover-meta {
        position: relative;
        padding: 20px;
        min-height: auto;
        margin-top: -50px;
        z-index: 4;
    }
    .cover-title-plate {
        padding: 16px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .cover-title {
        font-size: 20px;
        letter-spacing: 2px;
        line-height: 1.3;
    }
    .cover-subtitle {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
    .cover-modpanel {
        top: 12px;
        right: 12px;
    }
    .entry-title {
        font-size: 22px;
        letter-spacing: 2px;
    }
    .entry-header {
        padding: 14px 0 14px 18px;
    }
    .entry-author-footer {
        padding: 18px 16px;
        gap: 14px;
    }
    .author-rating-inline {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .news-image-wrap.left,
    .news-image-wrap.right {
        float: none;
        max-width: 100%;
        margin: 22px 0;
    }

    /* Аватар автора на мобильных */
    .entry-author-footer {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    .author-footer-avatar {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
    }
    .author-footer-avatar img {
        width: 48px !important;
        height: 48px !important;
        display: block !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 2px solid #ae8954 !important;
    }
    .author-footer-info {
        flex: 1 !important;
    }
    .author-footer-stats {
        width: 100% !important;
        margin-top: 12px !important;
        padding-left: 60px !important;
    }
}

@media only screen and (max-width: 600px) {
    .news-image-wrap {
        margin: 22px 0;
        border-radius: 0;
    }
    .news-image-caption {
        font-size: 12px;
        padding: 10px 14px;
    }
    .cd-quote {
        padding: 22px 22px 22px 60px;
        font-size: 14px;
    }
    .cd-quote::before {
        font-size: 60px;
        left: 16px;
    }
    .cd-callout {
        padding: 16px 18px;
    }
}

/* --- Комментарии --- */
@media only screen and (max-width: 640px) {
    .comments-page-title {
        font-size: 22px;
        letter-spacing: 3px;
    }
    .comments-page-header::before {
        font-size: 10px;
        letter-spacing: 3px;
    }
    .comments-list-wrapper .cBlock1,
    .comments-list-wrapper .cBlock2 {
        padding: 16px !important;
    }
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .comments-title {
        font-size: 16px;
        letter-spacing: 1.5px;
    }
    .comment-form-section {
        padding: 22px 20px;
    }
    .comment-form-title {
        font-size: 14px;
        letter-spacing: 2px;
    }
}

@media only screen and (max-width: 480px) {
    .cover-full {
        margin: -12px -12px 0 -12px;
        border-radius: 0;
    }
    .cover-image-wrap {
        border-radius: 0;
    }
    .cover-meta {
        padding: 15px;
        margin-top: -40px;
    }
    .cover-title-plate {
        padding: 14px 16px;
    }
    .cover-title {
        font-size: 17px;
        letter-spacing: 1.5px;
    }
    .entry-title {
        font-size: 18px;
        letter-spacing: 1.5px;
    }
    .author-avatar img {
        width: 44px;
        height: 44px;
    }
    .author-footer-name {
        font-size: 15px;
        letter-spacing: 1px;
    }
    .author-footer-role {
        font-size: 9px;
        letter-spacing: 2px;
    }
    .comments-header {
        flex-direction: column;
    }
    .comment-register-links {
        flex-direction: column;
        gap: 10px;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

/* --- Картинки в статьях --- */
@media (max-width: 768px) {
    .crd-article-img {
        margin: 24px auto;
    }
    .crd-article-img::after {
        inset: 4px;
    }
}

@media (max-width: 480px) {
    .crd-article-img {
        margin: 20px auto;
    }
    .crd-article-img::after {
        inset: 3px;
    }
}

/* --- Двухколоночная вёрстка --- */
@media (max-width: 768px) {
    .about-row.about-two-col {
        flex-direction: column;
        gap: 18px;
    }
    .about-row.about-two-col .about-col-img {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* --- Таблица на мобильных --- */
@media (max-width: 600px) {
    .cd-table {
        font-size: 13px;
    }
    .cd-table th {
        padding: 10px 12px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }
    .cd-table td {
        padding: 10px 12px;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .news-image-wrap,
    .crd-article-img,
    .cd-card,
    .common_thumbnail,
    .cover-image-wrap img {
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════
   ПРИЖИМАЕМ ПАГИНАЦИЮ К ФУТЕРУ — финальный фикс
   Убираем padding-bottom у #casing и лишний margin пагинации
═══════════════════════════════════════════ */

/* 1. Убираем padding-bottom у #casing.module_news */
html body.archive_page #casing.module_news {
    padding-bottom: 0 !important;
}

/* 2. Минимизируем нижний отступ пагинации */
html body.archive_page div#pagesBlock1.catPages1,
html body.archive_page .common_thumb_list div#pagesBlock1.catPages1,
html body.archive_page .board_wrap div#pagesBlock1.catPages1 {
    margin: 20px 0 25px !important;      /* ← НИЖНИЙ отступ = 0 */
    padding: 25px 0 0 !important;
}
/* ═══════════════════════════════════════════
   ФИКС ОТСТУПА ФУТЕРА НА АРХИВНЫХ СТРАНИЦАХ
═══════════════════════════════════════════ */
html body.archive_page ~ footer.cd-footer,
html body.archive_page footer.cd-footer,
body.archive_page footer.cd-footer {
    margin-top: 0 !important;
    padding-top: 45px !important;
}
/* =============================================
   КОНЕЦ archive.css V3.0
============================================= */