/* ============================================================
   БАЗОВОЕ
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Синяя гамма — приглушённая, «тёплая» */
  --blue-dark:   #2a4a63;
  --blue-mid:    #3d6a8a;
  --blue-light:  #5a8fae;
  --blue-pale:   #e6eef3;

  /* ТЁПЛАЯ БУМАЖНАЯ ПАЛИТРА */
  --paper:       #fbfaf6;
  --paper-2:     #f5f1e9;
  --paper-3:     #ece7dc;
  --paper-4:     #e3ddd0;

  /* ТЕКСТ — мягче, чем чистый чёрный; усилен контраст */
  --text:        #2b2823;
  --text-body:   #3d3831;
  --text-soft:   #5a534a;
  --text-muted:  #6b6255;

  /* Границы */
  --border:      #d4cdbf;
  --border-soft: #e3ddd0;

  --page-bg:     #ece7dc;
  --surface:     var(--paper);
  --surface-alt: var(--paper-2);
  --surface-ink: var(--paper-3);

  --accent-hover: #b3522c;

  --shadow-sm:   0 1px 3px rgba(60, 45, 25, .07);
  --shadow-md:   0 3px 10px rgba(60, 45, 25, .10);
  --shadow-lg:   0 10px 40px rgba(40, 30, 15, .18);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --transition:  .18s ease;

  /* Единый шрифтовой стек */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI Variable", "Segoe UI", "Inter", "Roboto",
               "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  letter-spacing: .005em;

  background: linear-gradient(180deg, #b3c9a4 0%, #97b287 45%, #7d9c6b 100%) fixed;

  min-height: 100vh;
  padding: 18px 12px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "onum" 0;
  font-optical-sizing: auto;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 500;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ============================================================
   ОБЁРТКА
   ============================================================ */
.site-wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ============================================================
   АУДИОПЛЕЕР
   ============================================================ */
.top-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 15px; padding: 6px 0 12px; flex-wrap: wrap;
}
.audio-player {
  display: flex; align-items: center; gap: 10px;
  flex: 1 1 380px; min-width: 0;
  font-size: 13.5px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}
.audio-player__btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none; background: var(--paper);
  color: var(--blue-dark);
  cursor: pointer; font-size: 14px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.audio-player__btn:hover { background: var(--blue-pale); }
.audio-player__time {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted); min-width: 40px;
  text-align: center; font-size: 13px; font-weight: 600;
}
.audio-player__sep { color: #b6ac9d; margin: 0 -6px; }
.audio-player__progress {
  flex: 1; min-width: 60px; height: 6px;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, #cfc7b7, #ddd6c7);
  border-radius: 3px; outline: none; cursor: pointer;
}
.audio-player__progress::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px;
  background: var(--blue-light); border: 2px solid var(--paper); border-radius: 50%;
}
.audio-player__progress::-moz-range-thumb {
  width: 15px; height: 15px; background: var(--blue-light);
  border: 2px solid var(--paper); border-radius: 50%;
}
.audio-player__icon {
  background: none; border: none; font-size: 16px;
  cursor: pointer; color: var(--text-muted);
  padding: 4px 6px; border-radius: 6px; flex-shrink: 0;
}
.audio-player__icon:hover { background: var(--blue-pale); color: var(--blue-dark); }

/* ============================================================
   ШАПКА
   ============================================================ */
.header-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: 22px; padding: 14px 0 18px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.quote-block {
  font-size: 14.5px;
  line-height: 1.65; min-width: 0;
  color: var(--text-soft);
}
.quote-block__track {
  margin-bottom: 14px; font-style: italic;
  color: var(--text-muted); font-weight: 500;
  font-size: 13.5px;
  letter-spacing: .01em;
}
.quote-block__day strong {
  color: var(--blue-dark); font-weight: 700;
  letter-spacing: .01em;
}
.quote-block__day em {
  color: var(--text-muted); font-size: 13px; font-style: italic;
}
.logo-block {
  background: linear-gradient(135deg, #f5f1e8 0%, #eee8dc 100%);
  border: 2px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 20px; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), var(--shadow-sm);
  min-width: 0;
}
.logo-block h1 {
  font-family: var(--font-serif);
  font-size: 27px;
  color: var(--blue-mid);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.005em;
  word-wrap: break-word;
}
.logo-block h1 span {
  display: block; margin-top: 6px; font-size: 25px;
  line-height: 1.3;
}

/* ============================================================
   ПОИСК
   ============================================================ */
