/* ===== CSS ПЕРЕМЕННЫЕ И СБРОС ===== */
:root {
 --chocolate: #5D4037;
 --chocolate-light: #8D6E63;
 --chocolate-dark: #3E2723;
 --paper: #F8F4E9;
 --ink: #1A1816;
 --accent-red: #8B0000;
 --accent-light: #c0a062;
 --border: #ddd;
 --shadow: rgba(0,0,0,0.08);
 --font-serif: 'TimesNewRoman', 'Times New Roman', Times, serif;
 --font-heading: 'Garamond', serif;
 --font-decorative: 'Garamond', serif;
 --font-old: 'TimesNewRoman', serif;
}

* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

html {
 font-size: 16px;
 scroll-behavior: smooth;
}

body {
 font-family: var(--font-serif);
 font-size: 1.125rem;
 line-height: 1.7;
 color: var(--ink);
 background: var(--paper);
 background-image: 
 linear-gradient(rgba(93, 64, 55, 0.03) 1px, transparent 1px),
 linear-gradient(90deg, rgba(139, 0, 0, 0.1) 1px, transparent 1px);
 background-size: 50px 50px, 40px auto, auto;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
 min-height: 100vh;
 display: flex;
 flex-direction: column;
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
#tmpl-container {
 width: 100%;
 margin: 0 auto;
 background: rgba(248, 244, 233, 0.85);
 box-shadow: 0 0 0 1px rgba(93, 64, 55, 0.1), 
 0 0 30px rgba(93, 64, 55, 0.05), 
 inset 0 0 50px rgba(248, 244, 233, 0.5);
 min-height: 100vh;
 position: relative;
 flex: 1;
}

/* ===== ШАПКА (все стили из GLOBAL_AHEADER) ===== */
/* Новые контейнеры для шапки и футера */
.top-container,
.ticker-container,
.header-container,
.footer-wrapper {
 max-width: 1800px;
 margin: 0 auto;
 padding: 0 20px;
}

/* Убедитесь, что баннеры не сужаются */
.main-banner,
.latest-news-section {
 max-width: 1800px;
 margin-left: auto;
 margin-right: auto;
 padding-left: 20px;
 padding-right: 20px;
}

/* Блок #top */
#top {
 background: linear-gradient(135deg, var(--chocolate-dark), var(--chocolate));
 padding: 15px 0;
 border-bottom: 3px solid var(--accent-red);
 position: relative;
 z-index: 1002;
 margin-bottom: 0;
}

#top .cnt {
 max-width: 1800px;
 margin: 0 auto;
 padding: 0 20px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
}

.oh { overflow: hidden; }

.top-left, .top-right {
 display: flex;
 align-items: center;
 gap: 20px;
 flex-wrap: wrap;
}

.top-left a, .top-right a {
 color: white;
 text-decoration: none;
 font-family: var(--font-heading);
 font-size: 1.1rem;
 transition: all 0.3s ease;
 display: flex;
 align-items: center;
 gap: 8px;
}

.top-left a {
 padding: 8px 15px;
 border-radius: 3px;
}

.top-left a:hover {
 background: rgba(255, 255, 255, 0.2);
 transform: translateY(-2px);
}

.sprt {
 color: rgba(255, 255, 255, 0.5);
 font-style: normal;
}

.top-left a i, .top-right a i {
 font-size: 1.2rem;
}

.top-left a.login-link {
 border: 1px solid rgba(255, 255, 255, 0.3);
}

.top-left a.register-link {
 background: var(--accent-red);
 border: 1px solid var(--accent-red);
}

.top-left a.profile-link {
 border: 1px solid rgba(255, 255, 255, 0.3);
 background: rgba(255, 255, 255, 0.1);
}

.top-left a.logout-link {
 background: rgba(139, 0, 0, 0.7);
 border: 1px solid rgba(139, 0, 0, 0.5);
}

/* Социальные иконки в шапке */
.top-right.editor-social {
 justify-content: flex-start;
 border: none;
 padding: 0;
 margin: 0;
 gap: 15px;
}

.top-right a.social-icon {
 background: transparent;
 border: none;
 padding: 8px;
 display: flex;
 align-items: center;
 justify-content: center;
 border-radius: 50%;
 width: 40px;
 height: 40px;
 transition: all 0.3s ease;
}

.top-right a.social-icon:hover {
 background: rgba(255, 255, 255, 0.2);
 transform: translateY(-2px);
}

.top-right a.social-icon i {
 font-size: 1.4rem;
}

/* Поиск */
#search {
 position: relative;
 z-index: 1003;
 margin-left: auto;
}

.search-icon-wrapper {
 position: relative;
 display: flex;
 align-items: center;
}

.search-toggle {
 cursor: pointer;
 color: white;
 padding: 10px;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: all 0.3s ease;
 border-radius: 3px;
 background: rgba(255, 255, 255, 0.1);
 width: 40px;
 height: 40px;
 position: relative;
 z-index: 1005;
}

.search-toggle:hover {
 background: rgba(255, 255, 255, 0.2);
 transform: translateY(-2px);
}

.search-form-container {
 position: absolute;
 top: 0;
 right: 0;
 transform: translateX(100%);
 opacity: 0;
 visibility: hidden;
 transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 z-index: 1004;
 background: rgba(61, 43, 31, 0.98);
 backdrop-filter: blur(10px);
 border-radius: 0 3px 3px 0;
 box-shadow: 5px 0 20px rgba(0,0,0,0.3);
 display: flex;
 align-items: center;
 height: 100%;
}

.search-form-container.active {
 opacity: 1;
 visibility: visible;
 transform: translateX(0);
}

.search-form {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 0 15px;
 height: 100%;
 width: 350px;
}

.queryField {
 flex: 1;
 padding: 12px 15px;
 font-family: var(--font-serif);
 font-size: 1.1rem;
 border: none;
 outline: none;
 background: rgba(255,255,255,0.9);
 border-radius: 3px;
 color: var(--chocolate-dark);
 transition: all 0.3s ease;
 min-width: 0;
}

.queryField:focus {
 background: white;
 box-shadow: 0 0 0 2px rgba(139,0,0,0.3);
}

.search-icon-inside { display: none; }

.search-submit-btn {
 background: var(--accent-red);
 color: white;
 border: none;
 border-radius: 3px;
 padding: 12px 20px;
 cursor: pointer;
 font-family: var(--font-heading);
 font-size: 1rem;
 font-weight: bold;
 transition: all 0.3s ease;
 white-space: nowrap;
}

.search-submit-btn:hover {
 background: #6B0000;
 transform: translateY(-1px);
}

.search-suggestions {
 position: absolute;
 top: 100%;
 left: 15px;
 right: 15px;
 background: white;
 border-radius: 0 0 3px 3px;
 box-shadow: 0 5px 15px rgba(0,0,0,0.2);
 max-height: 300px;
 overflow-y: auto;
 display: none;
 z-index: 1005;
}

