/* ================================================
   ARTICLE PAGE — общий фон
   ================================================ */

.art-hero,
.art-author,
.art-body {
    background: #0a0a0a;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.art-hero__container,
.art-author__container,
.art-body__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Убираем возможные декоративные полосы */
.art-hero::before,
.art-hero::after,
.art-author::before,
.art-author::after,
.art-body::before,
.art-body::after,
.art-hero__container::before,
.art-hero__container::after,
.art-author__container::before,
.art-author__container::after,
.art-body__container::before,
.art-body__container::after {
    display: none !important;
    content: none !important;
}

/* ================================================
   HERO — заголовок слева, обложка справа
   ================================================ */

.art-hero {
    padding: 90px 0 60px;
    background-image: 
        radial-gradient(ellipse at 20% 10%, rgba(255, 107, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 107, 0, 0.03) 0%, transparent 50%);
}

.art-hero__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
    line-height: 1.6;
}

.art-hero__breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.art-hero__breadcrumbs a:hover {
    color: #FF8C00;
}

.art-hero__breadcrumbs .is-current {
    color: #FF8C00;
    font-weight: 500;
}

.art-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.art-hero__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.art-hero__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    color: #FF8C00;
    font-size: 14px;
    font-weight: 500;
    width: max-content;
}

.art-hero__dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #FF8C00;
    border-radius: 50%;
    animation: art-pulse 2s ease-in-out infinite;
}

.art-hero__title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.5px;
}

.art-hero__media {
    width: 100%;
    min-width: 0;
    position: relative;
}

.art-hero__media::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(20px);
}

.art-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 0, 0.15);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.art-hero__media img:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7), 0 0 80px rgba(255, 107, 0, 0.12);
}

/* ================================================
   ПЛАШКА АВТОРА
   ================================================ */

.art-author {
    padding: 0;
}

.art-author__card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    margin: 0 0 60px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.06), rgba(255, 107, 0, 0.02));
    border: 1px solid rgba(255, 107, 0, 0.15);
    border-radius: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.art-author__card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.art-author__card:hover {
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 107, 0, 0.05);
}

.art-author__avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 0, 0.3);
    background: #111;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.15);
    position: relative;
    z-index: 1;
}

.art-author__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.art-author__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.art-author__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.art-author__label svg {
    width: 16px;
    height: 16px;
    color: #FF8C00;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(255, 107, 0, 0.3));
}

.art-author__name {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
}

.art-author__name::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: linear-gradient(180deg, #FF8C00, #FF6B00);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
}

/* ================================================
   ТЕЛО СТАТЬИ — обычный вертикальный поток
   ================================================ */

.art-body {
    padding: 0 0 80px;
}

.art-body__container > * {
    margin-bottom: 40px;
}

.art-body__container > *:last-child {
    margin-bottom: 0;
}

/* Секции — заголовок сверху, текст под ним */
.art-body .price-monitor-info {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 0 40px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
}

.art-body .price-monitor-info:last-child {
    margin-bottom: 0 !important;
}

.art-body .price-monitor-info > h2 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 0 20px !important;
}

.art-body .price-monitor-info > .price-monitor-text,
.art-body .price-monitor-info > div {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    position: static !important;
    flex: 1 1 auto !important;
}

.art-body .price-monitor-text {
    display: block !important;
    width: 100% !important;
}

/* Заголовки h2 */
.art-body h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
    margin: 0 0 20px;
    padding: 0 0 0 20px;
    position: relative;
    letter-spacing: -0.3px;
}

.art-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: linear-gradient(180deg, #FF8C00, #FF6B00);
    border-radius: 2px;
}

.art-body h2 strong {
    color: #FF8C00;
    font-weight: 700;
}

.art-body h2.cenozavr-section-empty,
.art-body .cenozavr-section-empty {
    display: none !important;
}

/* Абзацы */
.art-body p {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 20px;
}

.art-body p:last-child {
    margin-bottom: 0;
}

.art-body strong {
    color: #FFFFFF;
    font-weight: 600;
}