.search-strip {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 0; flex-wrap: wrap;
}
.search-form {
  flex: 1 1 320px; display: flex; max-width: 720px; min-width: 0;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-sm); position: relative;
}
.search-form:focus-within {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(90, 143, 174, .18);
}
.search-form input {
  flex: 1; padding: 11px 16px;
  border: none; outline: none;
  font-size: 14.5px;
  font-family: inherit; min-width: 0;
  background: transparent;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text-body); font-weight: 500;
}
.search-form input::placeholder {
  color: #8d8579; font-weight: 400;
  letter-spacing: .005em;
}
.search-form button {
  padding: 0 24px; border: none;
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue-mid) 100%);
  color: #fdfcfa; font-size: 14px; font-weight: 700;
  cursor: pointer;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  letter-spacing: .04em;
  text-transform: lowercase;
}
.search-form button:hover { filter: brightness(1.08); }
.howrus {
  flex: 0 1 auto; font-size: 13px;
  color: var(--text-soft); line-height: 1.55; text-align: right;
  font-weight: 500;
}
.howrus strong { color: var(--blue-dark); font-weight: 700; }

/* ============================================================
   ПОДСКАЗКИ ПОИСКА
   ============================================================ */
.search-suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(60, 45, 25, .20);
  z-index: 500; max-height: 400px; overflow-y: auto;
  display: none; padding: 6px 0;
}
.search-suggest.is-open { display: block; }
.search-suggest__group {
  padding: 9px 16px 5px; font-size: 11.5px;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .08em; font-weight: 700;
}
.search-suggest__item {
  display: block; padding: 9px 16px;
  border-left: 3px solid transparent;
  transition: background .12s ease, border-left-color .12s ease;
  text-decoration: none;
}
.search-suggest__item:hover {
  background: #eef0ea; border-left-color: var(--blue-light); text-decoration: none;
}
.search-suggest__title {
  display: block; font-size: 14px;
  color: var(--blue-dark);
  line-height: 1.4; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-suggest__item:hover .search-suggest__title { color: var(--accent-hover); }
.search-suggest__meta {
  display: block; font-size: 12px; color: var(--text-muted);
  margin-top: 2px; font-weight: 500;
}
.search-suggest__empty {
  padding: 14px 16px; font-size: 13.5px;
  color: var(--text-muted); text-align: center;
}
.search-suggest__all {
  display: block; padding: 11px 16px; text-align: center;
  font-size: 13.5px; color: var(--blue-dark);
  background: var(--paper-2); border-top: 1px solid var(--border-soft);
  font-weight: 700; text-decoration: none;
}
.search-suggest__all:hover {
  background: var(--blue-pale); color: var(--accent-hover); text-decoration: none;
}

/* ============================================================
   ТИКЕР НОВОСТЕЙ
   ============================================================ */
.news-ticker {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #f5f1e8 0%, #eee8dc 100%);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--blue-mid);
  border-radius: var(--radius-sm);
  padding: 10px 16px; margin: 0 0 20px 0;
  min-height: 50px; box-sizing: border-box; box-shadow: var(--shadow-sm);
}
.news-ticker__label {
  flex-shrink: 0; font-size: 13.5px; font-weight: 700;
  color: var(--blue-dark); text-transform: uppercase;
  letter-spacing: .08em; padding-right: 14px;
  border-right: 2px solid #c5bcaa; white-space: nowrap;
}
.news-ticker__viewport {
  flex: 1; position: relative; height: 28px; overflow: hidden; min-width: 0;
}
.news-ticker__track { position: relative; height: 100%; width: 100%; }
.news-ticker__item {
  position: absolute; inset: 0; display: flex; align-items: center;
  color: var(--blue-dark);
  font-size: 14.5px;
  line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
  text-decoration: none; font-weight: 600; padding-right: 8px;
}
.news-ticker__item.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.news-ticker__item:hover { color: var(--accent-hover); text-decoration: underline; }
.news-ticker__nav { display: flex; gap: 6px; flex-shrink: 0; }
.news-ticker__btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border); background: var(--paper);
  color: var(--text-muted); cursor: pointer; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0; transition: all var(--transition);
}
.news-ticker__btn:hover {
  background: var(--blue-light); border-color: var(--blue-light); color: #fdfcfa;
}

/* ============================================================
   ОСНОВНАЯ ОБЛАСТЬ
   ============================================================ */
.main {
  display: grid !important;
  grid-template-columns: 230px minmax(0, 1fr) 230px !important;
  gap: 18px; padding-top: 6px; align-items: start;
  width: 100%; max-width: 100%; box-sizing: border-box;
}

