/**
 * Профессиональная главная radnews.ru (тема Rowling, оверлей).
 */

@keyframes rn-ribbon {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes rn-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rn-hero-kenburns {
    0% { transform: scale(1.04) translate3d(0, 0, 0); }
    100% { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

@keyframes rn-hero-shimmer {
    0% { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
    35% { opacity: 0.55; }
    100% { transform: translateX(220%) skewX(-12deg); opacity: 0; }
}

@keyframes rn-hero-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* --- Интерактивная шапка (все страницы) --- */

body.radnews-header-pro .header-wrapper {
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    isolation: isolate;
}

body.radnews-header-pro .header-wrapper::before {
    content: "";
    display: block;
    height: 3px;
    position: relative;
    z-index: 12;
    background: linear-gradient(90deg, #0093c2, #5a9fd4, #2c5282, #0093c2);
    background-size: 200% 100%;
    animation: rn-ribbon 6s linear infinite;
}

body.radnews-header-pro .header-wrapper.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

body.radnews-header-pro .header-wrapper.is-scrolled .rn-header-hero__feature {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
}

.rn-header-hero {
    position: absolute;
    inset: 0 0 auto 0;
    min-height: 100%;
    z-index: 0;
    pointer-events: none;
}

.rn-header-hero__slides,
.rn-header-hero__fallback {
    position: absolute;
    inset: 0;
}

.rn-header-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    will-change: opacity, transform;
}

.rn-header-hero__slide::before {
    content: "";
    position: absolute;
    inset: -8%;
    background-image: var(--rn-hero-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.04);
}

.rn-header-hero__slide.is-active {
    opacity: 1;
    z-index: 1;
}

.rn-header-hero__slide.is-active::before {
    animation: rn-hero-kenburns 14s ease-out forwards;
}

.rn-header-hero__fallback {
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0, 147, 194, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 60%, rgba(44, 82, 130, 0.4), transparent 50%),
        linear-gradient(165deg, #2a2d33 0%, #33363b 55%, #25282d 100%);
}

.rn-header-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(105deg, rgba(15, 20, 28, 0.92) 0%, rgba(15, 20, 28, 0.55) 42%, rgba(0, 147, 194, 0.18) 100%),
        linear-gradient(0deg, rgba(37, 40, 45, 0.95) 0%, transparent 48%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 35%);
}

.rn-header-hero__spotlight {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.85;
    background: radial-gradient(
        520px circle at var(--rn-hx, 50%) var(--rn-hy, 40%),
        rgba(0, 147, 194, 0.22),
        transparent 62%
    );
    transition: opacity 0.35s ease;
}

.rn-header-hero__grain {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0.07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.rn-header-hero__feature {
    position: absolute;
    right: clamp(12px, 3vw, 28px);
    bottom: clamp(72px, 12vw, 96px);
    z-index: 8;
    width: min(320px, 42vw);
    pointer-events: auto;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    animation: rn-fade-up 0.6s ease-out 0.15s both;
}

.rn-header-hero__feature-link {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.rn-header-hero__feature-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
    animation: rn-hero-shimmer 4.5s ease-in-out infinite;
    pointer-events: none;
}

.rn-header-hero__feature-link {
    position: relative;
    overflow: hidden;
}

.rn-header-hero__feature-link:hover,
.rn-header-hero__feature-link:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(0, 147, 194, 0.55);
    background: rgba(0, 147, 194, 0.18);
    outline: none;
}

.rn-header-hero__feature-cat {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.rn-header-hero__feature-title {
    font-family: Merriweather, Georgia, serif;
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rn-header-hero__feature-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

.rn-header-hero__feature-date .fa {
    margin-right: 0.35em;
    opacity: 0.85;
}

.rn-header-hero__feature-cta {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0093c2;
}

.rn-header-hero__feature-link:hover .rn-header-hero__feature-cta {
    color: #fff;
}

.rn-header-hero__filmstrip {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 9;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
}

.rn-header-hero__thumb {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    background-image: var(--rn-thumb-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rn-header-hero__thumb:hover,
.rn-header-hero__thumb:focus-visible {
    opacity: 0.9;
    transform: translateY(-2px) scale(1.05);
    outline: none;
}

.rn-header-hero__thumb.is-active {
    opacity: 1;
    border-color: #0093c2;
    box-shadow: 0 0 0 2px rgba(0, 147, 194, 0.35), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.rn-header-hero__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.rn-header-hero__progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #0093c2, #5a9fd4);
}

.rn-header-hero.is-playing .rn-header-hero__progress-bar {
    animation: rn-hero-progress var(--rn-hero-interval, 6.5s) linear forwards;
}

body.radnews-header-pro .header {
    position: relative;
    z-index: 6;
    padding: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(1.25rem, 3vw, 1.75rem);
    background: transparent;
}

body.radnews-header-pro .header .section-inner {
    position: relative;
    padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body.radnews-header-pro .blog-title {
    font-size: clamp(1.25rem, 2vw + 0.8rem, 1.85rem);
    letter-spacing: 0.04em;
    animation: rn-fade-up 0.45s ease-out both;
}

body.radnews-header-pro .blog-title a {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    transition: color 0.25s ease, letter-spacing 0.25s ease;
}

body.radnews-header-pro .blog-title a:hover {
    letter-spacing: 0.06em;
}

body.radnews-header-pro .blog-title a::before {
    font-family: FontAwesome;
    content: "\f1ea";
    margin-right: 0.45em;
    color: #0093c2;
    font-weight: normal;
}

body.radnews-header-pro .blog-description {
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

body.radnews-header-pro .blog-description::before {
    font-family: FontAwesome;
    content: "\f0eb";
    margin-right: 0.35em;
    color: #0093c2;
    font-style: normal;
}

/* --- Случайный слоган вместо «РАД-НОВОСТИ» --- */

body.radnews-header-pro .blog-description.rn-header-slogan {
    margin-top: 0.4rem;
    line-height: 1.45;
    animation: rn-fade-up 0.55s ease-out 0.1s both;
}

body.radnews-header-pro .blog-description.rn-header-slogan::before {
    content: none;
}

body.radnews-header-pro .rn-header-slogan--zmn {
    font-size: clamp(0.82rem, 0.9vw + 0.5rem, 1.05rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
}

body.radnews-header-pro .rn-slogan-zmn {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.15rem 0.55rem;
    max-width: 42rem;
}

body.radnews-header-pro .rn-slogan-zmn__part {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28rem;
    padding: 0.18rem 0.55rem 0.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 147, 194, 0.14), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

body.radnews-header-pro .rn-slogan-zmn__letter {
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.15em;
    font-weight: 900;
    line-height: 1;
    color: #7dd3fc;
    text-shadow: 0 0 20px rgba(0, 147, 194, 0.55);
}

body.radnews-header-pro .rn-slogan-zmn__dash {
    opacity: 0.55;
    font-weight: 300;
}

body.radnews-header-pro .rn-slogan-zmn__word {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
}

body.radnews-header-pro .rn-slogan-zmn__punct {
    align-self: center;
    margin: 0 0.05rem;
    opacity: 0.65;
    font-weight: 400;
}

body.radnews-header-pro .rn-header-slogan--quote {
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(0.9rem, 1vw + 0.55rem, 1.12rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.88);
    max-width: 28rem;
}

body.radnews-header-pro .rn-slogan-quote {
    display: inline-block;
    position: relative;
    padding-left: 1.1rem;
}

body.radnews-header-pro .rn-slogan-quote::before {
    content: "\201C";
    position: absolute;
    left: 0;
    top: -0.15em;
    font-size: 1.45em;
    line-height: 1;
    font-style: normal;
    color: #0093c2;
    opacity: 0.85;
}

@media (max-width: 640px) {
    body.radnews-header-pro .rn-slogan-zmn {
        gap: 0.35rem 0.4rem;
    }

    body.radnews-header-pro .rn-slogan-zmn__part {
        padding: 0.14rem 0.45rem 0.16rem;
    }
}

/* --- Страницы рубрик и меток: название вместо «РАД-НОВОСТИ» --- */

body.radnews-category-pro,
body.radnews-tag-pro {
    --rn-cat-icon: "\f07b";
}

body.radnews-category-pro .blog-title a::before,
body.radnews-tag-pro .blog-title a::before {
    content: var(--rn-cat-icon, "\f1ea");
}

body.radnews-category-pro .blog-description.rn-archive-masthead,
body.radnews-tag-pro .blog-description.rn-archive-masthead,
body.radnews-category-pro .blog-description.rn-category-masthead,
body.radnews-tag-pro .blog-description.rn-category-masthead {
    font-size: clamp(0.95rem, 1.2vw + 0.55rem, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.94);
    margin-top: 0.35rem;
    animation: rn-fade-up 0.5s ease-out 0.08s both;
}

body.radnews-category-pro .blog-description.rn-archive-masthead::before,
body.radnews-tag-pro .blog-description.rn-archive-masthead::before,
body.radnews-category-pro .blog-description.rn-category-masthead::before,
body.radnews-tag-pro .blog-description.rn-category-masthead::before {
    content: var(--rn-cat-icon, "\f07b");
    font-family: FontAwesome;
    margin-right: 0.45em;
    color: #7dd3fc;
    font-style: normal;
    font-weight: normal;
    text-shadow: 0 0 18px rgba(0, 147, 194, 0.45);
}

body.radnews-tag-pro .blog-description.rn-archive-masthead::before {
    color: #fcd34d;
    text-shadow: 0 0 18px rgba(252, 211, 77, 0.35);
}

body.radnews-category-pro .page-title--archive-paged,
body.radnews-category-pro .page-title--category-paged,
body.radnews-tag-pro .page-title--archive-paged {
    margin-bottom: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e8ecf1;
}

body.radnews-category-pro .page-title--archive-paged h4,
body.radnews-category-pro .page-title--category-paged h4,
body.radnews-tag-pro .page-title--archive-paged h4 {
    display: none;
}

body.radnews-category-pro .page-title:not(.page-title--archive-paged):not(.page-title--category-paged),
body.radnews-tag-pro .page-title:not(.page-title--archive-paged) {
    display: none;
}

body.radnews-category-pro .navigation .primary-menu > li.rn-nav-cat.rn-nav-cat--is-active > a {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.85);
}

body.radnews-category-pro .mobile-menu > li.rn-nav-cat.rn-nav-cat--is-active > a {
    background: rgba(0, 147, 194, 0.22);
}

.sidebar .widget_categories .rn-cat-link--active {
    color: #0093c2 !important;
    border-color: rgba(0, 147, 194, 0.45);
    box-shadow: 0 6px 18px rgba(0, 147, 194, 0.18);
    transform: translateX(4px);
}

.sidebar .widget_categories .rn-cat-item--active > .rn-cat-link::before {
    box-shadow: 0 5px 16px rgba(0, 147, 194, 0.42);
}

body.radnews-category-pro .wrapper.section-inner > .content,
body.radnews-tag-pro .wrapper.section-inner > .content {
    padding-top: 0.25rem;
}

body.radnews-category-pro .posts,
body.radnews-tag-pro .posts {
    margin-top: 0.15rem;
}

/* --- Сайдбар: метки с пиктограммами (сброс legacy .tagcloud Rowling) --- */

.sidebar .widget_tag_cloud.rn-tags-widget .tagcloud {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.sidebar .widget_tag_cloud.rn-tags-widget .tagcloud a.rn-tag-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0.38rem 0.7rem 0.38rem 0.38rem !important;
    border-radius: 999px;
    border: 1px solid #e8ecf1;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
    color: #1a202c !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: none !important;
    white-space: nowrap;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sidebar .widget_tag_cloud.rn-tags-widget .tagcloud a.rn-tag-link::before {
    content: var(--rn-tag-icon, "\f02b") !important;
    display: inline-flex !important;
    flex: 0 0 1.4rem;
    width: 1.4rem;
    height: 1.4rem;
    align-items: center;
    justify-content: center;
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50%;
    font-family: FontAwesome;
    font-weight: normal;
    font-size: 0.7rem;
    line-height: 1;
    color: #fff;
    background: linear-gradient(145deg, #64748b 0%, #475569 100%) !important;
    box-sizing: border-box;
}

.sidebar .widget_tag_cloud.rn-tags-widget .tagcloud a.rn-tag-link:hover,
.sidebar .widget_tag_cloud.rn-tags-widget .tagcloud a.rn-tag-link:focus-visible {
    color: #0093c2 !important;
    background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%) !important;
    border-color: rgba(0, 147, 194, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 147, 194, 0.12);
}

.sidebar .widget_tag_cloud.rn-tags-widget .tagcloud a.rn-tag-link:hover::before,
.sidebar .widget_tag_cloud.rn-tags-widget .tagcloud a.rn-tag-link:focus-visible::before {
    border: none !important;
    border-right-color: transparent !important;
    background: linear-gradient(145deg, #0093c2 0%, #2c5282 100%) !important;
}

.sidebar .widget_tag_cloud.rn-tags-widget .tagcloud a.rn-tag-link--active {
    color: #fff !important;
    border-color: transparent;
    background: linear-gradient(135deg, #0093c2 0%, #2c5282 100%) !important;
    box-shadow: 0 6px 18px rgba(0, 147, 194, 0.28);
}

.sidebar .widget_tag_cloud.rn-tags-widget .tagcloud a.rn-tag-link--active::before {
    background: rgba(255, 255, 255, 0.25) !important;
    border: none !important;
    color: #fff;
}

@media (max-width: 480px) {
    .sidebar .widget_tag_cloud.rn-tags-widget .tagcloud a.rn-tag-link {
        white-space: normal;
        max-width: 100%;
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* --- Сайдбар на планшетах/мобильных: один столбец, поиск на всю ширину --- */

@media (max-width: 900px) {
    .sidebar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100% !important;
        max-width: 100%;
        padding-left: 5% !important;
        padding-right: 5% !important;
        box-sizing: border-box;
    }

    .sidebar .widget {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1.75rem 0 !important;
        padding: 0 !important;
        vertical-align: top;
        float: none !important;
        clear: both;
        box-sizing: border-box;
    }

    .sidebar .widget:nth-child(2n) {
        margin-left: 0 !important;
    }

    .sidebar .widget + .widget {
        padding-top: 1.5rem;
        margin-top: 0 !important;
        border-top: 1px solid #e2e8f0;
    }

    .sidebar .widget.widget_categories.rn-categories-widget {
        order: 1;
    }

    .sidebar .widget.widget_search {
        order: 2;
    }

    .sidebar .widget_search .widget-title {
        margin-bottom: 0.65rem;
    }

    .sidebar .widget_search .search-form {
        position: relative;
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .sidebar .widget_search .search-field {
        display: block;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.85rem 3.25rem 0.85rem 1rem !important;
        margin: 0;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        font-size: 1rem !important;
        line-height: 1.35;
    }

    .sidebar .widget_search .search-button {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 3rem;
        height: auto;
        border: none;
        border-left: 1px solid #e2e8f0;
        border-radius: 0 10px 10px 0;
        background: transparent;
    }

    .sidebar .widget_search .search-button .fa {
        font-size: 1.1rem;
    }

    .sidebar .widget_categories.rn-categories-widget {
        width: 100% !important;
    }

    .sidebar .widget_categories .widget-content,
    .sidebar .widget_categories .widget-content > ul {
        width: 100%;
        max-width: 100%;
    }

    .sidebar .widget_categories .rn-cat-link {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sidebar .widget_tag_cloud.rn-tags-widget .tagcloud {
        width: 100%;
    }
}

body.radnews-header-pro .nav-toggle {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.radnews-header-pro .nav-toggle:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(0, 147, 194, 0.45);
}

body.radnews-header-pro .navigation {
    position: relative;
    z-index: 7;
}

body.radnews-header-pro .navigation .section-inner {
    background: linear-gradient(90deg, rgba(0, 130, 173, 0.94), rgba(0, 147, 194, 0.94));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.radnews-header-pro .primary-menu > li > a {
    transition: background 0.2s ease, transform 0.2s ease;
}

body.radnews-header-pro .primary-menu > li > a:hover,
body.radnews-header-pro .primary-menu > li > a:focus-visible {
    transform: translateY(-1px);
}

/* --- Верхняя полоска: «О проекте» + популярные рубрики --- */

.navigation .section-inner .primary-menu.rn-nav-with-cats {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    float: none;
}

.navigation .section-inner .primary-menu.rn-nav-with-cats > li {
    float: none;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
}

.navigation .section-inner .primary-menu.rn-nav-with-cats > li.page_item,
.navigation .section-inner .primary-menu.rn-nav-with-cats > li.menu-item:not(.rn-nav-cat) {
    flex: 0 1 auto;
}

.navigation .section-inner .primary-menu.rn-nav-with-cats > li.rn-nav-cat {
    flex: 1 1 0;
}

.navigation .section-inner .primary-menu.rn-nav-with-cats > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    width: 100%;
    padding: 18px 10px;
    font-size: clamp(0.62rem, 1.1vw, 0.78rem);
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navigation .section-inner .primary-menu.rn-nav-with-cats > li.rn-nav-cat > a::before {
    flex: 0 0 auto;
    font-family: FontAwesome;
    font-weight: normal;
    font-size: 0.95em;
    content: var(--rn-nav-icon, "\f07b");
    opacity: 0.92;
}

.navigation .section-inner .primary-menu.rn-nav-with-cats > li.rn-nav-cat > a:hover,
.navigation .section-inner .primary-menu.rn-nav-with-cats > li.rn-nav-cat > a:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

.navigation .section-inner .primary-menu.rn-nav-with-cats > li:last-child::after {
    display: none;
}

.mobile-menu.rn-nav-with-cats .rn-nav-cat a::before {
    font-family: FontAwesome;
    margin-right: 0.45em;
    content: var(--rn-nav-icon, "\f07b");
}

/* --- Калькулятор шринкфляции внизу сайдбара --- */

.sidebar .shrinkflation-calculator-widget {
    margin-top: 1.5rem;
    margin-bottom: 0;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #2e8b57 0%, #3d9970 45%, #1e6b45 100%);
    text-align: center;
    box-shadow: 0 4px 16px rgba(30, 107, 69, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sidebar .shrinkflation-calculator-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 107, 69, 0.28);
}

.sidebar .shrinkflation-calculator-widget a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sidebar .shrinkflation-calculator-widget .icon {
    font-size: 1.35rem;
    line-height: 1;
}

@media (max-width: 1100px) {
    .navigation .section-inner .primary-menu.rn-nav-with-cats > li > a {
        padding: 14px 5px;
        letter-spacing: 0.03em;
        font-size: clamp(0.58rem, 0.95vw, 0.72rem);
    }
}

/* На мобильных полоска скрыта — только выезжающее mobile-menu (без дубля «О проекте») */
@media (max-width: 849px) {
    .navigation {
        display: none !important;
    }

    .navigation .section-inner .primary-menu.rn-nav-with-cats {
        display: none !important;
    }

    /* Hero перекрывал пункты: меню поверх фонового слоя */
    .header-wrapper--radnews .mobile-menu {
        position: relative;
        z-index: 25;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .header-wrapper--radnews .mobile-menu > li {
        position: relative;
        z-index: 1;
    }

    .header-wrapper--radnews .mobile-menu a {
        color: #fff !important;
        visibility: visible;
        opacity: 1;
    }

    .header-wrapper--radnews .mobile-menu .rn-nav-cat__label {
        color: #fff;
    }

    /* Страницы меток: название метки с пиктограммой вместо названия сайта */
    body.radnews-tag-pro .blog-title {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    body.radnews-tag-pro .blog-description.rn-archive-masthead {
        display: block !important;
        margin: 0 3.25rem 0 0;
        padding: 0;
        font-size: clamp(1.15rem, 3.6vw, 1.55rem);
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: none;
        line-height: 1.25;
        color: rgba(255, 255, 255, 0.96);
        animation: none;
    }

    body.radnews-tag-pro .blog-description.rn-archive-masthead::before {
        font-size: 0.95em;
        color: #fcd34d;
        text-shadow: 0 0 18px rgba(252, 211, 77, 0.35);
    }
}

@media (min-width: 850px) {
    .navigation .section-inner .primary-menu.rn-nav-with-cats {
        display: flex !important;
    }
}

body.radnews-home-pro .posts .post.rn-feed-card {
    position: relative;
    width: 47%;
    display: inline-block;
    vertical-align: top;
    border: none;
    padding: 0;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

/* Календарь /kalendar/: сетка spotlight — не ленточные 47% */
body.radnews-calendar-page .rn-cal-spotlight__grid.posts .post.rn-feed-card,
body.radnews-calendar-page .posts.rn-cal-spotlight__grid .post.rn-feed-card {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    opacity: 1;
    transform: none;
}

body.radnews-calendar-page .rn-cal-spotlight__item .post.rn-feed-card > .rn-feed-card__cat {
    position: absolute;
    top: auto;
    bottom: 0.75rem;
    left: auto;
    right: 0.75rem;
    z-index: 6;
    max-width: min(48%, 8.5rem);
    text-decoration: none;
    color: #fff;
}

body.radnews-calendar-page .rn-cal-spotlight__item .rn-feed-card--has-cat .rn-feed-card__content {
    padding-top: 1rem;
    padding-bottom: 2.1rem;
}

/* Spotlight: карточки как на главной, но с stagger-появлением */
body.radnews-calendar-page .rn-cal-spotlight__grid.posts {
    display: grid !important;
    flex-wrap: unset !important;
}

body.radnews-calendar-page .rn-cal-spotlight__item .post.rn-feed-card .rn-feed-card__link,
body.radnews-calendar-page .rn-cal-spotlight__item .post.rn-feed-card .rn-feed-card__content {
    min-height: clamp(9.5rem, 24vw, 12rem);
}

body.radnews-calendar-page .rn-cal-spotlight__item .post.rn-feed-card.rn-bg-card--visible {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    animation: none;
}

body.radnews-calendar-page .rn-cal-spotlight__item.is-rn-visible .post.rn-feed-card.rn-bg-card--visible {
    animation: rn-cal-spot-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--rn-feed-i, 0) * 75ms + 0.04s);
}

@keyframes rn-cal-spot-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.radnews-home-pro .posts .post.rn-feed-card:not(.rn-bg-card--visible) {
    opacity: 0;
    transform: translateY(14px);
}

body.radnews-home-pro .posts .rn-feed-card + .rn-feed-card {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}

body.radnews-home-pro .posts .rn-feed-card:nth-child(2) {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}

body.radnews-home-pro .posts .rn-feed-card:nth-child(2n) {
    margin-left: 5%;
}

body.radnews-home-pro .posts .rn-feed-card.rn-bg-card--visible {
    animation: rn-pop-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--rn-feed-i, 0) * 55ms);
}

body.radnews-home-pro .posts .rn-feed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
}

body.radnews-home-pro .widget-title::before {
    font-family: FontAwesome;
    margin-right: 0.4em;
    color: #0093c2;
}

body.radnews-home-pro .widget_tag_cloud .widget-title::before { content: "\f02c"; }
body.radnews-home-pro .widget_categories .widget-title::before { content: "\f0ca"; }

/* --- Карточки с фоном-картинкой (лента + популярное) --- */

@keyframes rn-pop-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rn-pop-shine {
    0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
    35% { opacity: 0.45; }
    100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}

body.radnews-home-pro .widget.popularitypostswidget.rn-popular-widget .widget-title::before {
    font-family: FontAwesome;
    content: "\f06d";
    margin-right: 0.4em;
    color: #0093c2;
}

body.radnews-home-pro .rn-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

body.radnews-home-pro .rn-popular-list > li {
    margin: 0;
    padding: 0;
    border: none;
}

body.radnews-home-pro .rn-feed-card--no-image {
    --rn-feed-bg: linear-gradient(135deg, #1e3a5f 0%, #0093c2 55%, #2c5282 100%);
}

body.radnews-home-pro .rn-popular-card--no-image {
    --rn-pop-bg: linear-gradient(135deg, #1e3a5f 0%, #0093c2 55%, #2c5282 100%);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.14);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

body.radnews-home-pro .rn-popular-card.rn-bg-card--visible {
    animation: rn-pop-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--rn-pop-i, 0) * 70ms);
}

body.radnews-home-pro .rn-feed-card__link,
body.radnews-home-pro .rn-popular-card__link {
    position: relative;
    display: block;
    padding: 0;
    text-decoration: none !important;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
}

body.radnews-home-pro .rn-feed-card__link {
    min-height: 9.5rem;
}

body.radnews-home-pro .rn-feed-card--no-image .rn-feed-card__link {
    background-image: var(--rn-feed-bg);
    background-size: cover;
    background-position: center;
}

body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__link::before {
    content: "";
    position: absolute;
    inset: -4%;
    z-index: 0;
    background-image: var(--rn-feed-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(120% 85% at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
        linear-gradient(
            180deg,
            rgba(6, 14, 26, 0.05) 0%,
            rgba(6, 14, 26, 0.35) 42%,
            rgba(4, 10, 20, 0.92) 100%
        );
    pointer-events: none;
}

body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__link:hover::before,
body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__link:focus-visible::before {
    transform: scale(1.1);
}

body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__overlay {
    background: linear-gradient(
        180deg,
        rgba(8, 18, 32, 0.02) 0%,
        rgba(8, 18, 32, 0.28) 50%,
        rgba(4, 10, 20, 0.55) 100%
    );
}

body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__link:hover .rn-feed-card__overlay,
body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__link:focus-visible .rn-feed-card__overlay {
    background: linear-gradient(
        180deg,
        rgba(8, 18, 32, 0) 0%,
        rgba(8, 18, 32, 0.2) 45%,
        rgba(4, 10, 20, 0.48) 100%
    );
}

body.radnews-home-pro .rn-popular-card__link {
    min-height: 7.5rem;
}

body.radnews-home-pro .rn-popular-card--no-image .rn-popular-card__link {
    background-image: var(--rn-pop-bg);
    background-size: cover;
    background-position: center;
}

body.radnews-home-pro .rn-popular-card--has-image .rn-popular-card__link::before {
    content: "";
    position: absolute;
    inset: -4%;
    z-index: 0;
    background-image: var(--rn-pop-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

body.radnews-home-pro .rn-popular-card--has-image .rn-popular-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 14, 26, 0.08) 0%,
        rgba(4, 10, 20, 0.9) 100%
    );
    pointer-events: none;
}

body.radnews-home-pro .rn-popular-card--has-image .rn-popular-card__link:hover::before,
body.radnews-home-pro .rn-popular-card--has-image .rn-popular-card__link:focus-visible::before {
    transform: scale(1.1);
}

body.radnews-home-pro .rn-feed-card__overlay,
body.radnews-home-pro .rn-popular-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(8, 18, 32, 0.15) 0%,
        rgba(8, 18, 32, 0.55) 48%,
        rgba(6, 14, 26, 0.88) 100%
    );
    transition: background 0.35s ease, opacity 0.35s ease;
}

body.radnews-home-pro .rn-feed-card__shine,
body.radnews-home-pro .rn-popular-card__shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

body.radnews-home-pro .rn-feed-card__shine::after,
body.radnews-home-pro .rn-popular-card__shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 48%,
        transparent 100%
    );
    transform: translateX(-120%) skewX(-18deg);
}

body.radnews-home-pro .rn-feed-card__content,
body.radnews-home-pro .rn-popular-card__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.1rem 1rem;
}

body.radnews-home-pro .rn-feed-card__content {
    min-height: 9.5rem;
    justify-content: space-between;
}

body.radnews-home-pro .rn-popular-card__content {
    min-height: 7.5rem;
    padding: 0.85rem 1rem 0.9rem;
    gap: 0.45rem;
}

body.radnews-home-pro .rn-feed-card__cat {
    position: absolute;
    top: auto;
    bottom: 0.82rem;
    left: auto;
    right: 0.85rem;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    max-width: min(46%, 9.5rem);
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 147, 194, 0.52);
    backdrop-filter: blur(6px);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

body.radnews-home-pro .rn-feed-card__cat span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

body.radnews-home-pro .rn-feed-card--has-cat .rn-feed-card__content {
    padding-bottom: 2.15rem;
}

body.radnews-home-pro .rn-feed-card--has-cat .rn-feed-card__foot {
    max-width: calc(100% - 5.25rem);
    margin-right: auto;
}

body.radnews-category-pro .post.rn-feed-card > .rn-feed-card__cat,
body.radnews-tag-pro .post.rn-feed-card > .rn-feed-card__cat,
body.radnews-calendar-day-page .post.rn-feed-card > .rn-feed-card__cat {
    position: absolute;
    top: auto;
    bottom: 0.82rem;
    left: auto;
    right: 0.85rem;
    z-index: 6;
    max-width: min(46%, 9.5rem);
    text-decoration: none;
    color: #fff;
}

body.radnews-category-pro .rn-feed-card--has-cat .rn-feed-card__content,
body.radnews-tag-pro .rn-feed-card--has-cat .rn-feed-card__content,
body.radnews-calendar-day-page .rn-feed-card--has-cat .rn-feed-card__content {
    padding-bottom: 2.15rem;
}

body.radnews-category-pro .rn-feed-card--has-cat .rn-feed-card__foot,
body.radnews-tag-pro .rn-feed-card--has-cat .rn-feed-card__foot {
    max-width: calc(100% - 5.25rem);
    margin-right: auto;
}

body.radnews-home-pro .rn-feed-card__cat::before {
    font-family: FontAwesome;
    content: "\f02b";
    font-size: 0.68rem;
    font-weight: normal;
}

body.radnews-home-pro .rn-feed-card__cat:hover {
    background: rgba(0, 147, 194, 0.72);
    transform: translateY(-1px);
}

body.radnews-home-pro .rn-feed-card__title,
body.radnews-home-pro .rn-popular-card__title {
    margin: 0;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    transition: color 0.25s ease;
}

body.radnews-home-pro .rn-feed-card__title {
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
}

body.radnews-home-pro .rn-popular-card__title {
    font-size: 0.9rem;
}

body.radnews-home-pro .rn-popular-card__title--clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

body.radnews-home-pro .rn-feed-card__foot,
body.radnews-home-pro .rn-popular-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.88);
}

body.radnews-home-pro .rn-popular-card__views {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 147, 194, 0.35);
    backdrop-filter: blur(6px);
    font-variant-numeric: tabular-nums;
}

body.radnews-home-pro .rn-popular-card__views::before {
    font-family: FontAwesome;
    content: "\f06e";
    font-size: 0.7rem;
    font-weight: normal;
    opacity: 0.95;
}

body.radnews-home-pro .rn-feed-card__date::before,
body.radnews-home-pro .rn-popular-card__date::before {
    font-family: FontAwesome;
    content: "\f073";
    margin-right: 0.28em;
    font-weight: normal;
    opacity: 0.85;
}

body.radnews-home-pro .rn-popular-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

body.radnews-home-pro .rn-feed-card__link:hover .rn-feed-card__overlay,
body.radnews-home-pro .rn-feed-card__link:focus-visible .rn-feed-card__overlay,
body.radnews-home-pro .rn-popular-card__link:hover .rn-popular-card__overlay,
body.radnews-home-pro .rn-popular-card__link:focus-visible .rn-popular-card__overlay {
    background: linear-gradient(
        180deg,
        rgba(8, 18, 32, 0.08) 0%,
        rgba(8, 18, 32, 0.42) 45%,
        rgba(6, 14, 26, 0.78) 100%
    );
}

body.radnews-home-pro .rn-feed-card__link:hover .rn-feed-card__title,
body.radnews-home-pro .rn-feed-card__link:focus-visible .rn-feed-card__title,
body.radnews-home-pro .rn-popular-card__link:hover .rn-popular-card__title,
body.radnews-home-pro .rn-popular-card__link:focus-visible .rn-popular-card__title {
    color: #b8ecff;
}

body.radnews-home-pro .rn-feed-card__link:hover .rn-feed-card__shine::after,
body.radnews-home-pro .rn-feed-card__link:focus-visible .rn-feed-card__shine::after,
body.radnews-home-pro .rn-popular-card__link:hover .rn-popular-card__shine::after,
body.radnews-home-pro .rn-popular-card__link:focus-visible .rn-popular-card__shine::after {
    animation: rn-pop-shine 0.85s ease-out;
}

@media (max-width: 860px) {
    body.radnews-home-pro .posts .post.rn-feed-card {
        width: 100%;
        display: block;
        margin-left: 0 !important;
    }
}

/* --- Плотная сетка карточек (главная, архивы, single) --- */

body.radnews-home-pro .content,
body.radnews-single-pro .content,
body.radnews-category-pro .content,
body.radnews-tag-pro .content,
body.radnews-home-pro .sidebar,
body.radnews-single-pro .sidebar,
body.radnews-category-pro .sidebar,
body.radnews-tag-pro .sidebar {
    padding-top: 1.65rem;
    padding-bottom: 1.85rem;
}

body.radnews-home-pro .wrapper.section-inner > .content,
body.radnews-category-pro .wrapper.section-inner > .content,
body.radnews-tag-pro .wrapper.section-inner > .content {
    padding-top: 0.1rem;
}

body.radnews-home-pro .posts,
body.radnews-category-pro .posts,
body.radnews-tag-pro .posts {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.5rem 2.75%;
    margin-top: 0;
}

body.radnews-home-pro .posts .post,
body.radnews-category-pro .posts .post,
body.radnews-tag-pro .posts .post {
    padding-top: 0 !important;
    border-top: none !important;
    margin-top: 0 !important;
}

body.radnews-home-pro .posts .post.rn-feed-card,
body.radnews-category-pro .posts .post.rn-feed-card,
body.radnews-tag-pro .posts .post.rn-feed-card {
    position: relative;
    width: calc(50% - 1.375%);
    margin: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
}

body.radnews-home-pro .posts .rn-feed-card + .rn-feed-card,
body.radnews-category-pro .posts .rn-feed-card + .rn-feed-card,
body.radnews-tag-pro .posts .rn-feed-card + .rn-feed-card,
body.radnews-home-pro .posts .rn-feed-card:nth-child(2),
body.radnews-category-pro .posts .rn-feed-card:nth-child(2),
body.radnews-tag-pro .posts .rn-feed-card:nth-child(2),
body.radnews-home-pro .posts .rn-feed-card:nth-child(2n),
body.radnews-category-pro .posts .rn-feed-card:nth-child(2n),
body.radnews-tag-pro .posts .rn-feed-card:nth-child(2n) {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
    margin-left: 0 !important;
}

body.radnews-home-pro .rn-feed-card__link,
body.radnews-category-pro .rn-feed-card__link,
body.radnews-tag-pro .rn-feed-card__link {
    min-height: 7.5rem;
}

body.radnews-home-pro .rn-feed-card__content,
body.radnews-category-pro .rn-feed-card__content,
body.radnews-tag-pro .rn-feed-card__content {
    min-height: 7.5rem;
    padding: 0.72rem 0.82rem 0.78rem;
    gap: 0.35rem;
}

body.radnews-home-pro .rn-feed-card__title,
body.radnews-category-pro .rn-feed-card__title,
body.radnews-tag-pro .rn-feed-card__title {
    font-size: clamp(0.9rem, 1.45vw, 1.08rem);
    line-height: 1.32;
}

body.radnews-home-pro .rn-popular-list,
body.radnews-single-pro .rn-popular-list {
    gap: 0.5rem;
}

body.radnews-home-pro .rn-popular-card__link,
body.radnews-single-pro .rn-popular-card__link {
    min-height: 6.25rem;
}

body.radnews-home-pro .rn-popular-card__content,
body.radnews-single-pro .rn-popular-card__content {
    min-height: 6.25rem;
    padding: 0.65rem 0.82rem 0.72rem;
    gap: 0.32rem;
}

body.radnews-home-pro .rn-popular-card__title,
body.radnews-single-pro .rn-popular-card__title {
    font-size: 0.84rem;
    line-height: 1.3;
}

body.radnews-home-pro .sidebar .widget,
body.radnews-single-pro .sidebar .widget,
body.radnews-category-pro .sidebar .widget,
body.radnews-tag-pro .sidebar .widget {
    margin-bottom: 1rem !important;
}

body.radnews-home-pro .sidebar .widget + .widget,
body.radnews-single-pro .sidebar .widget + .widget,
body.radnews-category-pro .sidebar .widget + .widget,
body.radnews-tag-pro .sidebar .widget + .widget {
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
}

.sidebar .widget_categories.rn-categories-widget {
    margin-bottom: 0.75rem;
}

.sidebar .widget_categories .widget-title {
    margin-bottom: 0.5rem;
}

.sidebar .widget_categories .widget-content > ul {
    gap: 0.3rem;
}

.sidebar .widget_categories .rn-cat-link {
    padding: 0.46rem 0.58rem;
    gap: 0.55rem;
}

.sidebar .widget_tag_cloud.rn-tags-widget .tagcloud {
    gap: 0.38rem;
}

.sidebar .widget_tag_cloud.rn-tags-widget .tagcloud a.rn-tag-link {
    padding: 0.3rem 0.58rem 0.3rem 0.32rem !important;
}

body.radnews-category-pro .page-title--archive-paged,
body.radnews-category-pro .page-title--category-paged,
body.radnews-tag-pro .page-title--archive-paged {
    margin-bottom: 0.55rem;
    padding: 0.4rem 0;
}

@media (max-width: 900px) {
    body.radnews-home-pro .posts,
    body.radnews-category-pro .posts,
    body.radnews-tag-pro .posts {
        gap: 0.45rem;
    }

    body.radnews-home-pro .posts .post.rn-feed-card,
    body.radnews-category-pro .posts .post.rn-feed-card,
    body.radnews-tag-pro .posts .post.rn-feed-card {
        width: 100%;
    }

    .sidebar .widget {
        margin: 0 0 1rem 0 !important;
    }

    .sidebar .widget + .widget {
        padding-top: 0.75rem !important;
        border-top: 1px solid #e8ecf0;
    }
}

@media (max-width: 860px) {
    body.radnews-home-pro .posts .post.rn-feed-card,
    body.radnews-category-pro .posts .post.rn-feed-card,
    body.radnews-tag-pro .posts .post.rn-feed-card {
        width: 100%;
    }
}

/* --- Сайдбар: рубрики наверху, иконки, карточки --- */

.sidebar .widget_categories.rn-categories-widget {
    margin-bottom: 1.35rem;
}

.sidebar .widget_categories .widget-title {
    margin-bottom: 0.85rem;
}

.sidebar .widget_categories .widget-title::before,
body.radnews-home-pro .widget_categories .widget-title::before {
    font-family: FontAwesome;
    content: "\f0ca";
    margin-right: 0.4em;
    color: #0093c2;
}

.sidebar .widget_categories .widget-content > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sidebar .widget_categories .widget-content li,
.sidebar .widget_categories .widget-content ul.children {
    margin: 0;
    padding: 0;
    border: none;
    list-style: none;
}

.sidebar .widget_categories .widget-content ul.children {
    margin-top: 0.35rem;
    margin-left: 0.65rem;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(0, 147, 194, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar .widget_categories li::before {
    display: none !important;
    content: none !important;
}

.sidebar .widget_categories .rn-cat-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.58rem 0.72rem;
    border-radius: 10px;
    border: 1px solid #e8ecf1;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    color: #1a202c !important;
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.3;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
    animation: rn-cat-in 0.45s ease-out both;
    animation-delay: calc(var(--rn-cat-i, 0) * 35ms);
}

.sidebar .widget_categories .rn-cat-item--child .rn-cat-link {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.62rem;
}

.sidebar .widget_categories .rn-cat-link::before {
    flex: 0 0 2.1rem;
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-family: FontAwesome;
    font-weight: normal;
    font-size: 0.95rem;
    content: var(--rn-cat-icon, "\f07b");
    color: #fff;
    background: linear-gradient(145deg, #0093c2 0%, #2c5282 100%);
    box-shadow: 0 3px 10px rgba(0, 147, 194, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sidebar .widget_categories .rn-cat-link:hover,
.sidebar .widget_categories .rn-cat-link:focus-visible {
    color: #0093c2 !important;
    border-color: rgba(0, 147, 194, 0.35);
    transform: translateX(3px);
    box-shadow: 0 6px 16px rgba(0, 147, 194, 0.14);
}

.sidebar .widget_categories .rn-cat-link:hover::before,
.sidebar .widget_categories .rn-cat-link:focus-visible::before {
    transform: scale(1.06);
    box-shadow: 0 5px 14px rgba(0, 147, 194, 0.38);
}

.sidebar .widget_categories .rn-cat-link[data-rn-cat="literatura"]::before,
.sidebar .widget_categories .rn-cat-link[data-rn-cat="literature"]::before {
    background: linear-gradient(145deg, #6b46c1 0%, #44337a 100%);
}

.sidebar .widget_categories .rn-cat-link[data-rn-cat="obrazovanie"]::before,
.sidebar .widget_categories .rn-cat-link[data-rn-cat="education"]::before {
    background: linear-gradient(145deg, #2b6cb0 0%, #2c5282 100%);
}

.sidebar .widget_categories .rn-cat-link[data-rn-cat="ekonomika"]::before,
.sidebar .widget_categories .rn-cat-link[data-rn-cat="economics"]::before {
    background: linear-gradient(145deg, #38a169 0%, #276749 100%);
}

.sidebar .widget_categories .rn-cat-link[data-rn-cat="politika"]::before,
.sidebar .widget_categories .rn-cat-link[data-rn-cat="politics"]::before {
    background: linear-gradient(145deg, #c05621 0%, #9c4221 100%);
}

.sidebar .widget_categories .rn-cat-link[data-rn-cat="zdorove"]::before,
.sidebar .widget_categories .rn-cat-link[data-rn-cat="health"]::before {
    background: linear-gradient(145deg, #e53e3e 0%, #9b2c2c 100%);
}

.sidebar .widget_categories .rn-cat-link[data-rn-cat="puteshestviya"]::before,
.sidebar .widget_categories .rn-cat-link[data-rn-cat="travel"]::before {
    background: linear-gradient(145deg, #0ea5e9 0%, #0369a1 100%);
}

@keyframes rn-cat-in {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .rn-header-hero__feature {
        display: none;
    }

    .rn-header-hero__filmstrip {
        bottom: 6px;
        gap: 6px;
        padding: 4px 8px;
    }

    .rn-header-hero__thumb {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    body.radnews-header-pro .header .section-inner {
        border-radius: 12px;
        padding: 0.85rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rn-header-hero__slide.is-active::before {
        animation: none;
        transform: scale(1.05);
    }

    .rn-header-hero__feature-link::after,
    .rn-header-hero.is-playing .rn-header-hero__progress-bar {
        animation: none;
    }

    body.radnews-header-pro .header-wrapper::before,
    body.radnews-header-pro .blog-title,
    body.radnews-header-pro .rn-header-hero__feature {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .sidebar .widget_categories .rn-cat-link {
        animation: none;
    }
    .sidebar .widget_categories .rn-cat-link:hover,
    .sidebar .widget_categories .rn-cat-link:focus-visible {
        transform: none;
    }
    .sidebar .widget_categories .rn-cat-link:hover::before,
    .sidebar .widget_categories .rn-cat-link:focus-visible::before {
        transform: none;
    }
    body.radnews-home-pro .posts .rn-feed-card.rn-bg-card--visible,
    body.radnews-home-pro .rn-popular-card.rn-bg-card--visible {
        animation: none;
        opacity: 1;
        transform: none;
    }
    body.radnews-home-pro .posts .rn-feed-card:hover,
    body.radnews-home-pro .rn-popular-card:hover {
        transform: none;
    }
    body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__link::before,
    body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__link:hover::before,
    body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__link:focus-visible::before {
        transform: scale(1.02);
        transition: none;
    }
    body.radnews-home-pro .rn-feed-card__link:hover .rn-feed-card__shine::after,
    body.radnews-home-pro .rn-feed-card__link:focus-visible .rn-feed-card__shine::after,
    body.radnews-home-pro .rn-popular-card__link:hover .rn-popular-card__shine::after,
    body.radnews-home-pro .rn-popular-card__link:focus-visible .rn-popular-card__shine::after {
        animation: none;
    }
}

/* --- Подвал сайта --- */

.rn-site-footer {
    position: relative;
    overflow: hidden;
}

.rn-site-footer__ribbon {
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #0093c2, #5a9fd4, #2c5282, #0093c2);
    background-size: 200% 100%;
    animation: rn-ribbon 6s linear infinite;
}

.rn-site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 2.5rem 0 2rem;
}

.rn-site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem 0.75rem;
    margin-top: 0.35rem;
}

.rn-site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.rn-site-footer__link .fa {
    color: #0093c2;
    font-size: 0.95em;
}

.rn-site-footer__link:hover,
.rn-site-footer__link:focus-visible {
    transform: translateY(-2px);
    background: rgba(0, 147, 194, 0.22);
    border-color: rgba(0, 147, 194, 0.45);
    color: #fff !important;
    outline: none;
}

.rn-site-footer__link--calendar .fa {
    color: #7dd3fc;
}

.rn-site-footer .copyright {
    margin: 0;
}

.rn-site-footer__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 31px;
    opacity: 0.9;
}

.rn-site-footer .attribution:empty {
    display: none;
}

/* Кнопка «Наверх» — по центру высоты подвала (не обрезается overflow у .rn-site-footer) */
.credits .to-the-top,
.rn-site-footer .to-the-top {
    top: 50%;
    margin-top: -25px;
    z-index: 3;
}

.credits .to-the-top:hover,
.rn-site-footer .to-the-top:hover {
    top: 50%;
    margin-top: -30px;
}

@media (max-width: 850px) {
    .credits .to-the-top,
    .rn-site-footer .to-the-top {
        margin-top: -20px;
    }

    .credits .to-the-top:hover,
    .rn-site-footer .to-the-top:hover {
        margin-top: -23px;
    }
}

/* --- Сайдбар: бейдж даты вместо «Рубрики» --- */

.sidebar .widget.rn-sidebar-date-badge {
    margin-bottom: 1.35rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.sidebar .widget.rn-sidebar-date-badge .widget-title {
    display: none;
}

.sidebar .widget.rn-sidebar-date-badge .widget-content {
    padding: 0;
}

.sidebar .rn-sidebar-date-badge__link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sidebar .rn-sidebar-date-badge__link:hover,
.sidebar .rn-sidebar-date-badge__link:focus-visible {
    transform: translateY(-2px);
    outline: none;
}

.sidebar .rn-sidebar-date-badge__link:hover .rn-calendar-today__card,
.sidebar .rn-sidebar-date-badge__link:focus-visible .rn-calendar-today__card {
    box-shadow: 0 12px 28px rgba(0, 119, 162, 0.34);
}

.sidebar .rn-calendar-today--sidebar {
    margin: 0;
}

.sidebar .rn-calendar-today--sidebar .rn-calendar-today__card {
    padding: 0.85rem 0.9rem 0.95rem;
    cursor: pointer;
}

.sidebar .rn-calendar-today--sidebar .rn-calendar-today__weekday {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.sidebar .rn-calendar-today--sidebar .rn-calendar-today__date-num {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
}

.sidebar .rn-calendar-today--sidebar .rn-calendar-today__date-month {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
}

.sidebar .rn-calendar-today--sidebar .rn-calendar-today__year {
    margin: 0.35rem 0 0.65rem;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
}

.sidebar .rn-sidebar-date-badge__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    width: 100%;
    box-sizing: border-box;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.sidebar .rn-sidebar-date-badge__link:hover .rn-sidebar-date-badge__cta,
.sidebar .rn-sidebar-date-badge__link:focus-visible .rn-sidebar-date-badge__cta {
    background: rgba(255, 255, 255, 0.28);
}

.sidebar .rn-sidebar-date-badge__cta .fa {
    font-size: 1.1em;
    opacity: 0.9;
}

/* --- Страница календаря --- */

.rn-calendar-layout .content {
    width: 100%;
    float: none;
}

.rn-calendar-page__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 147, 194, 0.2);
}

.rn-calendar-page__header .post-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #1a202c;
}

.rn-calendar-page__header .post-title::before {
    font-family: FontAwesome;
    content: "\f073";
    margin-right: 0.4em;
    color: #0093c2;
    font-weight: normal;
}

.rn-calendar-page__lead {
    margin: 0;
    font-family: Merriweather, Georgia, serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #64748b;
    line-height: 1.5;
}

.rn-calendar-page__panel {
    max-width: 420px;
    margin: 0 auto;
    padding: 1.35rem 1.25rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #e8ecf1;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.rn-calendar-today {
    margin-bottom: 1.15rem;
}

.rn-calendar-today__card {
    text-align: center;
    padding: 1rem 1rem 1.05rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #0093c2 0%, #0077a2 55%, #005f85 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 119, 162, 0.28);
}

.rn-calendar-today__weekday {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.92;
}

.rn-calendar-today__date {
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    line-height: 1;
}

.rn-calendar-today__date-num {
    font-size: clamp(2rem, 8vw, 2.65rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.rn-calendar-today__date-month {
    font-family: Merriweather, Georgia, serif;
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    font-weight: 700;
    font-style: italic;
}

.rn-calendar-today__year {
    margin: 0.45rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    opacity: 0.9;
}

.rn-calendar-today__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    margin-top: 0.15rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.rn-calendar-today__link:hover,
.rn-calendar-today__link:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.rn-calendar-today__link .fa {
    font-size: 1.1em;
    opacity: 0.9;
}

.rn-calendar-page__widget {
    display: flex;
    justify-content: center;
}

body.radnews-calendar-page #wp-calendar {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.88rem;
}

body.radnews-calendar-page #wp-calendar caption,
body.radnews-calendar-page .rn-publication-calendar caption {
    caption-side: top;
    padding: 0 0 0.85rem;
}

.rn-cal-month-caption {
    display: block;
    text-align: center;
}

.rn-cal-month-caption__label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.rn-cal-month-caption__row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.45rem 0.55rem;
    flex-wrap: wrap;
}

.rn-cal-month-caption__month {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0093c2;
    letter-spacing: 0.02em;
}

.rn-cal-month-caption__year {
    font-size: 1rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.06em;
}

.rn-cal-month-caption--current .rn-cal-month-caption__year {
    color: #0093c2;
}

body.radnews-calendar-page #wp-calendar thead th {
    padding: 0.45rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0093c2;
    border-top: 1px solid #e8ecf1;
}

body.radnews-calendar-page #wp-calendar th,
body.radnews-calendar-page #wp-calendar td {
    padding: 0.4rem 0.35rem;
    text-align: center;
    border: 1px solid #e8ecf1;
    line-height: 1.35;
}

body.radnews-calendar-page #wp-calendar tbody a,
body.radnews-calendar-page .rn-publication-calendar tbody a {
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    display: inline-block;
    min-width: 1.6em;
    padding: 0.1em 0.25em;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

body.radnews-calendar-page #wp-calendar tbody a:hover,
body.radnews-calendar-page .rn-publication-calendar tbody a:hover {
    color: #0093c2;
    background: rgba(0, 147, 194, 0.1);
    text-decoration: none;
}

body.radnews-calendar-page .rn-publication-calendar tbody td.has-posts a {
    font-weight: 900;
    color: #0093c2;
}

body.radnews-calendar-page #wp-calendar #today {
    background: rgba(0, 147, 194, 0.12);
    border-radius: 4px;
    font-weight: 900;
}

body.radnews-calendar-page #wp-calendar tfoot td {
    border: none;
    padding-top: 0.65rem;
}

body.radnews-calendar-page #wp-calendar tfoot a {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

body.radnews-calendar-page #wp-calendar tfoot a:hover {
    color: #0093c2;
}

.rn-calendar-page__hint {
    margin: 1rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid #e8ecf1;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #64748b;
    text-align: center;
}

.rn-calendar-page__hint .fa {
    margin-right: 0.35em;
    color: #0093c2;
}

@media (max-width: 640px) {
    .rn-site-footer__nav {
        flex-direction: column;
        align-items: stretch;
    }

    .rn-site-footer__link {
        justify-content: center;
    }

    .rn-calendar-page__panel {
        padding: 1rem 0.85rem;
        max-width: 100%;
    }

    .rn-calendar-today__card {
        padding: 0.9rem 0.85rem 0.95rem;
    }

    .rn-calendar-today__date {
        flex-wrap: wrap;
    }

    .rn-calendar-today__link {
        width: 100%;
        box-sizing: border-box;
    }
}

/* --- Архив дня календаря /kalendar/27-may/ --- */

body.radnews-calendar-day-page .wrapper.section-inner.rn-calendar-day-layout {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

.rn-calendar-day-layout .content,
body.radnews-calendar-day-page .wrapper.section-inner > .content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

body.radnews-calendar-day-page .rn-calendar-day-page__article {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

body.radnews-calendar-day-page .rn-calendar-day-page__years {
    width: 100%;
}

.rn-cal-day-breadcrumbs {
    margin-bottom: 1rem;
}

.rn-cal-day-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    color: #64748b;
}

.rn-cal-day-breadcrumbs__list li + li::before {
    content: "/";
    margin-right: 0.5rem;
    color: #cbd5e1;
    font-weight: 400;
}

.rn-cal-day-breadcrumbs__list a {
    color: #0093c2;
    text-decoration: none;
    font-weight: 600;
}

.rn-cal-day-breadcrumbs__list a:hover {
    text-decoration: underline;
}

.rn-cal-day-breadcrumbs__list li[aria-current="page"] {
    color: #1e293b;
    font-weight: 700;
}

.rn-calendar-day-page__header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(0, 147, 194, 0.2);
}

.rn-calendar-day-page__header .post-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    color: #1a202c;
    line-height: 1.2;
}

.rn-calendar-day-page__header .post-title::before {
    font-family: FontAwesome;
    content: "\f073";
    margin-right: 0.35em;
    color: #0093c2;
    font-weight: normal;
}

.rn-calendar-day-page__lead {
    margin: 0;
    font-family: Merriweather, Georgia, serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #64748b;
    line-height: 1.55;
}

.rn-calendar-day-page__lead--empty a {
    color: #0093c2;
    font-weight: 700;
}

.rn-cal-day-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.rn-cal-day-nav--bottom {
    margin-top: 0.5rem;
    margin-bottom: 1.75rem;
}

.rn-cal-day-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    flex: 1 1 0;
    max-width: calc(50% - 0.4rem);
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    color: #0093c2;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rn-cal-day-nav__link--prev {
    justify-content: flex-start;
    text-align: left;
}

.rn-cal-day-nav__link--next {
    justify-content: flex-end;
    text-align: right;
}

.rn-cal-day-nav__link:hover,
.rn-cal-day-nav__link:focus-visible {
    border-color: #0093c2;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 147, 194, 0.15);
}

.rn-cal-day-nav__link .fa {
    flex-shrink: 0;
    font-size: 0.85em;
    opacity: 0.85;
}

.rn-cal-day-nav__placeholder {
    flex: 1 1 0;
    max-width: calc(50% - 0.4rem);
}

.rn-cal-day-year {
    margin-bottom: 2.5rem;
}

.rn-cal-day-year__title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin: 0 0 1.1rem;
    padding: 0 0 0.65rem;
    border-bottom: 1px solid #e2e8f0;
}

.rn-cal-day-year__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0093c2 0%, #0077a2 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(0, 147, 194, 0.28);
}

.rn-cal-day-year__count {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.rn-cal-day-year__more {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
    text-align: center;
}

body.radnews-calendar-day-page .rn-cal-day-year__posts.posts {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0 !important;
    padding: 0;
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: unset !important;
}

body.radnews-calendar-day-page .rn-cal-day-year__posts .post.rn-feed-card {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
    min-height: 220px;
    box-sizing: border-box;
}

body.radnews-calendar-day-page .rn-cal-day-year__posts .rn-feed-card:nth-child(2),
body.radnews-calendar-day-page .rn-cal-day-year__posts .rn-feed-card:nth-child(2n) {
    margin-left: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

body.radnews-calendar-day-page .rn-cal-day-year__posts .rn-feed-card__link {
    min-height: 220px;
}

.rn-calendar-day-page__footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8ecf1;
    text-align: center;
}

.rn-calendar-day-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0093c2;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.rn-calendar-day-page__back:hover,
.rn-calendar-day-page__back:focus-visible {
    background: #fff;
    border-color: #0093c2;
    transform: translateY(-1px);
}

.rn-calendar-day-page__back .fa {
    font-size: 1.05em;
}

body.radnews-calendar-page .rn-publication-calendar tfoot .rn-cal-nav-prev,
body.radnews-calendar-page .rn-publication-calendar tfoot .rn-cal-nav-next {
    text-align: left;
}

body.radnews-calendar-page .rn-publication-calendar tfoot .rn-cal-nav-next {
    text-align: right;
}

body.radnews-calendar-page .rn-publication-calendar tfoot .rn-cal-nav-center {
    text-align: center;
}

@media (max-width: 768px) {
    body.radnews-calendar-day-page {
        overflow-x: hidden;
    }

    body.radnews-calendar-day-page .wrapper.section-inner.rn-calendar-day-layout {
        max-width: 100%;
        padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
    }

    body.radnews-calendar-day-page .content,
    body.radnews-calendar-day-page .wrapper.section-inner > .content {
        max-width: 100% !important;
        width: 100% !important;
        padding-top: 1rem !important;
        padding-bottom: 1.15rem !important;
    }

    .rn-cal-day-breadcrumbs {
        margin-bottom: 0.75rem;
    }

    .rn-cal-day-breadcrumbs__list {
        font-size: 0.78rem;
        line-height: 1.45;
        gap: 0.25rem 0.4rem;
    }

    .rn-calendar-day-page__header {
        margin-bottom: 1.15rem;
        padding-bottom: 0.85rem;
    }

    .rn-calendar-day-page__header .post-title {
        font-size: clamp(1.35rem, 6vw, 1.65rem);
        line-height: 1.25;
    }

    .rn-calendar-day-page__lead {
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .rn-cal-day-nav {
        gap: 0.5rem;
        margin-bottom: 1.15rem;
    }

    .rn-cal-day-nav--bottom {
        margin-top: 0.35rem;
        margin-bottom: 1.15rem;
    }

    .rn-cal-day-nav__link {
        flex: 1 1 calc(50% - 0.25rem);
        max-width: none;
        min-height: 44px;
        padding: 0.6rem 0.7rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .rn-cal-day-nav__text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .rn-cal-day-nav__placeholder {
        flex: 1 1 calc(50% - 0.25rem);
        max-width: none;
    }

    .rn-cal-day-year {
        margin-bottom: 1.65rem;
    }

    .rn-cal-day-year__title {
        gap: 0.4rem 0.65rem;
        margin-bottom: 0.85rem;
        padding-bottom: 0.5rem;
    }

    .rn-cal-day-year__badge {
        font-size: 0.95rem;
        min-width: 2.85rem;
        padding: 0.18rem 0.55rem;
    }

    .rn-cal-day-year__count {
        font-size: 0.72rem;
        letter-spacing: 0.05em;
    }

    body.radnews-calendar-day-page .rn-cal-day-year__posts.posts {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }

    body.radnews-calendar-day-page .rn-cal-day-year__posts .post.rn-feed-card {
        min-height: 190px;
        border-radius: 10px;
    }

    body.radnews-calendar-day-page .rn-cal-day-year__posts .rn-feed-card__link {
        min-height: 190px;
    }

    body.radnews-calendar-day-page .rn-feed-card__content {
        min-height: 8rem;
        padding: 0.78rem 0.85rem 0.85rem;
        gap: 0.4rem;
    }

    body.radnews-calendar-day-page .rn-feed-card__title {
        font-size: 0.9rem;
        line-height: 1.32;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    body.radnews-calendar-day-page .rn-feed-card__cat {
        bottom: 0.62rem;
        right: 0.62rem;
        max-width: min(44%, 7rem);
        font-size: 0.54rem;
        padding: 0.15rem 0.4rem;
    }

    body.radnews-calendar-day-page .rn-feed-card__foot {
        font-size: 0.72rem;
    }

    .rn-cal-day-year__more {
        font-size: 0.76rem;
        padding: 0.55rem 0.65rem;
        line-height: 1.4;
    }

    .rn-calendar-day-page__footer {
        margin-top: 1rem;
        padding-top: 0.9rem;
    }

    .rn-calendar-day-page__back {
        display: flex;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        min-height: 44px;
        box-sizing: border-box;
        font-size: 0.82rem;
    }
}

@media (max-width: 400px) {
    .rn-cal-day-nav {
        flex-direction: column;
    }

    .rn-cal-day-nav__link,
    .rn-cal-day-nav__placeholder {
        flex: 1 1 auto;
        width: 100%;
    }

    .rn-cal-day-nav__link--next {
        justify-content: flex-start;
        text-align: left;
    }

    .rn-cal-day-nav__text {
        white-space: normal;
        text-overflow: clip;
    }
}

/* --- Главная: 2 колонки, карточки видны сразу (без пустого тёмного поля) --- */

body.radnews-home-pro .posts .post.rn-feed-card.rn-bg-card--visible {
    opacity: 1;
    transform: none;
    animation: none;
}

body.radnews-home-pro .posts .post.rn-feed-card {
    width: calc(50% - 1.375%) !important;
    margin-left: 0 !important;
    margin-bottom: 0.75rem;
}

body.radnews-home-pro .posts .post.rn-feed-card .rn-feed-card__link,
body.radnews-home-pro .posts .post.rn-feed-card .rn-feed-card__content {
    min-height: 7.5rem;
}

@media (max-width: 860px) {
    body.radnews-home-pro .posts .post.rn-feed-card {
        width: 100% !important;
        margin-bottom: 0.65rem;
    }

    body.radnews-home-pro .rn-feed-card__cat,
    body.radnews-category-pro .post.rn-feed-card > .rn-feed-card__cat,
    body.radnews-tag-pro .post.rn-feed-card > .rn-feed-card__cat,
    body.radnews-calendar-day-page .post.rn-feed-card > .rn-feed-card__cat,
    body.radnews-calendar-page .rn-cal-spotlight__item .post.rn-feed-card > .rn-feed-card__cat {
        bottom: 0.68rem;
        right: 0.68rem;
        max-width: min(44%, 7.25rem);
        font-size: 0.56rem;
        padding: 0.16rem 0.42rem;
        letter-spacing: 0.04em;
    }

    body.radnews-home-pro .rn-feed-card--has-cat .rn-feed-card__foot,
    body.radnews-category-pro .rn-feed-card--has-cat .rn-feed-card__foot,
    body.radnews-tag-pro .rn-feed-card--has-cat .rn-feed-card__foot {
        max-width: calc(100% - 4.75rem);
        font-size: 0.68rem;
    }

    body.radnews-home-pro .rn-feed-card__title,
    body.radnews-category-pro .rn-feed-card__title,
    body.radnews-tag-pro .rn-feed-card__title {
        padding-right: 0;
    }
}

/* ============================================================
   UI-fix 21.11.2026: навигация и читаемость карточек
   ============================================================ */

/* 1) Полоска навигации: пункты по ширине содержимого, перенос на
   вторую строку, центрирование — вместо сжатых равных колонок
   с обрезанными словами. */
.navigation .section-inner .primary-menu.rn-nav-with-cats {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0;
}

.navigation .section-inner .primary-menu.rn-nav-with-cats > li.rn-nav-cat {
    flex: 0 1 auto;
}

/* 2) Карточки ленты/популярного: скрим под текстом усилён —
   белые заголовки читаемы и на светлых фото. */
body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__overlay,
body.radnews-home-pro .rn-popular-card__overlay {
    background: linear-gradient(
        180deg,
        rgba(8, 18, 32, 0.40) 0%,
        rgba(8, 18, 32, 0.58) 45%,
        rgba(4, 10, 20, 0.85) 100%
    );
}

body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__link:hover .rn-feed-card__overlay,
body.radnews-home-pro .rn-feed-card--has-image .rn-feed-card__link:focus-visible .rn-feed-card__overlay {
    background: linear-gradient(
        180deg,
        rgba(8, 18, 32, 0.32) 0%,
        rgba(8, 18, 32, 0.50) 45%,
        rgba(4, 10, 20, 0.78) 100%
    );
}

body.radnews-home-pro .rn-feed-card__title,
body.radnews-home-pro .rn-popular-card__title {
    text-shadow:
        0 1px 2px rgba(4, 10, 20, 0.70),
        0 0 16px rgba(4, 10, 20, 0.40);
}