.art-body a {
    color: #FF8C00;
    text-decoration: underline;
    text-decoration-color: rgba(255, 140, 0, 0.4);
    text-underline-offset: 3px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.art-body a:hover {
    color: #FF6B00;
    text-decoration-color: #FF6B00;
}

/* Списки */
.art-body ul,
.art-body ol {
    margin: 0 0 20px;
    padding-left: 24px;
    list-style-position: outside;
}

.art-body ul li,
.art-body ol li {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
    padding-left: 4px;
}

.art-body ul li:last-child,
.art-body ol li:last-child {
    margin-bottom: 0;
}

.art-body ul li::marker {
    color: #FF8C00;
    font-size: 1.15em;
}

.art-body ol li::marker {
    color: #FF8C00;
    font-weight: 700;
    font-size: 1.05em;
}

/* Картинки внутри текста */
.art-body figure.wp-block-image {
    margin: 0 0 28px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    max-width: 100%;
}

.art-body figure.wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.art-body figure.wp-block-image:hover {
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 107, 0, 0.08);
}

/* Таблицы */
.art-body figure.wp-block-table {
    margin: 0 0 28px;
    padding: 0;
    border-radius: 16px;
    overflow-x: auto;
    border: 1px solid rgba(255, 107, 0, 0.15);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: border-color 0.4s ease;
    max-width: 100%;
}

.art-body figure.wp-block-table:hover {
    border-color: rgba(255, 107, 0, 0.3);
}

.art-body figure.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
    min-width: 480px;
}

.art-body figure.wp-block-table th,
.art-body figure.wp-block-table td {
    padding: 16px 20px;
    text-align: left;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 107, 0, 0.1);
    vertical-align: top;
    word-wrap: break-word;
}

.art-body figure.wp-block-table th {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 107, 0, 0.08);
}

.art-body figure.wp-block-table td strong {
    color: #FF8C00;
}

.art-body figure.wp-block-table tr:last-child td {
    border-bottom: none;
}

.art-body figure.wp-block-table tr:hover td {
    background: rgba(255, 107, 0, 0.03);
}

/* Оглавление AIOSEO */
.art-body .wp-block-aioseo-table-of-contents {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.06), rgba(255, 107, 0, 0.02));
    border: 1px solid rgba(255, 107, 0, 0.15);
    border-radius: 16px;
    padding: 32px 36px;
    margin: 0 0 40px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.art-body .wp-block-aioseo-table-of-contents:hover {
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.art-body .wp-block-aioseo-table-of-contents::before {
    content: 'Содержание';
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FF8C00;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 107, 0, 0.15);
}

.art-body .wp-block-aioseo-table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 24px;
}

.art-body .wp-block-aioseo-table-of-contents ul li {
    margin: 0;
    padding: 0;
}

.art-body .wp-block-aioseo-table-of-contents ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    transition: color 0.3s ease, background 0.3s ease;
    position: relative;
}

.art-body .wp-block-aioseo-table-of-contents ul li a::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: #FF8C00;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.art-body .wp-block-aioseo-table-of-contents ul li a:hover {
    color: #FFFFFF;
    background: rgba(255, 107, 0, 0.06);
}

.art-body .wp-block-aioseo-table-of-contents ul li a:hover::before {
    background: #FF6B00;
    transform: scale(1.3);
}

.wp-block-aioseo-table-of-contents:target {
    display: block !important;
}

/* ================================================
   АНИМАЦИЯ
   ================================================ */

@keyframes art-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

/* ================================================
   АДАПТИВ
   ================================================ */

@media (max-width: 1200px) {
    .art-hero__container,
    .art-author__container,
    .art-body__container {
        padding: 0 40px;
    }
    .art-hero__grid {
        gap: 40px;
    }
    .art-hero__title {
        font-size: 34px;
    }
    .art-body h2 {
        font-size: 26px;
    }
}