/* ============================================================
   ЛЕВАЯ КОЛОНКА
   ============================================================ */
.sidebar { min-width: 0; width: 100%; }
.sidebar__heading {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue-mid) 100%);
  color: #fdfcfa; text-align: center; font-weight: 700;
  padding: 12px 10px; font-size: 20px;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-sm); word-wrap: break-word;
}
.menu {
  background: linear-gradient(180deg, #f5f1e8 0%, #eee8dc 100%);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 8px 6px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.menu__item + .menu__item { border-top: 1px solid #ddd5c5; }
.menu__item > a {
  display: block; text-align: center; padding: 10px 12px;
  color: var(--blue-dark);
  font-size: 13px;
  text-transform: uppercase; line-height: 1.45;
  letter-spacing: .04em; border-radius: var(--radius-sm);
  word-wrap: break-word; font-weight: 600;
}
.menu__item > a:hover {
  background: #e3ddd0; color: var(--accent-hover); text-decoration: none;
}
.menu--nested {
  background: #e6e0d2; border: none; border-radius: 10px;
  margin: 6px 6px 10px; padding: 4px 4px;
}
.menu--nested .menu__item + .menu__item { border-top: 1px dashed #bfb5a0; }
.menu--nested .menu__item > a {
  text-align: left; padding: 7px 12px 7px 22px;
  font-size: 12.5px;
  text-transform: none;
  letter-spacing: 0; position: relative; font-weight: 500;
  line-height: 1.45;
}
.menu--nested .menu__item > a::before {
  content: "▸"; position: absolute;
  left: 8px; top: 50%; transform: translateY(-50%);
  color: #7a91a4; font-size: 11px;
}
.menu__item > a.active,
.menu__item.active > a { background: var(--blue-mid); color: #fdfcfa; }

/* ============================================================
   ЦЕНТРАЛЬНЫЙ КОНТЕНТ
   ============================================================ */
.content {
  min-width: 0; width: 100%; max-width: 100%;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: var(--radius-md);
  padding: 22px 22px;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), var(--shadow-sm);
  box-sizing: border-box;
  color: var(--text-body);
}

.content__title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--blue-dark);
  font-weight: 700;
  margin-bottom: 16px; padding: 15px 20px;
  border-bottom: 3px solid var(--blue-light);
  word-wrap: break-word;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(60, 45, 25, .06);
  line-height: 1.35;
  letter-spacing: -.003em;
}

/* ============================================================
   ПРАВАЯ КОЛОНКА
   ============================================================ */
.right-col { min-width: 0; width: 100%; }

/* ============================================================
   ВИДЖЕТЫ
   ============================================================ */
.widget {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0;
  margin-bottom: 14px;
  font-size: 13.5px;
  overflow: hidden; box-shadow: var(--shadow-md);
  max-width: 100%; box-sizing: border-box;
  line-height: 1.6;
}
.widget__title {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue-mid) 100%);
  color: #fdfcfa; font-size: 13.5px;
  font-weight: 700;
  text-align: center; text-transform: uppercase;
  letter-spacing: .09em; padding: 12px 12px; margin: 0;
}
.widget__body {
  padding: 14px 16px;
  line-height: 1.65;
  overflow-wrap: break-word; word-wrap: break-word; max-width: 100%;
  color: var(--text-body); font-weight: 500;
}
.widget__body p { margin-bottom: 10px; }
.widget__body p:last-child { margin-bottom: 0; }
.widget__body img { border-radius: var(--radius-sm); max-width: 100%; height: auto; }
.widget__body video,
.widget__body iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #111;
  border: 0;
}
.widget__body strong { color: var(--blue-dark); font-weight: 700; }

/* ============================================================
   ВИДЖЕТ "СОБЫТИЯ"
   ============================================================ */
.widget--events { overflow: hidden; padding: 0; width: 100%; max-width: 100%; }

.ev-header {
  background: linear-gradient(180deg, #5a8fae 0%, #3d6a8a 100%);
  color: #fdfcfa; text-align: center; font-weight: 700;
  font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 12px; margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  border-bottom: 3px solid #2a4a63; position: relative;
}
.ev-header::after {
  content: ""; display: block; position: absolute;
  bottom: -3px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #b3522c, transparent);
}

.ev-featured {
  padding: 12px 12px 14px;
  border-bottom: 1px solid #ddd5c5;
  width: 100%; max-width: 100%; box-sizing: border-box;
  background: var(--paper-2);
}

/* === ИСПРАВЛЕНО: убрана жёсткая высота 180px === */
.ev-featured__img-link {
  display: block; border-radius: 8px; overflow: hidden;
  margin-bottom: 12px; border: 1px solid var(--border);
  background: var(--paper-3);
  width: 100%; max-width: 100%; box-sizing: border-box;
}
.ev-featured__img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}
.ev-featured__img-link:hover .ev-featured__img { transform: scale(1.05); }

