:root {
    --site-font-body-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    --site-font-heading-family: var(--site-font-body-family);

    --site-font-body: 17px;
    --site-font-body-weight: 400;
    --site-font-body-style: normal;
    --site-font-body-sm: 16px;
    --site-font-list-body-weight: 400;
    --site-font-list-body-style: normal;
    --site-font-meta: 14px;
    --site-font-caption: 13px;
    --site-font-lead: 18px;
    --site-font-article-dek-weight: 400;
    --site-font-article-dek-style: normal;
    --site-font-article-title: 18px;
    --site-font-list-title-weight: 700;
    --site-font-list-title-style: normal;
    --site-font-section-title: 20px;
    --site-font-page-title: 26px;
    --site-font-page-title-weight: 700;
    --site-font-page-title-style: normal;
    --site-font-article-view-title: 28px;
    --site-font-article-view-title-weight: 800;
    --site-font-article-view-title-style: normal;
    --site-font-sidebar-title: 17px;
    --site-font-intro: 18px;

    --site-line-body: 1.65;
    --site-line-tight: 1.35;
    --site-line-relaxed: 1.7;

    --site-color-text: #1f2937;
    --site-color-text-muted: #64748b;
    --site-color-article-title: #0f172a;
    --site-color-article-title-hover: #DB002A;
    --site-color-link: #0079B0;
    --site-color-link-hover: #005a82;
    --site-color-accent: #DB002A;
    --site-color-heading: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--site-font-body-family);
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    background: #f9fafb;
    color: var(--site-color-text);
    font-size: var(--site-font-body);
    line-height: var(--site-line-body);
    font-weight: var(--site-font-body-weight);
    font-style: var(--site-font-body-style);
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
iframe,
video {
    max-width: 100%;
}

.site-shell {
    width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--site-color-link);
    transition: color 0.2s;
}

a:hover {
    color: var(--site-color-link-hover);
    text-decoration: underline;
}

.site-shell h1,
.site-shell h2,
.site-shell h3,
.site-shell h4,
.site-shell h5,
.site-shell h6 {
    font-family: var(--site-font-heading-family);
    color: var(--site-color-heading);
    line-height: var(--site-line-tight);
}

.container {
    max-width: 90%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(10px, 2vw, 20px);
}

/* Notification Block */
.notification {
    background: #fff3cd;
    color: #856404;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #ffeeba;
}