@media (max-width: 992px) {
    .art-hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .art-hero__title {
        font-size: 30px;
    }
    .art-body h2 {
        font-size: 24px;
    }
    .art-body .wp-block-aioseo-table-of-contents ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .art-hero__container,
    .art-author__container,
    .art-body__container {
        padding: 0 20px;
    }
    .art-hero {
        padding: 90px 0 40px;
    }
    .art-hero__breadcrumbs {
        font-size: 12px;
        margin-bottom: 24px;
    }
    .art-hero__grid {
        gap: 24px;
    }
    .art-hero__title {
        font-size: 22px;
        line-height: 1.3;
    }
    .art-hero__date {
        font-size: 12px;
        padding: 5px 10px;
    }
    .art-hero__media img {
        border-radius: 14px;
    }

    .art-author__card {
        padding: 16px 18px;
        gap: 14px;
        margin-bottom: 40px;
        border-radius: 14px;
    }
    .art-author__avatar {
        width: 52px;
        height: 52px;
    }
    .art-author__label {
        font-size: 12px;
    }
    .art-author__label svg {
        width: 14px;
        height: 14px;
    }
    .art-author__name {
        font-size: 16px;
    }

    .art-body {
        padding: 0 0 40px;
    }
    .art-body__container > * {
        margin-bottom: 32px;
    }
    .art-body .price-monitor-info {
        margin-bottom: 32px !important;
    }
    .art-body h2 {
        font-size: 20px;
        padding-left: 16px;
        margin-bottom: 16px;
    }
    .art-body h2::before {
        width: 3px;
    }
    .art-body p,
    .art-body ul li,
    .art-body ol li {
        font-size: 15px;
        line-height: 1.75;
    }
    .art-body figure.wp-block-image {
        border-radius: 12px;
        margin-bottom: 24px;
    }
    .art-body figure.wp-block-image img {
        border-radius: 12px;
    }
    .art-body figure.wp-block-table {
        border-radius: 12px;
    }
    .art-body figure.wp-block-table table {
        font-size: 13px;
        min-width: 420px;
    }
    .art-body figure.wp-block-table th,
    .art-body figure.wp-block-table td {
        padding: 12px 14px;
    }
    .art-body .wp-block-aioseo-table-of-contents {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .art-hero__container,
    .art-author__container,
    .art-body__container {
        padding: 0 16px;
    }
    .art-hero__title {
        font-size: 19px;
    }
    .art-hero__media img {
        border-radius: 12px;
    }
    .art-author__card {
        padding: 14px 16px;
        gap: 12px;
        border-radius: 12px;
        align-items: flex-start;
    }
    .art-author__avatar {
        width: 46px;
        height: 46px;
    }
    .art-author__label {
        font-size: 11px;
    }
    .art-author__label svg {
        width: 12px;
        height: 12px;
    }
    .art-author__name {
        font-size: 15px;
    }
    .art-body h2 {
        font-size: 18px;
    }
    .art-body p,
    .art-body ul li,
    .art-body ol li {
        font-size: 14px;
        line-height: 1.7;
    }
    .art-body .wp-block-aioseo-table-of-contents {
        padding: 16px;
    }
    .art-body .wp-block-aioseo-table-of-contents ul li a {
        font-size: 13px;
    }
}
/* =========================================================================
   1. БАЗОВАЯ СТРОКА-КОНТЕЙНЕР (ПК И НОУТБУКИ)
   ========================================================================= */
.art-author__meta-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px; /* Свободный отступ между блоками */
    margin-top: 10px;
}

/* Стили для текстовых блоков (просмотры и время чтения) */
.custom-post-views, .custom-read-time {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #8c8c8c; /* Красивый светлый серый шрифт */
    font-weight: 400;
    font-family: sans-serif;
    line-height: 1;
}

/* Стили для SVG-иконок (глаз и часы) */
.meta-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    color: #a6a6a6; /* Аккуратный блеклый цвет иконок */
    flex-shrink: 0;
}

/* Стили для текстовой части рейтинга */
.custom-static-rating {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #8c8c8c; /* Текст "Рейтинг статьи:" стал светлым */
    font-weight: 400;
    font-family: sans-serif;
    line-height: 1;
}
.rating-info {
    color: #8c8c8c; /* Текст в скобках с количеством голосов */
    font-weight: 400;
}

