@font-face {
    font-family: "YanoneKaffeesatzRockNews";
    font-style: normal;
    font-display: swap;
    font-weight: 200 700;
    src: url("https://cdn.jsdelivr.net/fontsource/fonts/yanone-kaffeesatz:vf@latest/cyrillic-wght-normal.woff2")
         format("woff2-variations");
    unicode-range: U+0400-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF,
                   U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: "YanoneKaffeesatzRockNews";
    font-style: normal;
    font-display: swap;
    font-weight: 200 700;
    src: url("https://cdn.jsdelivr.net/fontsource/fonts/yanone-kaffeesatz:vf@latest/latin-wght-normal.woff2")
         format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
                   U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                   U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                   U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --hrfm-rocknews-font: "YanoneKaffeesatzRockNews", sans-serif;
}

html.hrfm-news-category {
    --hrfm-rocknews-heading-font: var(--hrfm-rocknews-font);
    --hrfm-rocknews-body-font: var(--hrfm-rocknews-font);
}

/*
 * Отдельное оформление кратких и полных новостей выбранной категории DLE.
 * Активируется шаблонами shortstory_rocknews.tpl и fullstory_rocknews.tpl.
 *
 * БЫСТРАЯ СМЕНА ШРИФТОВ ДЛЯ ЭТОЙ КАТЕГОРИИ:
 * измените только две переменные ниже.
 */
html.hrfm-news-category .nk-main {
    font-family: var(--hrfm-rocknews-font);
}

/* Для этой категории список новостей занимает всю ширину, боковая колонка скрывается. */
html.hrfm-news-category .nk-main > .container > .row.equal-height.vertical-gap > .col-lg-8 {
    float: none;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

html.hrfm-news-category .nk-main > .container > .row.equal-height.vertical-gap > .col-lg-4 {
    display: none;
}

html.hrfm-news-category .nk-main .nk-decorated-h-2 {
    margin-bottom: 18px;
    font-family: var(--hrfm-rocknews-font);
    font-weight: 600;
    letter-spacing: .045em;
}

html.hrfm-news-category .nk-main .nk-decorated-h-2 > span {
    padding-left: 0;
}

.hrfm-news-row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    min-height: 196px;
    padding: 20px 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.hrfm-news-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #0b0f12;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .22);
}

.hrfm-news-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .055);
    pointer-events: none;
}

.hrfm-news-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: saturate(.92) contrast(1.03);
    transition: transform .3s ease, filter .3s ease;
}

.hrfm-news-row:hover .hrfm-news-thumb img {
    transform: scale(1.02);
    filter: saturate(1) contrast(1.05);
}

.hrfm-news-content {
    min-width: 0;
    padding-right: 4px;
}

.hrfm-news-date-line {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 13px;
}

.hrfm-news-date-line time {
    flex: 0 0 auto;
    color: #fff;
    font-family: var(--hrfm-rocknews-font);
    font-size: 19px;
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    letter-spacing: .015em;
}