.ev-featured__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark); line-height: 1.45; margin: 0 0 8px 0;
}
.ev-featured__title a { color: var(--blue-dark); text-decoration: none; font-weight: 700; }
.ev-featured__title a:hover { color: var(--accent-hover); text-decoration: underline; }
.ev-featured__more {
  display: inline-block; font-size: 13.5px; color: var(--blue-dark);
  text-decoration: underline; font-weight: 700;
}
.ev-featured__more:hover { color: var(--accent-hover); text-decoration: none; }

.ev-list {
  list-style: none; padding: 12px; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 100%; box-sizing: border-box;
  background: var(--paper-3);
}
.ev-list__item {
  background: var(--paper); border: 1px solid var(--border);
  border-left: 4px solid var(--blue-light);
  border-radius: 8px; padding: 13px 14px;
  box-shadow: 0 1px 3px rgba(60, 45, 25, .06);
  transition: all .18s ease;
  word-wrap: break-word; box-sizing: border-box;
}
.ev-list__item:hover {
  background: linear-gradient(180deg, #eef0ea 0%, #e3ddd0 100%);
  border-left-color: var(--accent-hover);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(60, 45, 25, .13);
}
.ev-list__title {
  display: block; font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-dark); text-transform: uppercase;
  letter-spacing: .04em; line-height: 1.45;
  margin-bottom: 6px; text-decoration: none;
}
.ev-list__title:hover { color: var(--accent-hover); text-decoration: underline; }
.ev-list__text {
  font-size: 13px;
  color: var(--text-soft); line-height: 1.55;
  font-weight: 500;
}

.ev-footer {
  padding: 11px 14px 13px;
  border-top: 1px dashed var(--border);
  font-size: 13.5px; text-align: center;
  color: var(--text-soft); background: var(--paper-3);
  font-weight: 500;
}
.ev-footer a { color: var(--blue-dark); font-weight: 700; text-decoration: underline; }
.ev-footer a:hover { color: var(--accent-hover); text-decoration: none; }

/* ============================================================
   ВИДЖЕТ "ССЫЛКИ"
   ============================================================ */
.ks-links {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; background: var(--paper-3);
}
.ks-links a {
  display: block; background: var(--paper);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-light);
  border-radius: 8px; padding: 13px 32px 13px 15px;
  color: var(--blue-dark);
  font-size: 13.5px;
  line-height: 1.5;
  text-decoration: none; font-weight: 600;
  transition: all .18s ease;
  box-shadow: 0 1px 3px rgba(60, 45, 25, .06);
  text-align: left; position: relative;
  word-wrap: break-word; box-sizing: border-box;
}
.ks-links a:hover {
  background: linear-gradient(180deg, #eef0ea 0%, #e3ddd0 100%);
  border-left-color: var(--accent-hover); color: var(--accent-hover);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(60, 45, 25, .13);
  text-decoration: none;
}
.ks-links a::after {
  content: "→"; position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--blue-light); font-size: 15px;
  opacity: 0; transition: opacity .18s ease, right .18s ease;
  font-weight: 700;
}
.ks-links a:hover::after { opacity: 1; right: 10px; color: var(--accent-hover); }

/* ============================================================
   СПИСОК НОВОСТЕЙ В ВИДЖЕТЕ
   ============================================================ */
.widget-news { padding: 4px 0; }
.widget-news li {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}
.widget-news li:hover { background: var(--paper-2); }
.widget-news li:last-child { border-bottom: none; }
.widget-news a {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--blue-dark); font-weight: 600;
}
.widget-news a:hover { color: var(--accent-hover); }
.widget-news__date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   КАРТОЧКИ НОВОСТЕЙ
   ============================================================ */