.search-suggestions.active {
 display: block;
}

.suggestion-item {
 padding: 12px 15px;
 border-bottom: 1px solid #eee;
 cursor: pointer;
 font-family: var(--font-serif);
 font-size: 1rem;
 transition: all 0.2s ease;
 color: var(--chocolate-dark);
}

.suggestion-item:last-child {
 border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.highlight {
 background: var(--paper);
 color: var(--chocolate-dark);
 padding-left: 20px;
}

/* Блок тикера */
#ticker {
 background: linear-gradient(135deg, var(--accent-red), #6B0000);
 color: white;
 padding: 12px 0;
 border-bottom: 3px double var(--chocolate);
 font-family: var(--font-heading);
 font-weight: bold;
 position: relative;
 z-index: 1001;
}

#ticker .cnt {
 max-width: 1800px;
 margin: 0 auto;
 padding: 0 20px;
}

#ticker marquee {
 font-size: 1.2rem;
 text-transform: uppercase;
 letter-spacing: 1px;
 line-height: 1.5;
}

/* Основной заголовок */
#header {
 background: rgba(248,244,233,0.95);
 padding: 40px 0 30px;
 border-bottom: 5px double var(--chocolate);
 position: relative;
 text-align: center;
 margin-bottom: 40px;
 z-index: 1000;
}

#header .cnt {
 max-width: 1800px;
 margin: 0 auto;
 padding: 0 20px;
 display: flex;
 flex-wrap: wrap;
 gap: 40px;
 position: relative;
 z-index: 1;
}

#logo {
 margin: 0 auto;
 width: 250px;
 height: 250px;
 background: linear-gradient(135deg, var(--paper), #f5f0e1);
 border: 15px double var(--chocolate);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 6.5rem;
 color: var(--chocolate-dark);
 box-shadow: 0 20px 50px rgba(0,0,0,0.2), inset 0 0 30px rgba(255,255,255,0.5);
 transition: transform 0.3s ease;
}

#logo:hover {
 transform: scale(1.05);
}

#logo a {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 100%;
 height: 100%;
 text-decoration: none;
}

#logo img {
 width: 85%;
 height: 85%;
 object-fit: contain;
 border-radius: 50%;
 filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.newspaper-title {
 font-family: 'Georgia', serif;
 font-size: 4.5rem;
 color: var(--chocolate-dark);
 text-transform: uppercase;
 letter-spacing: 4px;
 margin-bottom: 10px;
 text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.newspaper-subtitle {
 font-family: var(--font-heading);
 font-size: 1.8rem;
 color: var(--accent-red);
 font-style: italic;
 margin-bottom: 20px;
 letter-spacing: 1px;
}

.newspaper-date {
 font-family: 'Palatino', serif;
 font-size: 1.4rem;
 color: var(--chocolate);
 font-weight: bold;
 padding: 10px 30px;
 display: inline-block;
 border: 2px solid var(--chocolate);
 background: rgba(255,255,255,0.9);
 margin-top: 20px;
}

/* Баннер с мессенджерами */
.main-banner {
 background: linear-gradient(135deg, var(--chocolate-dark), var(--chocolate));
 color: white;
 padding: 50px 20px; /* Изменено для унификации */
 text-align: center;
 margin: 50px auto; /* Изменено для центрирования */
 position: relative;
 overflow: hidden;
 border: 3px solid var(--accent-red);
 box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.main-banner::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23fff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
 opacity: 0.1;
}

.banner-title {
 font-family: 'Georgia', serif;
 font-size: 2.5rem;
 margin-bottom: 20px;
 letter-spacing: 2px;
 position: relative;
 z-index: 1;
 color: white;
}

.banner-subtitle {
 font-family: var(--font-heading);
 font-size: 1.4rem;
 margin-bottom: 40px;
 position: relative;
 z-index: 1;
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
 line-height: 1.6;
 color: #F0F0F0;
}

.messengers-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
 margin-bottom: 40px;
 position: relative;
 z-index: 1;
}

.messenger-card {
 background: rgba(255,255,255,0.95);
 border-radius: 15px;
 padding: 35px 25px;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 transition: all 0.3s ease;
 box-shadow: 0 10px 20px rgba(0,0,0,0.15);
 border: 2px solid transparent;
 transform-style: preserve-3d;
}