/* Разворачиваем направление Flexbox для работы селектора наведения "~" */
.static-rating-stars {
    display: flex;
    flex-direction: row-reverse;
    margin: 0 5px;
    line-height: 1;
}

/* Базовый вид звёздочек */
.static-rating-stars .static-star {
    font-size: 18px;
    color: #e0e0e0; /* Изначально пустые звезды — серые */
    margin-right: 1px;
    cursor: pointer; /* Делает курсор "пальчиком" */
    transition: color 0.1s ease;
}

/* =========================================================================
   2. СВЯЗКА С PHP: ЗАКРАШИВАНИЕ ЗВЕЗД НА ОСНОВЕ ТЕКУЩЕЙ ОЦЕНКИ
   ========================================================================= */
[data-rating="1"] .static-star[data-value="1"],
[data-rating="2"] .static-star[data-value="1"], [data-rating="2"] .static-star[data-value="2"],
[data-rating="3"] .static-star[data-value="1"], [data-rating="3"] .static-star[data-value="2"], [data-rating="3"] .static-star[data-value="3"],
[data-rating="4"] .static-star[data-value="1"], [data-rating="4"] .static-star[data-value="2"], [data-rating="4"] .static-star[data-value="3"], [data-rating="4"] .static-star[data-value="4"],
[data-rating="5"] .static-star {
    color: #ffbc00; /* Базовое окрашивание звезд статьи золотом */
}

/* =========================================================================
   3. ИНТЕРАКТИВНЫЙ ЭФФЕКТ НАВЕДЕНИЯ (HOVER НА ЗВЕЗДЫ)
   ========================================================================= */
/* При наведении мыши на блок временно гасим базовое золотое окрашивание в серый */
.custom-static-rating:not(.disabled) .static-rating-stars:hover .static-star {
    color: #e0e0e0;
}
/* Окрашиваем выбранную звезду и все, что находятся слева от нее */
.custom-static-rating:not(.disabled) .static-star:hover,
.custom-static-rating:not(.disabled) .static-star:hover ~ .static-star {
    color: #ffbc00 !important;
}

/* Убираем эффект пальчика, если пользователь уже кликнул и проголосовал */
.custom-static-rating.disabled .static-star {
    cursor: default;
}

/* =========================================================================
   4. АДАПТИВ ПОД ПЛАНШЕТЫ (ЭКРАНЫ ДО 992px)
   ========================================================================= */
@media screen and (max-width: 992px) {
    .art-author__meta-inline {
        gap: 14px; /* Чуть уменьшаем зазоры */
    }
    .custom-static-rating, .custom-post-views, .custom-read-time {
        font-size: 13px;
    }
    .static-rating-stars .static-star {
        font-size: 16px; /* Компактные звезды для средних экранов */
    }
}

/* =========================================================================
   5. АДАПТИВ ПОД МОБИЛЬНЫЕ СМАРТФОНЫ (ЭКРАНЫ ДО 576px)
   ========================================================================= */
@media screen and (max-width: 576px) {
    .art-author__meta-inline {
        display: flex;
        flex-direction: column; /* Элементы строго в вертикальный список */
        align-items: flex-start;
        gap: 8px;
        margin-top: 12px;
        width: 100%;
    }

    /* Формируем ровные строчки с легкой нижней разделительной полосой */
    .custom-static-rating, .custom-post-views, .custom-read-time {
        width: 100%;
        padding-bottom: 8px;
        border-bottom: 1px solid #f0f0f0; /* Тонкий аккуратный разделитель */
        font-size: 13px;
    }

    /* У последнего элемента списка убираем нижнюю черту */
    .art-author__meta-inline > div:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .static-rating-stars {
        margin-left: 4px;
    }
}
/* =========================================================================
   БЛОК «ЧИТАЙТЕ ТАКЖЕ» — перелинковка на другие статьи
   ========================================================================= */

.related-articles {
    position: relative;
    background: #0a0a0a;
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 107, 0, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 107, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 107, 0, 0.03) 0%, transparent 50%);
    overflow: hidden;
    padding: 60px 0;
}

.related-articles::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: related-pulse 14s ease-in-out infinite;
}