/* Верхняя часть */
.top-section {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 10px 0 12px;
    border-bottom: 2px solid #DB002A;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.top-content {
    display: grid;
    grid-template-columns: minmax(160px, 320px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 20px;
}

.logo {
    display: flex;
    align-items: center;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.logo img {
    width: 21vw;
    max-width: 310px;
    min-width: 155px;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 12px 0;
}

.nav-search-wrapper {
    display: contents;
}

.search-bar {
    grid-column: 2;
    justify-self: center;
    width: min(100%, 680px);
    max-width: 680px;
    min-width: 220px;
}

.search-header {
    margin-bottom: 6px;
    text-align: center;
}

.search-header h2 {
    font-family: var(--site-font-heading-family);
    font-size: 16px;
    color: #0079B0;
    font-weight: 600;
    line-height: 1.2;
}

.search-header .search-level {
    font-size: 12px;
    font-weight: 600;
}

.search-bar .search-form {
    width: 100%;
    margin: 0;
}

.header-actions {
    display: none;
    align-items: center;
    gap: 8px;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.search-toggle,
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d8dee4;
    border-radius: 10px;
    background: #f8fafb;
    color: #005566;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.search-toggle:hover,
.nav-toggle:hover {
    background: #eef6fa;
    border-color: #0079B0;
}

.search-toggle-text {
    font-size: 14px;
    font-weight: 600;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1100;
}

body.nav-open {
    overflow: hidden;
}

.nav-toggle {
    display: none;
}

.nav-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.site-nav {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.site-nav ul li a {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.site-nav ul li a:hover {
    color: #DB002A;
}

.language-switch {
    background: #DB002A;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    border-radius: 6px;
}

.language-switch:hover {
    background: #b30022;
    text-decoration: none;
}

.site-nav ul li.language-switch a {
    color: #fff;
}

.language-switch a {
    color: #fff;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-input-group:focus-within {
    border-color: #0079B0;
    box-shadow: 0 4px 14px rgba(0, 121, 176, 0.15);
}

.search-bar input[type="search"],
.search-bar input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #333;
    border-radius: 10px 0 0 10px;
    min-height: 44px;
}

.search-submit {
    padding: 11px 16px;
    border: none;
    background: #0079B0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0 10px 10px 0;
    min-height: 44px;
    flex-shrink: 0;
}

.search-submit:hover {
    background: #005f8a;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1200;
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
}

.search-suggest-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f2f4;
}

.search-suggest-item:last-child {
    border-bottom: 0;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
    background: #f3f9fc;
}

.search-suggest-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0A246A;
    line-height: 1.35;
}

.search-suggest-sub {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.35;
}

.search-suggestion {
    display: block;
    width: fit-content;
    margin: 6px auto 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 12px;
    color: #0079B0;
    border-bottom: 1px dashed #0079B0;
    cursor: pointer;
}

.search-suggestion:hover {
    color: #DB002A;
    border-bottom-color: #DB002A;
}

.search-page {
    margin-top: 8px;
}

.search-page-form {
    margin-bottom: 18px;
}

.search-page-input-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-page-input-wrap input[type="search"] {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    font-size: 16px;
}

.search-page-input-wrap button {
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: #0079B0;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.search-page-hint,
.search-page-message,
.search-page-empty {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.search-page-summary {
    margin: 0 0 18px;
    font-size: 15px;
}

.search-results {
    display: grid;
    gap: 14px;
}

.search-result-item {
    padding: 16px 18px;
    background: #f8fafb;
    border: 1px solid #e8ecef;
    border-radius: 10px;
}

.search-result-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.search-result-title {
    margin: 0 0 8px;
    font-family: var(--site-font-heading-family);
    font-size: var(--site-font-article-title);
    font-weight: 600;
    line-height: 1.4;
}

.search-result-title a {
    color: #0A246A;
}

.search-result-title a:hover {
    color: #DB002A;
}

.search-result-snippet {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

.search-result-snippet mark,
.search-result-title mark,
.search-result-author mark {
    background: #fff3bf;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.search-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.search-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #eef2f5;
    color: #005566;
    font-weight: 600;
}

.search-page-link.is-active,
.search-page-link:hover {
    background: #0079B0;
    color: #fff;
}

/* Основной контент: центр шире, правая колонка уже левой */
.main-content {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(170px, 210px);
    gap: clamp(16px, 2vw, 22px);
    margin: 24px auto 32px;
    width: 100%;
    max-width: 90%;
    align-items: start;
}

.sidebar-left, .sidebar-right {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-panel {
    background: #fff;
    border: 1px solid #e6ebf0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.sidebar-panel-title {
    font-family: var(--site-font-heading-family);
    font-size: 20px;
    color: #DB002A;
    margin: 0 0 12px;
    border-left: 4px solid #DB002A;
    padding-left: 10px;
    line-height: 1.35;
}

.sidebar-panel-title a {
    color: inherit;
    text-decoration: none;
}

.sidebar-panel-title a:hover {
    text-decoration: underline;
}

.sidebar-panel-subtitle,
.sidebar-block-subtitle {
    margin: -4px 0 14px;
    font-size: 15px;
    color: #0079B0;
    font-weight: 700;
    line-height: 1.35;
}

.sidebar-panel-link .sidebar-panel-title {
    margin-bottom: 0;
}

.sidebar-panel-featured .right-menu-box,
.sidebar-panel-quick {
    margin: 0;
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
}

.sidebar-panel-rubrics {
    padding-top: 14px;
    padding-bottom: 14px;
}

.sidebar-project-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-project-links li {
    margin-bottom: 8px;
}

.sidebar-project-links li a {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-project-links li:last-child a {
    border-bottom: none;
}

.sidebar-flags-note {
    margin: 12px 0 0;
}

.sidebar-chronicle .sidebar-calendar .sidebar-panel-title,
.sidebar-chronicle .sidebar-block-title {
    border-left: none;
    padding-left: 0;
    color: #1a1a1a;
}

.sidebar-right .right-menu-grid,
.sidebar-panel-quick-grid .right-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sidebar-right .sidebar-panel-quick,
.sidebar-panel-quick-grid .sidebar-panel-quick {
    border: 0;
    border-radius: 8px;
    padding: 10px 8px;
    min-height: 44px;
    text-align: center;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-right .sidebar-panel-quick h1,
.sidebar-panel-quick-grid .sidebar-panel-quick h1 {
    font-size: 13px;
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
}

.sidebar-panel-quick-grid .sidebar-panel-quick.rubric-loft {
    background: #DB002A;
}

.sidebar-panel-quick-grid .sidebar-panel-quick.rubric-tourism {
    background: #0066cc;
}

.sidebar-panel-quick-grid .sidebar-panel-quick.rubric-abroad {
    background: #FF8000;
}

.sidebar-panel-quick-grid .sidebar-panel-quick.rubric-blogs {
    background: #8b00ff;
}

.sidebar-panel-quick-grid .sidebar-panel-quick.rubric-loft h1 a,
.sidebar-panel-quick-grid .sidebar-panel-quick.rubric-tourism h1 a,
.sidebar-panel-quick-grid .sidebar-panel-quick.rubric-abroad h1 a,
.sidebar-panel-quick-grid .sidebar-panel-quick.rubric-blogs h1 a {
    color: #fff;
}

.sidebar-panel.link-social .sidebar-panel-title a { color: #0066cc; }
.sidebar-panel.link-stats .sidebar-panel-title a { color: #FF8000; }

.sidebar-panel-quick-grid {
    padding: 14px 0 0;
}

.sidebar-panel-quick-grid .right-menu-box {
    margin-bottom: 0;
}

.sidebar-day-news .news-list,
.sidebar-category-buttons .category-buttons,
.sidebar-currency .currency-date {
    margin-bottom: 0;
}

.content-center {
    background: #fff;
    padding: clamp(16px, 2vw, 24px);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
}

/* Intro Block */
.intro-block {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.intro-block:hover {
    transform: translateY(-3px);
}

.intro-block p {
    font-family: var(--site-font-heading-family);
    font-size: var(--site-font-intro);
    font-weight: 600;
    color: var(--site-color-heading);
    line-height: var(--site-line-tight);
}

.intro-block p span {
    color: var(--site-color-accent);
    font-size: var(--site-font-section-title);
}

.sidebar-left h2 {
    font-family: var(--site-font-heading-family);
    font-size: var(--site-font-sidebar-title);
    color: var(--site-color-accent);
    margin-bottom: 15px;
    border-left: 4px solid var(--site-color-accent);
    padding-left: 10px;
    line-height: var(--site-line-tight);
}

.sidebar-left h2 a {
    color: inherit;
    text-decoration: none;
}

.sidebar-left h2 a:hover {
    text-decoration: underline;
}

.sidebar-left .news-list {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.sidebar-left .news-list > a {
    display: block;
    font-size: 14px;
    color: #005566;
    padding: 10px 0;
    font-weight: 500;
    line-height: 1.4;
}

.sidebar-left .news-list a.day-news-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sidebar-left .news-list .day-news-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    background: #e9ecef;
}

.sidebar-left .news-list .day-news-title {
    flex: 1;
    line-height: 1.35;
}

.sidebar-left .news-list > a:hover {
    color: #DB002A;
}

.sidebar-left .news-list .more-news {
    font-size: 14px;
    color: #DB002A;
    font-weight: 600;
    padding: 8px 0;
    display: block;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.category-buttons a {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
    text-align: center;
    flex: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
}

.category-buttons a:hover {
    transform: scale(1.05);
    opacity: 0.9;
    text-decoration: none;
}

.category-buttons .world { background: #0066cc; }
.category-buttons .regions { background: #008000; }
.category-buttons .moscow { background: #FF8000; }
.category-buttons .spb { background: #DB002A; }

.currency-date {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

.currency-date .date {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 13px;
}

.currency-date .rates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.currency-date .rates div {
    padding: 6px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
    text-align: center;
}

		.special-projects ul li a {
		    font-size: 15px; /* Increased from 14px */
		    display: block;
		    padding: 8px 0;
		    border-bottom: 1px solid #f1f1f1;
		    font-weight: 500;
		}

.special-projects ul {
    list-style: none;
}

.special-projects ul li {
    margin-bottom: 10px;
}

.special-projects ul li a {
    font-size: 16px;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 500;
    line-height: 1.45;
}

.additional-links {
    margin-bottom: 20px;
}

.additional-links .link-box {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.additional-links .link-box h3 {
    font-family: var(--site-font-heading-family);
    font-size: 16px;
    margin: 0;
}

.additional-links .link-box h3 a {
    font-weight: 700;
    text-decoration: none;
}

.additional-links .link-box h3 a:hover {
    text-decoration: underline;
}

.link-social h3 a { color: #0066cc; }
.link-stats h3 a { color: #FF8000; }

/* Календарь хроники (левый сайдбар) */
.sidebar-chronicle {
    gap: 14px;
}

.sidebar-chronicle .sidebar-calendar .site-calendar {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.sidebar-chronicle .site-cal-year-strip {
    max-width: 100%;
    min-width: 0;
    gap: 4px;
}

.sidebar-chronicle .site-cal-year-btn {
    min-width: 38px;
    padding: 5px 7px;
    font-size: 12px;
}

.sidebar-chronicle .site-cal-year-back {
    width: 22px;
    min-width: 22px;
    height: 28px;
    font-size: 16px;
}

.sidebar-chronicle .site-calendar-grid {
    font-size: 13px;
}

.sidebar-chronicle .site-calendar-grid td {
    padding: 4px 2px;
}

.sidebar-chronicle .site-calendar-grid a {
    padding: 4px 2px;
    font-size: 13px;
}

.site-calendar {
    margin-bottom: 0;
}

.site-calendar-toolbar,
.calendar-results-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.site-calendar-toolbar {
    margin-bottom: 10px;
}

.site-cal-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f0f4f8;
    color: #005566;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s, color .15s;
}

.site-cal-chip:hover {
    background: #e2ebf3;
}

.site-cal-chip.is-active {
    background: #005566;
    color: #fff;
    border-color: #005566;
}

.site-calendar-nav {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.site-calendar-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.site-cal-period-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff7d6;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}

.site-cal-period-btn:hover {
    background: #fff0b3;
    border-color: #f0e4a8;
}

.site-cal-period-btn.is-open,
.site-cal-period-btn.is-active {
    background: #005566;
    color: #fff;
    border-color: #005566;
}

.site-cal-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.75;
    transition: transform .15s;
}

.site-cal-period-btn.is-open .site-cal-caret {
    transform: rotate(180deg);
}

.site-calendar-pickers {
    margin-bottom: 8px;
}

.site-cal-picker {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.site-cal-picker + .site-cal-picker {
    margin-top: 6px;
}

.site-cal-picker-grid {
    display: grid;
    gap: 4px;
}

.site-cal-picker-grid-month {
    grid-template-columns: repeat(4, 1fr);
}

.site-cal-picker-grid-year {
    grid-template-columns: repeat(4, 1fr);
    max-height: 140px;
    overflow-y: auto;
}

.site-cal-picker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.site-cal-picker-item:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #005566;
}

.site-cal-picker-item.is-current {
    background: #005566;
    border-color: #005566;
    color: #fff;
}

.site-cal-picker-all {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: #005566;
    text-align: center;
    text-decoration: none;
}

.site-cal-picker-all:hover {
    text-decoration: underline;
}

.site-cal-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: 8px;
    background: #f0f4f8;
    color: #005566;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.site-cal-arrow:hover {
    background: #e2ebf3;
}

.site-calendar-grid {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #d8d8d8;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    margin-bottom: 10px;
    background: #fff;
}

.site-calendar-grid th {
    background: #fefe22;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 0;
    color: #272829;
    border: 1px solid #eee;
}

.site-calendar-grid th.sun {
    color: #ee0000;
}

.site-calendar-grid td {
    text-align: center;
    padding: 0;
    width: 14.28%;
    height: 38px;
    border: 1px solid #eee;
    background: #fff;
}

.site-calendar-grid td.empty {
    background: #fafafa;
}

.site-calendar-grid a {
    display: block;
    line-height: 38px;
    color: #272829;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.site-calendar-grid td.sun {
    background: #ffdddd;
}

.site-calendar-grid td.sun a {
    color: #272829;
}

.site-calendar-grid td.today {
    background: #fefe22;
}

.site-calendar-grid td.today a {
    font-weight: 700;
}

.site-calendar-grid td.has-news a {
    font-weight: 700;
    text-decoration: underline;
}

.site-calendar-grid td.selected {
    background: #0f71c8;
}

.site-calendar-grid td.selected a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.site-calendar-grid a:hover {
    background: rgba(0, 0, 0, 0.04);
}

.site-cal-year-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.site-cal-year-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    height: 30px;
    border-radius: 8px;
    background: #eef2f6;
    color: #005566;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: background .15s ease, color .15s ease;
}

.site-cal-year-back:hover {
    background: #dbe4ec;
    color: #003344;
}

.site-cal-year-forward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    height: 30px;
    border-radius: 8px;
    background: #eef2f6;
    color: #005566;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: background .15s ease, color .15s ease;
}

.site-cal-year-forward:hover {
    background: #dbe4ec;
    color: #003344;
}

.sidebar-chronicle .site-cal-year-forward {
    width: 22px;
    min-width: 22px;
    height: 26px;
    font-size: 16px;
}

.site-cal-year-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--year-color) 14%, #fff);
    border: 1px solid color-mix(in srgb, var(--year-color) 35%, #fff);
    color: var(--year-color);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.1;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.site-cal-year-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--year-color) 22%, transparent);
    background: color-mix(in srgb, var(--year-color) 22%, #fff);
}

.site-cal-year-btn.is-active {
    background: var(--year-color);
    border-color: var(--year-color);
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--year-color) 35%, transparent);
}

.site-calendar-grid td.in-range {
    background: #e8f4f8;
}

.site-calendar-grid td.range-start,
.site-calendar-grid td.range-end {
    background: #cfe8ef;
}

.site-calendar-grid td.range-start a,
.site-calendar-grid td.range-end a {
    font-weight: 700;
}

.site-calendar-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}



.calendar-results-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.calendar-results-toolbar a {
    padding: 8px 12px;
    border-radius: 6px;
    background: #f0f4f8;
    color: #005566;
    font-weight: 600;
    text-decoration: none;
}

.calendar-results-toolbar a:hover {
    background: #e2ebf3;
}

/* Стили для правого сайдбара (как в оригинале) */
.main-content > .sidebar-right {
    background: transparent;
    max-width: 240px;
    justify-self: end;
}

.sidebar-right .sidebar-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.sidebar-right-connect {
    margin-bottom: 10px;
    text-align: center;
}

.sidebar-right-connect .right-menu-box,
.sidebar-right-featured-item .right-menu-box {
    text-align: center;
    margin: 0;
    padding: 14px 12px;
    background: #f8f9fa;
    border: 1px solid #e6ebf0;
    border-radius: 10px;
    box-shadow: none;
}

.sidebar-right-connect .right-menu-box h1,
.sidebar-right-featured-item .right-menu-box h1 {
    font-family: var(--site-font-heading-family);
    font-size: var(--site-font-sidebar-title);
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0;
}

.sidebar-right-connect .right-menu-box h1 a,
.sidebar-right-featured-item .right-menu-box h1 a {
    text-decoration: none;
}

.sidebar-right-connect .right-menu-box.rubric-tag-connect h1 a,
.right-menu-box.rubric-tag-connect h1 a {
    color: #8b00ff !important;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar-right-featured-item.rubric-tag-joscience .right-menu-box h1 a,
.right-menu-box.rubric-tag-joscience h1 a {
    color: #0079B0 !important;
    font-weight: 600;
}

.sidebar-right-featured-item.rubric-tag-vexpress .right-menu-box h1 a,
.right-menu-box.rubric-tag-vexpress h1 a {
    color: #008000 !important;
    font-weight: 700;
}

.sidebar-right-featured-item.rubric-tag-buyoutreport .right-menu-box h1 a,
.right-menu-box.rubric-tag-buyoutreport h1 a {
    color: #0000ff !important;
    font-weight: 700;
}

.sidebar-right-connect .right-menu-box h1 a span,
.sidebar-right-featured-item .right-menu-box h1 a span {
    color: inherit !important;
}

.sidebar-right-featured-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.sidebar-right-rubric-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.sidebar-right-rubric-list .rubric-link-item {
    margin-bottom: 2px;
}

.sidebar-right-rubric-list .rubric-link-item a {
    font-size: var(--site-font-body-sm);
    font-weight: 500;
    line-height: var(--site-line-tight);
    display: block;
    padding: 8px 0 6px;
    color: #333;
    text-decoration: none;
}

.sidebar-right-rubric-list .rubric-link-item a:hover {
    text-decoration: underline;
}

.sidebar-right-rubric-list hr {
    border: 0;
    border-top: 1px solid #eceff3;
    margin: 0;
}

.sidebar-right .right-menu-box {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-right .right-menu-box h1 {
    font-family: var(--site-font-heading-family);
    font-size: 17px;
    margin: 0;
    line-height: 1.35;
}

.sidebar-right .right-menu-box h1 a {
    font-weight: 700;
    text-decoration: none;
}

.sidebar-right .right-menu-box h1 a:hover {
    text-decoration: underline;
}

.rubric-connect h1 a { color: #8b00ff; }
.rubric-journal h1 a { color: #0079B0; }
.rubric-express h1 a { color: #008000; font-weight: 700; }
.rubric-loft h1 a { color: #DB002A; }
.rubric-tourism h1 a { color: #0066cc; }
.rubric-abroad h1 a { color: #FF8000; }
.rubric-blogs h1 a { color: #8b00ff; }

.sidebar-right ul {
    list-style: none;
    margin-bottom: 20px;
}

.sidebar-right ul li {
    margin-bottom: 10px;
}

.sidebar-right ul li a {
    font-size: 16px;
    display: block;
    padding: 9px 0;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-right ul li hr {
    border: 0;
    border-top: 1px solid #f1f1f1;
    margin: 8px 0;
}

/* Цвета рубрик */
.rubric-investment a { color: #0066cc; font-weight: 600; }
.rubric-digital a { color: #008000; font-weight: 600; }
.rubric-witness a { color: #008000; font-weight: 600; }
.rubric-edition a { color: #DB002A; font-weight: 600; }
.rubric-projects a { color: #FF8000; font-weight: 600; }
.rubric-culture a { color: #FF8000; font-weight: 600; }

.content-center > h1:not(.page-title) {
    font-family: var(--site-font-heading-family);
    font-size: var(--site-font-page-title);
    font-weight: var(--site-font-page-title-weight);
    font-style: var(--site-font-page-title-style);
    color: var(--site-color-accent);
    margin-bottom: 20px;
    border-left: 4px solid var(--site-color-accent);
    padding-left: 10px;
}

.sidebar-panel-stats-btn {
    text-align: center;
    padding: 14px 16px;
}

.sidebar-stats-button {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ff9a2e 0%, #FF8000 100%);
    color: #fff !important;
    font-family: var(--site-font-heading-family);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(255, 128, 0, 0.28);
}

.sidebar-stats-button:hover {
    background: linear-gradient(180deg, #ff8c12 0%, #e67300 100%);
    text-decoration: none;
}

.sidebar-stats-button-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.35;
}

/* Стили для блока Новые публикации */
.news-item {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    border: 1px solid #e8eef3;
    box-shadow: 0 4px 14px rgba(10, 36, 106, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(10, 36, 106, 0.08);
}

.news-date {
    font-size: var(--site-font-meta);
    color: var(--site-color-accent);
    font-weight: 600;
    font-family: var(--site-font-heading-family);
    margin-bottom: 10px;
    display: block;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    width: fit-content;
}

.news-item h3,
.page-inner .news-list .news-item h3,
.page-inner .secondary_articles .article h3,
.page-inner article.article h3,
.page-inner .article-title,
.search-result-title {
    font-family: var(--site-font-heading-family);
    font-size: var(--site-font-article-title);
    color: var(--site-color-article-title);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: var(--site-font-list-title-weight);
    font-style: var(--site-font-list-title-style);
    display: block;
}

.news-item h3 a,
.page-inner .secondary_articles .article h3 a,
.page-inner article.article h3 a,
.page-inner .article-title a,
.search-result-title a {
    color: var(--site-color-article-title);
    text-decoration: none;
}

.news-item h3 a:hover,
.page-inner .secondary_articles .article h3 a:hover,
.page-inner article.article h3 a:hover,
.page-inner .article-title a:hover,
.search-result-title a:hover {
    color: var(--site-color-article-title-hover);
}

.news-content {
    display: block;
}

.news-thumb {
    float: left;
    width: 160px;
    height: 120px;
    margin: 0 15px 15px 0;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
    border: 1px solid #e8eef3;
    box-shadow: 0 4px 12px rgba(10, 36, 106, 0.08);
}

.news-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #111;
}

.news-item p {
    font-size: var(--site-font-body-sm);
    font-weight: var(--site-font-list-body-weight);
    font-style: var(--site-font-list-body-style);
    color: var(--site-color-text);
    line-height: var(--site-line-relaxed);
    margin: 0;
    overflow: hidden; /* Для корректного обтекания */
}

.news-list .news-item {
    margin-bottom: 20px;
}

.news-item-meta {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1f1f1;
}

.news-item-meta .meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.news-item-meta .meta.marker {
    color: #DB002A;
    font-weight: 600;
}

.news-item.news-item--marker,
.page-inner .secondary_articles .article.article--marker {
    border: 2px solid #DB002A;
    box-shadow: 0 0 0 3px rgba(219, 0, 42, 0.1), 0 6px 18px rgba(219, 0, 42, 0.08);
}

.news-item.news-item--marker .news-item-meta .meta.marker,
.page-inner .secondary_articles .article.article--marker .meta.marker {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(219, 0, 42, 0.08);
}

.page-inner .publications-feed .news-item:hover {
    box-shadow: 0 4px 14px rgba(10, 36, 106, 0.08);
    transition: box-shadow 0.2s ease;
}

.page-inner .secondary_articles .news-item .news-thumb {
    float: left;
    width: 160px;
    height: 120px;
    margin: 0 12px 8px 0;
    border-radius: 4px;
    border: 1px solid #eee;
}

.page-inner .secondary_articles .news-item .news-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #111;
}

.page-inner .secondary_articles .news-item-meta {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1f1f1;
}

.page-inner .secondary_articles .news-item-meta .meta {
    font-size: var(--site-font-caption);
    color: var(--site-color-text-muted);
    margin-bottom: 6px;
}

/* Футер */
footer {
    background: #1c2526;
    color: #cbd5e1;
    padding: 36px 0 32px;
    font-size: var(--site-font-caption);
    font-family: var(--site-font-body-family);
    line-height: var(--site-line-relaxed);
}

footer .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "legal partners"
        "copy partners";
    gap: 24px 32px;
    align-items: start;
}

footer .footer-text,
footer .footer-text.fr-view {
    grid-area: legal;
    font-size: var(--site-font-caption);
    line-height: var(--site-line-relaxed);
    color: #cbd5e1;
}

footer .footer-copy {
    grid-area: copy;
    margin: 0;
    color: #94a3b8;
    font-size: var(--site-font-caption);
}

footer a,
footer .footer-text a,
footer .footer-text.fr-view a {
    color: #e2e8f0;
    text-decoration: underline;
}

footer a:hover,
footer .footer-text a:hover,
footer .footer-text.fr-view a:hover {
    color: #fff;
}

footer .partners {
    grid-area: partners;
    background: linear-gradient(to bottom, #2a3435, #1c2526);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

footer .partners h3 {
    font-family: var(--site-font-heading-family);
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
}

footer .partners img {
    height: 45px;
    margin: 0 15px;
    transition: transform 0.2s;
}

footer .partners img:hover {
    transform: scale(1.1);
}

/* Адаптивность */
@media (min-width: 1200px) {
    .logo img {
        width: 17vw;
        max-width: 330px;
    }
}

@media (min-width: 901px) {
    .header-actions {
        display: none;
    }

    .nav-close {
        display: none !important;
    }

    .site-nav {
        display: block;
        position: static;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        min-width: 0;
        background: transparent;
        padding: 0;
        box-shadow: none;
        transform: none;
        overflow: visible;
    }

    .site-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 12px 18px;
    }

    .site-nav ul li a {
        white-space: nowrap;
    }

    .search-bar {
        display: block !important;
    }

    .search-input-group {
        max-width: 100%;
    }
}

@media (min-width: 1025px) {
    .main-content {
        grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(190px, 230px);
    }
}

@media (min-width: 1400px) {
    .main-content {
        grid-template-columns: minmax(250px, 280px) minmax(0, 1fr) minmax(200px, 240px);
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .logo img {
        width: 24vw;
        max-width: 260px;
        min-width: 130px;
    }

    .search-bar {
        width: min(100%, 560px);
        max-width: 560px;
    }

    .main-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin: 16px auto 24px;
    }

    .content-center {
        order: 1;
        width: 100%;
        max-width: 100%;
    }
    .sidebar-left { order: 2; }
    .sidebar-right { order: 3; }

    .category-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .top-content {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 10px 12px;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .search-bar {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        display: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 12px;
        background: #f8fafb;
        border: 1px solid #e5e9ee;
        border-radius: 12px;
    }

    .search-header {
        text-align: left;
    }

    .search-suggestion {
        margin-left: 0;
        margin-right: 0;
    }

    .site-nav {
        grid-column: auto;
        grid-row: auto;
        justify-self: auto;
    }

    .search-toggle,
    .nav-toggle {
        display: inline-flex;
    }

    .search-bar.is-search-open {
        display: block;
    }

    .search-suggestion {
        max-width: 100%;
        text-align: left;
        white-space: normal;
    }

    .search-suggest {
        max-height: min(50vh, 320px);
        -webkit-overflow-scrolling: touch;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100%;
        max-height: 100dvh;
        padding: 72px 20px 24px;
        background: #1c2526;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.18);
        transform: translateX(105%);
        transition: transform 0.28s ease;
        z-index: 1200;
        overflow-y: auto;
    }

    .site-nav.active {
        transform: translateX(0);
    }

    .nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .site-nav ul li a {
        display: block;
        padding: 12px 10px;
        color: #fff;
        font-size: 16px;
        border-radius: 8px;
    }

    .site-nav ul li a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        text-decoration: none;
    }

    .language-switch {
        margin-bottom: 8px;
        background: transparent;
        padding: 0;
    }

    .site-nav ul li.language-switch a,
    .language-switch a {
        display: block;
        padding: 12px 10px;
        background: #DB002A;
        border-radius: 8px;
        text-align: center;
        color: #fff;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .notification {
        font-size: 12px;
        padding: 8px 10px;
        line-height: 1.4;
    }

    .main-content {
        padding: 0;
        gap: 14px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .sidebar-left,
    .sidebar-right,
    .content-center {
        padding: 14px 12px;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
    }

    .currency-date .rates {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .news-image {
        width: 100%;
        height: auto;
        float: none;
        margin: 0 0 12px;
    }

    .news-item {
        padding: 14px;
    }

    :root {
        --site-font-body: 16px;
        --site-font-body-sm: 14px;
        --site-font-meta: 13px;
        --site-font-lead: 17px;
        --site-font-article-title: 17px;
        --site-font-page-title: 22px;
        --site-font-section-title: 18px;
        --site-font-article-view-title: 24px;
        --site-font-sidebar-title: 16px;
        --site-font-intro: 18px;
    }

    .search-page-input-wrap {
        flex-direction: column;
    }

    .search-page-input-wrap input[type="search"],
    .search-page-input-wrap button {
        width: 100%;
        min-height: 48px;
    }

    .search-result-item {
        padding: 14px;
    }



    .search-pagination {
        gap: 6px;
    }

    .search-page-link {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    footer .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "legal"
            "copy"
            "partners";
        text-align: center;
        gap: 16px;
    }

    footer .partners {
        margin-top: 0;
    }

    .sidebar-right .right-menu-grid,
    .sidebar-panel-quick-grid .right-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-inner .fr-view img[style*="float"],
    .page-inner .fr-view img.fr-fil,
    .page-inner .fr-view img.fr-fir,
    .page-inner .fr-view img.fr-dii,
    .page-inner .fr-view img.fr-dib,
    .page-inner .article-title img.fotothumb,
    .page-inner .secondary_articles img.fotothumb {
        max-width: 100%;
        float: none;
        margin: 0 0 12px;
    }

    .rubric-promo {
        grid-template-columns: 1fr;
    }



    .article-view-header,
    .article-view-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .article-view-title {
        font-size: 26px;
    }

    .article-view-dek {
        font-size: 18px;
    }

    .article-view-body .fr-view {
        font-size: 18px;
    }

    .breadcrumbs {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 94%;
    }

    .main-content {
        max-width: 100%;
    }

    .logo img {
        width: 32vw;
        max-width: 230px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 96%;
    }

    .logo img {
        width: 44vw;
        max-width: 220px;
        min-width: 120px;
    }

    .search-toggle-text {
        display: none;
    }

    .search-submit {
        padding: 11px 14px;
        font-size: 13px;
    }

    .category-buttons {
        grid-template-columns: 1fr;
    }

    .category-buttons a {
        text-align: center;
    }

    .special-projects ul li a {
        font-size: 14px;
    }
}

/* Внутренние страницы (news_smi и рубрики) */
.page-inner {
    font-size: var(--site-font-body);
    line-height: var(--site-line-body);
    color: var(--site-color-text);
}

.page-inner h1,
.page-inner h2,
.page-inner h3 {
    font-family: var(--site-font-heading-family);
    margin: 0 0 14px;
    line-height: var(--site-line-tight);
}

.page-inner h1,
.page-inner h2 {
    color: var(--site-color-accent);
}

.page-inner h2 {
    font-size: var(--site-font-section-title);
    border-left: 4px solid #DB002A;
    padding-left: 10px;
}

.page-inner h3:not(.sidebar-panel-title) {
    font-size: var(--site-font-article-title);
    color: var(--site-color-article-title);
}

.page-inner img,
.page-inner table,
.page-inner iframe,
.page-inner video {
    max-width: 100%;
}

.page-inner table {
    width: 100%;
    border-collapse: collapse;
}

.page-inner .secondary_articles {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.page-inner .secondary_articles .article,
.page-inner .secondary_articles .news-item {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(10, 36, 106, 0.05);
    overflow: hidden;
    margin-bottom: 0;
}

.page-inner img.fotothumb {
    float: left;
    margin: 0 12px 8px 0;
    border: 1px solid #eee;
    border-radius: 4px;
}

.page-inner .article_b .meta {
    font-size: var(--site-font-caption);
    color: var(--site-color-text-muted);
    margin-bottom: 8px;
}

.page-inner #article_nav {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.page-inner #article_nav a {
    font-weight: 600;
    color: #DB002A;
}

.page-back {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.page-back a {
    font-weight: 600;
    color: #0079B0;
}

.sidebar-block h3,
.sidebar-flags .sidebar-panel-title {
    font-family: var(--site-font-heading-family);
    font-size: 16px;
    color: #0079B0;
    margin-bottom: 10px;
    border-left: none;
    padding-left: 0;
}

.sidebar-flags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.sidebar-flag-link {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
    transition: transform .15s ease, box-shadow .15s ease;
}

.sidebar-flag-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.sidebar-flags .sidebar-flag-img,
.sidebar-flags img {
    width: 80px;
    height: auto;
    display: block;
    border-radius: 8px;
    vertical-align: middle;
}

.sidebar-flags-note {
    font-size: 16px;
}

.breadcrumbs {
    font-size: var(--site-font-meta);
    color: var(--site-color-text-muted);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    line-height: var(--site-line-relaxed);
}

.breadcrumbs a {
    color: #0079B0;
    font-weight: 500;
}

.breadcrumbs .breadcrumb-rubric,
.breadcrumbs .current.breadcrumb-rubric {
    font-weight: 600;
}

.breadcrumbs .breadcrumb-rubric font,
.breadcrumbs .current.breadcrumb-rubric font,
.breadcrumbs .breadcrumb-rubric span {
    font-weight: 600;
}

.article-badge-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.breadcrumbs .current {
    color: #333;
    font-weight: 600;
}

.page-title {
    font-family: var(--site-font-heading-family);
    font-size: var(--site-font-page-title);
    font-weight: 700;
    color: var(--site-color-accent);
    margin: 0 0 18px;
    border-left: 4px solid var(--site-color-accent);
    padding-left: 12px;
    line-height: var(--site-line-tight);
}

.rubric-description {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.rubric-description table {
    width: 100% !important;
    max-width: 100% !important;
}

.rubric-promo {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rubric-promo-image img {
    width: 100%;
    border-radius: 6px;
}

.rubric-promo-brand {
    color: #008000;
    font-weight: 700;
}

.page-inner .secondary_articles .article h3,
.page-inner .secondary_articles .news-item h3,
.page-inner article.article h3,
.page-inner .article-title {
    margin: 0 0 10px;
    clear: both;
    font-family: var(--site-font-heading-family);
    font-size: var(--site-font-article-title);
    font-weight: var(--site-font-list-title-weight);
    font-style: var(--site-font-list-title-style);
    color: var(--site-color-article-title);
    line-height: 1.4;
}

.page-inner .secondary_articles .article h3 font,
.page-inner .secondary_articles .news-item h3 font,
.page-inner article.article h3 font,
.page-inner .article-title font {
    color: inherit !important;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
}

.page-inner .secondary_articles .article h3 a,
.page-inner .secondary_articles .news-item h3 a {
    color: var(--site-color-article-title);
    text-decoration: none;
}

.page-inner .secondary_articles .article h3 a:hover,
.page-inner .secondary_articles .news-item h3 a:hover {
    color: var(--site-color-article-title-hover);
}

.page-inner .secondary_articles .article > p,
.page-inner .secondary_articles .news-item .news-content > p,
.page-inner article.article > p {
    font-size: var(--site-font-body-sm);
    font-weight: var(--site-font-list-body-weight);
    font-style: var(--site-font-list-body-style);
    line-height: var(--site-line-relaxed);
    color: var(--site-color-text);
    margin-top: 8px;
}

.page-inner .secondary_articles .article > p b,
.page-inner .secondary_articles .article > p font,
.page-inner article.article > p b,
.page-inner article.article > p font {
    color: inherit;
    font-weight: 500;
}

.page-inner .article-badge {
    vertical-align: middle;
    margin-right: 6px;
}

.page-inner .article-excerpt {
    font-size: var(--site-font-body-sm);
    line-height: var(--site-line-relaxed);
    color: var(--site-color-text);
    margin-top: 8px;
}

.page-inner .meta {
    font-size: var(--site-font-caption);
    color: var(--site-color-text-muted);
    margin-bottom: 6px;
}

.page-inner .meta.marker {
    color: #DB002A;
    font-weight: 600;
}

.author-publications-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #d4e6f1;
    background: #f8fcfe;
    color: #0079B0;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(10, 36, 106, 0.05);
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.author-publications-link--compact {
    padding: 2px 7px;
    font-size: 10px;
    gap: 3px;
    border-radius: 5px;
}

.author-publications-link__label {
    letter-spacing: 0.01em;
}

.author-publications-link__icon {
    flex: 0 0 auto;
    opacity: 0.75;
    transition: transform .15s ease, opacity .15s ease;
}

.author-publications-link:hover {
    color: #005a82;
    border-color: #9ecae3;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 121, 176, 0.1);
    text-decoration: none;
}

.author-publications-link:hover .author-publications-link__icon {
    opacity: 1;
    transform: translateX(1px);
}

.meta-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

.page-inner .meta.meta-author,
.page-inner .news-item-meta .meta.meta-author {
    font-size: var(--site-font-meta);
}

.article-view-meta-author {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.article-view-meta-author .author-publications-link {
    margin-left: 2px;
}

.author-page-breadcrumbs {
    margin-bottom: 14px;
}

.author-page-header {
    margin: 0 0 20px;
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid #e3ebf2;
    background: linear-gradient(160deg, #f8fbfd 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(10, 36, 106, 0.05);
}

.author-page-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.author-page-title {
    margin: 0 0 8px;
    font-family: var(--site-font-heading-family);
    font-size: 30px;
    line-height: 1.15;
    color: #0A246A;
}

.author-page-lead {
    margin: 0;
    font-size: 16px;
    color: #5b6474;
    line-height: 1.5;
}

.author-page-stats {
    margin-top: 14px;
    font-size: 14px;
    color: #334155;
}

.author-page-stats strong {
    font-size: 22px;
    color: #0079B0;
}

.author-page-list .news-item {
    margin-bottom: 18px;
}

.author-page-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 24px 0 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e8eef3;
}

.author-page-pagination-label {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    margin-right: 4px;
}

.author-page-pagination a,
.author-page-pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.author-page-pagination a {
    color: #0079B0;
    background: #fff;
    border: 1px solid #d7e6ef;
}

.author-page-pagination a:hover {
    background: #eef7fb;
}

.author-page-pagination-current {
    color: #fff;
    background: linear-gradient(135deg, #0079B0, #005566);
}

.author-page-empty {
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid #e8eef3;
    background: #fff;
}

.author-page-back {
    font-weight: 700;
    color: #0079B0;
}

.article-subtitle {
    font-size: 18px;
    color: #555;
    margin: -8px 0 16px;
    line-height: 1.55;
}

.article-view {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(10, 36, 106, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.article-view-header {
    padding: 24px 28px 20px;
    background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
    border-bottom: 1px solid #eef2f6;
}

.article-view-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.article-view-date {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e3ebf2;
    font-family: var(--site-font-heading-family);
    font-size: 15px;
    font-weight: 700;
    color: #DB002A;
}

.article-age-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #0A246A;
    color: #fff;
    font-family: var(--site-font-heading-family);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
}

.article-view-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.article-view-main {
    min-width: 0;
    grid-column: 1 / -1;
}

@media (min-width: 1100px) {
    .article-view-layout:has(.site-banner-article-left),
    .article-view-layout:has(.site-banner-article-right) {
        grid-template-columns: 160px minmax(0, 1fr) 160px;
    }

    .article-view-layout:has(.site-banner-article-left) .site-banner-article-left,
    .article-view-layout:has(.site-banner-article-right) .site-banner-article-right {
        min-width: 0;
    }

    .article-view-layout:has(.site-banner-article-left) .site-banner-article-left { grid-column: 1; }
    .article-view-layout:has(.site-banner-article-right) .site-banner-article-right { grid-column: 3; }

    .article-view-layout:has(.site-banner-article-left) .article-view-main,
    .article-view-layout:has(.site-banner-article-right) .article-view-main {
        grid-column: 2;
    }
}

.site-banner-item {
    margin-bottom: 12px;
}

.site-banner-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.article-view[style*="--article-font-base"] .article-view-body .fr-view {
    font-size: var(--article-font-base, 16px);
    font-weight: var(--article-font-base-weight, var(--site-font-body-weight));
    font-style: var(--article-font-base-style, var(--site-font-body-style));
}

.article-view[style*="--article-font-title"] .article-view-title {
    font-size: var(--article-font-title, 28px);
    font-weight: var(--article-font-title-weight, var(--site-font-article-view-title-weight));
    font-style: var(--article-font-title-style, var(--site-font-article-view-title-style));
}

.article-view[style*="--article-font-dek"] .article-view-dek {
    font-size: var(--article-font-dek, 17px);
    font-weight: var(--article-font-dek-weight, var(--site-font-article-dek-weight));
    font-style: var(--article-font-dek-style, var(--site-font-article-dek-style));
}

.article-view[style*="--article-image-scale"] .article-view-body .fr-view img {
    max-width: calc(100% * var(--article-image-scale, 1));
}

.article-view-title {
    margin: 0 0 14px;
    font-family: var(--site-font-heading-family);
    font-size: var(--site-font-article-view-title);
    line-height: 1.35;
    font-weight: var(--site-font-article-view-title-weight);
    font-style: var(--site-font-article-view-title-style);
    color: var(--site-color-article-title);
    border: 0;
    padding: 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.article-view-dek {
    margin: 0 0 18px;
    font-family: var(--site-font-body-family);
    font-size: var(--site-font-lead);
    font-weight: var(--site-font-article-dek-weight);
    font-style: var(--site-font-article-dek-style);
    line-height: var(--site-line-relaxed);
    color: var(--site-color-text-muted);
    padding: 14px 16px;
    background: #f8fafc;
    border-left: 4px solid #0079B0;
    border-radius: 0 10px 10px 0;
}

.article-view-meta {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 12px;
    font-size: 15px;
    color: #334155;
}

.article-view-meta-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    line-height: 1.45;
}

.article-view-meta-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.article-view-meta-badge {
    color: #005566;
    font-weight: 600;
}

.article-view-hero-wrap {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e8eef3;
    background: linear-gradient(180deg, #0A246A 0%, #132f6e 100%);
}

.article-view-hero-trigger {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0f1f4d;
    cursor: zoom-in;
    overflow: hidden;
}

.article-view-hero {
    display: block;
    width: 100%;
    max-height: min(52vh, 520px);
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.article-view-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 36, 106, 0.05) 0%, rgba(10, 36, 106, 0.35) 100%);
    opacity: 0.55;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.article-view-hero-hint {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0A246A;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(10, 36, 106, 0.18);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.article-view-hero-trigger:hover .article-view-hero,
.article-view-hero-trigger:focus-visible .article-view-hero {
    transform: scale(1.02);
    filter: brightness(1.04);
}

.article-view-hero-trigger:hover .article-view-hero-overlay,
.article-view-hero-trigger:focus-visible .article-view-hero-overlay {
    opacity: 0.35;
}

.article-view-hero-trigger:hover .article-view-hero-hint,
.article-view-hero-trigger:focus-visible .article-view-hero-hint {
    opacity: 1;
    transform: translateY(0);
}

.article-view-body {
    padding: 28px 28px 32px;
}

.article-view-gallery .article-gallery-trigger {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    vertical-align: top;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(10, 36, 106, 0.08);
    transition: transform .15s ease, box-shadow .15s ease;
}

.article-view-gallery .article-gallery-trigger:has(.fr-fil) {
    float: left;
    margin: 4px 14px 10px 0;
}

.article-view-gallery .article-gallery-trigger:has(.fr-fir) {
    float: right;
    margin: 4px 0 10px 14px;
}

.article-view-gallery p > .article-gallery-trigger:only-child,
.article-view-gallery .fr-img-caption .article-gallery-trigger {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0 auto 18px;
}

.article-view-gallery .article-gallery-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10, 36, 106, 0.12);
}

.article-view-gallery .article-gallery-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

.article-view-body .fr-view img.fr-fil,
.article-view-body .fr-view img.fr-fir,
.article-view-body .fr-view img.fr-dii {
    max-width: 50%;
}

body.article-gallery-open {
    overflow: hidden;
}

.article-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
}

.article-gallery-lightbox[hidden] {
    display: none !important;
}

.article-gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 38, 0.88);
    backdrop-filter: blur(4px);
}

.article-gallery-dialog {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 56px 12px 24px;
    box-sizing: border-box;
}

.article-gallery-stage {
    position: relative;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: 100%;
}

.article-gallery-image-full {
    max-width: min(96vw, 1100px);
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.article-gallery-caption {
    margin-top: 12px;
    max-width: min(92vw, 900px);
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.45;
}

.article-gallery-counter {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.article-gallery-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.article-gallery-nav {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    flex: 0 0 auto;
}

.article-gallery-nav:hover,
.article-gallery-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 768px) {
    .article-gallery-dialog {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto auto;
        padding: 52px 8px 16px;
    }

    .article-gallery-stage {
        grid-row: 1;
    }

    .article-gallery-prev,
    .article-gallery-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
    }

    .article-gallery-prev {
        left: 8px;
    }

    .article-gallery-next {
        right: 8px;
    }

    .article-gallery-image-full {
        max-height: calc(100vh - 120px);
    }
}

.article-view-body .fr-view {
    font-size: 19px;
    line-height: 1.8;
    color: #1e293b;
}

.article-view-body .fr-view > p:first-child {
    font-size: 20px;
    line-height: 1.75;
}

.article-meta {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #444;
}

.article-meta p {
    margin: 0 0 8px;
}

.article-meta p:last-child {
    margin-bottom: 0;
}

.article-lead-image {
    margin-bottom: 20px;
    text-align: center;
}

.article-lead-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-body,
.rubric-description {
    margin-top: 8px;
}

/* Новость дня — читаемая вёрстка */
.day-news-article {
    max-width: 100%;
}

.day-news-header {
    margin-bottom: 24px;
}

.day-news-dek {
    font-size: 18px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border-left: 3px solid #005566;
    border-radius: 0 8px 8px 0;
}

.day-news-meta {
    margin-bottom: 0;
}

.day-news-body {
    margin-top: 0;
}

.sidebar-day-news .news-list a {
    font-size: 16px;
    line-height: 1.45;
}

.site-stats-page {
    margin-top: 4px;
}

.site-stats-panel {
    background: #fff;
    border: 1px solid #e3ebf2;
    border-radius: 18px;
    padding: 16px;
    margin-top: 4px;
    box-shadow: 0 10px 30px rgba(10, 36, 106, 0.06);
}

.site-stats-panel-compact {
    padding: 14px;
    background: linear-gradient(160deg, #f8fbfd 0%, #eef6fa 100%);
    box-shadow: none;
}

.site-stats-panel-full {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 220px);
}

.site-stats-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px 24px 18px;
    background: linear-gradient(135deg, #0A246A 0%, #0079B0 55%, #005566 100%);
    color: #fff;
    overflow: hidden;
}

.site-stats-hero-glow {
    position: absolute;
    inset: auto -80px -120px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 128, 0, 0.45) 0%, rgba(255, 128, 0, 0) 70%);
    pointer-events: none;
}

.site-stats-hero-content {
    position: relative;
    z-index: 1;
}

.site-stats-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.site-stats-title {
    margin: 0 0 8px;
    font-family: var(--site-font-heading-family);
    font-size: 28px;
    line-height: 1.15;
    color: #fff;
}

.site-stats-panel-compact .site-stats-title {
    font-size: 20px;
    color: #FF8000;
    border-left: 4px solid #FF8000;
    padding-left: 10px;
}

.site-stats-lead {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    max-width: 52ch;
}

.site-stats-panel-compact .site-stats-lead {
    margin: 0 0 14px;
    color: #5b6474;
    font-size: 14px;
}

.site-stats-hero-badge {
    position: relative;
    z-index: 1;
    min-width: 150px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    text-align: center;
}

.site-stats-hero-badge-value {
    display: block;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.site-stats-hero-badge-label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
}

.site-stats-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 18px 0;
}

.site-stats-panel-full .site-stats-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-stats-kpi {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(10, 36, 106, 0.04);
}

.site-stats-kpi-accent {
    border-color: #9fd0e7;
    background: linear-gradient(180deg, #f7fcff 0%, #ffffff 100%);
}

.site-stats-kpi-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
}

.site-stats-kpi strong {
    display: block;
    font-size: 26px;
    color: #0A246A;
    line-height: 1.05;
}

.site-stats-kpi small {
    font-size: 12px;
    color: #6b7280;
}

.site-stats-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
    margin: 14px 18px 0;
}

.site-stats-grid-secondary {
    grid-template-columns: 1fr 1fr;
}

.site-stats-card {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(10, 36, 106, 0.04);
}

.site-stats-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.site-stats-subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #005566;
}

.site-stats-card-note {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.site-stats-chart-wrap {
    display: grid;
    gap: 14px;
}

.site-stats-chart-summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-height: 34px;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 121, 176, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid #e3ebf2;
}

.site-stats-chart-summary-value {
    font-size: 28px;
    line-height: 1;
    color: #0A246A;
}

.site-stats-chart-summary-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.site-stats-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 200px;
    overflow-x: auto;
    padding: 8px 2px 4px;
}

.site-stats-bar-item {
    flex: 1 0 34px;
    max-width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 200px;
    cursor: pointer;
    outline: none;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.site-stats-bar-item:hover,
.site-stats-bar-item:focus-visible,
.site-stats-bar-item.is-active {
    transform: translateY(-2px);
}

.site-stats-bar {
    --bar-height: 10%;
    width: 100%;
    max-width: 36px;
    height: 0;
    min-height: 10px;
    margin-top: auto;
    background: linear-gradient(180deg, #5bb8e8 0%, #0079B0 45%, #005566 100%);
    border-radius: 10px 10px 4px 4px;
    box-shadow: 0 8px 18px rgba(0, 121, 176, 0.18);
    transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.site-stats-chart-wrap.is-ready .site-stats-bar {
    height: var(--bar-height);
}

.site-stats-bar-item:hover .site-stats-bar,
.site-stats-bar-item:focus-visible .site-stats-bar,
.site-stats-bar-item.is-active .site-stats-bar {
    box-shadow: 0 12px 24px rgba(0, 121, 176, 0.28);
    filter: saturate(1.08);
}

.site-stats-cities-card {
    margin: 14px 18px 0;
}

.site-stats-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.95fr);
    gap: 18px;
    align-items: stretch;
}

.site-stats-map-stage {
    position: relative;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #f7fbfd 0%, #eef5f9 100%);
    border: 1px solid #e3ebf2;
}

.site-stats-map-svg {
    display: block;
    width: 100%;
    height: auto;
}

.site-stats-map-ocean {
    fill: #f3f8fb;
}

.site-stats-map-land {
    stroke: #b9d4e6;
    stroke-width: 1.5;
}

.site-stats-map-marker {
    cursor: pointer;
    outline: none;
}

.site-stats-map-marker-dot {
    fill: url(#siteStatsMapGlow);
    stroke: #fff;
    stroke-width: 2.5;
    transition: transform 0.2s ease, filter 0.2s ease;
    transform-origin: center;
    transform-box: fill-box;
}

.site-stats-map-marker-pulse {
    fill: rgba(0, 121, 176, 0.16);
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
}

.site-stats-map-marker.is-active .site-stats-map-marker-pulse {
    opacity: 1;
    animation: site-stats-marker-pulse 1.8s ease-out infinite;
}

.site-stats-map-marker.is-active .site-stats-map-marker-dot,
.site-stats-map-marker:hover .site-stats-map-marker-dot,
.site-stats-map-marker:focus-visible .site-stats-map-marker-dot {
    filter: drop-shadow(0 0 8px rgba(0, 121, 176, 0.45));
    transform: scale(1.12);
}

.site-stats-map-marker-label {
    font-size: 11px;
    font-weight: 700;
    fill: #0A246A;
    text-anchor: middle;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.site-stats-map-marker.is-active .site-stats-map-marker-label,
.site-stats-map-marker:hover .site-stats-map-marker-label,
.site-stats-map-marker:focus-visible .site-stats-map-marker-label {
    opacity: 1;
}

.site-stats-map-tooltip {
    position: absolute;
    z-index: 3;
    transform: translate(-50%, -100%);
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(10, 36, 106, 0.94);
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(10, 36, 106, 0.22);
    pointer-events: none;
    white-space: nowrap;
}

.site-stats-map-tooltip strong {
    display: block;
    font-size: 13px;
}

.site-stats-map-tooltip span {
    color: #b9d9eb;
    font-weight: 600;
}

.site-stats-map-legend {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    align-content: start;
}

.site-stats-map-legend-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #f8fafc;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-stats-map-legend-item:hover,
.site-stats-map-legend-item:focus-visible,
.site-stats-map-legend-item.is-active {
    border-color: #b9d9eb;
    background: linear-gradient(135deg, rgba(0, 121, 176, 0.08) 0%, rgba(255, 255, 255, 1) 100%);
    transform: translateX(2px);
}

.site-stats-map-legend-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #0079B0, #005566);
}

.site-stats-map-legend-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.site-stats-map-legend-body strong {
    font-size: 14px;
    color: #0A246A;
    line-height: 1.25;
}

.site-stats-map-legend-body i {
    display: block;
    height: 6px;
    background: #e8eef3;
    border-radius: 99px;
    overflow: hidden;
}

.site-stats-map-legend-body em {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0079B0, #5bb8e8);
    border-radius: 99px;
    transition: width 0.35s ease;
}

.site-stats-map-legend-item b {
    font-size: 13px;
    color: #0079B0;
    white-space: nowrap;
}

.site-stats-map-legend-item.is-offmap {
    opacity: 0.72;
}

.site-stats-bar-label {
    font-size: 11px;
    color: #6b7280;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.site-stats-bar-item.is-active .site-stats-bar-label,
.site-stats-bar-item:hover .site-stats-bar-label,
.site-stats-bar-item:focus-visible .site-stats-bar-label {
    color: #0A246A;
    font-weight: 700;
}

.site-stats-bar-value {
    font-size: 11px;
    font-weight: 700;
    color: #0A246A;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-stats-bar-item.is-active .site-stats-bar-value,
.site-stats-bar-item:hover .site-stats-bar-value,
.site-stats-bar-item:focus-visible .site-stats-bar-value {
    opacity: 1;
    transform: translateY(0);
}

@keyframes site-stats-marker-pulse {
    0% {
        transform: scale(0.72);
        opacity: 0.65;
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.site-stats-geo-ring {
    --ru-pct: 50;
    width: 148px;
    height: 148px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 56%, transparent 57%),
        conic-gradient(#DB002A 0 calc(var(--ru-pct) * 1%), #0079B0 calc(var(--ru-pct) * 1%) 100%);
    box-shadow: inset 0 0 0 1px #e8eef3;
}

.site-stats-geo-ring-center {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.site-stats-geo-ring-center strong {
    font-size: 28px;
    color: #0A246A;
    line-height: 1;
}

.site-stats-geo-ring-center span {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.site-stats-geo-legend {
    display: grid;
    gap: 8px;
}

.site-stats-geo-legend-item {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: #334155;
}

.site-stats-geo-legend-item i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.site-stats-geo-legend-item i.is-ru {
    background: #DB002A;
}

.site-stats-geo-legend-item i.is-abroad {
    background: #0079B0;
}

.site-stats-geo-legend-item b {
    color: #0A246A;
}

.site-stats-rating-list {
    display: grid;
    gap: 10px;
}

.site-stats-rating-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.2fr auto;
    gap: 10px;
    align-items: center;
    font-size: 14px;
}

.site-stats-rating-row span {
    color: #334155;
}

.site-stats-rating-row i {
    display: block;
    height: 8px;
    background: #eef2f5;
    border-radius: 99px;
    overflow: hidden;
}

.site-stats-rating-row em {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0079B0, #5bb8e8);
    border-radius: 99px;
}

.site-stats-rating-row b {
    color: #0A246A;
    min-width: 24px;
    text-align: right;
}

.site-stats-top-articles {
    margin: 14px 18px 0;
}

.site-stats-top-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.site-stats-top-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f5;
}

.site-stats-top-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.site-stats-top-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF8000, #DB002A);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.site-stats-top-body a {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #0A246A;
    text-decoration: none;
    line-height: 1.35;
}

.site-stats-top-body a:hover {
    color: #0079B0;
}

.site-stats-top-body small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.site-stats-empty {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.site-stats-more,
.site-stats-footer-note,
.site-stats-page-intro {
    font-size: 14px;
    color: #5b6474;
    line-height: 1.45;
}

.site-stats-footer-note {
    margin: 14px 18px 18px;
}

.site-stats-more {
    margin: 0 0 4px;
}

.site-stats-more a {
    font-weight: 700;
    color: #FF8000;
}

.rubric-empty-note {
    margin: 12px 0;
    font-size: 16px;
    color: #5b6474;
}

@media (max-width: 900px) {
    .site-stats-hero {
        grid-template-columns: 1fr;
    }

    .site-stats-panel-full .site-stats-kpis,
    .site-stats-grid {
        grid-template-columns: 1fr;
    }

    .site-stats-map-layout {
        grid-template-columns: 1fr;
    }
}

.day-news-content {
    font-size: 18px;
    line-height: 1.8;
    color: #1e293b;
}

.day-news-content p {
    font-size: 18px;
    margin: 0 0 1.25em;
    text-indent: 0;
}

.day-news-content p.day-news-lead {
    font-size: 18px;
    line-height: 1.7;
    color: #334155;
}

.day-news-content p:last-of-type {
    margin-bottom: 0;
}

.day-news-figure {
    margin: 0 0 28px;
    padding: 0;
    text-align: center;
}

.day-news-hero,
.day-news-content .article-inline-image {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 0 auto 28px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.day-news-source {
    display: block;
    margin-top: 32px;
    padding: 14px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
}

.day-news-source a {
    color: #005566;
    word-break: break-all;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.day-news-source a:hover {
    color: #DB002A;
}

.article-body .fr-view,
.article-view-body .fr-view {
    font-size: var(--site-font-body);
    font-weight: var(--site-font-body-weight);
    font-style: var(--site-font-body-style);
    line-height: var(--site-line-relaxed);
    color: var(--site-color-text);
    word-wrap: break-word;
    overflow: visible;
    text-align: left;
}

.rubric-description.fr-view,
.page-inner .fr-view,
.edition-intro,
.department-intro {
    font-size: var(--site-font-body);
    font-weight: var(--site-font-body-weight);
    font-style: var(--site-font-body-style);
    line-height: var(--site-line-body);
    color: var(--site-color-text);
    word-wrap: break-word;
    overflow: visible;
    text-align: left;
}

.fr-view p {
    margin: 0 0 1em;
    line-height: 1.7;
}

.fr-view p:last-child {
    margin-bottom: 0;
}

/* Сброс float после каждого абзаца — картинки не «плывут» в следующие блоки */
.fr-view p::after,
.fr-view div:not(.fr-img-wrap)::after {
    content: "";
    display: table;
    clear: both;
}

.fr-view ul,
.fr-view ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}

.fr-view li {
    margin-bottom: 0.4em;
}

.fr-view h1,
.fr-view h2,
.fr-view h3,
.fr-view h4 {
    margin: 1.2em 0 0.6em;
    line-height: var(--site-line-tight);
    font-family: var(--site-font-heading-family);
    color: var(--site-color-heading);
    font-weight: 600;
}

.fr-view h1 { font-size: var(--site-font-page-title); }
.fr-view h2 { font-size: var(--site-font-section-title); }
.fr-view h3 { font-size: var(--site-font-article-title); }
.fr-view h4 { font-size: var(--site-font-body-sm); }

.fr-view strong,
.fr-view b {
    font-weight: 700;
}

.fr-view a {
    color: var(--site-color-link);
    text-decoration: underline;
}

.fr-view a:hover {
    color: var(--site-color-link-hover);
}

/* Картинки из Froala и старых статей с inline float */
.page-inner .fr-view img {
    height: auto;
    border: 0;
}

.page-inner .fr-view img[style*="float"],
.page-inner .fr-view img.fr-fil,
.page-inner .fr-view img.fr-fir,
.page-inner .fr-view img.fr-dii,
.page-inner .fr-view img.fr-dib {
    max-width: 50%;
}

.page-inner .fr-view img[style*="float: left"],
.page-inner .fr-view img[style*="float:left"],
.page-inner .fr-view img.fr-fil {
    float: left;
    margin: 4px 14px 10px 0;
}

.page-inner .fr-view img[style*="float: right"],
.page-inner .fr-view img[style*="float:right"],
.page-inner .fr-view img.fr-fir {
    float: right;
    margin: 4px 0 10px 14px;
}

.page-inner .fr-view .fr-img-caption {
    max-width: 100%;
}

.page-inner .fr-view h1,
.page-inner .fr-view h2,
.page-inner .fr-view h3 {
    border-left: none;
    padding-left: 0;
    font-size: inherit;
}

.related-articles {
    margin-top: 32px;
    padding: 20px 22px;
    background: #f8f9fa;
    border-left: 4px solid #0079B0;
    border-radius: 0 8px 8px 0;
}

.related-articles h3 {
    margin: 0 0 14px;
    font-family: var(--site-font-heading-family);
    font-size: var(--site-font-article-title);
    font-weight: 600;
    color: var(--site-color-heading);
}

.related-articles ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-articles li {
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.5;
}

.related-articles li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.related-articles a {
    color: #005566;
    text-decoration: none;
    font-weight: 500;
}

.related-articles a:hover {
    color: #DB002A;
    text-decoration: underline;
}

.page-inner .article-title img.fotothumb,
.page-inner .secondary_articles img.fotothumb {
    float: left;
    margin: 0 12px 8px 0;
    border: 1px solid #eee;
    border-radius: 4px;
    max-width: 110px;
    height: auto;
}

.page-inner .article-title::after,
.page-inner .secondary_articles .article::after,
.page-inner article.article::after {
    content: "";
    display: table;
    clear: both;
}

.page-inner #article_nav {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    line-height: 2;
}

.page-inner #article_nav a {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #005566;
    font-weight: 600;
}

.page-inner #article_nav a:hover {
    background: #DB002A;
    color: #fff;
    text-decoration: none;
}

.site-write-editorial-link {
    color: #DB002A;
    font-weight: 600;
    text-decoration: underline;
}

.edition-intro,
.department-intro {
    line-height: var(--site-line-body);
}

.page-inner .edition-departments-nav {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: #f8fafc;
}

.page-inner .edition-intro + .edition-departments-nav {
    margin-top: 24px;
}

.page-inner .dept-page-header + .edition-departments-nav {
    margin-top: 4px;
}

.edition-dept-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.edition-dept-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dbe3ea;
    color: #0A246A;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(10, 36, 106, 0.05);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.edition-dept-btn:hover {
    background: #0A246A;
    border-color: #0A246A;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10, 36, 106, 0.14);
}

.edition-dept-btn--correspondents {
    border-color: #86efac;
    color: #166534;
    background: #f0fdf4;
}

.edition-dept-btn--correspondents:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.edition-dept-btn--accreditation {
    border-color: #c4b5fd;
    color: #5b21b6;
    background: #f5f3ff;
}

.edition-dept-btn--accreditation:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

@media (max-width: 640px) {
    .edition-dept-btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
    }
}

.vacancy-resume-block {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.site-contact-inline-btn,
.site-contact-submit {
    display: inline-block;
    background: #DB002A;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
}

.site-contact-inline-btn:hover,
.site-contact-submit:hover {
    background: #b30022;
}

.site-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.site-contact-modal[hidden] {
    display: none !important;
}

.site-contact-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 36, 106, 0.55);
}

.site-contact-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    padding: 24px 24px 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.site-contact-dialog h2 {
    margin: 0 32px 8px 0;
    font-size: 22px;
    color: #0A246A;
}

.site-contact-lead {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 14px;
}

.site-contact-fields {
    overflow-y: auto;
    max-height: calc(100vh - 220px);
    padding-right: 4px;
}

.site-contact-actions {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e8eef3;
}

.site-contact-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.site-contact-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.site-contact-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.site-contact-form input,
.site-contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    box-sizing: border-box;
}

.site-contact-form input[type="file"] {
    padding: 8px 0;
    border: 0;
    background: transparent;
}

.site-contact-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.site-contact-status.is-ok { color: #0f766e; }
.site-contact-status.is-error { color: #DB002A; }

body.site-contact-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.footer-copy {
    margin-top: 12px;
    color: #94a3b8;
}

.site-contact-captcha {
    margin-top: 4px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.site-contact-captcha-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #0A246A;
}

.site-contact-captcha-target-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.site-contact-captcha-sample {
    display: inline-block;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    flex-shrink: 0;
}

.site-contact-captcha-hint {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.site-contact-captcha-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.site-contact-captcha-btn {
    height: 52px;
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.site-contact-captcha-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.site-contact-captcha-btn.is-selected {
    border-color: #0A246A;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0A246A;
}

.site-contact-captcha-error {
    margin: 10px 0 0;
    font-size: 13px;
    color: #DB002A;
}

@media (max-width: 480px) {
    .site-contact-captcha-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Разделы редакции: корреспонденты, реклама, вакансии */
.dept-breadcrumbs {
    margin-bottom: 12px;
}

.dept-page-header {
    margin-bottom: 20px;
}

.dept-page-header .page-title {
    margin: 0 0 8px;
    font-size: var(--site-font-page-title);
    color: #0A246A;
    border-left: 4px solid #0A246A;
    padding-left: 12px;
}

.dept-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: 20px 0 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.dept-search-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #0A246A;
    margin: 0;
}

.dept-search-input {
    min-width: min(320px, 100%);
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

.dept-search-count {
    font-size: 13px;
    color: #64748b;
}

.dept-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin: 8px 0 32px;
}

.dept-person-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(10, 36, 106, 0.06);
    transition: box-shadow .2s ease, transform .2s ease;
}

.dept-person-card:hover {
    box-shadow: 0 8px 24px rgba(10, 36, 106, 0.1);
    transform: translateY(-2px);
}

.dept-person-card--no-photo .dept-person-body {
    padding-left: 18px;
}

.page-inner .dept-person-photo {
    flex: 0 0 72px;
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    height: 72px;
    max-height: 72px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e8f4fa 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-inner .dept-person-photo img {
    display: block;
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    object-fit: cover;
}

.dept-person-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0A246A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.dept-person-body {
    flex: 1;
    min-width: 0;
    padding: 12px 14px 14px;
}

.dept-person-name {
    margin: 0 0 6px;
    font-family: var(--site-font-heading-family);
    font-size: var(--site-font-article-title);
    font-weight: 600;
    line-height: var(--site-line-tight);
    color: var(--site-color-article-title);
}

.dept-person-location {
    margin: 0 0 8px;
    font-size: 14px;
    color: #64748b;
}

.dept-person-code {
    margin: 0 0 10px;
    font-size: 13px;
    color: #005566;
}

.dept-person-code code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.dept-person-text {
    font-size: var(--site-font-body-sm);
    line-height: var(--site-line-relaxed);
    color: var(--site-color-text);
}

.dept-vacancy-list {
    display: grid;
    gap: 16px;
    margin-bottom: 8px;
}

.dept-vacancy-card {
    padding: 20px 22px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.dept-vacancy-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #0A246A;
}

.dept-vacancy-meta {
    margin: 8px 0 0;
    font-size: 14px;
    color: #475569;
}

.dept-empty {
    padding: 24px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

/* Аккредитация корреспондентов */
.accreditation-header {
    margin-bottom: 16px;
}

.accreditation-lead {
    margin: 0;
    font-size: 16px;
    color: #475569;
    line-height: 1.55;
}

.accreditation-search-block,
.accreditation-form-block {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(10, 36, 106, 0.05);
}

.accreditation-search-only {
    margin-top: 8px;
}

.accreditation-search-block h2,
.accreditation-form-block h2 {
    margin: 0 0 14px;
    font-size: 22px;
    color: #0A246A;
}

.accreditation-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.accreditation-search-row input[type="search"] {
    flex: 1 1 280px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

.accreditation-search-results {
    margin-top: 18px;
}

.accreditation-results-grid {
    margin: 0;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.accreditation-results-grid .dept-person-card {
    flex-direction: row;
    align-items: stretch;
}

.accreditation-results-grid .dept-person-photo {
    flex: 0 0 72px;
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    height: 72px;
    max-height: 72px;
    aspect-ratio: 1;
}

.accreditation-results-grid .dept-person-body {
    flex: 1;
    padding: 12px 14px 14px;
    min-width: 0;
}

.accreditation-results-grid .dept-person-name {
    font-size: 16px;
}

.accreditation-results-grid .dept-person-placeholder {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.dept-person-position {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.accreditation-verified {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
}

.accreditation-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin-bottom: 18px;
}

.accreditation-form-grid label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #0A246A;
}

.accreditation-form-grid input,
.accreditation-form-grid textarea {
    font-weight: 400;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}

.accreditation-field-wide {
    grid-column: 1 / -1;
}

.accreditation-status {
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.accreditation-status.is-ok {
    background: #ecfdf5;
    color: #166534;
}

.accreditation-status.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 640px) {
    .dept-people-grid {
        grid-template-columns: 1fr;
    }

    .page-inner .dept-person-photo {
        flex: 0 0 64px;
        width: 64px;
        min-width: 64px;
        max-width: 64px;
        height: 64px;
        max-height: 64px;
    }

    .page-inner .dept-person-photo img {
        width: 64px;
        height: 64px;
        max-width: 64px;
        max-height: 64px;
    }

    .accreditation-form-grid {
        grid-template-columns: 1fr;
    }
}

/* === Единая типографика: нормализация legacy-разметки === */
.site-shell font {
    font-family: inherit;
    font-size: inherit !important;
    line-height: inherit;
}

.page-inner font[color="#0A246A"],
.page-inner font[color="#0a246a"] {
    color: var(--site-color-article-title) !important;
}

.page-inner font[color="#0079B0"],
.page-inner font[color="#0079b0"],
.page-inner font[color="blue"] {
    color: var(--site-color-link) !important;
}

.page-inner font[color="red"],
.page-inner font[color="#ff0000"],
.page-inner font[color="#FF0000"] {
    color: var(--site-color-accent) !important;
}

.page-inner font[color="black"],
.page-inner font[color="#000000"],
.page-inner font[color="#000"] {
    color: var(--site-color-text) !important;
    font-weight: inherit;
}

.page-inner .fr-view :not(a):not(h1):not(h2):not(h3):not(h4)[style*="color"],
.page-inner .edition-intro :not(a)[style*="color"],
.page-inner .department-intro :not(a)[style*="color"] {
    color: inherit !important;
}

.page-inner .fr-view [style*="font-size"],
.page-inner .edition-intro [style*="font-size"],
.page-inner .department-intro [style*="font-size"] {
    font-size: inherit !important;
}

.page-inner .fr-view strong,
.page-inner .fr-view b,
.page-inner .edition-intro strong,
.page-inner .department-intro strong {
    font-weight: 600;
    color: inherit;
}

footer .footer-text p,
footer .footer-text.fr-view p {
    margin: 0 0 0.75em;
    color: inherit;
}

footer .footer-text .site-write-editorial-link {
    color: #fca5a5;
    font-weight: 600;
}

footer .footer-text .site-write-editorial-link:hover {
    color: #fff;
}

footer .footer-text span[style*="color:#DB002A"],
footer .footer-text span[style*="color: #DB002A"] {
    color: #f87171 !important;
}

footer .footer-text span[style*="color:blue"],
footer .footer-text span[style*="color: blue"] {
    color: #93c5fd !important;
}