.messenger-card:hover {
 transform: translateY(-10px) translateZ(20px);
 box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.messenger-card.telegram:hover { border-color: #0088cc; }
.messenger-card.max:hover { border-color: #0077FF; }
.messenger-card.vk:hover { border-color: #4C75A3; }

.messenger-icon {
 width: 100px;
 height: 100px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 margin-bottom: 25px;
 box-shadow: 0 8px 16px rgba(0,0,0,0.2);
 color: white;
 overflow: hidden;
 background: white;
}

.messenger-icon img {
 width: 70%;
 height: 70%;
 object-fit: contain;
}

.messenger-icon.telegram {
 background: linear-gradient(135deg, #0088cc, #006699);
}

.messenger-icon.max {
 background: linear-gradient(135deg, #0077FF, #0055CC);
}

.messenger-icon.vk {
 background: linear-gradient(135deg, #4C75A3, #3A5A7A);
}

.messenger-icon.telegram i,
.messenger-icon.vk i {
 font-size: 3.5rem !important;
 width: 100%;
 height: 100%;
 display: flex;
 align-items: center;
 justify-content: center;
}

.messenger-name {
 font-family: 'Georgia', serif;
 font-size: 1.8rem;
 margin-bottom: 15px;
 font-weight: bold;
}

.messenger-card.telegram .messenger-name { color: #006699; }
.messenger-card.max .messenger-name { color: #0055CC; }
.messenger-card.vk .messenger-name { color: #3A5A7A; }

.messenger-description {
 font-family: var(--font-heading);
 font-size: 1.1rem;
 color: #555;
 text-align: center;
 margin-bottom: 25px;
 line-height: 1.5;
}

.messenger-button {
 padding: 14px 35px;
 border-radius: 50px;
 font-family: 'Georgia', serif;
 font-size: 1.2rem;
 font-weight: bold;
 text-transform: uppercase;
 border: none;
 cursor: pointer;
 transition: all 0.3s ease;
 display: flex;
 align-items: center;
 gap: 12px;
 box-shadow: 0 6px 15px rgba(0,0,0,0.2);
 background: var(--accent-red);
 color: white;
 transform: translateY(0) translateZ(0);
}

.messenger-button:hover {
 background: #6B0000;
 transform: translateY(-3px) translateZ(10px);
 box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.messenger-button i { font-size: 1.4rem; }

.messenger-stats {
 display: flex;
 justify-content: center;
 gap: 40px;
 margin-top: 40px;
 flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
 font-family: 'Georgia', serif;
 font-size: 2.2rem;
 font-weight: bold;
 color: #FFD700;
 margin-bottom: 5px;
}

.stat-label {
 font-family: var(--font-heading);
 font-size: 1.1rem;
 color: #DDD;
}

/* Блок последних новостей */
.latest-news-section {
 margin: 50px auto; /* Изменено для центрирования */
 padding: 40px 20px; /* Изменено для унификации */
 background: rgba(255,255,255,0.95);
 border: 3px solid var(--chocolate);
 position: relative;
}

.latest-news-section::before {
 content: 'ПОСЛЕДНИЕ НОВОСТИ';
 position: absolute;
 top: -20px;
 left: 50%;
 transform: translateX(-50%);
 background: var(--paper);
 color: var(--accent-red);
 padding: 10px 30px;
 font-family: 'Georgia', serif;
 font-size: 1.8rem;
 font-weight: bold;
 border: 2px solid var(--chocolate);
 white-space: nowrap;
 z-index: 2;
}

.news-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
 margin-top: 30px;
}

.news-card {
 background: linear-gradient(135deg, #FFF8E1, #FFF);
 border: 1px solid var(--chocolate-light);
 padding: 25px;
 position: relative;
 transition: all 0.3s ease;
 cursor: pointer;
 transform-style: preserve-3d;
 transform: translateZ(0);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 box-shadow: 0 4px 15px rgba(0,0,0,0.1), 0 6px 20px rgba(0,0,0,0.05);
}

.news-card:hover {
 transform: translateY(-5px) translateZ(20px) scale(1.02);
 box-shadow: 0 8px 25px rgba(0,51,160,0.15), 0 12px 35px rgba(0,0,0,0.1);
}

.news-card::before {
 content: '✎';
 position: absolute;
 top: -15px;
 left: -15px;
 background: var(--accent-red);
 color: white;
 width: 40px;
 height: 40px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 1.5rem;
}

.news-card h3 {
 font-family: 'Georgia', serif;
 font-size: 1.4rem;
 color: var(--chocolate-dark);
 margin-bottom: 15px;
 padding-bottom: 10px;
 border-bottom: 1px dashed var(--chocolate);
}

.news-card p {
 font-size: 1rem;
 line-height: 1.6;
 margin-bottom: 15px;
}

.news-date {
 font-family: var(--font-heading);
 font-size: 0.9rem;
 color: var(--chocolate-light);
 font-style: italic;
 text-align: right;
}

/* ===== СТИЛИ ДЛЯ ГАЗЕТНОГО МАКЕТА ===== */
/* Новый контейнер для всего контента */
.main-content-wrapper {
 width: 100%;
 max-width: 1800px;
 margin: 0 auto;
 padding: 0 20px;
}

/* Основная сетка контента */
.content-wrapper {
 display: grid;
 grid-template-columns: 1fr 400px;
 gap: 40px;
 padding: 30px 0;
}

.main-content {
 width: 100%;
}

/* Стили газетного макета */
.newspaper-layout {
 width: 100%;
}

.newspaper-header {
 text-align: center;
 margin: 0 0 30px 0;
 padding: 20px 0;
 border-top: 2px solid var(--chocolate);
 border-bottom: 2px solid var(--chocolate);
}

.header-ornament {
 font-size: 1.8rem;
 letter-spacing: 4px;
 margin: 0;
 padding: 0;
 color: var(--accent-red);
 font-family: 'Georgia', serif;
}

.newspaper-columns {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 40px;
 margin-bottom: 50px;
}

.newspaper-col {
 background: #fff;
 padding: 25px;
 border: 1px solid var(--chocolate-light);
 box-shadow: 0 5px 15px rgba(93, 64, 55, 0.1);
 border-radius: 3px;
}

.news-block {
 margin-bottom: 25px;
 padding-bottom: 20px;
 border-bottom: 1px solid var(--chocolate-light);
}

.news-block:last-child {
 border-bottom: none;
 margin-bottom: 0;
 padding-bottom: 0;
}

.breaking-news {
 border-left: 5px solid var(--accent-red);
 padding-left: 20px;
 margin-left: -25px;
 background: linear-gradient(to right, rgba(139, 0, 0, 0.05), transparent);
}

.newspaper-article {
 position: relative;
}

.newspaper-headline {
 font-family: 'Georgia', serif;
 font-size: 1.4rem;
 font-weight: 700;
 color: var(--chocolate-dark);
 margin-bottom: 15px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 10px;
}

.newspaper-headline i {
 color: var(--accent-red);
 margin-right: 10px;
}

.title1-more {
 font-family: var(--font-serif);
 font-size: 0.9rem;
 color: var(--chocolate);
 text-decoration: none;
 display: flex;
 align-items: center;
 gap: 5px;
 padding: 5px 10px;
 border: 1px solid var(--chocolate-light);
 border-radius: 3px;
 transition: all 0.3s ease;
 background: rgba(248, 244, 233, 0.5);
}

.title1-more:hover {
 color: var(--accent-red);
 background: rgba(139, 0, 0, 0.05);
 border-color: var(--accent-red);
}

.newspaper-text {
 font-family: var(--font-serif);
 font-size: 1.1rem;
 line-height: 1.6;
 color: var(--ink);
 margin-bottom: 15px;
}

.newspaper-text p {
 text-align: justify;
 margin-bottom: 1em;
 text-indent: 1.5em;
}

.newspaper-text p:first-of-type {
 text-indent: 0;
}

.newspaper-divider {
 text-align: center;
 color: var(--chocolate-light);
 font-size: 1.5rem;
 margin: 15px 0;
 font-family: var(--font-old);
}

.column-ornament {
 text-align: center;
 font-family: var(--font-heading);
 font-size: 1.2rem;
 color: var(--chocolate);
 margin: 25px 0 20px;
 padding: 10px 0;
 border-top: 1px solid var(--chocolate-light);
 border-bottom: 1px solid var(--chocolate-light);
 letter-spacing: 2px;
}

.bottom-section {
 margin-top: 30px;
 padding-top: 30px;
 border-top: 2px solid var(--accent-light);
}

/* Слайдер */
#slider-cnt {
 width: 100%;
 max-width: 1800px;
 margin: 30px auto;
}

#slider {
 width: 100%;
 overflow: hidden;
 border: 3px solid var(--chocolate);
 border-radius: 5px;
 box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#slider ul {
 list-style: none;
 margin: 0;
 padding: 0;
 display: flex;
 animation: slide 20s infinite;
}

@keyframes slide {
 0%, 20% { transform: translateX(0); }
 25%, 45% { transform: translateX(-100%); }
 50%, 70% { transform: translateX(-200%); }
 75%, 95% { transform: translateX(-300%); }
 100% { transform: translateX(0); }
}

#slider li {
 min-width: 100%;
 box-sizing: border-box;
}

#slider img {
 width: 100%;
 height: auto;
 display: block;
}

/* ===== БОКОВАЯ ПАНЕЛЬ (CLEFTER) ===== */
#sidebar {
 background: var(--paper);
 border: 1px solid var(--chocolate-light);
 padding: 30px;
 border-radius: 3px;
 box-shadow: 0 5px 15px rgba(93, 64, 55, 0.1);
 position: sticky;
 top: 20px;
 height: fit-content;
 width: 100%;
}

.sidebar-content {
 width: 100%;
}

.sidebar-content > div {
 margin-bottom: 35px;
 padding-bottom: 25px;
 border-bottom: 2px solid var(--chocolate-light);
 width: 100%;
}

.sidebar-content > div:last-child {
 border-bottom: none;
 margin-bottom: 0;
 padding-bottom: 0;
}

.sidebar-content h3 {
 font-family: 'Georgia', serif;
 font-size: 1.4rem;
 color: var(--chocolate-dark);
 margin-bottom: 20px;
 padding-bottom: 10px;
 border-bottom: 2px solid var(--accent-light);
 position: relative;
 width: 100%;
}

.sidebar-content h3::after {
 content: '';
 position: absolute;
 bottom: -2px;
 left: 0;
 width: 60px;
 height: 3px;
 background: var(--accent-red);
}

.sidebar-content .widget,
.sidebar-content .block,
.sidebar-content .module,
.sidebar-content .panel {
 width: 100%;
 overflow: hidden;
}

#sidebar * { max-width: 100%; }
#sidebar img {
 max-width: 100%;
 height: auto;
 display: block;
 margin: 10px 0;
}
#sidebar ul,
#sidebar ol {
 margin-left: 20px;
 margin-bottom: 15px;
}
#sidebar li { margin-bottom: 8px; line-height: 1.5; }
#sidebar table {
 width: 100%;
 border-collapse: collapse;
 margin: 15px 0;
}
#sidebar th,
#sidebar td {
 padding: 8px 10px;
 border: 1px solid var(--chocolate-light);
 text-align: left;
}

/* Стили для гаzetа-секций в боковой панели */
.gazeta-section {
 background: rgba(255, 255, 255, 0.85);
 border: 1px solid rgba(139, 115, 85, 0.15);
 border-top: 3px double rgba(139, 115, 85, 0.4);
 padding: 18px;
 position: relative;
 box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
 border-radius: 3px 3px 0 0;
 transition: all 0.3s ease;
 font-family: var(--font-serif);
 width: 100%;
 margin-bottom: 20px;
 opacity: 0;
 transform: translateY(20px);
 animation: slideIn 0.5s ease forwards;
}

.gazeta-section:hover {
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
 transform: translateY(-2px);
}

@keyframes slideIn {
 to {
 opacity: 1;
 transform: translateY(0);
 }
}

/* Заголовок секции */
.section-header {
 margin-bottom: 12px;
 padding-bottom: 8px;
 border-bottom: 1px dashed rgba(139, 115, 85, 0.3);
 position: relative;
}

.gazeta-section h3 {
 font-family: var(--font-serif);
 font-size: 22px;
 font-weight: 700;
 color: var(--chocolate);
 margin: 0;
 text-transform: uppercase;
 letter-spacing: 1.5px;
 padding-left: 12px;
 position: relative;
 display: flex;
 align-items: center;
 gap: 10px;
}

.gazeta-section h3 i {
 color: var(--accent-red);
 font-size: 20px;
}

.section-subtitle {
 font-size: 15px; 
 color: var(--chocolate); 
 margin-top: 6px;
 padding-left: 12px;
 font-style: normal;
 letter-spacing: 0.5px;
 font-family: var(--font-serif);
 opacity: 0.8;
}

/* Контент секции */
.section-content {
 overflow-y: auto;
 padding-right: 5px;
 min-height: 220px;
 font-size: 14px;
 line-height: 1.6;
 color: var(--ink);
}

.block-cnt {
 display: flex;
 flex-direction: column;
 gap: 8px;
}

/* Широкая секция для Самарской губернии */
.wide-section {
 background: rgba(255, 255, 255, 0.88);
 border: 1px solid rgba(139, 115, 85, 0.15);
 border-top: 3px double rgba(139, 115, 85, 0.5);
 padding: 22px;
 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
 margin-top: 15px;
}

.wide-section .section-header {
 margin-bottom: 15px;
 padding-bottom: 10px;
 border-bottom: 2px double rgba(139, 115, 85, 0.4);
}

.wide-section h3 {
 font-size: 24px;
 margin: 0 0 8px 0;
 text-align: center;
 letter-spacing: 2px;
 padding: 8px 0;
 text-shadow: 1px 1px 1px rgba(139, 69, 19, 0.1);
 justify-content: center;
}

.wide-section .section-subtitle {
 font-size: 16px; 
 margin-top: 8px;
 text-align: center;
 letter-spacing: 0.7px;
}

.wide-section .section-content {
 min-height: 260px;
}

.wide-section .block-cnt {
 gap: 10px;
}

/* Стили для контента внутри секций */
.gazeta-section ul {
 list-style: none;
 padding: 0;
 margin: 0;
}

.gazeta-section li {
 margin-bottom: 12px;
 padding-bottom: 12px;
 border-bottom: 1px dotted rgba(139, 115, 85, 0.15);
 position: relative;
 padding-left: 15px;
}

.gazeta-section li:before {
 content: "•";
 color: var(--chocolate);
 position: absolute;
 left: 0;
 font-size: 18px;
}

.gazeta-section li:last-child {
 border-bottom: none;
 margin-bottom: 0;
 padding-bottom: 0;
}

.gazeta-section a {
 color: var(--ink);
 text-decoration: none;
 font-size: 15px;
 line-height: 1.5;
 display: block;
 padding: 5px 0;
 transition: all 0.2s ease;
}

.gazeta-section a:hover {
 color: var(--chocolate);
 text-decoration: underline;
 padding-left: 5px;
}

/* Специфические стили для каждой секции */
.council-section {
 border-left: 4px solid #8B4513;
 background: linear-gradient(to right, rgba(139, 69, 19, 0.05), transparent);
}

.duma-section {
 border-left: 4px solid #B22222;
 background: linear-gradient(to right, rgba(178, 34, 34, 0.05), transparent);
}

.government-section {
 border-left: 4px solid #2E8B57;
 background: linear-gradient(to right, rgba(46, 139, 87, 0.05), transparent);
}

.rgo-section {
 border-left: 4px solid #1E90FF;
 background: linear-gradient(to right, rgba(30, 144, 255, 0.05), transparent);
}

.cossacks-section {
 border-left: 4px solid #8B0000;
 background: linear-gradient(to right, rgba(139, 0, 0, 0.05), transparent);
}

.samara-section {
 border-left: 4px solid #8B7355;
 background: linear-gradient(to right, rgba(139, 115, 85, 0.05), transparent);
}

/* ===== ФУТЕР (все стили из GLOBAL_BFOOTER) ===== */
.newspaper-footer {
 background: var(--paper);
 color: var(--ink);
 border-top: 4px double var(--accent-red);
 border-bottom: 4px double var(--accent-red);
 padding: 40px 30px 20px;
 font-family: var(--font-serif);
 position: relative;
 margin-top: 60px;
 background-image: 
 linear-gradient(rgba(93, 64, 55, 0.03) 1px, transparent 1px),
 linear-gradient(90deg, rgba(93, 64, 55, 0.03) 1px, transparent 1px);
 background-size: 25px 25px;
}

.newspaper-footer::before {
 content: '';
 position: absolute;
 top: -20px;
 left: 0;
 right: 0;
 height: 1px;
 background: linear-gradient(90deg, 
 transparent 0%, 
 var(--accent-red) 20%, 
 var(--accent-light) 50%, 
 var(--accent-red) 80%, 
 transparent 100%);
 box-shadow: 0 2px 4px rgba(93, 64, 55, 0.1);
}

.footer-container {
 max-width: 1400px;
 margin: 0 auto;
 padding: 0 20px;
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 40px;
 position: relative;
 z-index: 1;
 margin-bottom: 40px;
 padding-bottom: 30px;
 border-bottom: 2px solid var(--accent-light);
}

.footer-container::after {
 content: '';
 position: absolute;
 bottom: -2px;
 left: 0;
 right: 0;
 height: 1px;
 background: var(--accent-red);
 opacity: 0.5;
}

/* Колонки футера */
.footer-column {
 position: relative;
 padding: 25px;
 background: rgba(255, 255, 255, 0.92);
 border: 1px solid var(--paper);
 box-shadow: 0 3px 12px rgba(93, 64, 55, 0.05);
 border-radius: 2px;
 min-height: 380px;
}

.footer-column h4 {
 font-family: var(--font-heading);
 font-size: 1.1rem;
 font-weight: 700;
 color: var(--accent-red);
 text-transform: uppercase;
 letter-spacing: 1px;
 margin-bottom: 20px;
 padding-bottom: 10px;
 border-bottom: 2px solid var(--accent-light);
 position: relative;
}

.footer-column h4::after {
 content: '❧';
 position: absolute;
 right: 0;
 color: var(--accent-light);
 font-size: 1rem;
 font-family: var(--font-old);
}

/* Списки ссылок футера */
.footer-links {
 list-style: none;
 padding: 0;
 margin: 0 0 25px 0;
}

.footer-links li {
 margin-bottom: 12px;
 position: relative;
 padding-left: 15px;
}

.footer-links li::before {
 content: '›';
 position: absolute;
 left: 0;
 color: var(--accent-red);
 font-weight: bold;
}

.footer-links a {
 color: var(--ink);
 text-decoration: none;
 transition: color 0.3s ease;
 font-size: 0.95rem;
 display: flex;
 align-items: flex-start;
 line-height: 1.5;
}

.footer-links a:hover {
 color: var(--accent-red);
 padding-left: 8px;
}

.footer-links a i {
 color: var(--chocolate);
 margin-right: 10px;
 font-size: 1rem;
 min-width: 20px;
 text-align: center;
 flex-shrink: 0;
}

/* Контактная информация в футере */
.contact-info { margin-top: 20px; }

.contact-item {
 display: flex;
 align-items: flex-start;
 margin-bottom: 20px;
 padding-bottom: 20px;
 border-bottom: 1px solid var(--paper);
}

.contact-item:last-child {
 border-bottom: none;
 margin-bottom: 0;
 padding-bottom: 0;
}

.contact-icon {
 width: 40px;
 height: 40px;
 background: linear-gradient(135deg, var(--chocolate), var(--chocolate-dark));
 color: #fff;
 border-radius: 4px;
 display: flex;
 align-items: center;
 justify-content: center;
 margin-right: 15px;
 flex-shrink: 0;
 font-size: 1.2rem;
 box-shadow: 0 3px 6px rgba(93, 64, 55, 0.2);
}

.contact-text { flex: 1; }

.contact-label {
 font-size: 0.85rem;
 color: var(--ink);
 margin-bottom: 5px;
 display: block;
 font-style: italic;
 font-family: var(--font-decorative);
 font-weight: 500;
}

.contact-value {
 color: var(--ink);
 font-weight: 600;
 font-size: 0.95rem;
 line-height: 1.4;
}

/* Редакционная информация */
.editorial-info {
 background: linear-gradient(135deg, rgba(93, 64, 55, 0.04), rgba(192, 160, 98, 0.04));
 border: 2px solid var(--chocolate);
 border-radius: 6px;
 padding: 20px;
 margin-top: 25px;
 position: relative;
}

.editorial-info::before {
 content: 'РЕДАКЦИОННАЯ КОЛОНКА';
 position: absolute;
 top: -12px;
 left: 50%;
 transform: translateX(-50%);
 background: var(--paper);
 color: var(--chocolate-dark);
 padding: 3px 15px;
 font-size: 0.8rem;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 1.5px;
 border-radius: 3px;
 font-family: var(--font-heading);
 border: 1px solid var(--chocolate);
 white-space: nowrap;
}

.editor-details {
 text-align: center;
 margin-bottom: 20px;
 padding: 15px;
 background: rgba(255, 255, 255, 0.8);
 border-radius: 4px;
 border: 1px solid rgba(93, 64, 55, 0.1);
}

.editor-name {
 font-size: 1.2rem;
 color: var(--chocolate-dark);
 font-weight: 700;
 margin-bottom: 5px;
 font-family: var(--font-heading);
}

.editor-title {
 font-size: 0.95rem;
 color: var(--chocolate);
 margin-bottom: 15px;
 font-style: italic;
 font-family: var(--font-decorative);
}

.editor-contact {
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 15px;
 margin-bottom: 15px;
 padding: 10px;
 background: rgba(93, 64, 55, 0.06);
 border-radius: 4px;
}

.editor-contact span {
 display: flex;
 align-items: center;
 gap: 8px;
 color: var(--ink);
 font-weight: 500;
 font-size: 0.9rem;
}

.editor-contact i {
 color: var(--chocolate);
 font-size: 1rem;
}

.editor-social {
 display: flex;
 justify-content: center;
 gap: 10px;
 margin-top: 15px;
 padding-top: 15px;
 border-top: 1px solid rgba(93, 64, 55, 0.2);
}

/* Социальные иконки в футере */
.social-icon {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 background: linear-gradient(135deg, var(--paper), var(--paper));
 color: var(--chocolate);
 display: flex;
 align-items: center;
 justify-content: center;
 text-decoration: none;
 transition: all 0.3s ease;
 border: 2px solid var(--chocolate-light);
 font-size: 1.1rem;
 box-shadow: 0 4px 8px rgba(93, 64, 55, 0.1);
}

.social-icon:hover {
 transform: translateY(-3px);
 background: linear-gradient(135deg, var(--chocolate), var(--chocolate-dark));
 color: #fff;
 box-shadow: 0 6px 12px rgba(93, 64, 55, 0.2);
}

/* Юридическая информация */
.registration-info {
 background: #fff;
 border: 3px double var(--chocolate);
 border-radius: 6px;
 padding: 20px;
 margin-top: 20px;
 position: relative;
}

.registration-info::before {
 content: 'РЕГИСТРАЦИОННЫЕ ДАННЫЕ';
 position: absolute;
 top: -15px;
 left: 50%;
 transform: translateX(-50%);
 background: var(--paper);
 color: var(--chocolate-dark);
 padding: 4px 15px;
 font-size: 0.8rem;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 1.5px;
 border: 2px solid var(--chocolate);
 border-radius: 4px;
 white-space: nowrap;
 font-family: var(--font-heading);
}

.reg-item {
 margin-bottom: 12px;
 padding-bottom: 12px;
 border-bottom: 1px solid rgba(93, 64, 55, 0.15);
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.reg-item:last-child {
 border-bottom: none;
 margin-bottom: 0;
 padding-bottom: 0;
}

.reg-label {
 color: var(--ink);
 font-size: 0.85rem;
 font-style: italic;
 font-family: var(--font-decorative);
 min-width: 140px;
}

.reg-value {
 color: var(--ink);
 font-weight: 700;
 text-align: right;
 font-family: var(--font-old);
 font-size: 0.95rem;
}

/* Юридическое предупреждение */
.legal-warning {
 background: rgba(139, 0, 0, 0.05);
 border: 1px solid rgba(139, 0, 0, 0.2);
 border-left: 4px solid var(--accent-red);
 border-radius: 4px;
 padding: 15px;
 margin-top: 20px;
 position: relative;
}

.legal-warning strong {
 color: var(--accent-red);
 display: block;
 margin-bottom: 8px;
 font-size: 0.95rem;
 font-family: var(--font-heading);
}

.legal-warning p {
 color: var(--ink);
 line-height: 1.6;
 margin: 0 0 8px 0;
 font-size: 0.9rem;
 text-align: justify;
}

.legal-warning p:last-child { margin-bottom: 0; }

/* Блок официальных ресурсов */
.official-resources-block {
 background: rgba(93, 64, 55, 0.05);
 border: 1px solid var(--chocolate-light);
 border-left: 4px solid var(--chocolate);
 border-radius: 4px;
 padding: 18px;
 margin-top: 20px;
 position: relative;
 font-size: 0.9rem;
}

.official-resources-text {
 text-align: center;
 margin-bottom: 12px;
 color: var(--ink);
 font-style: italic;
 font-family: var(--font-decorative);
 line-height: 1.4;
}

.official-resources-text p {
 margin: 0;
 font-size: 0.9rem;
}

.official-resources-links {
 display: flex;
 flex-direction: column;
 gap: 10px;
}

.official-link {
 display: flex;
 align-items: flex-start;
 color: var(--chocolate-dark);
 text-decoration: none;
 padding: 10px 12px;
 background: rgba(255, 255, 255, 0.9);
 border-radius: 4px;
 border: 1px solid rgba(93, 64, 55, 0.1);
 transition: all 0.3s ease;
}

.official-link:hover {
 background: rgba(93, 64, 55, 0.05);
 transform: translateX(3px);
}

.official-link i {
 color: var(--accent-red);
 margin-right: 10px;
 font-size: 1rem;
 flex-shrink: 0;
 margin-top: 2px;
}

.official-link span {
 font-weight: 500;
 line-height: 1.4;
 font-size: 0.9rem;
}

/* Блок юридических документов сайта */
.legal-documents-block {
 background: rgba(93, 64, 55, 0.04);
 border: 1px solid rgba(93, 64, 55, 0.15);
 border-left: 3px solid var(--chocolate);
 border-radius: 4px;
 padding: 16px;
 margin-top: 18px;
 font-size: 0.9rem;
}

.legal-documents-text {
 display: flex;
 align-items: center;
 margin-bottom: 12px;
 color: var(--chocolate-dark);
 font-family: var(--font-heading);
 font-size: 0.95rem;
 font-weight: 700;
}

.legal-documents-text i {
 margin-right: 10px;
 color: var(--accent-red);
}

.legal-documents-links {
 display: flex;
 flex-direction: column;
 gap: 10px;
}

.legal-doc-link {
 display: flex;
 align-items: center;
 color: var(--ink);
 text-decoration: none;
 padding: 8px 10px;
 background: rgba(255, 255, 255, 0.9);
 border-radius: 3px;
 border: 1px solid rgba(93, 64, 55, 0.1);
 transition: all 0.3s ease;
 font-size: 0.9rem;
}

.legal-doc-link:hover {
 background: rgba(93, 64, 55, 0.05);
 transform: translateX(3px);
}

.legal-doc-link i {
 margin-right: 10px;
 color: var(--chocolate);
 min-width: 20px;
}

/* Блок статистики */
.counter-stats {
 background: linear-gradient(135deg, var(--paper), #fff);
 border: 2px solid var(--chocolate-light);
 border-radius: 6px;
 padding: 15px;
 margin-top: 20px;
 text-align: center;
 position: relative;
}

.counter-stats .stats-label {
 font-size: 0.9rem;
 color: var(--chocolate-dark);
 margin-bottom: 10px;
 display: block;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 1px;
 font-family: var(--font-heading);
}

.counter-icons {
 display: flex;
 justify-content: center;
 gap: 15px;
 flex-wrap: wrap;
 margin-top: 10px;
}

.counter-icons span {
 color: var(--ink);
 font-size: 0.8rem;
 font-style: italic;
 padding: 6px 10px;
 background: rgba(93, 64, 55, 0.06);
 border-radius: 4px;
 border: 1px solid rgba(93, 64, 55, 0.1);
 font-family: var(--font-decorative);
}

/* Копирайт */
.copyright {
 text-align: center;
 margin-top: 30px;
 padding-top: 25px;
 border-top: 2px solid var(--accent-light);
 font-size: 0.9rem;
 color: var(--ink);
 position: relative;
 font-family: var(--font-old);
}

.copyright::before {
 content: '❖ ❖ ❖';
 position: absolute;
 top: -15px;
 left: 50%;
 transform: translateX(-50%);
 color: var(--accent-red);
 letter-spacing: 10px;
 background: var(--paper);
 padding: 0 15px;
 font-size: 1.2rem;
 font-family: var(--font-old);
}

.copyright strong {
 color: var(--chocolate-dark);
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 1.5px;
 font-family: var(--font-heading);
 font-size: 1.1rem;
 margin: 0 10px;
}

.age-restriction {
 display: inline-block;
 background: linear-gradient(135deg, var(--chocolate), var(--chocolate-dark));
 color: #fff;
 padding: 3px 10px;
 border-radius: 4px;
 font-weight: 700;
 margin: 0 8px;
 font-size: 0.85rem;
 transform: rotate(-1deg);
 font-family: var(--font-old);
 letter-spacing: 1px;
}

.legal-main {
 display: block;
 margin-bottom: 5px;
 font-weight: 600;
}

.legal-detail {
 font-size: 0.85rem;
 color: var(--ink);
 font-style: italic;
 font-family: var(--font-decorative);
}

.footer-ornament {
 text-align: center;
 color: var(--accent-light);
 font-size: 1.5rem;
 letter-spacing: 15px;
 margin: 20px 0;
 opacity: 0.7;
 font-family: var(--font-old);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1400px) {
 .content-wrapper { 
 grid-template-columns: 1fr 350px; 
 padding: 25px 0; /* Убраны боковые отступы */
 }
 .search-form { width: 300px; }
 .newspaper-title { font-size: 3.5rem; }
 .messengers-grid { grid-template-columns: repeat(2, 1fr); }
 
 .newspaper-columns {
 gap: 30px;
 }
}

@media (max-width: 1200px) {
 .content-wrapper {
 grid-template-columns: 1fr;
 gap: 30px;
 padding: 20px 0; /* Убраны боковые отступы */
 }
 
 #sidebar {
 border-left: none;
 border-top: 3px solid var(--chocolate);
 margin-top: 40px;
 position: static;
 width: 100%;
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
 }
 
 .multi-column-content { 
 column-count: 2; 
 column-gap: 35px;
 }
 .newspaper-title { font-size: 3rem; }
 .search-form { width: 280px; }
 
 .newspaper-columns {
 grid-template-columns: repeat(2, 1fr);
 gap: 30px;
 }
 
 .newspaper-col:nth-child(3) {
 grid-column: 1 / -1;
 max-width: 100%;
 }
 
 .footer-container {
 max-width: 1100px;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
 padding: 0 25px;
 }
 
 .footer-column:nth-child(4) {
 grid-column: 1 / -1;
 min-height: 300px;
 }
}

@media (max-width: 992px) {
 .content-wrapper {
 padding: 15px 0; /* Убраны боковые отступы */
 gap: 25px;
 }
 
 .main-content {
 padding: 30px;
 }
 
 .multi-column-content {
 column-count: 2;
 column-gap: 30px;
 }
 
 .article-title { 
 font-size: 2.3rem; 
 line-height: 1.3;
 }
 
 .newspaper-title { 
 font-size: 2.8rem; 
 letter-spacing: 3px;
 }
 
 #logo {
 width: 150px;
 height: 150px;
 font-size: 4rem;
 }
 
 .search-form { width: 250px; }
 .top-left { gap: 12px; }
 .top-left a {
 font-size: 0.95rem;
 padding: 6px 12px;
 }
 
 .messengers-grid {
 grid-template-columns: 1fr;
 max-width: 500px;
 margin-left: auto;
 margin-right: auto;
 }
 
 .messenger-icon {
 width: 90px;
 height: 90px;
 }
 
 .messenger-icon.telegram i,
 .messenger-icon.vk i {
 font-size: 3rem !important;
 }
 
 .main-banner { 
 padding: 35px 15px; 
 }
 
 .latest-news-section { 
 padding: 30px 15px; 
 }
 
 .newspaper-columns {
 gap: 25px;
 }
 
 .newspaper-col {
 padding: 20px;
 }
 
 .footer-container {
 grid-template-columns: repeat(2, 1fr);
 gap: 25px;
 padding: 0 20px;
 }
 
 .footer-column:nth-child(3),
 .footer-column:nth-child(4) {
 grid-column: auto;
 }
 
 .newspaper-footer {
 padding: 30px 20px 15px;
 }
 
 .footer-column {
 min-height: 350px;
 padding: 20px;
 }
}

@media (max-width: 768px) {
 .content-wrapper { 
 padding: 15px 0; /* Убраны боковые отступы */
 gap: 20px;
 }
 
 .main-content { 
 padding: 25px; 
 }
 
 .multi-column-content {
 column-count: 1;
 column-gap: 0;
 column-rule: none;
 }
 
 .article-title { 
 font-size: 2rem; 
 margin: 15px 0;
 }
 
 .ornament {
 font-size: 1.2rem;
 letter-spacing: 2px;
 margin: 40px 0 20px;
 padding: 12px 0;
 }
 
 .newspaper-section { 
 padding: 20px; 
 }
 
 .rubric-header {
 flex-direction: column;
 align-items: flex-start;
 gap: 15px;
 }
 
 .rubric-title { 
 font-size: 1.4rem; 
 }
 
 .rubric-link { 
 align-self: flex-start; 
 }
 
 #sidebar { 
 padding: 25px; 
 }
 
 .newspaper-title {
 font-size: 2.2rem;
 letter-spacing: 2px;
 }
 
 .newspaper-subtitle { 
 font-size: 1.3rem; 
 }
 
 .search-form-container {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 transform: translateY(-100%);
 width: 100%;
 height: auto;
 background: rgba(61, 43, 31, 0.98);
 padding: 15px 20px;
 border-radius: 0;
 box-shadow: 0 5px 20px rgba(0,0,0,0.3);
 }
 
 .search-form-container.active { 
 transform: translateY(0); 
 }
 
 .search-form {
 width: 100%;
 height: auto;
 }
 
 #header .cnt {
 flex-direction: column;
 gap: 20px;
 }
 
 .top-left { 
 margin-bottom: 10px; 
 }
 
 #ticker marquee { 
 font-size: 1rem; 
 }
 
 .news-grid { 
 grid-template-columns: 1fr; 
 }
 
 .main-banner { 
 padding: 30px 15px; 
 }
 
 .banner-title { 
 font-size: 1.8rem; 
 }
 
 .banner-subtitle { 
 font-size: 1.2rem; 
 }
 
 .messenger-button {
 padding: 12px 25px;
 font-size: 1.1rem;
 }
 
 .messenger-icon {
 width: 80px;
 height: 80px;
 }
 
 .messenger-icon.telegram i,
 .messenger-icon.vk i {
 font-size: 2.5rem !important;
 }
 
 .messenger-stats { 
 gap: 20px; 
 }
 
 .stat-number { 
 font-size: 1.8rem; 
 }
 
 #top .cnt {
 flex-wrap: wrap;
 justify-content: center;
 }
 
 .top-left,
 .top-right {
 justify-content: center;
 width: 100%;
 }
 
 #search {
 margin: 10px auto 0;
 }
 
 .editor-contact { 
 flex-direction: column; 
 gap: 10px; 
 }
 
 .contact-item { 
 flex-direction: column; 
 }
 
 .contact-icon {
 margin-right: 0;
 margin-bottom: 10px;
 }
 
 .reg-item {
 flex-direction: column;
 align-items: flex-start;
 gap: 5px;
 }
 
 .reg-label { 
 min-width: auto; 
 }
 
 .reg-value { 
 text-align: left; 
 }
 
 .official-resources-block,
 .legal-documents-block {
 padding: 15px;
 margin-top: 15px;
 }
 
 .official-link,
 .legal-doc-link {
 padding: 8px 10px;
 font-size: 0.85rem;
 }
 
 .copyright::before {
 letter-spacing: 8px;
 padding: 0 10px;
 font-size: 1rem;
 }
 
 /* Адаптивность газетного макета */
 .newspaper-columns {
 grid-template-columns: 1fr;
 gap: 25px;
 }
 
 .newspaper-col {
 padding: 20px;
 }
 
 .newspaper-headline {
 flex-direction: column;
 align-items: flex-start;
 gap: 15px;
 }
 
 .header-ornament {
 font-size: 1.4rem;
 letter-spacing: 2px;
 }
}