.related-articles::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: related-pulse 12s ease-in-out infinite reverse;
}

h2.related-articles__title {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto 48px;
    padding: 0 60px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    color: #FFFFFF;
    letter-spacing: -0.6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.related-articles__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FF8C00, transparent);
    border-radius: 2px;
    margin-top: 4px;
}

.related-articles__grid {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    box-sizing: border-box;
}

.related-articles__card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 107, 0, 0.12);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    isolation: isolate;
}

.related-articles__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: 20px;
}

.related-articles__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.08), transparent);
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: 3;
    border-radius: 20px;
}

.related-articles__card:hover {
    border-color: rgba(255, 107, 0, 0.35);
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 107, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.related-articles__card:hover::before {
    opacity: 1;
}

.related-articles__card:hover::after {
    left: 100%;
}

.related-articles__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-articles__link:hover {
    text-decoration: none;
    color: inherit;
}

.related-articles__image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #111;
    display: block;
    flex-shrink: 0;
}

.related-articles__image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.related-articles__image-wrapper::before {
    content: 'Статья';
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 0, 0.35);
    color: #FF8C00;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-radius: 8px;
    z-index: 2;
    transition: all 0.4s ease;
}

.related-articles__card:hover .related-articles__image-wrapper::before {
    background: rgba(255, 107, 0, 0.9);
    color: #FFFFFF;
    border-color: transparent;
}

.related-articles__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), filter 0.5s ease;
    filter: saturate(0.95);
}

.related-articles__card:hover .related-articles__img {
    transform: scale(1.08);
    filter: saturate(1.1);
}

.related-articles__content {
    padding: 24px 26px 28px;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-articles__card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-articles__card:hover .related-articles__card-title {
    color: #FF8C00;
}

.related-articles__content::after {
    content: '';
    display: block;
    margin-top: auto;
    height: 18px;
    width: 100%;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.4s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23FF8C00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
}

.related-articles__card:hover .related-articles__content::after {
    opacity: 1;
    transform: translateX(0);
}

@keyframes related-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* =========================================================================
   АДАПТИВ
   ========================================================================= */

@media (max-width: 1200px) {
    .related-articles__title {
        padding: 0 40px;
        font-size: 34px;
        margin-bottom: 40px;
    }
    .related-articles__grid {
        padding: 0 40px;
        gap: 22px;
    }
    .related-articles__content {
        padding: 22px 22px 24px;
    }
    .related-articles__card-title {
        font-size: 17px;
    }
    .related-articles__image-wrapper {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .related-articles__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .related-articles__card:last-child {
        display: none;
    }
    .related-articles__image-wrapper {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .related-articles {
        padding: 40px 0;
    }
    .related-articles__title {
        padding: 0 20px;
        font-size: 26px;
        margin-bottom: 32px;
    }
    .related-articles__title::before {
        font-size: 11px;
        padding: 4px 10px;
    }
    .related-articles__title::after {
        width: 40px;
    }
    .related-articles__grid {
        padding: 0 20px;
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .related-articles__card:last-child {
        display: block;
    }
    .related-articles__card:hover {
        transform: translateY(-4px);
    }
    .related-articles__content {
        padding: 18px 20px 20px;
    }
    .related-articles__card-title {
        font-size: 15px;
        -webkit-line-clamp: 4;
    }
    .related-articles__image-wrapper {
        height: 220px;
    }
    .related-articles__image-wrapper::before {
        top: 12px;
        left: 12px;
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .related-articles {
        padding: 40px 0;
    }
    .related-articles__title {
        padding: 0 16px;
        font-size: 22px;
        margin-bottom: 28px;
    }
    .related-articles__grid {
        padding: 0 16px;
        gap: 16px;
    }
    .related-articles__content {
        padding: 16px 18px 18px;
    }
    .related-articles__card-title {
        font-size: 14px;
    }
    .related-articles__image-wrapper {
        height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .related-articles::before,
    .related-articles::after {
        animation: none;
    }
    .related-articles__card,
    .related-articles__card::after,
    .related-articles__img,
    .related-articles__card-title,
    .related-articles__content::after {
        transition: none;
    }
}