.news-list { display: flex; flex-direction: column; gap: 8px; }
.news-item {
  display: flex; gap: 16px; padding: 17px 20px;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(60, 45, 25, .05);
  align-items: flex-start; max-width: 100%;
  transition: box-shadow .18s ease, transform .18s ease;
}
.news-item:hover {
  box-shadow: 0 4px 14px rgba(60, 45, 25, .10);
  transform: translateY(-1px);
}
.news-item__img-link {
  flex-shrink: 0; display: block; border-radius: 8px;
  overflow: hidden; border: 1px solid var(--border-soft);
  width: 210px; height: 145px;
}
.news-item__img {
  width: 210px; height: 145px; object-fit: cover; display: block;
}
.news-item__body { flex: 1; min-width: 0; }
.news-item__title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--blue-dark);
  margin-bottom: 8px; line-height: 1.35;
  overflow-wrap: break-word; font-weight: 700;
  letter-spacing: -.003em;
}
.news-item__title a { color: var(--blue-dark); font-weight: 700; }
.news-item__title a:hover { color: var(--accent-hover); }
.news-item__date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.news-item__text {
  font-size: 14.5px;
  line-height: 1.65;
  overflow-wrap: break-word;
  color: var(--text-body); font-weight: 500;
}
.empty { padding: 20px 0; color: var(--text-muted); font-size: 14.5px; }

/* ============================================================
   ГЛАВНАЯ
   ============================================================ */
.home-text {
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 16px; max-width: 100%; overflow-wrap: break-word;
  color: var(--text-body); font-weight: 500;
}
.home-text h1, .home-text h2, .home-text h3 {
  font-family: var(--font-serif);
  color: var(--blue-dark); margin: 20px 0 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.003em;
}
.home-text h1 { font-size: 22px; }
.home-text h2 { font-size: 20px; }
.home-text h3 { font-size: 17px; }
.home-text p { margin-bottom: 12px; }
.home-text img, .home-text table, .home-text iframe { max-width: 100%; height: auto; }
.home-text video,
.home-text iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #111;
}

/* ============================================================
   СТРАНИЦА — ГЛАВНЫЙ БЛОК ЧТЕНИЯ
   ============================================================ */
.page-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-body);
  font-weight: 500;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  background: var(--paper);
  padding: 24px 28px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 3px rgba(60, 45, 25, .05);
}
.page-content > * { max-width: 100%; box-sizing: border-box; }
.page-content p { margin-bottom: 16px; }
.page-content h1, .page-content h2, .page-content h3 {
  font-family: var(--font-serif);
  color: var(--blue-dark);
  margin: 24px 0 14px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.003em;
}
.page-content h1 { font-size: 24px; }
.page-content h2 { font-size: 21px; }
.page-content h3 { font-size: 18px; }
.page-content ul, .page-content ol { margin: 12px 0 18px 28px; }
.page-content li { margin-bottom: 8px; }
.page-content img {
  max-width: 100%; height: auto;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  border: 1px solid var(--border-soft);
}
.page-content video,
.page-content iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 14px 0;
  background: #111;
  border: 0;
}
.page-content strong { color: #201d18; font-weight: 700; }
.page-content em { color: var(--text-soft); }
.page-content a {
  color: var(--blue-dark);
  text-decoration: underline;
  font-weight: 600;
  text-underline-offset: 2px;
}
.page-content a:hover { color: var(--accent-hover); text-decoration: none; }

.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 18px 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.page-content table td,
.page-content table th {
  border: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: middle;
  color: var(--text-body);
  font-weight: 500;
  line-height: 1.55;
}
.page-content table th {
  background: #dde3e9;
  font-weight: 700;
  text-align: center;
  color: var(--blue-dark);
  letter-spacing: .01em;
}
.page-content table tr:nth-child(even) td {
  background: var(--paper-2);
}

/* RAW HTML внутри страницы */
.page-raw {
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: break-word;
  box-sizing: border-box;
  background: var(--paper);
  padding: 24px 28px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 3px rgba(60, 45, 25, .05);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-body);
  font-weight: 500;
}
.page-raw * { max-width: 100%; box-sizing: border-box; }
.page-raw strong { color: #201d18; font-weight: 700; }
.page-raw table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 18px 0;
}
.page-raw table td,
.page-raw table th {
  border: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: middle;
  color: var(--text-body);
  line-height: 1.55;
}
.page-raw table th {
  background: #dde3e9;
  font-weight: 700;
  text-align: center;
  color: var(--blue-dark);
}
.page-raw table tr:nth-child(even) td { background: var(--paper-2); }

/* ============================================================
   ПОДСТРАНИЦЫ
   ============================================================ */