@media (max-width: 480px) {
 .content-wrapper { 
 padding: 10px 0; /* Убраны боковые отступы */
 }
 
 .main-content { 
 padding: 20px; 
 }
 
 .article-title { 
 font-size: 1.8rem; 
 }
 
 .ornament { 
 font-size: 1.1rem; 
 margin: 30px 0 15px;
 padding: 10px 0;
 }
 
 .newspaper-section { 
 padding: 15px; 
 }
 
 #sidebar { 
 padding: 20px; 
 }
 
 .top-left,
 .top-right {
 flex-wrap: wrap;
 gap: 8px;
 }
 
 .sprt { 
 display: none; 
 }
 
 .top-left a { 
 font-size: 0.9rem; 
 padding: 5px 10px;
 }
 
 #logo { 
 width: 120px; 
 height: 120px; 
 }
 
 .search-form {
 flex-direction: column;
 gap: 10px;
 }
 
 .queryField { 
 width: 100%; 
 padding: 10px 12px;
 }
 
 .search-submit-btn { 
 width: 100%; 
 padding: 10px;
 }
 
 .main-banner { 
 padding: 25px 10px; 
 }
 
 .latest-news-section { 
 padding: 20px 10px; 
 }
 
 .footer-column { 
 padding: 15px; 
 min-height: 320px;
 }
 
 .footer-column h4 {
 font-size: 1rem;
 letter-spacing: 0.5px;
 margin-bottom: 15px;
 padding-bottom: 8px;
 }
 
 .social-icon {
 width: 36px;
 height: 36px;
 font-size: 1rem;
 }
 
 .official-resources-links,
 .legal-documents-links { 
 gap: 8px; 
 }
 
 .official-link,
 .legal-doc-link {
 flex-direction: column;
 text-align: center;
 padding: 10px;
 }
 
 .official-link i,
 .legal-doc-link i {
 margin-right: 0;
 margin-bottom: 6px;
 font-size: 1.1rem;
 }
 
 .official-link span,
 .legal-doc-link span { 
 font-size: 0.85rem; 
 }
 
 .footer-ornament {
 font-size: 1.2rem;
 letter-spacing: 10px;
 margin: 15px 0;
 }
 
 /* Адаптивность газетного макета для мобильных */
 .newspaper-layout {
 padding: 0 15px;
 }
 
 .newspaper-col {
 padding: 15px;
 }
 
 .newspaper-headline {
 font-size: 1.2rem;
 }
 
 .header-ornament {
 font-size: 1.2rem;
 }
}