.hrfm-news-rule {
    display: block;
    height: 3px;
    min-width: 70px;
    flex: 1 1 auto;
    background: linear-gradient(90deg, #d31638 0%, #f21d47 92%, transparent 92%);
    clip-path: polygon(0 0, 100% 0, 98.3% 100%, 0 100%);
}

.hrfm-news-title {
    margin: 0 0 12px;
    color: #fff;
    font-family: var(--hrfm-rocknews-font);
    font-size: clamp(28px, 2.2vw, 32px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: .018em;
    text-transform: uppercase;
}

.hrfm-news-title a,
.hrfm-news-title a:visited {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.hrfm-news-title a:hover,
.hrfm-news-title a:focus {
    color: #ff3153;
}

.hrfm-news-excerpt {
    max-width: 950px;
    color: #eef0f1;
    font-family: var(--hrfm-rocknews-font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
}

.hrfm-news-excerpt p {
    margin: 0;
    color: inherit;
}

.hrfm-news-excerpt img,
.hrfm-news-excerpt iframe,
.hrfm-news-excerpt video,
.hrfm-news-excerpt .highslide {
    display: none !important;
}

@media (max-width: 991px) {
    .hrfm-news-row {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 22px;
        min-height: 174px;
    }

    .hrfm-news-thumb {
    }

    .hrfm-news-title {
        font-size: 27px;
    }

    .hrfm-news-excerpt {
        font-size: 16px;
        line-height: 1.45;
    }
}

@media (max-width: 700px) {
    .hrfm-news-row {
        display: block;
        padding: 22px 0 25px;
    }

    .hrfm-news-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 18px;
    }

    .hrfm-news-date-line {
        gap: 10px;
        margin-bottom: 12px;
    }

    .hrfm-news-date-line time {
        font-size: 17px;
    }

    .hrfm-news-title {
        margin-bottom: 10px;
        font-size: 24px;
        line-height: 1.18;
    }

    .hrfm-news-excerpt {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .hrfm-news-title {
        font-size: 22px;
    }

    .hrfm-news-excerpt {
        font-size: 15px;
    }
}

/* ================================================================
   ПОЛНАЯ НОВОСТЬ
   ================================================================ */

.hrfm-fullnews {
    width: 100%;
    min-width: 0;
    padding: 12px 0 36px;
}

.hrfm-fullnews-header {
    position: relative;
    padding: 10px 0 24px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.hrfm-fullnews-date-line {
    margin-bottom: 18px;
}

.hrfm-fullnews-title {
    max-width: 1120px;
    margin: 0;
    color: #fff;
    font-family: var(--hrfm-rocknews-font);
    font-size: clamp(30px, 2.4vw, 34px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: .018em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.hrfm-fullnews-rating {
    margin-top: 18px;
}

.hrfm-fullnews-body {
    color: #edf0f1;
    font-family: var(--hrfm-rocknews-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.hrfm-fullnews-body::after {
    content: "";
    display: block;
    clear: both;
}

.hrfm-fullnews-body p {
    margin: 0 0 1.25em;
    color: inherit;
}

.hrfm-fullnews-body h2,
.hrfm-fullnews-body h3,
.hrfm-fullnews-body h4,
.hrfm-fullnews-body h5,
.hrfm-fullnews-body h6 {
    margin: 1.45em 0 .65em;
    color: #fff;
    font-family: var(--hrfm-rocknews-font);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: .018em;
}

.hrfm-fullnews-body h2 {
    font-size: clamp(25px, 3vw, 34px);
    text-transform: uppercase;
}

.hrfm-fullnews-body h3 {
    font-size: clamp(22px, 2.5vw, 29px);
}

.hrfm-fullnews-body a {
    color: #ff3153;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 49, 83, .35);
    transition: color .2s ease, border-color .2s ease;
}

.hrfm-fullnews-body a:hover,
.hrfm-fullnews-body a:focus {
    color: #fff;
    border-bottom-color: #fff;
}

.hrfm-fullnews-body img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.hrfm-fullnews-body iframe,
.hrfm-fullnews-body video {
    max-width: 100%;
}

.hrfm-fullnews-body blockquote {
    position: relative;
    margin: 1.6em 0;
    padding: 18px 22px 18px 26px;
    color: #fff;
    background: rgba(255, 255, 255, .035);
    border-left: 4px solid #e51f43;
}

.hrfm-fullnews-body ul,
.hrfm-fullnews-body ol {
    margin: 0 0 1.25em;
    padding-left: 1.4em;
}

.hrfm-fullnews-body li + li {
    margin-top: .35em;
}

.hrfm-fullnews-tags {
    margin-top: 30px;
    padding: 15px 18px;
    color: #d9dcde;
    font-family: var(--hrfm-rocknews-font);
    font-size: 15px;
    line-height: 1.5;
    background: rgba(255, 255, 255, .035);
    border-left: 3px solid #e51f43;
}

.hrfm-fullnews-tags > span {
    color: #fff;
    font-family: var(--hrfm-rocknews-font);
    font-weight: 600;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.hrfm-fullnews-tags a {
    color: #ff3153;
}

.hrfm-fullnews-divider {
    height: 1px;
    margin: 30px 0 24px;
    background: linear-gradient(90deg, #e51f43 0, #e51f43 95px, rgba(255, 255, 255, .075) 95px);
}

.hrfm-fullnews-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hrfm-fullnews-share-title {
    color: #fff;
    font-family: var(--hrfm-rocknews-font);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.hrfm-fullnews-related {
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.hrfm-fullnews-related-title {
    margin: 0 0 22px;
    color: #fff;
    font-family: var(--hrfm-rocknews-font);
    font-size: 27px;
    font-weight: 600;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.hrfm-fullnews-related-title > span {
    color: #ff3153;
}

@media (max-width: 700px) {
    .hrfm-fullnews {
        padding-top: 4px;
    }

    .hrfm-fullnews-header {
        padding-bottom: 19px;
        margin-bottom: 21px;
    }

    .hrfm-fullnews-title {
        font-size: 31px;
        line-height: 1.1;
    }

    .hrfm-fullnews-body {
        font-size: 16px;
        line-height: 1.65;
    }

    .hrfm-fullnews-body blockquote {
        padding: 15px 16px 15px 19px;
    }

    .hrfm-fullnews-related-title {
        font-size: 23px;
    }
}

@media (max-width: 420px) {
    .hrfm-fullnews-title {
        font-size: 27px;
    }
}

/* =========================================================
   ЕДИНЫЙ ШРИФТ YANONE KAFFEESATZ
   для краткой и полной новости
   ========================================================= */

html.hrfm-news-category .nk-main,
html.hrfm-news-category .nk-main *,
.hrfm-news-row,
.hrfm-news-row *,
.hrfm-fullnews,
.hrfm-fullnews * {
    font-family: var(--hrfm-rocknews-font) !important;
}

/* Заголовки и даты */
.hrfm-news-date-line time,
.hrfm-news-title,
.hrfm-news-title *,
.hrfm-fullnews-title,
.hrfm-fullnews-title *,
.hrfm-fullnews-body h1,
.hrfm-fullnews-body h1 *,
.hrfm-fullnews-body h2,
.hrfm-fullnews-body h2 *,
.hrfm-fullnews-body h3,
.hrfm-fullnews-body h3 *,
.hrfm-fullnews-body h4,
.hrfm-fullnews-body h4 *,
.hrfm-fullnews-body h5,
.hrfm-fullnews-body h5 *,
.hrfm-fullnews-body h6,
.hrfm-fullnews-body h6 * {
    font-family: var(--hrfm-rocknews-font) !important;
    font-weight: 600 !important;
}

/* Краткий текст */
.hrfm-news-excerpt,
.hrfm-news-excerpt p,
.hrfm-news-excerpt div,
.hrfm-news-excerpt span {
    color: #f4f5f6 !important;
    font-family: var(--hrfm-rocknews-font) !important;
    font-size: 18px !important;
    font-weight: 450 !important;
    line-height: 1.5 !important;
    letter-spacing: .006em;
    text-transform: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .55);
}

/* Полный текст */
.hrfm-fullnews-body,
.hrfm-fullnews-body p,
.hrfm-fullnews-body div,
.hrfm-fullnews-body span,
.hrfm-fullnews-body li,
.hrfm-fullnews-body td {
    color: #f4f5f6 !important;
    font-family: var(--hrfm-rocknews-font) !important;
    font-size: 20px !important;
    font-weight: 450 !important;
    line-height: 1.58 !important;
    letter-spacing: .006em;
    text-transform: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .55);
}

/* Жирное выделение */
.hrfm-news-excerpt strong,
.hrfm-news-excerpt b,
.hrfm-fullnews-body strong,
.hrfm-fullnews-body b {
    font-family: var(--hrfm-rocknews-font) !important;
    font-weight: 700 !important;
}

/* Размеры заголовков */
.hrfm-news-title,
.hrfm-news-title * {
    font-size: clamp(28px, 2.2vw, 32px) !important;
    line-height: 1.12 !important;
}

.hrfm-fullnews-title,
.hrfm-fullnews-title * {
    font-size: clamp(30px, 2.4vw, 34px) !important;
    line-height: 1.12 !important;
}

@media (max-width: 700px) {
    .hrfm-news-title,
    .hrfm-news-title * {
        font-size: 23px !important;
    }

    .hrfm-fullnews-title,
    .hrfm-fullnews-title * {
        font-size: 27px !important;
    }

    .hrfm-news-excerpt,
    .hrfm-news-excerpt p,
    .hrfm-news-excerpt div,
    .hrfm-news-excerpt span {
        font-size: 17px !important;
        line-height: 1.48 !important;
    }

    .hrfm-fullnews-body,
    .hrfm-fullnews-body p,
    .hrfm-fullnews-body div,
    .hrfm-fullnews-body span,
    .hrfm-fullnews-body li,
    .hrfm-fullnews-body td {
        font-size: 19px !important;
        line-height: 1.55 !important;
    }
}

@media (max-width: 420px) {
    .hrfm-news-title,
    .hrfm-news-title * {
        font-size: 21px !important;
    }

    .hrfm-fullnews-title,
    .hrfm-fullnews-title * {
        font-size: 25px !important;
    }
}

/* =========================================================
   ОПТИМАЛЬНЫЙ РАЗМЕР ОСНОВНОГО ТЕКСТА
   ========================================================= */

/* Основной текст краткой новости */
.hrfm-news-excerpt,
.hrfm-news-excerpt p,
.hrfm-news-excerpt div,
.hrfm-news-excerpt span {
    font-size: 21px !important;
    font-weight: 450 !important;
    line-height: 1.56 !important;
    letter-spacing: .004em !important;
}

/* Основной текст полной новости */
.hrfm-fullnews-body,
.hrfm-fullnews-body p,
.hrfm-fullnews-body div,
.hrfm-fullnews-body span,
.hrfm-fullnews-body li,
.hrfm-fullnews-body td {
    font-size: 23px !important;
    font-weight: 450 !important;
    line-height: 1.64 !important;
    letter-spacing: .004em !important;
}

/* Планшеты */
@media (max-width: 991px) {
    .hrfm-news-excerpt,
    .hrfm-news-excerpt p,
    .hrfm-news-excerpt div,
    .hrfm-news-excerpt span {
        font-size: 20px !important;
    }

    .hrfm-fullnews-body,
    .hrfm-fullnews-body p,
    .hrfm-fullnews-body div,
    .hrfm-fullnews-body span,
    .hrfm-fullnews-body li,
    .hrfm-fullnews-body td {
        font-size: 22px !important;
    }
}

/* Телефоны */
@media (max-width: 700px) {
    .hrfm-news-excerpt,
    .hrfm-news-excerpt p,
    .hrfm-news-excerpt div,
    .hrfm-news-excerpt span {
        font-size: 19px !important;
        line-height: 1.54 !important;
    }

    .hrfm-fullnews-body,
    .hrfm-fullnews-body p,
    .hrfm-fullnews-body div,
    .hrfm-fullnews-body span,
    .hrfm-fullnews-body li,
    .hrfm-fullnews-body td {
        font-size: 21px !important;
        line-height: 1.6 !important;
    }
}

/* Узкие телефоны */
@media (max-width: 420px) {
    .hrfm-news-excerpt,
    .hrfm-news-excerpt p,
    .hrfm-news-excerpt div,
    .hrfm-news-excerpt span {
        font-size: 18px !important;
    }

    .hrfm-fullnews-body,
    .hrfm-fullnews-body p,
    .hrfm-fullnews-body div,
    .hrfm-fullnews-body span,
    .hrfm-fullnews-body li,
    .hrfm-fullnews-body td {
        font-size: 20px !important;
    }
}

/* =========================================================
   ПОХОЖИЕ НОВОСТИ: 3 КАРТОЧКИ
   3 на компьютере, 2 на планшете, 1 на телефоне
   ========================================================= */

.hrfm-fullnews-related {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.hrfm-fullnews-related-title {
    margin: 0 0 24px;
    color: #fff;
    font-family: var(--hrfm-rocknews-font) !important;
    font-size: 31px !important;
    font-weight: 600 !important;
    line-height: 1.1;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.hrfm-fullnews-related-title > span {
    color: #ff3153;
}

/* Сбрасываем Bootstrap-разметку и создаём собственную сетку */
.hrfm-fullnews-related .multi-columns-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    margin: 0 !important;
}

.hrfm-fullnews-related .multi-columns-row::before,
.hrfm-fullnews-related .multi-columns-row::after {
    display: none !important;
}


/* Если DLE нашёл только одну или две новости — аккуратно центрируем карточки */
@supports selector(.hrfm-fullnews-related .multi-columns-row:has(> *)) {
    .hrfm-fullnews-related .multi-columns-row:has(> :only-child) {
        grid-template-columns: minmax(0, 360px);
        justify-content: center;
    }

    .hrfm-fullnews-related .multi-columns-row:has(> :nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 360px));
        justify-content: center;
    }
}

/* Поддержка и нового, и прежнего relatednews.tpl */
.hrfm-fullnews-related .multi-columns-row > [class*="col-"],
.hrfm-fullnews-related .hrfm-related-card {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* Карточка */
.hrfm-fullnews-related .nk-blog-post,
.hrfm-related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 8px;
    transition:
        transform .25s ease,
        border-color .25s ease,
        background-color .25s ease;
}

.hrfm-fullnews-related .nk-blog-post:hover,
.hrfm-related-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 49, 83, .42);
}

/* Изображение выводится целиком и не обрезает участников группы */
.hrfm-fullnews-related .nk-post-img-related,
.hrfm-related-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0a0e11;
    border: 0;
}

.hrfm-fullnews-related .nk-post-img-related img,
.hrfm-related-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: contain;
    object-position: center;
    border: 0;
    box-shadow: none;
    transition: transform .3s ease, filter .3s ease;
}

.hrfm-fullnews-related .nk-blog-post:hover .nk-post-img-related img,
.hrfm-related-card:hover .hrfm-related-image img {
    transform: scale(1.018);
    filter: saturate(1.04) contrast(1.03);
}

/* Убираем старые пустые интервалы шаблона */
.hrfm-fullnews-related .nk-gap,
.hrfm-fullnews-related .nk-gap-1,
.hrfm-fullnews-related .nk-gap-2 {
    display: none !important;
}

/* Заголовок карточки */
.hrfm-fullnews-related .nk-post-title,
.hrfm-related-card-title {
    margin: 0 !important;
    padding: 15px 16px 17px;
    color: #fff;
    font-family: var(--hrfm-rocknews-font) !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: .008em;
    text-transform: uppercase;
}

.hrfm-fullnews-related .nk-post-title a,
.hrfm-fullnews-related .nk-post-title a:visited,
.hrfm-related-card-title a,
.hrfm-related-card-title a:visited {
    color: inherit;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-decoration: none;
}

.hrfm-fullnews-related .nk-post-title a:hover,
.hrfm-fullnews-related .nk-post-title a:focus,
.hrfm-related-card-title a:hover,
.hrfm-related-card-title a:focus {
    color: #ff3153;
}

/* Исправляем невалидную обёртку <p> в старом relatednews.tpl */
.hrfm-fullnews-related .nk-blog-post > p {
    display: contents;
    margin: 0 !important;
}

@media (max-width: 991px) {
    .hrfm-fullnews-related .multi-columns-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .hrfm-fullnews-related-title {
        font-size: 28px !important;
    }

    .hrfm-fullnews-related .nk-post-title,
    .hrfm-related-card-title {
        font-size: 21px !important;
    }
}

@media (max-width: 700px) {
    .hrfm-fullnews-related {
        margin-top: 34px;
        padding-top: 24px;
    }

    .hrfm-fullnews-related .multi-columns-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .hrfm-fullnews-related-title {
        margin-bottom: 19px;
        font-size: 26px !important;
    }

    .hrfm-fullnews-related .nk-post-title,
    .hrfm-related-card-title {
        padding: 13px 14px 15px;
        font-size: 21px !important;
    }
}

/* =========================================================
   УВЕЛИЧЕННЫЙ БЛОК «ПОДЕЛИТЬСЯ»
   Размер подписи согласован с заголовком «Похожие новости»
   ========================================================= */

.hrfm-fullnews-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 17px;
    min-height: 38px;
}

.hrfm-fullnews-share-title {
    color: #fff;
    font-family: var(--hrfm-rocknews-font) !important;
    font-size: 31px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    letter-spacing: .015em;
    text-transform: uppercase;
}

/*
 * Масштабируем готовый блок Яндекс «Поделиться».
 * Это не создаёт дополнительных запросов и не увеличивает нагрузку
 * на сервер — меняется только визуальный размер в браузере.
 */
.hrfm-fullnews-share .ya-share2 {
    display: inline-block;
    position: relative;
    top: 1px;
    flex: 0 0 auto;
    transform: scale(1.25);
    transform-origin: left center;
    margin-right: 18px;
}

/* Немного увеличиваем расстояние между иконками */
.hrfm-fullnews-share .ya-share2__list {
    gap: 4px;
}

@media (max-width: 991px) {
    .hrfm-fullnews-share-title {
        font-size: 28px !important;
    }

    .hrfm-fullnews-share .ya-share2 {
        transform: scale(1.2);
        margin-right: 14px;
    }
}

@media (max-width: 700px) {
    .hrfm-fullnews-share {
        gap: 14px;
    }

    .hrfm-fullnews-share-title {
        font-size: 26px !important;
    }

    .hrfm-fullnews-share .ya-share2 {
        transform: scale(1.15);
        margin-right: 10px;
    }
}

/* =========================================================
   НИЖНИЙ ИНФОРМАЦИОННЫЙ БЛОК
   Логотип + политика конфиденциальности + правообладатели
   ========================================================= */

/*
 * Оформление применяется только на страницах выбранной категории.
 * HTML-разметку footer менять не требуется.
 */
html.hrfm-news-category .nk-footer .nk-box-2 {
    display: flex;
    align-items: center;
    gap: 34px;
    width: 100%;
    min-height: 148px;
    padding: 26px 34px;
    overflow: hidden;
    background: #253039;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}

/* Колонка с логотипом */
html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-3 {
    float: none;
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
    padding: 0;
}

html.hrfm-news-category .nk-footer .nk-box-2 .nk-nav-logo {
    display: block;
    width: 100%;
    max-width: 285px;
    margin: 0 auto;
}

html.hrfm-news-category .nk-footer .nk-box-2 .nk-nav-logo img {
    display: block;
    width: 100%;
    max-width: 285px;
    height: auto;
    margin: 0;
}

/* Колонка с информационными ссылками */
html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 {
    float: none;
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
}

/*
 * Переопределяем встроенный style="font-size:12px; ...",
 * который находится в main.tpl.
 */
html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 > p {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    font-family: var(--hrfm-rocknews-font) !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

/* Ссылки выглядят как полноценные кликабельные элементы */
html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 > p > a,
html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 > p > a:visited {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 12px 18px;
    color: #f5f6f7 !important;
    font-family: var(--hrfm-rocknews-font) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    background: rgba(9, 13, 16, .2);
    border: 1px solid rgba(255, 255, 255, .075);
    border-left: 4px solid #e51f43;
    border-radius: 8px;
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

/* Убираем визуальное влияние старых &nbsp; между ссылками */
html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 > p {
    word-spacing: 0;
}

html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 > p > a:hover,
html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 > p > a:focus-visible {
    color: #fff !important;
    background: rgba(229, 31, 67, .11);
    border-color: rgba(229, 31, 67, .52);
    border-left-color: #ff3153;
    transform: translateY(-2px);
    outline: none;
}

html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 > p > a:focus-visible {
    box-shadow: 0 0 0 3px rgba(229, 31, 67, .2);
}

/* Планшеты: логотип сверху, ссылки ниже */
@media (max-width: 991px) {
    html.hrfm-news-category .nk-footer .nk-box-2 {
        flex-direction: column;
        gap: 24px;
        padding: 28px;
    }

    html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-3,
    html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    html.hrfm-news-category .nk-footer .nk-box-2 .nk-nav-logo,
    html.hrfm-news-category .nk-footer .nk-box-2 .nk-nav-logo img {
        max-width: 285px;
        margin-right: auto;
        margin-left: auto;
    }

    html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 > p {
        font-size: 21px !important;
    }
}

/* Телефоны: ссылки одна под другой */
@media (max-width: 700px) {
    html.hrfm-news-category .nk-footer .nk-box-2 {
        gap: 20px;
        min-height: 0;
        padding: 24px 18px;
        border-radius: 14px;
    }

    html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 > p {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        font-size: 20px !important;
    }

    html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 > p > a {
        min-height: 54px;
        padding: 11px 14px;
    }
}

@media (max-width: 420px) {
    html.hrfm-news-category .nk-footer .nk-box-2 {
        padding: 21px 14px;
    }

    html.hrfm-news-category .nk-footer .nk-box-2 > .col-lg-9 > p {
        font-size: 18px !important;
    }
}

