/* ============================================================
   СТИЛИ МЕНЮ РУБРИК — new.gorki.gov.by
   Золотая точка только у самого глубокого активного пункта
   Скрываем меню если нет подменю (только 1 уровень)
   ============================================================ */

/* ---------- CSS-ПЕРЕМЕННЫЕ ---------- */
:root {
  --menu-primary: #2d7a3e;
  --menu-primary-light: #e8f5e9;
  --menu-primary-hover: #1b5e20;
  --menu-primary-dark: #1a4d28;

  --menu-gold: #ffc847;
  --menu-gold-dark: #e6a800;
  --menu-gold-gradient: linear-gradient(135deg, #ffc847 0%, #e6a800 100%);

  --menu-white: #ffffff;
  --menu-bg: #fafbfc;
  --menu-bg-hover: #f0f7f1;
  --menu-border: #e2e8e4;
  --menu-border-light: #edf2ee;

  --menu-text: #2d3748;
  --menu-text-muted: #718096;
  --menu-text-hover: #2d7a3e;
  --menu-text-active: #1b5e20;

  --menu-shadow: 0 4px 20px rgba(45, 122, 62, 0.08);
  --menu-shadow-hover: 0 6px 24px rgba(45, 122, 62, 0.12);

  --menu-radius: 10px;
  --menu-radius-sm: 6px;
  --menu-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- РАЗМЕТКА ---------- */
.page-content .container {
  display: flex;
  gap: 24px;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-left {
  display: block;
  position: relative;
  padding: var(--spacing-2xl, 32px) 0 var(--spacing-xl, 24px);
  flex-shrink: 0;
}

.content-right {
  width: 100%;
  min-width: 0;
}

.content-right--full {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.content-right--full .main-wrapper {
  width: 100%;
  max-width: 100%;
}

/* ============================================================
   СКРЫВАЕМ МЕНЮ если нет подменю (только 1 уровень)
   ============================================================ */

/* Если в меню нет .submenu — скрываем всё меню */
.content-left .menu.menu-rubrik:not(:has(.submenu)) {
  display: none !important;
}

/* Если в меню нет пунктов уровня 2+ — скрываем всё меню */
.content-left .menu.menu-rubrik:not(:has(.menu-item-level-2)) {
  display: none !important;
}

/* Альтернативный вариант: скрываем content-left если меню пустое */
.content-left:has(.menu.menu-rubrik:not(:has(.submenu))) {
  display: none !important;
}

.content-left:has(.menu.menu-rubrik:not(:has(.menu-item-level-2))) {
  display: none !important;
}

/* При скрытом меню content-right на всю ширину */
.content-left:has(.menu.menu-rubrik:not(:has(.submenu))) + .content-right,
.content-left:has(.menu.menu-rubrik:not(:has(.menu-item-level-2))) + .content-right {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* ---------- ЛЕВОЕ МЕНЮ ---------- */
.content-left .menu.menu-rubrik {
  max-width: 300px;
  min-width: 260px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--menu-white);
  border-radius: var(--menu-radius);
  border: 1px solid var(--menu-border);
  overflow: hidden;
  position: relative;
  box-shadow: var(--menu-shadow);
  transition: box-shadow 0.3s ease;
}

.content-left .menu.menu-rubrik:hover {
  box-shadow: var(--menu-shadow-hover);
}

/* Верхняя золотая полоса */
.content-left .menu.menu-rubrik::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--menu-gold-gradient);
  z-index: 2;
}

/* ---------- БАЗОВЫЕ ПУНКТЫ ---------- */
.content-left .menu-rubrik .menu-item {
  display: none;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.content-left .menu-rubrik .menu-item-level-1.active {
  display: block;
}

/* ============================================================
   УРОВЕНЬ 1 — ЗАГОЛОВОК РАЗДЕЛА
   ============================================================ */
.content-left .menu-rubrik .menu-item-level-1.menu-item-has-children {
  border-left: none;
}

.content-left .menu-rubrik .menu-item-level-1.active > a {
  font-size: 0;
  display: block;
  height: 0;
  padding: 0;
  margin: 0;
}

.content-left .menu-rubrik .menu-item-level-1.menu-item-has-children > .menu-icon {
  display: none !important;
}

/* ============================================================
   УРОВЕНЬ 2 — ОСНОВНЫЕ ПУНКТЫ
   ============================================================ */
.content-left .menu-rubrik .menu-item-level-2 {
  background: #f5faf6;
}

.content-left .menu-rubrik .menu-item-level-2 > a {
  color: #2d7a3e;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
  transition: var(--menu-transition);
  border-left: 3px solid #2d7a3e;
  background: linear-gradient(90deg, #e8f5e9 0%, #f5faf6 100%);
  position: relative;
}

.content-left .menu-rubrik .menu-item-level-2 > a:hover {
  background: linear-gradient(90deg, #d4edda 0%, #e8f5e9 100%);
  padding-left: 20px;
  color: #1b5e20;
}

/* Активный пункт уровня 2 — БЕЗ точки по умолчанию */
.content-left .menu-rubrik .menu-item-level-2.active > a.is-active,
.content-left .menu-rubrik .menu-item-level-2 > a.is-active {
  background: linear-gradient(90deg, #c8e6c9 0%, #e8f5e9 100%);
  color: #1b5e20;
  font-weight: 700;
  border-left: 3px solid #1b5e20;
}

/* Родитель активного пункта (expanded, но не is-active) */
.content-left .menu-rubrik .menu-item-level-2.active > a:not(.is-active),
.content-left .menu-rubrik .menu-item-level-2.expanded > a:not(.is-active) {
  background: linear-gradient(90deg, #e8f5e9 0%, #f5faf6 100%);
  color: #2d7a3e;
  font-weight: 600;
  border-left: 3px solid #2d7a3e;
}

/* ============================================================
   УРОВЕНЬ 3 — ПОДПУНКТЫ
   ============================================================ */
.content-left .menu-rubrik .menu-item-level-3 {
  background: #f8faf5;
}

.content-left .menu-rubrik .menu-item-level-3 > a {
  color: #4a7c59;
  font-weight: 500;
  font-size: 13px;
  padding: 10px 16px 10px 20px;
  display: block;
  text-decoration: none;
  transition: var(--menu-transition);
  border-left: 3px solid #7cb87c;
  background: linear-gradient(90deg, #f1f8e9 0%, #f8faf5 100%);
  position: relative;
}

.content-left .menu-rubrik .menu-item-level-3 > a:hover {
  background: linear-gradient(90deg, #e8f5e9 0%, #f1f8e9 100%);
  padding-left: 22px;
  color: #2d7a3e;
}

/* Активный пункт уровня 3 — БЕЗ точки по умолчанию */
.content-left .menu-rubrik .menu-item-level-3.active > a.is-active,
.content-left .menu-rubrik .menu-item-level-3 > a.is-active {
  background: linear-gradient(90deg, #dcedc8 0%, #f1f8e9 100%);
  color: #1b5e20;
  font-weight: 600;
  border-left: 3px solid #4a7c59;
}

/* Родитель активного пункта */
.content-left .menu-rubrik .menu-item-level-3.active > a:not(.is-active),
.content-left .menu-rubrik .menu-item-level-3.expanded > a:not(.is-active) {
  background: linear-gradient(90deg, #f1f8e9 0%, #f8faf5 100%);
  color: #4a7c59;
  font-weight: 500;
  border-left: 3px solid #7cb87c;
}

/* ============================================================
   УРОВЕНЬ 4 — ГЛУБОКАЯ ВЛОЖЕННОСТЬ
   ============================================================ */
.content-left .menu-rubrik .menu-item-level-4 {
  background: #fafbf5;
}

.content-left .menu-rubrik .menu-item-level-4 > a {
  color: #5a8a6a;
  font-weight: 400;
  font-size: 13px;
  padding: 9px 16px 9px 25px;
  display: block;
  text-decoration: none;
  transition: var(--menu-transition);
  border-left: 3px solid #a5d6a7;
  background: linear-gradient(90deg, #f9fbe7 0%, #fafbf5 100%);
  position: relative;
}

.content-left .menu-rubrik .menu-item-level-4 > a:hover {
  background: linear-gradient(90deg, #f1f8e9 0%, #f9fbe7 100%);
  padding-left: 27px;
  color: #2d7a3e;
}

/* Активный пункт уровня 4 — БЕЗ точки по умолчанию */
.content-left .menu-rubrik .menu-item-level-4.active > a.is-active,
.content-left .menu-rubrik .menu-item-level-4 > a.is-active {
  background: linear-gradient(90deg, #e8f5e9 0%, #f9fbe7 100%);
  color: #1b5e20;
  font-weight: 600;
  border-left: 3px solid #5a8a6a;
}

/* Родитель активного пункта */
.content-left .menu-rubrik .menu-item-level-4.active > a:not(.is-active),
.content-left .menu-rubrik .menu-item-level-4.expanded > a:not(.is-active) {
  background: linear-gradient(90deg, #f9fbe7 0%, #fafbf5 100%);
  color: #5a8a6a;
  font-weight: 400;
  border-left: 3px solid #a5d6a7;
}

/* ============================================================
   УРОВЕНЬ 5 — ДОБАВЛЕНО
   ============================================================ */
.content-left .menu-rubrik .menu-item-level-5 {
  background: #fcfdf5;
}

.content-left .menu-rubrik .menu-item-level-5 > a {
  color: #6a9a7a;
  font-weight: 400;
  font-size: 13px;
  padding: 9px 16px 9px 28px;
  display: block;
  text-decoration: none;
  transition: var(--menu-transition);
  border-left: 3px solid #c5e1c5;
  background: linear-gradient(90deg, #fbfcf0 0%, #fcfdf5 100%);
  position: relative;
}

.content-left .menu-rubrik .menu-item-level-5 > a:hover {
  background: linear-gradient(90deg, #f1f8e9 0%, #fbfcf0 100%);
  padding-left: 30px;
  color: #2d7a3e;
}

/* Активный пункт уровня 5 */
.content-left .menu-rubrik .menu-item-level-5.active > a.is-active,
.content-left .menu-rubrik .menu-item-level-5 > a.is-active {
  background: linear-gradient(90deg, #e8f5e9 0%, #fbfcf0 100%);
  color: #1b5e20;
  font-weight: 600;
  border-left: 3px solid #6a9a7a;
}

/* Родитель активного пункта */
.content-left .menu-rubrik .menu-item-level-5.active > a:not(.is-active),
.content-left .menu-rubrik .menu-item-level-5.expanded > a:not(.is-active) {
  background: linear-gradient(90deg, #fbfcf0 0%, #fcfdf5 100%);
  color: #6a9a7a;
  font-weight: 400;
  border-left: 3px solid #c5e1c5;
}

/* ============================================================
   УРОВЕНЬ 6 — ДОБАВЛЕНО
   ============================================================ */
.content-left .menu-rubrik .menu-item-level-6 {
  background: #fdfdf5;
}

.content-left .menu-rubrik .menu-item-level-6 > a {
  color: #7aaa8a;
  font-weight: 400;
  font-size: 12px;
  padding: 8px 16px 8px 35px;
  display: block;
  text-decoration: none;
  transition: var(--menu-transition);
  border-left: 3px solid #d5e8d5;
  background: linear-gradient(90deg, #fcfdf0 0%, #fdfdf5 100%);
  position: relative;
}

.content-left .menu-rubrik .menu-item-level-6 > a:hover {
  background: linear-gradient(90deg, #f1f8e9 0%, #fcfdf0 100%);
  padding-left: 38px;
  color: #2d7a3e;
}

/* Активный пункт уровня 6 */
.content-left .menu-rubrik .menu-item-level-6.active > a.is-active,
.content-left .menu-rubrik .menu-item-level-6 > a.is-active {
  background: linear-gradient(90deg, #e8f5e9 0%, #fcfdf0 100%);
  color: #1b5e20;
  font-weight: 600;
  border-left: 3px solid #7aaa8a;
}

/* Родитель активного пункта */
.content-left .menu-rubrik .menu-item-level-6.active > a:not(.is-active),
.content-left .menu-rubrik .menu-item-level-6.expanded > a:not(.is-active) {
  background: linear-gradient(90deg, #fcfdf0 0%, #fdfdf5 100%);
  color: #7aaa8a;
  font-weight: 400;
  border-left: 3px solid #d5e8d5;
}

/* ============================================================
   ЗОЛОТАЯ ТОЧКА — ТОЛЬКО У САМОГО ГЛУБОКОГО АКТИВНОГО ПУНКТА
   ============================================================ */

/* Уровень 6: точка если активен */
.content-left .menu-rubrik .menu-item-level-6.active > a.is-active::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--menu-gold-gradient);
  border-radius: 50%;
}

/* Уровень 5: точка если активен и НЕТ активных детей (уровня 6) */
.content-left .menu-rubrik .menu-item-level-5.active > a.is-active::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--menu-gold-gradient);
  border-radius: 50%;
}

/* Убираем точку у уровня 5 если есть активный ребёнок уровня 6 */
.content-left .menu-rubrik .menu-item-level-5.active:has(.menu-item-level-6.active) > a.is-active::before {
  content: none;
}

/* Уровень 4: точка если активен и НЕТ активных детей (уровня 5 или 6) */
.content-left .menu-rubrik .menu-item-level-4.active > a.is-active::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--menu-gold-gradient);
  border-radius: 50%;
}

/* Убираем точку у уровня 4 если есть активный ребёнок */
.content-left .menu-rubrik .menu-item-level-4.active:has(.menu-item-level-5.active) > a.is-active::before,
.content-left .menu-rubrik .menu-item-level-4.active:has(.menu-item-level-6.active) > a.is-active::before {
  content: none;
}

/* Уровень 3: точка если активен и НЕТ активных детей (уровня 4, 5 или 6) */
.content-left .menu-rubrik .menu-item-level-3.active > a.is-active::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--menu-gold-gradient);
  border-radius: 50%;
}

/* Убираем точку у уровня 3 если есть активный ребёнок */
.content-left .menu-rubrik .menu-item-level-3.active:has(.menu-item-level-4.active) > a.is-active::before,
.content-left .menu-rubrik .menu-item-level-3.active:has(.menu-item-level-5.active) > a.is-active::before,
.content-left .menu-rubrik .menu-item-level-3.active:has(.menu-item-level-6.active) > a.is-active::before {
  content: none;
}

/* Уровень 2: точка если активен и НЕТ активных детей (уровня 3, 4, 5 или 6) */
.content-left .menu-rubrik .menu-item-level-2.active > a.is-active::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--menu-gold-gradient);
  border-radius: 50%;
}

/* Убираем точку у уровня 2 если есть активный ребёнок */
.content-left .menu-rubrik .menu-item-level-2.active:has(.menu-item-level-3.active) > a.is-active::before,
.content-left .menu-rubrik .menu-item-level-2.active:has(.menu-item-level-4.active) > a.is-active::before,
.content-left .menu-rubrik .menu-item-level-2.active:has(.menu-item-level-5.active) > a.is-active::before,
.content-left .menu-rubrik .menu-item-level-2.active:has(.menu-item-level-6.active) > a.is-active::before {
  content: none;
}

/* ============================================================
   СТРЕЛКИ РАСКРЫТИЯ (уровни 2+)
   ============================================================ */
.content-left .menu-rubrik .menu-item-level-2.menu-item-has-children,
.content-left .menu-rubrik .menu-item-level-3.menu-item-has-children,
.content-left .menu-rubrik .menu-item-level-4.menu-item-has-children,
.content-left .menu-rubrik .menu-item-level-5.menu-item-has-children,
.content-left .menu-rubrik .menu-item-level-6.menu-item-has-children {
  position: relative;
}

.content-left .menu-rubrik .menu-item-level-2.menu-item-has-children > a,
.content-left .menu-rubrik .menu-item-level-3.menu-item-has-children > a,
.content-left .menu-rubrik .menu-item-level-4.menu-item-has-children > a,
.content-left .menu-rubrik .menu-item-level-5.menu-item-has-children > a,
.content-left .menu-rubrik .menu-item-level-6.menu-item-has-children > a {
  display: inline-block;
  max-width: calc(100% - 48px);
  vertical-align: middle;
  white-space: normal;
  word-wrap: break-word;
  width: calc(100% - 100px);
  position: relative;
}

/* Стрелка уровня 2 */
.content-left .menu-rubrik .menu-item-level-2.menu-item-has-children > .menu-icon {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  vertical-align: middle;
  color: #2d7a3e;
  background: #ffffff;
  border-radius: var(--menu-radius-sm);
  border: 1px solid #c8e6c9;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--menu-transition);
}

/* Стрелка уровня 3 */
.content-left .menu-rubrik .menu-item-level-3.menu-item-has-children > .menu-icon {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 6px;
  vertical-align: middle;
  color: #4a7c59;
  background: #ffffff;
  border-radius: var(--menu-radius-sm);
  border: 1px solid #dcedc8;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--menu-transition);
}

/* Стрелка уровня 4 */
.content-left .menu-rubrik .menu-item-level-4.menu-item-has-children > .menu-icon {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  vertical-align: middle;
  color: #5a8a6a;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e8f5e9;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--menu-transition);
}

/* Стрелка уровня 5 — ДОБАВЛЕНО */
.content-left .menu-rubrik .menu-item-level-5.menu-item-has-children > .menu-icon {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  vertical-align: middle;
  color: #6a9a7a;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #d5e8d5;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--menu-transition);
}

/* Стрелка уровня 6 — ДОБАВЛЕНО */
.content-left .menu-rubrik .menu-item-level-6.menu-item-has-children > .menu-icon {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  vertical-align: middle;
  color: #7aaa8a;
  background: #ffffff;
  border-radius: 3px;
  border: 1px solid #e0ece0;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--menu-transition);
}

/* Иконки в стрелках — уровни 2-6 */
.content-left .menu-rubrik .menu-item-level-2.menu-item-has-children .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-3.menu-item-has-children .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-4.menu-item-has-children .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-5.menu-item-has-children .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-6.menu-item-has-children .menu-icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  display: block;
  transition: transform 0.2s ease;
}

/* Hover на стрелку — уровень 2 */
.content-left .menu-rubrik .menu-item-level-2.menu-item-has-children .menu-icon:hover {
  color: #1b5e20;
  background: #e8f5e9;
  border-color: #2d7a3e;
  transform: scale(1.05);
}

/* Hover на стрелку — уровень 3 */
.content-left .menu-rubrik .menu-item-level-3.menu-item-has-children .menu-icon:hover {
  color: #2d7a3e;
  background: #f1f8e9;
  border-color: #4a7c59;
  transform: scale(1.05);
}

/* Hover на стрелку — уровень 4 */
.content-left .menu-rubrik .menu-item-level-4.menu-item-has-children .menu-icon:hover {
  color: #2d7a3e;
  background: #f9fbe7;
  border-color: #5a8a6a;
  transform: scale(1.05);
}

/* Hover на стрелку — уровень 5 — ДОБАВЛЕНО */
.content-left .menu-rubrik .menu-item-level-5.menu-item-has-children .menu-icon:hover {
  color: #2d7a3e;
  background: #fbfcf0;
  border-color: #6a9a7a;
  transform: scale(1.05);
}

/* Hover на стрелку — уровень 6 — ДОБАВЛЕНО */
.content-left .menu-rubrik .menu-item-level-6.menu-item-has-children .menu-icon:hover {
  color: #2d7a3e;
  background: #fcfdf0;
  border-color: #7aaa8a;
  transform: scale(1.05);
}

/* Поворот стрелки при раскрытии — уровни 2-6 */
.content-left .menu-rubrik .menu-item-level-2.menu-item-has-children.expanded > .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-3.menu-item-has-children.expanded > .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-4.menu-item-has-children.expanded > .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-5.menu-item-has-children.expanded > .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-6.menu-item-has-children.expanded > .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-2.menu-item-has-children.active > .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-3.menu-item-has-children.active > .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-4.menu-item-has-children.active > .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-5.menu-item-has-children.active > .menu-icon svg,
.content-left .menu-rubrik .menu-item-level-6.menu-item-has-children.active > .menu-icon svg {
  transform: rotate(180deg);
}

/* ============================================================
   ПОДМЕНЮ
   ============================================================ */
.content-left .menu-rubrik .submenu {
  display: none;
  padding: 0;
  margin: 0;
  list-style: none;
}

.content-left .menu-rubrik .active > .submenu,
.content-left .menu-rubrik .expanded > .submenu {
  display: block;
}

.content-left .menu-rubrik .submenu li {
  display: block;
  position: relative;
  padding: 0;
  border-top: 1px solid rgba(45, 122, 62, 0.06);
}

.content-left .menu-rubrik .submenu li:first-child {
  border-top: none;
}

/* ============================================================
   ВИДИМОСТЬ ПОДМЕНЮ
   ============================================================ */
.content-left .menu-rubrik .menu-item-level-2.menu-item-has-children > .submenu,
.content-left .menu-rubrik .menu-item-level-3.menu-item-has-children > .submenu,
.content-left .menu-rubrik .menu-item-level-4.menu-item-has-children > .submenu,
.content-left .menu-rubrik .menu-item-level-5.menu-item-has-children > .submenu,
.content-left .menu-rubrik .menu-item-level-6.menu-item-has-children > .submenu {
  display: none;
}

.content-left .menu-rubrik .menu-item-level-2.menu-item-has-children.active > .submenu,
.content-left .menu-rubrik .menu-item-level-2.menu-item-has-children.expanded > .submenu,
.content-left .menu-rubrik .menu-item-level-3.menu-item-has-children.active > .submenu,
.content-left .menu-rubrik .menu-item-level-3.menu-item-has-children.expanded > .submenu,
.content-left .menu-rubrik .menu-item-level-4.menu-item-has-children.active > .submenu,
.content-left .menu-rubrik .menu-item-level-4.menu-item-has-children.expanded > .submenu,
.content-left .menu-rubrik .menu-item-level-5.menu-item-has-children.active > .submenu,
.content-left .menu-rubrik .menu-item-level-5.menu-item-has-children.expanded > .submenu,
.content-left .menu-rubrik .menu-item-level-6.menu-item-has-children.active > .submenu,
.content-left .menu-rubrik .menu-item-level-6.menu-item-has-children.expanded > .submenu {
  display: block;
}

/* ============================================================
   DATA-АТРИБУТЫ
   ============================================================ */
li[data-has-active-submenu] > a {
  font-size: 0;
}

li[data-has-active-submenu] > ul.submenu {
  display: block;
  color: var(--menu-text);
  font-weight: 600;
}

li[data-has-active-submenu] > ul.submenu li {
  display: block;
  min-width: 240px;
}

li[data-has-active-submenu] > ul.submenu li a {
  font-size: 14px;
  color: var(--menu-text);
  font-weight: 500;
}

li[data-has-active-submenu] > ul.submenu li a:hover {
  color: var(--menu-text-hover);
  padding-left: 20px;
  background: var(--menu-bg-hover);
}

li[data-has-active-submenu] > ul.submenu li .submenu {
  display: none;
}

.submenu li[data-has-active-submenu] {
  display: block;
}

.submenu li[data-has-active-submenu] a {
  font-size: 14px;
  color: var(--menu-text);
  font-weight: 500;
}

/* ============================================================
   ЗАГОЛОВОК СТРАНИЦЫ
   ============================================================ */
.page-title-wrap {
  position: relative;
  margin-bottom: var(--spacing-lg, 24px);
}

.page-title {
  font-size: clamp(var(--font-size-xl, 1.25rem), 1rem + 1.5vw, var(--font-size-3xl, 2rem));
  font-weight: 800;
  color: var(--gray-900, #1a202c);
  margin-bottom: 0;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--menu-gold-gradient);
  border-radius: 2px;
}

.page-subtitle {
  font-size: var(--font-size-lg, 1.125rem);
  color: var(--gray-600, #4a5568);
  max-width: 600px;
  margin-top: var(--spacing-lg, 24px);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---------- БЛОКИ В PAGE-HEADER ---------- */
.block-region.region-page-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 16px);
}

.page-header .block {
  margin: 0;
}

.page-header .block-content {
  width: 100%;
}

/* ---------- ХЛЕБНЫЕ КРОШКИ ---------- */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--gray-500, #718096);
}

.breadcrumb-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: var(--gray-600, #4a5568);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--menu-primary);
}

.breadcrumb-item span {
  color: var(--gray-400, #a0aec0);
  margin-left: 8px;
}

/* ============================================================
   ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ
   ============================================================ */
.content-left .menu-rubrik .submenu li {
  transition: background 0.2s ease;
}

.content-left .menu-rubrik .submenu li:hover {
  background: rgba(45, 122, 62, 0.03);
}

/* Скроллбар */
.content-left .menu-rubrik .submenu {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8ddd0 #edf2ee;
}

.content-left .menu-rubrik .submenu::-webkit-scrollbar {
  width: 4px;
}

.content-left .menu-rubrik .submenu::-webkit-scrollbar-track {
  background: #edf2ee;
}

.content-left .menu-rubrik .submenu::-webkit-scrollbar-thumb {
  background: #c8ddd0;
  border-radius: 2px;
}

.content-left .menu-rubrik .submenu::-webkit-scrollbar-thumb:hover {
  background: #a8c8b0;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 992px) {
  .content-left .menu.menu-rubrik {
    max-width: 100%;
    min-width: unset;
  }

  li[data-has-active-submenu] > ul.submenu li {
    min-width: 100%;
  }

  .page-content .container {
    gap: 16px;
    padding: 0 12px;
  }
}

@media (max-width: 768px) {
  .page-content .container {
    flex-direction: column;
  }

  .content-left {
    padding: var(--spacing-md, 16px) 0;
    width: 100%;
  }

  .content-left .menu.menu-rubrik {
    max-width: 100%;
  }

  .content-left .menu-rubrik .menu-item-level-2 > a,
  .content-left .menu-rubrik .menu-item-level-3 > a,
  .content-left .menu-rubrik .menu-item-level-4 > a {
    font-size: 14px;
    min-height: 40px;
    padding: 10px 12px;
  }

  .content-left .menu-rubrik .menu-item-level-3 > a {
    padding-left: 24px;
  }

  .content-left .menu-rubrik .menu-item-level-4 > a {
    padding-left: 36px;
  }

  .content-left .menu-rubrik .menu-item-level-2.menu-item-has-children > .menu-icon {
    width: 26px;
    height: 26px;
  }

  .content-left .menu-rubrik .menu-item-level-3.menu-item-has-children > .menu-icon {
    width: 22px;
    height: 22px;
  }

  .content-left .menu-rubrik .menu-item-level-4.menu-item-has-children > .menu-icon {
    width: 20px;
    height: 20px;
  }

  .page-title::after {
    width: 40px;
    height: 3px;
    bottom: -10px;
  }

  .page-subtitle {
    font-size: var(--font-size-base, 1rem);
  }
}

@media (max-width: 576px) {
  .breadcrumb-item {
    font-size: 0.75rem;
  }

  .page-header {
    padding: var(--spacing-xl, 24px) 0 var(--spacing-lg, 16px);
  }

  .content-left .menu-rubrik .menu-item-level-2 > a,
  .content-left .menu-rubrik .menu-item-level-3 > a,
  .content-left .menu-rubrik .menu-item-level-4 > a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .content-left .menu-rubrik .menu-item-level-3 > a {
    padding-left: 20px;
  }

  .content-left .menu-rubrik .menu-item-level-4 > a {
    padding-left: 30px;
  }
}

/* ============================================================
   СТИЛИ КОНТЕНТНОЙ ОБЛАСТИ — new.gorki.gov.by
   Цветовая схема: зелёный #2d7a3e + золотой gradient
   ============================================================ */

/* ---------- PAGE-HEADER ---------- */
.page-header {
  background: linear-gradient(135deg, #f8faf9 0%, #f0f7f1 100%);
  border-bottom: 1px solid #e2e8e4;
  padding: var(--spacing-xl, 32px) 0 var(--spacing-lg, 24px);
  margin-bottom: var(--spacing-lg, 24px);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--menu-primary, #2d7a3e) 0%, #4a9d5c 50%, var(--menu-gold, #ffc847) 100%);
}



/* ---------- BREADCRUMBS (хлебные крошки) ---------- */
.breadcrumb {
  font-size: 0.8125rem;
  color: #718096;
  margin-bottom: var(--spacing-md, 16px);
}

.breadcrumb-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item a {
  color: #4a7c59;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 2px 6px;
  border-radius: 4px;
}

.breadcrumb-item a:hover {
  color: var(--menu-primary, #2d7a3e);
  background: rgba(45, 122, 62, 0.08);
}

.breadcrumb-item span {
  color: #a0aec0;
  margin-left: 4px;
  font-size: 0.75rem;
}

.breadcrumb-item span .icon-angle-right {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #a0aec0;
  border-top: 1.5px solid #a0aec0;
  transform: rotate(45deg);
}

/* Последний элемент (текущая страница) */
.breadcrumb-item:last-child {
  color: #2d3748;
  font-weight: 600;
  padding: 2px 6px;
}

/* ---------- PAGE TITLE ---------- */
.page-title-wrap {
  position: relative;
  margin-bottom: var(--spacing-sm, 8px);
}

.page-title {
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  font-weight: 800;
  color: #1a202c;
  margin: 0;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #ffc847 0%, #e6a800 100%);
  border-radius: 2px;
}


blockquote {
  /*background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);*/
      background: linear-gradient(135deg, #fff9e6de 0%, #fff5d69c 100%);
  border-left: 4px solid #ffc847;
  border-radius: 8px;
  padding: var(--spacing-md, 16px) var(--spacing-lg, 24px);
  margin: 5px;
  box-shadow: 0 2px 8px rgba(255, 200, 71, 0.1);
}

/* ---------- MAIN WRAPPER ---------- */
.page-content .main-wrapper {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-lg, 24px);
  min-height: 400px;
}

.main-container {
  max-width: 100%;
}

.main-content {
  width: 100%;
}

/* ---------- NODE CONTENT ---------- */
.node-content {
  width: 100%;
}

/* ---------- LOCAL TASKS (табы админки) ---------- */
.page-tabs.primary-tab {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-lg, 24px) 0;
  border-bottom: 2px solid #e2e8e4;
  padding-bottom: var(--spacing-sm, 8px);
}

.page-tabs.primary-tab li {
  margin: 0;
}

.page-tabs.primary-tab li a {
  display: inline-block;
  padding: 8px 16px;
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 6px 6px 0 0;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.page-tabs.primary-tab li a:hover {
  color: var(--menu-primary, #2d7a3e);
  background: rgba(45, 122, 62, 0.05);
}

.page-tabs.primary-tab li.active-page-tab a,
.page-tabs.primary-tab li a.is-active {
  color: var(--menu-primary, #2d7a3e);
  background: rgba(45, 122, 62, 0.08);
  border-bottom-color: var(--menu-primary, #2d7a3e);
  font-weight: 600;
}

/* ---------- BLOCK CONTENT ---------- */
.block {
  margin-bottom: var(--spacing-lg, 24px);
}

.block:last-child {
  margin-bottom: 0;
}

.block-content {
  width: 100%;
}

/* ---------- VIEWS CONTAINER ---------- */
.views-element-container {
  width: 100%;
}

/* ---------- FEED ICON ---------- */
.feed-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  color: #856404;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 8px;
  border: 1px solid #ffeaa7;
  transition: all 0.2s ease;
  margin-top: var(--spacing-md, 16px);
}

.feed-icon::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 11a9 9 0 0 1 9 9'/%3E%3Cpath d='M4 4a16 16 0 0 1 16 16'/%3E%3Ccircle cx='5' cy='19' r='1'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
}

.feed-icon:hover {
  background: linear-gradient(135deg, #ffc847 0%, #e6a800 100%);
  color: #1a202c;
  border-color: #e6a800;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 200, 71, 0.3);
}

/* ---------- CONTEXTUAL LINKS (админские кнопки) ---------- */
.contextual {
  position: relative;
}

.contextual .trigger {
  background: #f7fafc;
  border: 1px solid #e2e8e4;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.75rem;
  color: #4a5568;
  transition: all 0.2s ease;
}

.contextual .trigger:hover {
  background: var(--menu-primary, #2d7a3e);
  color: white;
  border-color: var(--menu-primary, #2d7a3e);
}

.contextual-links {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e2e8e4;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 4px 0;
  margin: 4px 0 0;
  min-width: 180px;
  z-index: 100;
}

.contextual-links li a {
  display: block;
  padding: 8px 16px;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all 0.15s ease;
}

.contextual-links li a:hover {
  background: rgba(45, 122, 62, 0.08);
  color: var(--menu-primary, #2d7a3e);
}

/* ---------- VISUALLY HIDDEN ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- FOCUSABLE ---------- */
.focusable:active,
.focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ---------- HIDDEN ---------- */
.hidden {
  display: none !important;
}

/* ---------- SCROLLBAR (кастомный) ---------- */
.page-content .main-wrapper ::-webkit-scrollbar {
  width: 6px;
}

.page-content .main-wrapper ::-webkit-scrollbar-track {
  background: #f1f5f3;
  border-radius: 3px;
}

.page-content .main-wrapper ::-webkit-scrollbar-thumb {
  background: #c8ddd0;
  border-radius: 3px;
}

.page-content .main-wrapper ::-webkit-scrollbar-thumb:hover {
  background: #a8c8b0;
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 992px) {
  .page-header-container {
    padding: 0 16px;
  }

  .page-title {
    font-size: 1.75rem;
  }

 .page-content .main-wrapper {
    padding: var(--spacing-md, 16px);
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: var(--spacing-lg, 24px) 0 var(--spacing-md, 16px);
  }

  .breadcrumb {
    font-size: 0.75rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-title::after {
    width: 40px;
    height: 3px;
    bottom: -8px;
  }

  .page-tabs.primary-tab {
    gap: 2px;
  }

  .page-tabs.primary-tab li a {
    padding: 6px 12px;
    font-size: 0.8125rem;
  }

  .page-content .main-wrapper {
    padding: var(--spacing-sm, 8px);
    border-radius: 8px;
  }

  .feed-icon {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 1.25rem;
  }

  .breadcrumb-items {
    gap: 2px;
  }

  .page-tabs.primary-tab {
    flex-direction: column;
    gap: 4px;
    border-bottom: none;
  }

  .page-tabs.primary-tab li a {
    border-radius: 6px;
    border-bottom: none;
    border-left: 3px solid transparent;
    margin-bottom: 0;
  }

  .page-tabs.primary-tab li.active-page-tab a,
  .page-tabs.primary-tab li a.is-active {
    border-bottom-color: transparent;
    border-left-color: var(--menu-primary, #2d7a3e);
  }
}

.node-content .taxonomy-terms{
    list-style: none;
    padding: 0;
}
.node-content .taxonomy-terms a{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    color: #856404;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    transition: all 0.2s ease;
    margin-top: var(--spacing-md, 16px);
}
.node-content .taxonomy-terms a:hover {
    background: linear-gradient(135deg, #ffc847 0%, #e6a800 100%);
    color: #1a202c;
    border-color: #e6a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 200, 71, 0.3);
}

/* ============================================================
   СТИЛИ ТАБЛИЦ — new.gorki.gov.by
   Стандартная шапка (серый), без зелёного градиента
   HTML таблиц не меняем
   ============================================================ */

/* ---------- БАЗОВЫЕ СТИЛИ ТАБЛИЦЫ ---------- */
.node-content table,
.field--name-body table,
.text-formatted table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--spacing-lg, 24px) 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  display: block;
    overflow-x: auto;
    /*white-space: nowrap;*/
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
}
.node-content table tbody,
.field--name-body table tbody,
.text-formatted table tbody {
    width: 100%;
    display: inline-table;
    vertical-align: middle;
    unicode-bidi: isolate;
    border-color: inherit;
}

/* ---------- ЗАГОЛОВОК ТАБЛИЦЫ (thead / первая строка) ---------- */
.node-content table thead,
.node-content table tbody tr:first-child,
.field--name-body table thead,
.field--name-body table tbody tr:first-child,
.text-formatted table thead,
.text-formatted table tbody tr:first-child {
  background: #f3f4f6;
  color: #1f2937;
}

.node-content table thead td,
.node-content table thead th,
.node-content table tbody tr:first-child td,
.node-content table tbody tr:first-child th,
.field--name-body table thead td,
.field--name-body table thead th,
.field--name-body table tbody tr:first-child td,
.field--name-body table tbody tr:first-child th,
.text-formatted table thead td,
.text-formatted table thead th,
.text-formatted table tbody tr:first-child td,
.text-formatted table tbody tr:first-child th {
  padding: 14px 16px;
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
  border-bottom: 2px solid #d1d5db;
}

/* Убираем margin у параграфов в заголовке */
.node-content table thead td p,
.node-content table thead th p,
.node-content table tbody tr:first-child td p,
.node-content table tbody tr:first-child th p,
.field--name-body table thead td p,
.field--name-body table thead th p,
.field--name-body table tbody tr:first-child td p,
.field--name-body table tbody tr:first-child th p,
.text-formatted table thead td p,
.text-formatted table thead th p,
.text-formatted table tbody tr:first-child td p,
.text-formatted table tbody tr:first-child th p {
  margin: 0;
  color: inherit;
  font-weight: inherit;
}

/* ---------- ЯЧЕЙКИ ДАННЫХ ---------- */
.node-content table td,
.node-content table th,
.field--name-body table td,
.field--name-body table th,
.text-formatted table td,
.text-formatted table th {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  vertical-align: top;
}

.node-content table td:last-child,
.node-content table th:last-child,
.field--name-body table td:last-child,
.field--name-body table th:last-child,
.text-formatted table td:last-child,
.text-formatted table th:last-child {
  border-right: none;
}

/* ---------- СТРОКИ ДАННЫХ ---------- */
.node-content table tbody tr,
.field--name-body table tbody tr,
.text-formatted table tbody tr {
  background: #ffffff;
  transition: background 0.2s ease;
}

/* Чётные строки */
.node-content table tbody tr:nth-child(even),
.field--name-body table tbody tr:nth-child(even),
.text-formatted table tbody tr:nth-child(even) {
  background: #f9fafb;
}

/* Hover на строку */
.node-content table tbody tr:hover,
.field--name-body table tbody tr:hover,
.text-formatted table tbody tr:hover {
  background: #f3f4f6;
}

/* Последняя строка — убираем border-bottom */
.node-content table tbody tr:last-child td,
.field--name-body table tbody tr:last-child td,
.text-formatted table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- ПАРАГРАФЫ В ЯЧЕЙКАХ ---------- */
.node-content table td p,
.node-content table th p,
.field--name-body table td p,
.field--name-body table th p,
.text-formatted table td p,
.text-formatted table th p {
  margin: 0 0 6px 0;
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.node-content table td p:last-child,
.node-content table th p:last-child,
.field--name-body table td p:last-child,
.field--name-body table th p:last-child,
.text-formatted table td p:last-child,
.text-formatted table th p:last-child {
  margin-bottom: 0;
}

/* Жирный текст в ячейках */
.node-content table td strong,
.node-content table td b,
.field--name-body table td strong,
.field--name-body table td b,
.text-formatted table td strong,
.text-formatted table td b {
  color: #111827;
  font-weight: 600;
}

/* ---------- АДАПТИВНОСТЬ ТАБЛИЦ ---------- */
@media (max-width: 768px) {
  .node-content table,
  .field--name-body table,
  .text-formatted table {
    font-size: 0.875rem;
    border-radius: 8px;
  }

  .node-content table thead td,
  .node-content table thead th,
  .node-content table tbody tr:first-child td,
  .node-content table tbody tr:first-child th,
  .field--name-body table thead td,
  .field--name-body table thead th,
  .field--name-body table tbody tr:first-child td,
  .field--name-body table tbody tr:first-child th,
  .text-formatted table thead td,
  .text-formatted table thead th,
  .text-formatted table tbody tr:first-child td,
  .text-formatted table tbody tr:first-child th {
    padding: 10px 12px;
    font-size: 0.8125rem;
  }

  .node-content table td,
  .node-content table th,
  .field--name-body table td,
  .field--name-body table th,
  .text-formatted table td,
  .text-formatted table th {
    padding: 10px 12px;
  }

  .node-content table td p,
  .node-content table th p,
  .field--name-body table td p,
  .field--name-body table th p,
  .text-formatted table td p,
  .text-formatted table th p {
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  /*.node-content table,
  .field--name-body table,
  .text-formatted table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
  }*/

  .node-content table thead td,
  .node-content table thead th,
  .node-content table tbody tr:first-child td,
  .node-content table tbody tr:first-child th,
  .field--name-body table thead td,
  .field--name-body table thead th,
  .field--name-body table tbody tr:first-child td,
  .field--name-body table tbody tr:first-child th,
  .text-formatted table thead td,
  .text-formatted table thead th,
  .text-formatted table tbody tr:first-child td,
  .text-formatted table tbody tr:first-child th {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .node-content table td,
  .node-content table th,
  .field--name-body table td,
  .field--name-body table th,
  .text-formatted table td,
  .text-formatted table th {
    padding: 8px 10px;
    white-space: normal;
  }
}


/* ---------- ЗАГОЛОВОК СЕКЦИИ ---------- */
.article-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 var(--spacing-lg, 24px) 0;
  padding-bottom: var(--spacing-sm, 8px);
  border-bottom: 2px solid #e2e8e4;
  position: relative;
}

.article-section__title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #2d7a3e, #ffc847);
}

/* ---------- СПИСОК ---------- */
.article-list {
  display: flex;
  flex-direction: column;
}

.article-list__item {
  margin: 0;
}

/* ---------- КАРТОЧКА СТАТЬИ ---------- */
.article-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md, 16px);
  padding: var(--spacing-lg, 20px) var(--spacing-md, 16px);
  background: #ffffff;
  border-bottom: 1px solid #edf2ee;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

.article-list__item:first-child .article-card {
  border-top: 1px solid #edf2ee;
}

.article-card:hover {
  background: linear-gradient(90deg, #f8faf9 0%, #f5faf6 100%);
  padding-left: calc(var(--spacing-md, 16px) + 4px);
}

.article-card:hover .article-card__title {
  color: #1b5e20;
}

.article-card:hover .article-card__action {
  color: #2d7a3e;
  background: #e8f5e9;
  transform: translateX(4px);
  opacity: 1;
}

/* Декоративная полоска слева при hover */
.article-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #2d7a3e, #4a9d5c);
  border-radius: 0 2px 2px 0;
  transition: height 0.25s ease;
}

.article-card:hover::before {
  height: 50%;
}

/* ---------- ТЕЛО КАРТОЧКИ ---------- */
.article-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 6px);
}

/* ---------- ДАТА ---------- */
.article-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #718096;
  font-weight: 500;
  line-height: 1;
}

.article-card__date-icon {
  flex-shrink: 0;
  color: #a0aec0;
}

/* ---------- ЗАГОЛОВОК ---------- */
.article-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #1a202c;
  transition: color 0.2s ease;
}

/* ---------- СТРЕЛКА / ДЕЙСТВИЕ ---------- */
.article-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #a0aec0;
  background: #f3f4f6;
  border-radius: 8px;
  flex-shrink: 0;
  transition: all 0.25s ease;
  opacity: 0.6;
  margin-top: 2px;
}

.article-card__action svg {
  transition: transform 0.2s ease;
}

/* ============================================================
   ПАГИНАЦИЯ — под реальную HTML-структуру Drupal
   ============================================================ */

/* Контейнер пагинации */
.pager,
nav.pager {
  margin-top: var(--spacing-xl, 32px);
  padding-top: var(--spacing-lg, 24px);
}

/* Список элементов */
.pager__items,
.js-pager__items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

/* Обычный элемент */
.pager__item {
  margin: 0;
  list-style: none;
}

.pager__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid #e2e8e4;
  background: #ffffff;
}

.pager__item a:hover {
  color: #2d7a3e;
  background: #f0f7f1;
  border-color: #c8e6c9;
  box-shadow: 0 2px 8px rgba(45, 122, 62, 0.1);
}

/* Активная страница */
.pager__item.is-active a {
  color: #ffffff;
  background: linear-gradient(135deg, #2d7a3e, #3d8f4f);
  border-color: #2d7a3e;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(45, 122, 62, 0.25);
}

.pager__item.is-active a:hover {
  background: linear-gradient(135deg, #1b5e20, #2d7a3e);
  border-color: #1b5e20;
}

/* Скрытый текст для accessibility */
.pager__item a .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Кнопки "Назад" / "Вперёд" / "Первая" / "Последняя" */
.pager__item--previous a,
.pager__item--next a,
.pager__item--first a,
.pager__item--last a {
  padding: 0 14px;
  gap: 4px;
  font-size: 1.125rem;
  font-weight: 600;
}

.pager__item--previous a:hover,
.pager__item--next a:hover,
.pager__item--first a:hover,
.pager__item--last a:hover {
  background: #e8f5e9;
}

/* Отключённые кнопки */
.pager__item--previous.is-disabled,
.pager__item--next.is-disabled,
.pager__item--first.is-disabled,
.pager__item--last.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pager__item--previous.is-disabled a,
.pager__item--next.is-disabled a,
.pager__item--first.is-disabled a,
.pager__item--last.is-disabled a {
  background: #f3f4f6;
  color: #a0aec0;
  border-color: #e2e8e4;
}

/* ============================================================
   ПУСТОЙ РЕЗУЛЬТАТ
   ============================================================ */
.view-empty {
  text-align: center;
  padding: var(--spacing-2xl, 48px) var(--spacing-lg, 24px);
  color: #718096;
  font-size: 1rem;
}

.view-empty p {
  margin: 0;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 768px) {
  .article-section__title {
    font-size: 1.25rem;
  }

  .article-card {
    padding: var(--spacing-md, 16px) var(--spacing-sm, 12px);
    gap: var(--spacing-sm, 12px);
  }

  .article-card:hover {
    padding-left: calc(var(--spacing-sm, 12px) + 4px);
  }

  .article-card__title {
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .article-card__action {
    width: 32px;
    height: 32px;
    opacity: 1;
  }

  .pager__items,
  .js-pager__items {
    gap: 4px;
  }

  .pager__item a {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .article-section__title {
    font-size: 1.125rem;
  }

  .article-card {
    padding: var(--spacing-sm, 12px);
    gap: var(--spacing-sm, 8px);
  }

  .article-card__title {
    font-size: 0.875rem;
  }

  .article-card__date {
    font-size: 0.75rem;
  }

  .article-card__action {
    display: none;
  }

  .pager__items,
  .js-pager__items {
    gap: 3px;
  }

  .pager__item a {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.8125rem;
    border-radius: 6px;
  }

  .pager__item--previous a,
  .pager__item--next a,
  .pager__item--first a,
  .pager__item--last a {
    padding: 0 10px;
    font-size: 1rem;
  }
}



/* ---------- КОНТЕЙНЕР ГАЛЕРЕИ ---------- */
.field-field-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: var(--spacing-md, 16px) 0;
}

/* ---------- ЭЛЕМЕНТ ГАЛЕРЕИ ---------- */
.field-field-photos .field-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f4f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.field-field-photos .field-item:hover {
  box-shadow: 0 8px 24px rgba(45, 122, 62, 0.15);
  transform: translateY(-4px);
}

/* ---------- ССЫЛКА (colorbox) ---------- */
.field-field-photos .field-item > a {
  display: block;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  border-radius: 10px;
}

.field-field-photos .field-item > a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 122, 62, 0) 0%, rgba(45, 122, 62, 0) 100%);
  transition: all 0.3s ease;
  z-index: 2;
  border-radius: 10px;
}

.field-field-photos .field-item:hover > a::before {
  background: linear-gradient(135deg, rgba(45, 122, 62, 0.1) 0%, rgba(45, 122, 62, 0.2) 100%);
}

/* Иконка лупы при наведении */
.field-field-photos .field-item > a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  /* Иконка лупы через mask */
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d7a3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  mask-size: 24px;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d7a3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  -webkit-mask-size: 24px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.field-field-photos .field-item:hover > a::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- ИЗОБРАЖЕНИЕ ---------- */
.field-field-photos .field-item img.image-field {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
}

.field-field-photos .field-item:hover img.image-field {
  transform: scale(1.08);
}

/* ---------- ПОДПИСЬ / TITLE ---------- */
.field-field-photos .field-item > a[title]::after {
  content: attr(title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-field-photos .field-item:hover > a[title]::after {
  opacity: 1;
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 1200px) {
  .field-field-photos {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 992px) {
  .field-field-photos {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }

  .field-field-photos .field-item img.image-field {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .field-field-photos {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }

  .field-field-photos .field-item img.image-field {
    height: 150px;
  }

  .field-field-photos .field-item > a::after {
    width: 40px;
    height: 40px;
    mask-size: 20px;
    -webkit-mask-size: 20px;
  }
}

@media (max-width: 576px) {
  .field-field-photos {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .field-field-photos .field-item img.image-field {
    height: 130px;
  }

  .field-field-photos .field-item > a[title]::after {
    font-size: 0.75rem;
    padding: 8px 10px;
  }
}

@media (max-width: 400px) {
  .field-field-photos {
    grid-template-columns: 1fr;
  }

  .field-field-photos .field-item img.image-field {
    height: 200px;
  }
}


.page-main-wrapper .container {
    display: flex;
    gap: 24px;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   НОВОСТИ 
   ========================================= */

.news-section__title {
  font-size: 28px;
  font-weight: 700;
  color: #143d1f;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.news-section__title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: #2d7a3e;
}

/* ----- Сетка ----- */
.news-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ----- Карточка новости ----- */
.news-list__item {
  display: block;
}

.news-card {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e8ede9;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  border-radius: 12px;
  max-height: 200px;
}

/* Цветная левая полоска — меняется по порядку */
.news-list__item:nth-child(2) .news-card {
  border-left: 4px solid #2d7a3e;
}
.news-list__item:nth-child(3) .news-card {
  border-left: 4px solid #ffc847;
}
.news-list__item:nth-child(4) .news-card {
  border-left: 4px solid #1e5a2e;
}
.news-list__item:nth-child(5) .news-card {
  border-left: 4px solid #c4a32a;
}
.news-list__item:nth-child(6) .news-card {
  border-left: 4px solid #4a9a5a;
}
.news-list__item:nth-child(7) .news-card {
  border-left: 4px solid #8b6914;
}

.news-card:hover {
  box-shadow: 0 4px 20px rgba(20, 61, 31, 0.1);
  border-color: #d4ddd6;
}

/* ----- Изображение (только для первой новости) ----- */
.news-list__item{
  border-radius: 12px;
}
.news-card__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #edf2ee;
    max-width: 250px;
        border-radius: 12px;
}
.news-list__item:first-child .news-card__media {
    max-width: 450px;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
      border-radius: 12px;
      margin: 0;
}

.news-card:hover .news-card__media img {
  transform: scale(1.03);
}

.news-card__overlay {
  display: none;
}

/* ----- Тело карточки ----- */
.news-card__body {
  padding: 20px 24px 24px;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ----- Дата ----- */
.news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #7a8f80;
}

.news-card__date time {
  color: #7a8f80;
  font-weight: 500;
  font-size: 11px;
}

.news-card__date-icon {
  flex-shrink: 0;
  color: #2d7a3e;
  opacity: 0.6;
}

/* ----- Заголовок ----- */
.news-card__title {
  font-size: 13px;
  font-weight: 700;
  color: #1a2e1f;
  line-height: 1.4;
  margin: 10px 0;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
      margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card__title {
  color: #2d7a3e;
}

/* ----- Анонс ----- */
.news-card__excerpt {
  font-size: 12px;
  color: #6b7d70;
  line-height: 1.55;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



.news-card:hover .news-card__body .btn-read{
  gap: 10px;
}

/* =========================================
   ПЕРВАЯ НОВОСТЬ — featured (с картинкой)
   ========================================= */
.news-list__item:first-child {
  grid-column: 1 / -1;
}

.news-list__item:first-child .news-card {
  flex-direction: row;
  border-left: none;
  border: 1px solid #e8ede9;
  max-height: 300px;
}

.news-list__item:first-child .news-card__media {
  width: 45%;
  min-height: 280px;
  flex-shrink: 0;
}

.news-list__item:first-child .news-card__body {
  width: 55%;
  padding: 32px 36px;
  justify-content: center;
}

.news-list__item:first-child .news-card__title {
  font-size: 18px;
  -webkit-line-clamp: 3;
}

.news-list__item:first-child .news-card__excerpt {
  font-size: 14px;
  -webkit-line-clamp: 4;
}

.news-card__body a{
  text-decoration: none;
}
.btn-read{
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    color: rgb(45, 122, 62);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    gap: 6px;
    transition: gap 0.2s;
}
/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 900px) {
  .news-list {
    grid-template-columns: 1fr;
  }

  .news-list__item:first-child .news-card {
    flex-direction: column;
  }

  .news-list__item:first-child .news-card__media {
    width: 100%;
    min-height: 220px;
    height: 220px;
  }

  .news-list__item:first-child .news-card__body {
    width: 100%;
    padding: 22px 24px;
  }

  .news-list__item:first-child .news-card__title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .news-card__body {
    padding: 16px 18px 20px;
  }

  .news-card__title {
    font-size: 14px;
  }

  .news-card__excerpt {
    font-size: 12px;
  }

  .news-list__item:first-child .news-card__body {
    padding: 18px 20px;
  }
}
figure{
      margin: 0 auto;
}
figure iframe{
      width: 100%;
    max-width: 600px;
    height: auto;
    min-height: 400px;
    width: 100%;
}
.page-content-tabs{
  width: 100%;
  display: block;
}

.tabs__btn {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    text-decoration: none;
}
.tabs__btn.active{
  color: #fff;
    background: #2d7a3e;
    box-shadow: 0 4px 15px rgba(37, 99, 168, 0.4), 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}
    
.page-content-tabs .tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
        margin: 15px 0;
}
.page-content-tabs .tabs__btn:hover:not(.active) {
    color: #2d7a3e;
    background: rgba(45, 122, 62, 0.08);
}

/* Каждая ссылка в анонсе — на отдельной строке */
.news-card__excerpt a + a {
  display: block;
  margin-top: 6px;
}

.quicktabs-tabs{
      display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
        width: fit-content;
}
ul.quicktabs-tabs li{
      padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}
ul.quicktabs-tabs li a{
  color: #64748b;
  text-decoration: none;
}
.quicktabs-tabs li.active{
      color: #fff;
    background: #2d7a3e;
    box-shadow: 0 4px 15px rgba(37, 99, 168, 0.4), 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}
ul.quicktabs-tabs li.active a{
  color: #fff;
  text-decoration: none;
}
ul.quicktabs-tabs li:hover:not(.active) {
    color: #2d7a3e;
    background: rgba(45, 122, 62, 0.08);
}
.all-news-btn{
      position: absolute;
    right: 25px;
    top: 5px;
    z-index: 11;
}
@media (max-width: 768px) {
    .hero__container {
        grid-template-columns: 1fr;
    }
    .hero-banner {
    padding: 40px 24px;
    padding-top: 15px;
}
.hero__actions {
    gap: 8px;
    margin-bottom: 10px;
}
.hero__container {
    gap: 15px;
}
.hero-banner-special {
        margin-top: 10px;
        padding-top: 10px;
    }
    .hero-banner-special {
    gap: 10px;
}
  }
@media (max-width: 730px) {
.all-news-btn {
    position: relative;
    right: 0;
    top: 0;
    margin-bottom: 15px;
            display: flex;
        justify-content: flex-end;
}

}

@media (max-width: 570px) {
      .quicktabs-tabs {
        flex-direction: column;
                width: 100%;
        margin: 15px auto;
    }
}
@media (max-width: 565px) {
    .banner-special-link {
        max-width: 100%;
    }
  }




  /* ===== Стили блока Руководство — горизонтальные карточки ===== */
.rukovodstvo-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.rukovodstvo-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

.rukovodstvo-row:hover {
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.08);
  border-color: #cbd5e1;
}

.rukovodstvo-row-inner {
  display: flex;
  align-items: flex-start;
  padding: 24px;
  gap: 24px;
}

.rukovodstvo-row-photo {
  flex-shrink: 0;
  width: 250px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rukovodstvo-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.rukovodstvo-row-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.rukovodstvo-row-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rukovodstvo-row-name {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.rukovodstvo-row-divider {
  width: 40px;
  height: 3px;
  background: #003366;
  border-radius: 2px;
  margin-bottom: 12px;
}

.rukovodstvo-row-position {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.5;
}

.rukovodstvo-row-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 16px;
}

.rukovodstvo-row-desc p {
  margin: 0 0 8px 0;
}

.rukovodstvo-row-desc p:last-child {
  margin-bottom: 0;
}

.rukovodstvo-row-desc a {
  color: #003366;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.rukovodstvo-row-desc a:hover {
  border-bottom-color: #003366;
}

.rukovodstvo-row-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #003366;
  text-decoration: none;
  padding: 8px 0;
  margin-top: auto;
  transition: color 0.2s;
  align-self: flex-start;
}

.rukovodstvo-row-more svg {
  transition: transform 0.2s;
}

.rukovodstvo-row-more:hover {
  color: #0055aa;
}

.rukovodstvo-row-more:hover svg {
  transform: translateX(3px);
}
.rukovodstvo-title{
  text-align: center;
}
/* Адаптив */
@media (max-width: 640px) {
  .rukovodstvo-row-inner {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 16px;
  }
  
  .rukovodstvo-row-photo {
    width: 140px;
    height: 175px;
  }
  
  .rukovodstvo-row-body {
    align-items: center;
    text-align: center;
  }
  
  .rukovodstvo-row-name {
    font-size: 18px;
  }
  
  .rukovodstvo-row-divider {
    margin-left: auto;
    margin-right: auto;
  }
  
  .rukovodstvo-row-more {
    align-self: center;
  }
}




/* ============================================================
   СТИЛИ РЕЗУЛЬТАТОВ ПОИСКА — new.gorki.gov.by
   ============================================================ */

/* ---------- CSS-ПЕРЕМЕННЫЕ ---------- */
:root {
  --gorki-primary: #2d7a3e;
  --gorki-primary-dark: #143d1f;
  --gorki-primary-hover: #1e5a2e;
  --gorki-gold: #ffc847;
  --gorki-gold-dark: #e6a800;
  --gorki-bg: #f5f7f0;
  --gorki-white: #ffffff;
  --gorki-text: #333333;
  --gorki-text-dark: #1e293b;
  --gorki-text-muted: #64748b;
  --gorki-border: #e2e8f0;
  --gorki-border-light: #cbd5e1;
  --gorki-shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --gorki-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --gorki-shadow-hover: 0 12px 24px -8px rgba(45, 122, 62, 0.15), 0 0 0 1px rgba(255, 200, 71, 0.1);
  --gorki-radius-sm: 6px;
  --gorki-radius: 10px;
  --gorki-radius-lg: 16px;
  --gorki-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- ОБЩИЕ СТИЛИ ФОРМЫ ПОИСКА ---------- */
.search-form {
  max-width: 1350px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.search-form .container-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.search-form .form-item-keys {
  flex: 1;
  margin: 0;
}

.search-form .form-item-keys label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gorki-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-form .form-search {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 2px solid var(--gorki-border);
  border-radius: var(--gorki-radius);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--gorki-text);
  background: var(--gorki-white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form .form-search:focus {
  border-color: var(--gorki-gold);
  box-shadow: 0 0 0 3px rgba(255, 200, 71, 0.15);
}

.search-form .form-submit,
.search-form .button {
  height: 48px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--gorki-primary) 0%, var(--gorki-primary-hover) 100%);
  color: var(--gorki-white);
  border: none;
  border-radius: var(--gorki-radius);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--gorki-transition);
  box-shadow: 0 4px 12px rgba(45, 122, 62, 0.3);
}

.search-form .form-submit:hover,
.search-form .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 122, 62, 0.4);
}

.search-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gorki-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(45, 122, 62, 0.08);
  border-radius: var(--gorki-radius-sm);
  transition: var(--gorki-transition);
  margin-bottom: 16px;
}

.search-help-link:hover {
  background: var(--gorki-primary);
  color: var(--gorki-white);
}

/* ---------- РАСШИРЕННЫЙ ПОИСК ---------- */
.search-advanced {
  background: var(--gorki-white);
  border: 1px solid var(--gorki-border);
  border-radius: var(--gorki-radius-lg);
  padding: 0;
  margin-bottom: 24px;
  box-shadow: var(--gorki-shadow);
  overflow: hidden;
}

.search-advanced summary {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gorki-text-dark);
  cursor: pointer;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--gorki-border);
  transition: background 0.2s;
  list-style: none;
}

.search-advanced summary:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.search-advanced summary::-webkit-details-marker {
  display: none;
}

.search-advanced .form-details-wrapper {
  padding: 24px;
}

.search-advanced fieldset {
  border: 1px solid var(--gorki-border);
  border-radius: var(--gorki-radius);
  padding: 20px;
  margin-bottom: 20px;
  background: #fafbfc;
}

.search-advanced fieldset legend {
  font-size: 14px;
  font-weight: 700;
  color: var(--gorki-primary-dark);
  padding: 0 12px;
}

.search-advanced .form-item {
  margin-bottom: 16px;
}

.search-advanced .form-item label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gorki-text-dark);
  margin-bottom: 6px;
}

.search-advanced .form-text {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--gorki-border);
  border-radius: var(--gorki-radius-sm);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--gorki-text);
  background: var(--gorki-white);
  outline: none;
  transition: border-color 0.2s;
}

.search-advanced .form-text:focus {
  border-color: var(--gorki-gold);
}

/* Чекбоксы */
.search-advanced .form-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.search-advanced .form-type-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--gorki-white);
  border: 1px solid var(--gorki-border);
  border-radius: var(--gorki-radius-sm);
  transition: var(--gorki-transition);
  cursor: pointer;
}

.search-advanced .form-type-checkbox:hover {
  border-color: var(--gorki-primary);
  background: rgba(45, 122, 62, 0.04);
}

.search-advanced .form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--gorki-primary);
  cursor: pointer;
}

.search-advanced .form-type-checkbox label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--gorki-text);
  cursor: pointer;
}

/* ---------- ЗАГОЛОВОК РЕЗУЛЬТАТОВ ---------- */
.search-results-heading {
  max-width: 1350px;
  margin: 0 auto 24px;
  padding: 0 24px;
}

.search-results-heading h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--gorki-primary-dark);
  margin: 0;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-results-heading h2::before {
  content: '';
  width: 56px;
  height: 56px;
  background: var(--gorki-primary);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 10px 30px rgba(37, 99, 168, 0.3);
}

/* ---------- СПИСОК РЕЗУЛЬТАТОВ ---------- */
.search-results {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
}

.search-results.node_search-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px;
}

/* ---------- КАРТОЧКА РЕЗУЛЬТАТА ---------- */
.search-results li {
  background: var(--gorki-white);
  border: 1px solid var(--gorki-border);
  border-radius: var(--gorki-radius-lg);
  padding: 24px 28px;
  transition: var(--gorki-transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--gorki-shadow-sm);
}

.search-results li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gorki-primary) 0%, var(--gorki-primary-hover) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.search-results li:hover {
  transform: translateY(-4px);
  box-shadow: var(--gorki-shadow-hover);
  border-color: var(--gorki-border-light);
}