/* ===== СТИЛИ ДЛЯ ПЕЧАТИ ===== */
@media print {
 #tmpl-container > header,
 #tmpl-container > footer,
 #sidebar,
 .rubric-link,
 .fa,
 .flaticon {
 display: none !important;
 }
 
 body {
 background: white !important;
 font-size: 12pt !important;
 line-height: 1.4 !important;
 }
 
 #tmpl-container {
 box-shadow: none !important;
 border: none !important;
 padding: 0 !important;
 background: white !important;
 }
 
 .main-content-wrapper,
 .top-container,
 .ticker-container,
 .header-container,
 .footer-wrapper {
 padding: 0 !important;
 max-width: 100% !important;
 }
 
 .main-content {
 box-shadow: none !important;
 border: none !important;
 padding: 0 !important;
 }
 
 .main-content::before {
 display: none !important;
 }
 
 .multi-column-content {
 column-count: 2 !important;
 column-gap: 20mm !important;
 }
 
 .newspaper-section {
 break-inside: avoid;
 box-shadow: none !important;
 border: 1px solid #ccc !important;
 }
 
 body, #tmpl-container, .main-content, .newspaper-section {
 background-image: none !important;
 background: white !important;
 }
 
 .newspaper-footer {
 background: #fff !important;
 color: #000 !important;
 border-top: 3px double #000;
 border-bottom: 2px solid #000;
 box-shadow: none !important;
 margin-top: 25mm;
 page-break-inside: avoid;
 background-image: none !important;
 }
 
 .newspaper-footer::before,
 .newspaper-footer::after {
 display: none !important;
 }
 
 .footer-column {
 border: 1px solid #ccc !important;
 background: #fff !important;
 box-shadow: none !important;
 break-inside: avoid;
 page-break-inside: avoid;
 min-height: auto !important;
 }
 
 .social-icon,
 .footer-ornament,
 .counter-stats::before {
 display: none !important;
 }
 
 .footer-container {
 grid-template-columns: repeat(2, 1fr) !important;
 gap: 15px !important;
 padding: 0 10px !important;
 }
 
 .contact-icon {
 background: #eee !important;
 color: #000 !important;
 box-shadow: none !important;
 }
 
 .age-restriction {
 background: #eee !important;
 color: #000 !important;
 box-shadow: none !important;
 }
}

/* ===== УТИЛИТЫ ===== */
.cnt {
 width: 100%;
 max-width: 1200px;
 margin: 0 auto;
}

.oh { overflow: hidden; }

.hide-powered { 
 display: none !important; 
}

/* ===== ИСПРАВЛЕНИЕ КОНФЛИКТОВ ===== */
/* Убедимся, что многоколоночный контент всегда виден */
.multi-column-content {
 display: block !important;
 visibility: visible !important;
 opacity: 1 !important;
}
/* Разделение стилей для news-block в основном контенте и боковой панели */
.main-content .news-block {
 /* Стили для блоков в основном контенте */
 margin-bottom: 25px;
 padding-bottom: 20px;
 border-bottom: 1px solid var(--chocolate-light);
}

#sidebar .news-block {
 /* Стили для блока в боковой панели */
 margin-bottom: 35px;
 padding-bottom: 25px;
 border-bottom: 2px solid var(--chocolate-light);
 width: 100%;
}

/* Остальные стили для #sidebar .news-block... */