.subpages-list {
  list-style: none; margin: 14px 0 26px;
  padding: 16px 20px 16px 24px;
  background: var(--paper);
  border-left: 4px solid var(--blue-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 1px 3px rgba(60, 45, 25, .05);
}
.subpages-list li { margin-bottom: 10px; }
.subpages-list li:last-child { margin-bottom: 0; }
.subpages-list li a {
  font-size: 15.5px;
  color: var(--blue-dark);
  text-decoration: underline; line-height: 1.5;
  font-weight: 600;
  text-underline-offset: 2px;
}
.subpages-list li a:hover { color: var(--accent-hover); text-decoration: none; }

/* ============================================================
   НОВОСТЬ (полная)
   ============================================================ */
.news-full__lead {
  font-size: 16.5px;
  color: var(--blue-dark);
  padding: 18px 22px;
  background: var(--paper);
  border-left: 4px solid var(--blue-light);
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px; line-height: 1.65;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(60, 45, 25, .05);
}
.news-full__text {
  font-size: 16px;
  line-height: 1.85;
  max-width: 100%; overflow-wrap: break-word;
  color: var(--text-body);
  font-weight: 500;
  background: var(--paper);
  padding: 24px 28px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 3px rgba(60, 45, 25, .05);
}
.news-full__text > * { max-width: 100%; box-sizing: border-box; }
.news-full__text p { margin-bottom: 16px; }
.news-full__text img {
  max-width: 100%; height: auto;
  border-radius: var(--radius-sm); margin: 14px 0;
  border: 1px solid var(--border-soft);
}
.news-full__text video,
.news-full__text iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 14px 0;
  background: #111;
  border: 0;
}
.news-full__text strong { color: #201d18; font-weight: 700; }

/* ============================================================
   СТРАНИЦА ПОИСКА
   ============================================================ */
.search-summary {
  font-size: 14.5px; color: var(--text-soft);
  margin-bottom: 18px; padding: 14px 18px;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  font-weight: 500;
}
.search-summary strong { color: var(--blue-dark); font-weight: 700; }

.search-section-title {
  font-family: var(--font-serif);
  font-size: 17px; color: var(--blue-dark);
  text-transform: uppercase; letter-spacing: .05em;
  margin: 24px 0 14px; padding-bottom: 8px;
  border-bottom: 3px solid var(--blue-light);
  font-weight: 700;
}

.search-results { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }

.search-result {
  display: flex; gap: 14px; padding: 15px;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--blue-light);
  border-radius: 8px;
  transition: all .18s ease;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(60, 45, 25, .05);
}
.search-result:hover {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper-3) 100%);
  border-left-color: var(--accent-hover); transform: translateX(2px);
  box-shadow: 0 3px 10px rgba(60, 45, 25, .10);
}
.search-result--page { border-left-color: #8aa6bb; }

.search-result__img-link {
  flex-shrink: 0; display: block;
  width: 140px; height: 95px;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border-soft);
}
.search-result__img {
  width: 140px; height: 95px; object-fit: cover; display: block;
}
.search-result__body { flex: 1; min-width: 0; }
.search-result__title {
  font-family: var(--font-serif);
  font-size: 16.5px; color: var(--blue-dark);
  margin: 0 0 6px 0; line-height: 1.4; font-weight: 700;
}
.search-result__title a { color: var(--blue-dark); text-decoration: none; font-weight: 700; }
.search-result__title a:hover { color: var(--accent-hover); text-decoration: underline; }
.search-result__date {
  font-size: 12.5px; color: var(--text-muted);
  margin-bottom: 8px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.search-result__text {
  font-size: 14px; color: var(--text-body);
  line-height: 1.6; overflow-wrap: break-word;
  font-weight: 500;
}
.search-result__url {
  font-size: 12.5px; color: var(--text-muted);
  font-family: var(--font-mono); font-weight: 500;
}

/* ============================================================
   СЛАЙДЕР
   ============================================================ */
.ks-slider {
  position: relative; border-radius: var(--radius-md);
  overflow: hidden; background: var(--paper-3) !important; box-shadow: var(--shadow-md);
  width: 100% !important; max-width: 100% !important; margin: 0 0 18px 0;
}
.ks-slider__track {
  position: relative; width: 100%; height: 220px; overflow: hidden;
}
.ks-slider__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .6s ease; pointer-events: none;
}
.ks-slider__slide.is-active { opacity: 1; pointer-events: auto; }
.ks-slider__slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: var(--paper-3);
}
.ks-slider__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 20, 10, .82) 100%);
  color: #fdfcfa; padding: 30px 16px 14px;
  font-size: 14px; line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
  font-weight: 500;
}
.ks-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(253, 252, 250, .9);
  color: var(--blue-dark); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); z-index: 2;
}
.ks-slider__arrow--prev { left: 10px; }
.ks-slider__arrow--next { right: 10px; }
.ks-slider__dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.ks-slider__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(253, 252, 250, .55); cursor: pointer;
}
.ks-slider__dot.is-active { background: #fdfcfa; transform: scale(1.25); }

/* ============================================================
   ЗАЩИТА ОТ ПЕРЕПОЛНЕНИЯ
   ============================================================ */
.content * { max-width: 100%; }
.content table { max-width: 100%; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.site-footer {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 2px solid var(--border);
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 22px 24px;
  background: linear-gradient(180deg, #f5f1e8 0%, #eee8dc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.site-footer__col { min-width: 0; }
.site-footer__heading {
  font-size: 14px; font-weight: 700;
  color: var(--blue-dark); text-transform: uppercase;
  letter-spacing: .09em; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 2px solid #c5bcaa;
}
.site-footer__contacts {
  list-style: none; padding: 0; margin: 0; line-height: 1.75;
}
.site-footer__contacts li { padding: 4px 0; font-weight: 500; }
.site-footer__contacts strong { color: var(--blue-dark); font-weight: 700; }
.site-footer__contacts a {
  color: var(--blue-dark); text-decoration: underline; font-weight: 600;
  text-underline-offset: 2px;
}
.site-footer__contacts a:hover { color: var(--accent-hover); text-decoration: none; }
.site-footer__links { list-style: none; padding: 0; margin: 0; line-height: 1.65; }
.site-footer__links li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.site-footer__links li:last-child { border-bottom: none; }
.site-footer__links a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-dark); text-decoration: none;
  transition: color .15s ease, transform .15s ease;
  font-weight: 600;
  font-size: 14px;
}
.site-footer__links a::before {
  content: "▸"; color: #7a91a4; font-size: 12px;
  transition: color .15s ease, transform .15s ease;
}
.site-footer__links a:hover { color: var(--accent-hover); text-decoration: none; transform: translateX(2px); }
.site-footer__links a:hover::before { color: var(--accent-hover); transform: translateX(2px); }
.site-footer__bottom {
  margin-top: 14px;
  padding: 16px 24px;
  background: linear-gradient(180deg, #3d6a8a 0%, #2a4a63 100%);
  border-radius: var(--radius-md);
  color: #fdfcfa;
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  box-shadow: var(--shadow-sm);
}
.site-footer__copy {
  font-size: 13.5px; line-height: 1.7;
  color: #d7dee3; flex: 1; min-width: 0; text-align: center;
  font-weight: 500;
}
.site-footer__badge {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px; background: var(--paper);
  border: 1px solid #c5bcaa; border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  font-size: 10px; font-weight: 700;
  color: #2b2823; line-height: 1.1;
}
.site-footer__badge-w3c {
  font-family: var(--font-serif); font-size: 14px;
  font-weight: 700; color: #005a9c; letter-spacing: -0.5px;
}
.site-footer__badge-text { text-align: left; font-size: 9px; line-height: 1.1; color: #3d3831; }
.site-footer__badge-check { color: #1f8a3a; font-size: 16px; margin-left: 2px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .main { grid-template-columns: 200px minmax(0, 1fr) 200px !important; gap: 14px; }
}
@media (max-width: 900px) {
  body { padding: 0; font-size: 14.5px; }
  .site-wrapper { border-radius: 0; padding: 12px; }
  .header-strip { grid-template-columns: 1fr; gap: 10px; }
  .logo-block { order: -1; padding: 16px 12px; }
  .logo-block h1,
  .logo-block h1 span { font-size: 19px; }
  .main { grid-template-columns: 1fr !important; gap: 14px; }
  .menu__item > a {
    text-align: left; padding: 11px 15px;
    font-size: 13.5px; text-transform: none;
  }
  .menu--nested .menu__item > a { padding-left: 24px; }
  .right-col {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
  }
  .right-col > * { margin-bottom: 0; }
  .ks-slider__track { height: 200px; }
  .content, .page-content, .news-full__text, .page-raw { padding: 16px; }
  .page-content, .news-full__text, .page-raw { font-size: 15.5px; }
}
@media (max-width: 600px) {
  .news-item { flex-direction: column; }
  .news-item__img { width: 100%; height: auto; }
  .news-item__img-link { width: 100%; height: auto; }
  .news-item__title { font-size: 17px; }
  .right-col { grid-template-columns: 1fr; }
  .ks-slider__track { height: 180px; }
  .news-ticker { gap: 8px; padding: 8px 12px; min-height: 44px; }
  .news-ticker__label { font-size: 12px; padding-right: 8px; letter-spacing: .06em; }
  .news-ticker__item { font-size: 13.5px; }
  .news-ticker__viewport { height: 24px; }
  .news-ticker__btn { width: 26px; height: 26px; font-size: 15px; }
  .search-suggest { max-height: 300px; }
  .search-suggest__title { font-size: 13.5px; }
  .search-suggest__item { padding: 9px 14px; }
  .search-result { flex-direction: column; }
  .search-result__img-link { width: 100%; height: auto; }
  .search-result__img { width: 100%; height: auto; }
  .site-footer__top { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .site-footer__bottom {
    flex-direction: column; text-align: center;
    padding: 14px 16px; gap: 12px;
  }
  .site-footer__copy { text-align: center; font-size: 13px; }
  .content__title { font-size: 19px; padding: 13px 16px; }
  .page-content, .news-full__text, .page-raw { font-size: 15px; line-height: 1.8; }
}
@media (max-width: 480px) {
  body { font-size: 14.5px; }
  .audio-player { font-size: 12.5px; gap: 6px; }
  .audio-player__time { min-width: 34px; font-size: 12.5px; }
  .audio-player__btn { width: 32px; height: 32px; }
  .search-form button { padding: 0 16px; font-size: 13.5px; }
  .howrus { text-align: left; font-size: 12.5px; }
  .logo-block h1,
  .logo-block h1 span { font-size: 17px; }
  .ks-slider__track { height: 150px; }
  .page-content, .news-full__text, .page-raw { padding: 14px; font-size: 15px; }
}

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ (BREADCRUMBS)
   ============================================================ */
.bc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 11px 16px;
  margin: 0 0 16px 0;
  background: linear-gradient(180deg, #f5f1e8 0%, #eee8dc 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-light);
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  box-shadow: 0 1px 3px rgba(60, 45, 25, .04);
}

.bc__link {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.bc__link:hover {
  background: #e0e6d8;
  color: var(--accent-hover);
  text-decoration: none;
}

.bc__home {
  font-size: 15px;
  margin-right: 2px;
  color: var(--blue-light);
}

.bc__sep {
  color: #8d8579;
  font-size: 16px;
  line-height: 1;
  user-select: none;
  font-weight: 500;
}

.bc__current {
  color: var(--text-soft);
  font-weight: 600;
  padding: 3px 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .bc {
    font-size: 12.5px;
    padding: 9px 12px;
    gap: 4px 6px;
  }
  .bc__current {
    white-space: normal;
  }
}

/* ============================================================
   ВИДЖЕТ pages_feed — 1 featured + список
   ============================================================ */
.widget--pages_feed {
  overflow: hidden;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.pages-feed {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pages-feed__featured {
  padding: 12px 12px 14px;
  border-bottom: 1px solid #ddd5c5;
  background: var(--paper-2);
  box-sizing: border-box;
}

/* === ИСПРАВЛЕНО: убрана жёсткая высота 180px === */
.pages-feed__featured-img-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: var(--paper-3);
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}
.pages-feed__featured-img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
  object-position: center;
  display: block;
  margin: 0;
  border-radius: 0;
  transition: transform .35s ease;
}
.pages-feed__featured-img-link:hover .pages-feed__featured-img {
  transform: scale(1.05);
}

.pages-feed__featured-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.45;
  margin: 0 0 6px;
}
.pages-feed__featured-title a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 700;
}
.pages-feed__featured-title a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.pages-feed__featured-date {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.pages-feed__featured-excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
  font-weight: 500;
  margin: 0 0 8px;
}

.pages-feed__featured-more {
  display: inline-block;
  font-size: 13.5px;
  color: var(--blue-dark);
  text-decoration: underline;
  font-weight: 700;
}
.pages-feed__featured-more:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.pages-feed__list {
  list-style: none;
  padding: 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper-3);
  box-sizing: border-box;
}

.pages-feed__item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-light);
  border-radius: 8px;
  padding: 13px 15px;
  box-shadow: 0 1px 3px rgba(60, 45, 25, .06);
  transition: all .18s ease;
  word-wrap: break-word;
  box-sizing: border-box;
}
.pages-feed__item:hover {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper-3) 100%);
  border-left-color: var(--accent-hover);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(60, 45, 25, .13);
}

.pages-feed__item-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.45;
  margin-bottom: 4px;
  text-decoration: none;
}
.pages-feed__item-title:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.pages-feed__item-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}

.pages-feed__item-text {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
  font-weight: 500;
}

.pages-feed__empty {
  padding: 16px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .pages-feed__featured-title {
    font-size: 14.5px;
  }
  .pages-feed__list {
    padding: 10px;
    gap: 8px;
  }
}