.search-results li:hover::before {
  opacity: 1;
}

/* Заголовок результата */
.search-results li h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gorki-primary-dark);
  margin: 0 0 12px 0;
  line-height: 1.4;
  transition: color 0.2s;
}

.search-results li:hover h3 {
  color: var(--gorki-primary);
}

.search-results li h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.search-results li h3 a:hover {
  color: var(--gorki-primary);
}

/* Описание / сниппет */
.search-results li p {
  font-size: 15px;
  color: var(--gorki-text-muted);
  line-height: 1.7;
  margin: 0 0 12px 0;
}

.search-results li p strong {
  color: var(--gorki-primary-dark);
  font-weight: 700;
}

/* Мета-информация (автор, дата) */
.search-results li p:last-child {
  font-size: 13px;
  color: var(--gorki-text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-results li p:last-child a {
  color: var(--gorki-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.search-results li p:last-child a:hover {
  color: var(--gorki-gold-dark);
  text-decoration: underline;
}

/* ---------- ПАГИНАЦИЯ ---------- */
.pager {
  max-width: 1350px;
  margin: 40px auto 60px;
  padding: 0 24px;
}

.pager__items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pager__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--gorki-white);
  border: 1px solid var(--gorki-border);
  border-radius: var(--gorki-radius-sm);
  color: var(--gorki-text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--gorki-transition);
  font-family: 'Inter', sans-serif;
}

.pager__item a:hover {
  background: rgba(45, 122, 62, 0.08);
  color: var(--gorki-primary);
  border-color: var(--gorki-primary);
  transform: translateY(-2px);
}

.pager__item.is-active a {
  background: var(--gorki-primary);
  color: var(--gorki-white);
  border-color: var(--gorki-primary);
  box-shadow: 0 4px 12px rgba(45, 122, 62, 0.3);
}

.pager__item--ellipsis {
  color: var(--gorki-text-muted);
  font-size: 14px;
  padding: 0 8px;
}

.pager__item--next a,
.pager__item--last a {
  gap: 6px;
  padding: 0 16px;
}

.pager__item--next a:hover,
.pager__item--last a:hover {
  background: var(--gorki-primary);
  color: var(--gorki-white);
  border-color: var(--gorki-primary);
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 768px) {
  .search-form,
  .search-results,
  .pager {
    padding: 0 16px;
  }

  .search-form .container-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form .form-submit,
  .search-form .button {
    width: 100%;
  }

  .search-advanced .form-checkboxes {
    grid-template-columns: 1fr;
  }

  .search-results li {
    padding: 20px;
  }

  .search-results li h3 {
    font-size: 16px;
  }

  .search-results li p {
    font-size: 14px;
  }

  .pager__items {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .search-results-heading h2 {
    font-size: 24px;
  }

  .search-results-heading h2::before {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .search-results li {
    padding: 16px;
    border-radius: var(--gorki-radius);
  }
}