/* ==========================================================================
   БГМТК Modern UI - Версия 2 (Динамичная)
   Особенности: 
   - Глубокий брендовый синий фон хедера с подсветкой
   - Анимированный динамический фон (технологические частицы и волны)
   - Интерактивный выезжающий сайдбар с анимациями и микро-эффектами
   - Полная сохранность всех баннеров без обрезки
   ========================================================================== */

:root {
  --primary-color: #04558D;
  --primary-dark: #03254c;
  --primary-light: #e6f2ff;
  --accent-color: #00bcd4;
  --accent-red: #d32f2f;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-page: #edf2f8;
  --bg-card: #ffffff;
  --border-color: #cbd5e1;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 16px rgba(4,85,141,0.12);
  --shadow-lg: 0 12px 28px rgba(4,85,141,0.18);
  --radius: 8px;
  --nav-height: 50px;
}

body.high-contrast {
  --primary-color: #000000;
  --primary-dark: #000000;
  --primary-light: #ffff00;
  --text-main: #000000;
  --text-muted: #111111;
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --border-color: #000000;
  filter: contrast(120%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-main);
  background-color: var(--bg-page);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ДИНАМИЧЕСКИЙ АНИМИРОВАННЫЙ ФОН: СПЕЦИФИКА СПЕЦИАЛЬНОСТЕЙ БГМТК */
#dynamicBgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0; /* Виден поверх body, но под карточками контента */
  pointer-events: none;
  opacity: 1;
}

body {
  background-color: #edf2f7;
  position: relative;
}

.brand-header-deep,
.main-nav-bar-v2,
.main-wrapper,
footer {
  position: relative;
  z-index: 2;
}

/* КНОПКА БЫСТРОГО РАСПИСАНИЯ В ХЕДЕРЕ И САЙДБАРЕ */
.btn-timetable-quick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-timetable-quick:hover {
  background: #0369a1;
  box-shadow: 0 5px 14px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
}

.btn-timetable-quick .material-icons {
  font-size: 18px;
}

.btn-substitute-sso {
  background: #0369a1;
}
.btn-substitute-sso:hover {
  background: #0284c7;
}

.btn-substitute-pto {
  background: #04558d;
}
.btn-substitute-pto:hover {
  background: #0284c7;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.top-bar {
  background: #e9eef5 !important;
  border-bottom: 1.5px solid #cbd5e1 !important;
  font-size: 13px !important;
  color: #1e293b !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
  position: relative !important;
  z-index: 100 !important;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  flex-wrap: wrap;
  padding: 5px 0;
  gap: 10px;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #042149 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
  transition: all 0.2s ease !important;
}

.top-link:hover {
  color: #0284c7 !important;
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.22) !important;
}

.top-link .material-icons {
  font-size: 16px;
  color: #0284c7 !important;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 600;
}

.lang-btn {
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  border-radius: 3px;
}

.lang-btn.active, .lang-btn:hover {
  color: var(--primary-color);
  background: #ffffff;
}

.btn-contrast {
  border: 1.5px solid #0284c7 !important;
  background: #ffffff !important;
  padding: 5px 14px !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #0284c7 !important;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.18) !important;
  transition: all 0.2s ease !important;
}

.btn-contrast:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   ХЕДЕР С ГЛУБОКИМ БРЕНДОВЫМ ФОНОМ (ФОН ВЕРНУТ И УЛУЧШЕН)
   ========================================================================== */
.brand-header-deep {
  background: linear-gradient(135deg, #021733 0%, #042959 45%, #05417e 100%);
  color: #ffffff;
  padding: 22px 0 18px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -2px 10px rgba(0,0,0,0.3);
}

/* Технологический сетчатый оверлей в хедере */
.brand-header-deep::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.brand-subhead-v2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.brand-main-title-v2 {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 14px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Большой логотип со слоганом в стильной белой плашке */
.brand-logo-card-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.2);
  margin-bottom: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo-card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.brand-logo-img-v2 {
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;
}

/* КОНТЕЙНЕР ПОИСКА: НАД КНОПКАМИ И НА ВСЮ ШИРИНУ ПЛАШКИ ЛОГОТИПА */
.brand-search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 12px auto;
  padding: 0 16px;
}

.header-search-form-v2 {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 656px; /* В точности под ширину белой плашки логотипа (620px + padding) */
}

.header-search-input-v2 {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.header-search-input-v2::placeholder {
  color: #cbd5e1;
}

.header-search-input-v2:focus {
  background: #ffffff;
  color: #0f172a;
  border-color: #38bdf8;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.5), 0 4px 18px rgba(0,0,0,0.3);
}

.header-search-btn-v2 {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.header-search-input-v2:focus + .header-search-btn-v2 {
  color: #0284c7;
}

/* КНОПКИ БЫСТРОГО ДОСТУПА В ХЕДЕРЕ: РАСПИСАНИЕ, ЗАМЕНЫ ССО/ПТО, МЕНЮ */
.header-quick-buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
}

.btn-mobile-toggle-v2 {
  display: none;
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-mobile-toggle-v2:hover {
  background: #0369a1;
  box-shadow: 0 6px 16px rgba(2,132,199,0.4);
}

/* ==========================================================================
   DESKTOP 3-LEVEL NAVIGATION (V2 DYNAMIC)
   ========================================================================== */
.main-nav-bar-v2 {
  background: #042149;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  border-bottom: 2px solid #0284c7;
  width: 100%;
}

.nav-desktop-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-item-root {
  position: static;
  flex-shrink: 0;
}

.nav-link-root {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 clamp(8px, 1.1vw, 16px);
  height: var(--nav-height);
  color: #f1f5f9;
  font-weight: 600;
  font-size: clamp(12.5px, 0.95vw, 14px);
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-link-root:hover,
.nav-item-root:hover > .nav-link-root {
  background: #0284c7;
  color: #ffffff;
}

.nav-link-root .material-icons {
  font-size: 18px;
}

.nav-link-root .nav-arrow {
  font-size: 16px;
  opacity: 0.8;
  transition: transform 0.2s;
}

.nav-item-root:hover .nav-arrow {
  transform: rotate(180deg);
}

.dropdown-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  background: #ffffff;
  border-bottom: 4px solid #0284c7;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  padding: 24px 0;
  z-index: 1100;
  text-align: left;
}

.nav-item-root:hover .dropdown-mega {
  display: block;
}

.mega-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.mega-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #04558D;
  border-bottom: 2px solid #e0f2fe;
  padding-bottom: 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-sublist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.mega-sublink {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 10px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 3.5px solid #0284c7 !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mega-sublink:hover {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  border-left-color: #04558D !important;
  color: #0369a1 !important;
  transform: translateX(4px) !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.18) !important;
}

.mega-sublink .material-icons {
  font-size: 16px !important;
  color: #0284c7 !important;
  flex-shrink: 0 !important;
  transition: color 0.15s !important;
}

.mega-sublink:hover .material-icons {
  color: #0369a1 !important;
}

/* ==========================================================================
   MOBILE OFF-CANVAS DRAWER (V2)
   ========================================================================== */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 33, 73, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

.mobile-overlay.active {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 90%;
  max-width: 380px;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0,0,0,0.35);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open {
  left: 0;
}

.drawer-header {
  background: #042149;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #0284c7;
}

.drawer-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.btn-drawer-close {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.btn-drawer-close:hover {
  transform: scale(1.1);
  color: #38bdf8;
}

.drawer-search-box {
  padding: 10px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
}

.drawer-search-input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="%2364748b"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') no-repeat 10px center;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}

.m-lvl1-item {
  border-bottom: 1px solid #edf2f7;
}

.m-lvl1-trigger {
  width: 100%;
  background: #ffffff;
  border: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: #042149;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.m-lvl1-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-lvl1-title .material-icons {
  font-size: 20px;
  color: #0284c7;
}

.m-lvl1-arrow {
  transition: transform 0.25s;
  color: #94a3b8;
}

.m-lvl1-item.open > .m-lvl1-trigger {
  background: #e0f2fe;
  color: #0369a1;
}

.m-lvl1-item.open > .m-lvl1-trigger .m-lvl1-arrow {
  transform: rotate(180deg);
  color: #0284c7;
}

.m-lvl2-container {
  display: none;
  background: #f8fafc;
  padding: 6px 0;
  border-top: 1px solid #e2e8f0;
}

.m-lvl1-item.open > .m-lvl2-container {
  display: block;
}

.m-lvl2-item {
  border-bottom: 1px dashed #e2e8f0;
}

.m-lvl2-item:last-child {
  border-bottom: none;
}

.m-lvl2-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 16px 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.m-lvl2-arrow {
  font-size: 18px;
  transition: transform 0.25s;
  color: #94a3b8;
}

.m-lvl2-item.open > .m-lvl2-trigger {
  color: #0284c7;
  background: #eef2f7;
}

.m-lvl2-item.open > .m-lvl2-trigger .m-lvl2-arrow {
  transform: rotate(180deg);
  color: #0284c7;
}

.m-lvl3-container {
  display: none;
  background: #ffffff;
  padding: 4px 0 8px 0;
}

.m-lvl2-item.open > .m-lvl3-container {
  display: block;
}

.m-lvl3-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 40px;
  font-size: 13px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  min-height: 44px;
  text-decoration: none;
}

.m-lvl3-link:active,
.m-lvl3-link:hover {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 500;
}

.m-lvl3-link .material-icons {
  font-size: 16px;
  color: #94a3b8;
  flex-shrink: 0;
}

.drawer-footer {
  padding: 14px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
}

.drawer-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.drawer-contact-row .material-icons {
  font-size: 16px;
  color: #0284c7;
}

/* ==========================================================================
   СЛАЙДЕР С ТАЧ-СВАЙПОМ
   ========================================================================== */
.modern-slider-container {
  margin: 20px auto 10px auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background: #021733;
  touch-action: pan-y;
}

.modern-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.modern-slide {
  min-width: 100%;
  position: relative;
  user-select: none;
}

.modern-slide-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  opacity: 0.88;
}

.modern-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 30px;
  background: linear-gradient(to top, rgba(2, 23, 51, 0.95) 0%, rgba(2, 23, 51, 0.4) 60%, transparent 100%);
  color: #ffffff;
}

.modern-slide-tag {
  display: inline-block;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.modern-slide-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.modern-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #042149 !important;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 4px;
  margin-top: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.modern-slide-btn:hover {
  background: #e0f2fe;
  transform: translateX(4px);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  color: #042149;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10;
  transition: all 0.2s;
}

.slider-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 12px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.slider-dot.active {
  background: #0284c7;
  width: 26px;
  border-radius: 6px;
}

/* ==========================================================================
   ИЗЮМИНКА ВЕРСИИ 2: ИНТЕРАКТИВНЫЙ ВЫЕЗЖАЮЩИЙ САЙДБАР
   ========================================================================== */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ПЛАШКИ САЙДБАРА С ВЫЕЗДОМ И ПЛАВНЫМИ МИКРО-ЭФФЕКТАМИ */
.sbstory-v2 {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #04558D;
  overflow: hidden;
  padding: 16px;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease, border-left-color 0.25s ease;
  position: relative;
}

/* Эффект выезда плашки при наведении */
.sbstory-v2:hover {
  transform: translateX(-8px) translateY(-2px);
  box-shadow: 0 10px 24px rgba(4, 85, 141, 0.16);
  border-left-color: #0284c7;
}

.sbstory-v2 .story-title {
  margin-bottom: 12px;
}

.text-accent-v2 {
  color: #04558D !important;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Директор: интерактивный портрет */
.director-widget {
  text-align: center;
  padding: 4px 0;
}

.director-card-img-v2 {
  width: 170px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin-bottom: 10px;
  border: 1px solid #cbd5e1;
  transition: transform 0.3s ease;
}

.sbstory-v2:hover .director-card-img-v2 {
  transform: scale(1.03);
}

.director-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
}

.director-text b {
  color: #042149;
}

/* Контакты */
.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  line-height: 1.4;
  padding: 4px 0;
  font-size: 13px;
}

.contact-item i {
  margin-right: 8px;
  color: #04558D;
  min-width: 20px;
  font-size: 18px;
}

.contact-group {
  margin-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 10px;
}

.contact-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contact-group h4 {
  margin: 10px 0 8px 0;
  display: flex;
  align-items: center;
  color: #042149;
  font-size: 13px;
}

.contact-group h4 i {
  margin-right: 6px;
  font-size: 16px;
}

.btn-toggle-contacts {
  border: 1px solid #04558D;
  background: #f8fafc;
  color: #04558D;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-toggle-contacts:hover {
  background: #04558D;
  color: #ffffff;
}

/* Кнопки абитуриентам с бегущим бликом */
.abiturient-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.abiturient-btn-v2 {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(135deg, #04558D 0%, #032d66 100%);
  border-radius: 6px;
  color: white !important;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}

.abiturient-btn-v2::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.abiturient-btn-v2:hover {
  transform: translateX(6px);
  background: linear-gradient(135deg, #0284c7 0%, #04558D 100%);
  box-shadow: 0 4px 12px rgba(4, 85, 141, 0.25);
}

.abiturient-btn-v2:hover::before {
  left: 120%;
}

.abiturient-btn-v2 i {
  margin-right: 10px;
  font-size: 18px;
}

.abiturient-btn-v2 span {
  flex: 1;
  font-size: 13px;
  line-height: 1.35;
}

/* Неделя */
.week-indicator {
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  padding: 10px;
  background-color: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.week-type {
  color: #1e7e34;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: #e6f2ff;
}

/* Баннеры в сайдбаре */
.sb-banner-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sbstory-v2:hover .sb-banner-img {
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Календарь */
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
}

.calendar-table th {
  padding: 6px 2px;
  color: #64748b;
  font-weight: 600;
}

.calendar-table td {
  padding: 6px 2px;
  border-radius: 4px;
}

.calendar-table td.today {
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
}

/* ==========================================================================
   КОНТЕНТ И СТАТЬИ
   ========================================================================== */
.main-wrapper {
  padding: 20px 0 40px 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.content-area {
  min-width: 0;
}

.breadcrumbs-bar {
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.demo-tab-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.demo-tab-btn.active {
  background: #04558D;
  color: #ffffff;
  border-color: #04558D;
  box-shadow: 0 2px 6px rgba(4,85,141,0.25);
}

.story-card-v2 {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.25s ease;
}

.story-card-v2:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.story-header {
  margin-bottom: 14px;
}

.story-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #042149;
  margin-bottom: 10px;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.story-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.story-meta-item .material-icons {
  font-size: 16px;
  color: #0284c7;
}

.story-body {
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 20px;
}

.story-body p {
  margin-bottom: 12px;
}

.static-page-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.static-page-title {
  font-size: 22px;
  font-weight: 800;
  color: #042149;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.static-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 16px;
}

.attachment-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #04558D;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.attachment-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.attachment-icon {
  font-size: 28px;
  color: #04558D;
}

.attachment-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

.attachment-size {
  font-size: 12px;
  color: var(--text-muted);
}

.attachment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-attach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-attach-download {
  background: #04558D;
  color: #ffffff;
}

.btn-attach-download:hover {
  background: #032d66;
  color: #ffffff;
}

.btn-attach-view {
  background: #ffffff;
  color: #04558D;
  border-color: #cbd5e1;
}

.btn-attach-view:hover {
  background: #f1f5f9;
}

/* ПАГИНАЦИЯ */
.pagination-wrapper {
  background: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
}

.page-btn:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
}

.page-btn.active {
  background: #04558D;
  border-color: #04558D;
  color: #ffffff;
}

.page-dots {
  padding: 0 6px;
  color: #94a3b8;
  font-weight: bold;
}

/* ==========================================================================
   ПОДВАЛ С БЕЗУПРЕЧНОЙ ПОДГОНКОЙ БАННЕРОВ
   ========================================================================== */
.user-footer {
  background: #021733;
  color: #ffffff;
  padding: 16px 0 20px 0 !important;
  border-top: 3px solid #0284c7;
  position: relative;
  overflow: hidden;
}

.footer-center {
  text-align: center;
  margin: 3px 0 !important;
}

.footer-center:first-child {
  margin-top: 0 !important;
}

.footer-center h3 {
  font-size: 13px;
  font-weight: normal;
  color: #cbd5e1;
  line-height: 1.35;
  margin: 0 !important;
}

.footer-buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
  color: #ffffff !important;
  padding: 6px 16px !important;
  height: 36px !important;
  box-sizing: border-box !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.22);
  transition: all 0.2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.footer-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 71, 161, 0.5);
}

.tech-login-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0 !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  gap: 6px;
}

.tech-login-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.tech-login-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-align: center;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 18px 0;
}

.social-icon {
  display: inline-block;
  transition: transform 0.2s;
}

.social-icon img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
}

.social-icon:hover {
  transform: scale(1.12);
}

.footer-links-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
  font-size: 13px;
}

.footer-links-vertical a {
  color: #94a3b8;
}

.footer-links-vertical a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-banners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
}

.footer-banner-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 80px;
  background: #ffffff;
  border-radius: 6px;
  padding: 4px 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: all 0.2s ease;
}

.footer-banner-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}

.footer-banner-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* COOKIE */
.cookie_notice {
  display: none;
  position: fixed;
  z-index: 9999999;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  color: #FFF;
  background: #021733;
  padding: 14px 20px;
  border-top: 4px solid #0284c7;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.cookie_btn {
  display: inline-block;
  margin: 6px 6px 2px 6px;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 16px;
  color: #FFF;
  font-weight: bold;
  text-transform: uppercase;
  background: #04558D;
  border: 1px solid #38bdf8;
  border-radius: 4px;
  cursor: pointer;
}

.cookie_btn:hover {
  background: #38bdf8;
  color: #021733;
}

/* RESPONSIVE */
/* ==========================================================================
   ТАБЛИЦЫ С ПОЛЯМИ И АДАПТИВНОСТЬЮ (УЧЕБНЫЕ ПЛАНЫ, СПЕЦИАЛЬНОСТИ, РАСПИСАНИЕ)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border-radius: var(--radius);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.content-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.content-table thead th {
  background: linear-gradient(135deg, #021e42 0%, #04558D 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 18px;
  border: 1.5px solid #0284c7;
  border-bottom: 3.5px solid #0284c7;
  white-space: nowrap;
  letter-spacing: 0.03em;
  font-size: 14px;
}

.content-table thead th:not(:last-child) {
  border-right: 1.5px solid rgba(255, 255, 255, 0.25);
}

.content-table tbody td {
  padding: 12px 18px;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  vertical-align: middle;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.content-table tbody tr:nth-child(even) td {
  background-color: #edf5fd;
}

.content-table tbody tr:hover td {
  background-color: #dbeafe;
  border-color: #93c5fd;
}

.table-specialty-title {
  font-weight: 700;
  color: #042149;
  display: block;
  margin-bottom: 2px;
}

.table-specialty-code {
  font-size: 12px;
  color: #64748b;
  font-family: monospace;
}

.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.table-badge-budget {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.table-badge-paid {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.table-badge-primary {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.table-scroll-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  margin-bottom: 16px;
}

/* Правила таблиц оформлены в едином блоке в конце файла (строка 4260+) */

/* ==========================================================================
   КРАСИВЫЕ СПОЙЛЕРЫ (DLE СОВМЕСТИМЫЕ С ЧЕТКИМ ТЕКСТОМ НА ПЛАШКЕ)
   ========================================================================== */
.modern-spoiler-box {
  margin: 16px 0;
}

.title_spoiler,
.modern-spoiler-header {
  background: linear-gradient(135deg, #042149 0%, #04558D 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 13px 20px !important;
  border-radius: 8px !important;
  margin: 14px 0 0 0 !important;
  border: 1px solid #0284c7 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 3px 10px rgba(4, 33, 73, 0.16) !important;
  transition: all 0.2s ease !important;
  user-select: none;
}

.modern-spoiler-box.open .title_spoiler,
.modern-spoiler-box.open .modern-spoiler-header {
  border-radius: 8px 8px 0 0 !important;
}

.title_spoiler:hover,
.modern-spoiler-header:hover {
  background: linear-gradient(135deg, #031c3d 0%, #0284c7 100%) !important;
  box-shadow: 0 5px 16px rgba(2, 132, 199, 0.28) !important;
  transform: translateY(-1px);
}

.title_spoiler a,
.modern-spoiler-title-wrap {
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  width: 100% !important;
}

.modern-spoiler-title-wrap .material-icons {
  font-size: 20px;
  color: #38bdf8;
}

.spoiler-arrow {
  font-size: 20px;
  color: #ffffff;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.modern-spoiler-box.open .spoiler-arrow {
  transform: rotate(180deg);
}

.text_spoiler,
.modern-spoiler-body {
  display: none;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-top: none !important;
  border-radius: 0 0 8px 8px !important;
  padding: 18px 22px !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #334155 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
  margin-bottom: 14px !important;
  box-sizing: border-box !important;
  text-align: left !important;
  animation: spoilerFadeIn 0.25s ease-out;
}

@keyframes spoilerFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.text_spoiler p,
.modern-spoiler-body p {
  margin-bottom: 10px;
}

.text_spoiler p:last-child,
.modern-spoiler-body p:last-child {
  margin-bottom: 0;
}

/* Удаляем неинформативные круги свечения */
.ambient-glow {
  display: none !important;
}

@media (max-width: 1024px) {
  .nav-desktop-bar-v2 {
    display: none;
  }

  .btn-mobile-toggle-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .header-quick-buttons-row {
    gap: 8px;
  }

  .btn-timetable-quick {
    padding: 8px 12px;
    font-size: 12.5px;
    flex-shrink: 0;
  }

  .layout-grid {
    grid-template-columns: 1fr;
  }

  .brand-main-title-v2 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .brand-logo-img-v2 {
    max-width: 320px;
  }

  .brand-search-container {
    padding: 0 8px;
    margin-bottom: 10px;
  }

  .header-search-form-v2 {
    max-width: 356px; /* Растягивается под уменьшенный размер логотипа (320px + padding) */
  }

  .header-search-input-v2 {
    height: 38px;
    font-size: 13px;
    padding: 0 38px 0 16px;
  }

  .header-quick-buttons-row {
    gap: 8px;
  }

  .btn-timetable-quick {
    padding: 7px 10px;
    font-size: 12px;
    gap: 4px;
    flex-shrink: 0;
  }

  .btn-mobile-toggle-v2 {
    padding: 7px 14px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .modern-slide-img {
    height: 220px;
  }

  .modern-slide-caption {
    padding: 14px 18px;
  }

  .modern-slide-title {
    font-size: 16px;
  }

  .footer-banner-item {
    width: 140px;
    height: 60px;
  }
}

@media (max-width: 520px) {
  .brand-search-container {
    padding: 0 4px;
    margin-bottom: 8px;
  }

  .header-search-form-v2 {
    max-width: 100%;
  }

  .header-quick-buttons-row {
    gap: 6px;
  }

  .btn-timetable-quick {
    flex: 1 1 calc(33.333% - 6px);
    justify-content: center;
    padding: 7px 4px;
    font-size: 11px;
    min-width: 85px;
  }

  .btn-mobile-toggle-v2 {
    width: 100%;
    justify-content: center;
    padding: 9px 16px;
    font-size: 14px;
  }
}


/* ==========================================================================
   ПРАВИЛО БЕЗУПРЕЧНОЙ ПОДГОНКИ БАННЕРОВ САЙДБАРА (ЛЮБОЙ РАЗМЕР БЕЗ ОБРЕЗКИ)
   ========================================================================== */
.sbstory-v2 img:not(.director-card-img-v2),
.sb-banner-img {
  max-width: 100% !important;
  max-height: 140px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important; /* Картинка любого размера вписывается целиком */
  border-radius: 6px !important;
  display: block !important;
  margin: 8px auto !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  background: #ffffff;
}

.sbstory-v2 img:not(.director-card-img-v2):hover,
.sb-banner-img:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 6px 14px rgba(4, 85, 141, 0.2) !important;
}

/* ==========================================================================
   ПРОМО-БЛОК: ЦЕНТР КОМПЕТЕНЦИЙ СОВРЕМЕННЫХ СВАРОЧНЫХ ТЕХНОЛОГИЙ
   ========================================================================== */
.competence-center-hero {
  background: linear-gradient(135deg, #031c3d 0%, #04558D 60%, #0369a1 100%);
  border-radius: 12px;
  padding: 30px;
  color: #ffffff;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(4, 33, 73, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.competence-center-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cc-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.cc-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #ffffff;
}

.cc-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 22px;
  max-width: 90%;
}

.cc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.cc-stat-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 14px 16px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}

.cc-stat-box:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}

.cc-stat-num {
  font-size: 24px;
  font-weight: 900;
  color: #38bdf8;
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}

.cc-stat-lbl {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.35;
}

.cc-equipment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cc-equip-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
}

.cc-equip-tag .material-icons {
  font-size: 16px;
  color: #fbbf24;
}

.cc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cc-primary {
  background: #f59e0b;
  color: #031c3d !important;
  font-weight: 800;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-cc-primary:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.55);
}

.btn-cc-outline {
  background: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-cc-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* ==========================================================================
   НАВИГАТОР СПЕЦИАЛЬНОСТЕЙ: КАРТОЧКИ ПРОФЕССИЙ С БАЗОВЫМИ ЗАВОДАМИ
   ========================================================================== */
.spec-navigator-wrap {
  margin: 30px 0;
}

.spec-navigator-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.spec-nav-title {
  font-size: 20px;
  font-weight: 800;
  color: #042149;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.spec-filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.spec-filter-btn:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #0284c7;
}

.spec-filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.spec-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.spec-card-v3 {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.spec-card-v3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #00bcd4);
}

.spec-card-v3:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(4, 85, 141, 0.14);
  border-color: #0284c7;
}

.spec-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.spec-card-code {
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}

.spec-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #042149;
  margin-bottom: 6px;
}

.spec-card-qualification {
  font-size: 13px;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.spec-card-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 14px;
  line-height: 1.5;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
  padding: 8px 0;
}

.spec-card-partners {
  margin-top: auto;
}

.spec-partners-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
  display: block;
}

.spec-partner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.spec-partner-badge {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.spec-guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
}

/* Переключатель демо версий: 3 кнопки */
.demo-version-switcher {
  background: #091e3a;
  color: #94a3b8;
  padding: 6px 16px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1001;
}

.demo-version-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s;
}

.demo-v1-btn {
  background: #334155;
  color: #cbd5e1 !important;
}

.demo-v2-btn {
  background: #334155;
  color: #cbd5e1 !important;
}

.demo-v3-btn-active {
  background: #0284c7;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.6);
}


/* ==========================================================================
   SCROLL REVEAL (AOS ЭФФЕКТ НА NATIVE INTERSECTIONOBSERVER)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1 !important;
  transform: translateY(0);
}

/* ==========================================================================
   ОНЛАЙН-КОНСУЛЬТАНТ ПРИЕМНОЙ КОМИССИИ (ВНИЗУ СПРАВА)
   ========================================================================== */
.consultant-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  background: linear-gradient(135deg, #0284c7 0%, #04558D 100%);
  color: #ffffff !important;
  border: none;
  padding: 12px 20px 12px 16px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: consultantPulse 3.5s infinite;
  text-decoration: none;
}

.consultant-floating-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.6);
}

.consultant-floating-btn.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.consultant-status-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
}

@keyframes consultantPulse {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.65); }
  70% { box-shadow: 0 0 0 18px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

/* Модальное окно онлайн-консультанта */
.consultant-modal-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 370px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(4, 33, 73, 0.35);
  z-index: 9995;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  transform: translateY(30px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.consultant-modal-box.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.consultant-header {
  background: linear-gradient(135deg, #031c3d 0%, #04558D 100%);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0284c7;
}

.consultant-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.consultant-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.consultant-header-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.consultant-header-subtitle {
  font-size: 11.5px;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.consultant-close-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s, transform 0.2s;
}

.consultant-close-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.consultant-body {
  padding: 18px;
  max-height: 480px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.5;
}

/* Быстрые каналы связи */
.consultant-quick-channels {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-channel {
  flex: 1;
  padding: 8px 6px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.btn-channel-tg {
  background: #0284c7;
  color: #ffffff !important;
}

.btn-channel-phone {
  background: #16a34a;
  color: #ffffff !important;
}

.btn-channel-vk {
  background: #4f46e5;
  color: #ffffff !important;
}

.btn-channel:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* FAQ аккордеон внутри консультанта */
.consultant-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.consultant-faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.consultant-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.consultant-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.consultant-faq-a {
  display: none;
  padding: 8px 12px 10px 12px;
  font-size: 12.5px;
  color: #475569;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  line-height: 1.5;
}

.consultant-faq-item.open .consultant-faq-a {
  display: block;
}

.consultant-faq-item.open .consultant-faq-q {
  color: #0284c7;
  background: #f0f9ff;
}

/* Форма вопроса */
.consultant-form {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.consultant-input {
  width: 100%;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.consultant-textarea {
  width: 100%;
  height: 60px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 10px;
  box-sizing: border-box;
  resize: none;
}

.btn-consultant-send {
  width: 100%;
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-consultant-send:hover {
  background: #0369a1;
}

.consultant-success-msg {
  display: none;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

/* Стили для 4-й кнопки в свитчере версий */
.demo-v4-btn-active {
  background: #f59e0b;
  color: #031c3d !important;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
}


/* ==========================================================================
   ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ (СТРОГИЙ КОНТРАСТНЫЙ РЕЖИМ ПОСТАНОВЛЕНИЯ 645)
   ========================================================================== */
body.high-contrast {
  --primary-color: #000000;
  --primary-dark: #000000;
  --primary-light: #ffff00;
  --text-main: #000000;
  --text-muted: #111111;
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --border-color: #000000;
  background-color: #ffffff !important;
  color: #000000 !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

body.high-contrast #dynamicBgCanvas {
  display: none !important;
}

body.high-contrast .brand-header-deep {
  background: #ffffff !important;
  border-bottom: 4px solid #000000 !important;
}

body.high-contrast .brand-main-title-v2,
body.high-contrast .brand-subhead-v2,
body.high-contrast .brand-logo-card-wrap {
  color: #000000 !important;
  background: transparent !important;
  border-color: #000000 !important;
}

body.high-contrast .story-card-v2,
body.high-contrast .sbstory-v2,
body.high-contrast .static-page-card,
body.high-contrast .spec-card-v3,
body.high-contrast .competence-center-hero {
  background: #ffffff !important;
  color: #000000 !important;
  border: 3px solid #000000 !important;
  box-shadow: none !important;
}

body.high-contrast a {
  color: #0000ee !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}

body.high-contrast .btn-contrast.active {
  background: #000000 !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

/* ==========================================================================
   КОМПАКТНЫЙ ПОДВАЛ И КНОПКИ В ОДНУ СТРОКУ
   ========================================================================== */
.footer-banner-container {
  padding: 18px 0 !important; /* Уменьшен отступ сверху и снизу */
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-banner-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px !important; /* Компактный зазор между баннерами */
}

.footer-banner-item {
  width: 175px !important;
  height: 64px !important; /* Уменьшен размер карточки баннера */
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-banner-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
}

.footer-banner-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
}

/* Ссылки в подвале: стильные кнопки в одну строку */
.footer-legal-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 16px 0 10px 0;
}

.btn-footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-footer-pill:hover {
  background: #0284c7;
  color: #ffffff !important;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.4);
}

.btn-footer-pill .material-icons {
  font-size: 16px;
}

/* ==========================================================================
   ИНТЕРАКТИВНЫЕ ВКЛАДКИ ХАБА (ВАРИАНТ А: НОВОСТИ, ЦК, СПЕЦИАЛЬНОСТИ, СТАТИЧЕСКАЯ)
   ========================================================================== */
.hub-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hub-tab-btn {
  flex: 1;
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #f8fafc;
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.hub-tab-btn:hover {
  background: #e0f2fe;
  color: #0284c7;
}

.hub-tab-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #04558D 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.hub-tab-btn .material-icons {
  font-size: 18px;
}

/* ==========================================================================
   РЕЖИМЫ ОТОБРАЖЕНИЯ НОВОСТЕЙ: [ ☰ СПИСОК ] vs [ ☵ СЕТКА ]
   ========================================================================== */
.news-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.news-toolbar-title {
  font-size: 14px;
  font-weight: 700;
  color: #042149;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-view-modes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-view-mode {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-view-mode:hover {
  background: #f1f5f9;
  color: #0284c7;
}

.btn-view-mode.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

/* Классический режим (Список) */
.news-feed-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Сетка новостей (Карточки 2 в ряд) */
.news-feed-container.news-grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* Закрепленная новость всегда на всю ширину */
.news-feed-container.news-grid-mode .story-card-pinned {
  grid-column: 1 / -1;
}

.pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Галерея нескольких фотографий в краткой новости */
.story-photos-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px 0;
}

.story-photos-gallery img {
  max-height: 140px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.story-photos-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(4, 85, 141, 0.16);
}

/* ==========================================================================
   ВЕРТИКАЛЬНОЕ МЕНЮ В САЙДБАРЕ (ИЗ ОБЩЕГО ФАЙЛА)
   ========================================================================== */
.sb-nav-widget {
  background: #ffffff !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #04558D !important;
  padding: 16px !important;
  margin: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease, border-left-color 0.25s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.sb-nav-widget:hover {
  transform: translateX(-10px) translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(4, 85, 141, 0.2) !important;
  border-left-color: #0284c7 !important;
}

.sb-nav-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #04558D !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-bottom: 2px solid #e0f2fe !important;
  padding-bottom: 8px !important;
  margin-bottom: 12px !important;
}

.sb-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.sb-nav-item {
  border-bottom: none;
}

.sb-nav-trigger {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid #04558D;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.sb-nav-trigger:hover {
  background: #f0f9ff;
  border-color: #bae6fd;
  border-left-color: #0284c7;
  color: #0369a1;
  padding-left: 12px;
}

.sb-nav-item.open .sb-nav-trigger {
  background: #0284c7;
  border-color: #0284c7;
  border-left-color: #042959;
  color: #ffffff;
}

.sb-nav-item.open .sb-nav-trigger span i {
  color: #ffffff !important;
}

.sb-nav-arrow {
  font-size: 16px;
  transition: transform 0.2s;
}

.sb-nav-item.open .sb-nav-arrow {
  transform: rotate(180deg);
}

.sb-nav-sublist {
  display: none;
  list-style: none;
  padding: 6px 0 6px 6px;
  border-left: 2px dashed #bae6fd;
  margin: 6px 0 6px 8px;
  flex-direction: column;
  gap: 5px;
}

.sb-nav-item.open .sb-nav-sublist {
  display: flex;
}

.sb-nav-sublink {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 6px 9px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 3.5px solid #0284c7 !important;
  border-radius: 6px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.sb-nav-sublink:hover {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  border-left-color: #04558D !important;
  color: #0369a1 !important;
  transform: translateX(4px) !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.18) !important;
}

.sb-nav-sublink .material-icons {
  font-size: 15px !important;
  color: #0284c7 !important;
  flex-shrink: 0 !important;
  transition: color 0.15s !important;
}

.sb-nav-sublink:hover .material-icons {
  color: #0369a1 !important;
}

/* Кнопка 5 в свитчере */
.demo-v5-btn-active {
  background: #10b981;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
}


/* ==========================================================================
   УЛЬТРА-ДИНАМИЧЕСКИЕ ЭФФЕКТЫ (PRINTHELP.INFO СТИЛЬ + САЙДБАР)
   ========================================================================== */

/* Восстановление и усиление скольжения плашек сайдбара */
.sbstory-v2 {
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease, border-left-color 0.25s ease !important;
}

.sbstory-v2:hover {
  transform: translateX(-10px) translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(4, 85, 141, 0.2) !important;
  border-left-color: #0284c7 !important;
}

/* ==========================================================================
   ИНТЕРАКТИВНЫЕ ДРОУВЕРЫ ЦК И СПЕЦИАЛЬНОСТЕЙ (НЕ ПЕРЕКРЫВАЮТ НОВОСТИ)
   ========================================================================== */
.college-features-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-feature-drawer {
  flex: 1;
  min-width: 240px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  border-left: 5px solid #0284c7;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  text-align: left;
}

.btn-feature-drawer:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.18);
  border-left-color: #0369a1;
  background: #ffffff;
}

.btn-feature-drawer.active {
  background: linear-gradient(135deg, #0284c7 0%, #04558D 100%);
  border-color: #04558D;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.btn-feature-drawer.active .feature-icon {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

.btn-feature-drawer.active .feature-text strong {
  color: #ffffff;
}

.btn-feature-drawer.active .feature-text small {
  color: #e0f2fe;
}

.btn-feature-drawer.active .feature-arrow {
  transform: rotate(180deg);
  color: #ffffff;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.feature-text {
  flex: 1;
}

.feature-text strong {
  display: block;
  font-size: 14.5px;
  color: #042149;
  line-height: 1.25;
  margin-bottom: 2px;
}

.feature-text small {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.feature-arrow {
  color: #94a3b8;
  transition: transform 0.25s ease;
  font-size: 20px;
}

.feature-drawer-pane {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  animation: slideDownFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.drawer-close-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 8px;
}

.btn-drawer-close {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-drawer-close:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* ==========================================================================
   PRINTHELP.INFO СТИЛЬ: ВЫЕЗД ПЛАШЕК НОВОСТЕЙ СЛЕВА И СПРАВА
   ========================================================================== */
.news-feed-container.news-grid-mode {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  overflow: visible;
}

@media (max-width: 820px) {
  .news-feed-container.news-grid-mode {
    grid-template-columns: 1fr;
  }
}

/* Главная закрепленная новость всегда во всю ширину */
.news-feed-container.news-grid-mode .story-card-pinned {
  grid-column: 1 / -1;
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Выезд карточек СЛЕВА в режиме сетки */
.news-feed-container.news-grid-mode .story-slide-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Выезд карточек СПРАВА в режиме сетки */
.news-feed-container.news-grid-mode .story-slide-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Встреча посередине */
.news-feed-container.news-grid-mode .story-slide-left.slide-in-active,
.news-feed-container.news-grid-mode .story-slide-right.slide-in-active {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Ховер на карточки в сетке */
.news-feed-container.news-grid-mode .story-card-v2:hover {
  transform: translateY(-6px) scale(1.015) !important;
  box-shadow: 0 14px 32px rgba(4, 85, 141, 0.2) !important;
  border-color: #0284c7 !important;
}


/* ==========================================================================
   ВЕРСИЯ 6: ВОССТАНОВЛЕННАЯ РОДНАЯ ПАГИНАЦИЯ + 15 СЛАЙДОВ + ИКОНКИ МЕНЮ
   ========================================================================== */

/* 1. Родная пагинация DLE (.page-btn) */
.pagination-wrapper {
  background: #ffffff;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #cbd5e1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-btn:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-1px);
}

.page-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.page-dots {
  padding: 0 6px;
  color: #94a3b8;
  font-weight: bold;
}

/* 2. Карусель на 15 слайдов: компактные аккуратные индикаторы */
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.55);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  max-width: 90%;
  flex-wrap: wrap;
  justify-content: center;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.slider-dot.active {
  width: 20px;
  border-radius: 6px;
  background: #0284c7;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.85);
}

/* 3. Иконки в сайдбар-меню (как в основном верхнем меню) */
.sb-nav-sublink i.material-icons {
  font-size: 17px !important;
  color: #0284c7 !important;
  transition: transform 0.2s ease;
}

.sb-nav-sublink:hover i.material-icons {
  transform: scale(1.15);
  color: #04558D !important;
}

.sb-nav-trigger {
  font-size: 14px;
  font-weight: 700;
}

/* 4. Кнопка v6 в свитчере версий */
.demo-v6-btn-active {
  background: #06b6d4;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
}


/* СТРОГОЕ СОХРАНЕНИЕ ПОЛЕЙ 1240px И ОТСТУПОВ САЙДБАРА */
.main-wrapper > .container {
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.layout-grid {
  display: flex !important;
  gap: 28px !important;
  width: 100% !important;
  align-items: flex-start !important;
}

.content-area {
  flex: 1 1 0% !important;
  min-width: 0 !important;
}

.sidebar-area {
  width: 360px !important;
  flex: 0 0 360px !important;
}

@media (max-width: 1024px) {
  .layout-grid {
    flex-direction: column !important;
  }
  .sidebar-area {
    width: 100% !important;
    flex: 1 1 auto !important;
  }
}

/* СТИЛИ 2-ГО И 3-ГО УРОВНЯ ВЕРТИКАЛЬНОГО МЕНЮ (ПОЛНАЯ СИНХРОНИЗАЦИЯ С ГЛАВНЫМ МЕНЮ) */
.sb-nav-group-header {
  padding: 8px 12px 4px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 6px 0 2px 0;
  list-style: none;
}

.sb-nav-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0369a1;
  display: flex;
  align-items: center;
}

/* Official College Slogan */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Marck+Script&display=swap');

.brand-slogan-v2 {
  font-family: 'Caveat', 'Marck Script', cursive, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #38bdf8;
  margin: 3px 0 10px 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  line-height: 1.2;
}

/* ==========================================================================
   СТИЛЬНЫЙ ВИДЖЕТ «ПРАЗДНИКИ СЕГОДНЯ» (В ЕДИНОМ СТИЛЕ БГМТК)
   ========================================================================== */
.bgmtk-holiday-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
  overflow: hidden;
  margin-top: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bgmtk-holiday-card:hover {
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15);
}

.holiday-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #042959 0%, #0284c7 100%);
  padding: 10px 12px;
  color: #ffffff;
}

.holiday-calendar-tear {
  background: #ffffff;
  border-radius: 6px;
  width: 54px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cal-tear-month {
  background: #d32f2f;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 0;
}

.cal-tear-day {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  padding: 2px 0 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cal-tear-weekday {
  font-size: 8.5px;
  font-weight: 700;
  color: #64748b;
  padding-bottom: 2px;
  text-transform: capitalize;
}

.holiday-date-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.holiday-country-badge {
  font-size: 11px;
  font-weight: 700;
  color: #e0f2fe;
  display: inline-flex;
  align-items: center;
}

.holiday-current-year-theme {
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  opacity: 0.95;
}

.holiday-card-body {
  padding: 10px 12px;
}

.holiday-events-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0284c7;
  margin-bottom: 6px;
}

.holiday-today-content {
  font-size: 12.5px;
  color: #1e293b;
  line-height: 1.4;
}

.holiday-event-pill {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 7px 9px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #15803d;
  font-size: 12px;
}

.holiday-event-pill:last-child {
  margin-bottom: 0;
}

.holiday-regular-day {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

.holiday-card-footer {
  background: #f8fafc;
  border-top: 1px dashed #cbd5e1;
  padding: 8px 12px;
  font-size: 11.5px;
}

.holiday-upcoming-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #b45309;
  font-size: 10.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.holiday-upcoming-text {
  color: #0f172a;
  font-weight: 600;
  line-height: 1.35;
}

/* ==========================================================================
   ИЗЫСКАННОЕ ОФОРМЛЕНИЕ ССЫЛОК И БЛОКА «ПРАЗДНИКИ» (ПОД ДИЗАЙН САЙТА)
   ========================================================================== */
.bgmtk-calendru-box {
  padding: 2px 0;
}

.bgmtk-calendru-box .calendru-date-header,
.calendru-date-header {
  display: block;
  font-weight: 700;
  color: #042959 !important;
  font-size: 13px !important;
  margin: 12px 0 6px 0 !important;
  text-align: left;
}

.bgmtk-calendru-box .calendru-date-header:first-child,
.calendru-date-header:first-child {
  margin-top: 2px !important;
}

.bgmtk-calendru-box a.calendru-date-header,
.calendru-date-header a {
  color: #0284c7 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
}

.bgmtk-calendru-box a.calendru-date-header:hover,
.calendru-date-header a:hover {
  color: #0369a1 !important;
  text-decoration: underline !important;
}

.calendru-holiday-item {
  margin-bottom: 6px !important;
  text-align: left;
}

.bgmtk-calendru-box .calendru-holiday-link,
a.calendru-holiday-link,
.bgmtk-calendru-box a:not(.calendru-date-header) {
  display: block !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 3.5px solid #0284c7 !important;
  border-radius: 6px !important;
  padding: 8px 11px !important;
  color: #1e293b !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.bgmtk-calendru-box .calendru-holiday-link:hover,
a.calendru-holiday-link:hover,
.bgmtk-calendru-box a:not(.calendru-date-header):hover {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  border-left-color: #0284c7 !important;
  color: #0369a1 !important;
  transform: translateX(4px) !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.18) !important;
}

/* ==========================================================================
   ВЕРСИЯ 7: НАСЫЩЕННЫЙ ПРЕДСТАВИТЕЛЬСКИЙ ХЕДЕР С ЭМБЛЕМОЙ СЛЕВА
   ========================================================================== */
.brand-header-v7 {
  background: linear-gradient(135deg, #02132b 0%, #032b69 45%, #054a99 100%) !important;
  border-top: 3.5px solid #0284c7 !important;
  box-shadow: inset 0 -3px 18px rgba(0, 0, 0, 0.45), 0 4px 26px rgba(2, 132, 199, 0.25) !important;
  padding: 24px 0 20px 0 !important;
}

/* Брендовый ряд: Эмблема слева + Текст названия колледжа */
.brand-header-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto 16px auto;
  text-align: left;
}

.brand-emblem-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 2.5px rgba(56, 189, 248, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.brand-emblem-badge:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.6), 0 0 0 3.5px #38bdf8;
}

.brand-header-emblem-img {
  width: 105px;
  height: 105px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.brand-header-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  overflow-x: clip;
}

.brand-header-titles .brand-subhead-v2 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7dd3fc;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.brand-header-titles .brand-main-title-v2 {
  font-size: 22.5px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  letter-spacing: 0.2px;
}

@keyframes slideInFromRightSlogan {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  60% {
    opacity: 1;
    transform: translateX(-7px);
  }
  80% {
    transform: translateX(3px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.brand-header-titles .brand-slogan-v2 {
  font-family: 'Caveat', 'Marck Script', cursive, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #38bdf8;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  line-height: 1.2;
  display: inline-block;
  animation: slideInFromRightSlogan 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  will-change: transform, opacity;
}

/* Адаптивность для блока с эмблемой */
@media (max-width: 880px) {
  .brand-header-identity {
    gap: 16px;
    padding: 0 12px;
  }
  .brand-header-emblem-img {
    width: 90px;
    height: 90px;
  }
  .brand-header-titles .brand-main-title-v2 {
    font-size: 19px;
  }
}

@media (max-width: 680px) {
  .brand-header-identity {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .brand-header-titles {
    text-align: center;
  }
  .brand-header-titles .brand-main-title-v2 {
    font-size: 17px;
    line-height: 1.3;
  }
  .brand-header-emblem-img {
    width: 80px;
    height: 80px;
  }
  .brand-header-titles .brand-slogan-v2 {
    font-size: 23px;
  }
}

/* ==========================================================================
   КАТЕГОРИИ НОВОСТЕЙ В САЙДБАРЕ ({catmenu})
   ========================================================================== */
.sbmenu {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid #e2e8f0;
}

.sbmenu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sbmenu li {
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  list-style: none !important;
}

.sbmenu li:last-child {
  border-bottom: none;
}

.sbmenu li > a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 14px !important;
  color: #1e293b !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-left: 3px solid transparent !important;
  transition: all 0.2s ease !important;
}

.sbmenu li > a:hover,
.sbmenu li > a.active {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border-left: 3px solid #0284c7 !important;
  padding-left: 17px !important;
}

.sbmenu .badge,
.sbmenu .new.badge {
  background: #0284c7 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  min-width: 22px !important;
  text-align: center !important;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3) !important;
  margin-left: 8px !important;
}

.sbmenu .submenu {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

.sbmenu .submenu li a {
  padding-left: 26px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #475569 !important;
}

.sbmenu .submenu li a:hover {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  padding-left: 30px !important;
}

/* ==========================================================================
   ФИКСЫ ОТОБРАЖЕНИЯ ПУБЛИКАЦИЙ, КАРТИНОК И ЗАКРЕПЛЕННЫХ НОВОСТЕЙ
   ========================================================================== */
.story-card-v2,
.story-body,
.story-content,
.sd_row {
  display: flow-root !important;
  clear: both !important;
}

.story-card-v2::after,
.story-body::after,
.story-content::after,
.sd_row::after {
  content: "";
  display: table;
  clear: both;
}

.story-body img,
.story-content img,
.shortstory img,
.fullstory img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 6px;
}

/* Обтекание картинок без вылезания за пределы карточки */
.story-body img[align="left"],
.story-body img[style*="float: left"],
.story-body img[style*="float:left"] {
  float: left !important;
  margin: 4px 18px 14px 0 !important;
  max-width: 48% !important;
}

.story-body img[align="right"],
.story-body img[style*="float: right"],
.story-body img[style*="float:right"] {
  float: right !important;
  margin: 4px 0 14px 18px !important;
  max-width: 48% !important;
}

@media (max-width: 640px) {
  .story-body img[align="left"],
  .story-body img[style*="float: left"],
  .story-body img[style*="float:left"],
  .story-body img[align="right"],
  .story-body img[style*="float: right"],
  .story-body img[style*="float:right"] {
    float: none !important;
    display: block !important;
    margin: 10px auto !important;
    max-width: 100% !important;
  }
}

/* Закрепленная новость всегда на всю ширину сетки */
.news-feed-container.news-grid-mode .story-card-pinned,
.story-card-pinned {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* Кнопка "Подробнее" в карточке новостей - цвета и стиль как в подвале */
.btn-read-more,
.story-card-v2 .btn-read-more,
.shortstory .btn.b {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%) !important;
  color: #ffffff !important;
  padding: 6px 16px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.btn-read-more:hover,
.story-card-v2 .btn-read-more:hover,
.shortstory .btn.b:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(13, 71, 161, 0.5) !important;
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
  color: #ffffff !important;
}

/* Языковой переключатель GTranslate с контрастной белой подложкой */
.gtranslate_wrapper {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  vertical-align: middle !important;
  background: #ffffff !important;
  border: 1.5px solid #0284c7 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.15) !important;
}

.gtranslate_wrapper a {
  display: inline-flex !important;
  align-items: center !important;
  transition: transform 0.2s ease !important;
  line-height: 1 !important;
  padding: 1px !important;
}

.gtranslate_wrapper a img {
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.gtranslate_wrapper a:hover {
  transform: scale(1.15) !important;
}

/* Красивые спойлеры DLE с четким текстом и адаптивным раскрытием */
.title_spoiler {
  background: linear-gradient(135deg, #042149 0%, #04558D 100%) !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  padding: 11px 18px !important;
  border-radius: 8px !important;
  margin: 14px 0 0 0 !important;
  border: 1px solid #0284c7 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 3px 10px rgba(4, 33, 73, 0.16) !important;
  transition: all 0.2s ease !important;
}

.title_spoiler:hover {
  background: linear-gradient(135deg, #031c3d 0%, #0284c7 100%) !important;
  box-shadow: 0 5px 16px rgba(2, 132, 199, 0.28) !important;
}

.title_spoiler.open {
  border-radius: 8px 8px 0 0 !important;
}

.title_spoiler a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
}

.title_spoiler .spoiler-btn-svg,
.title_spoiler a.spoiler-btn-svg {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
  color: #ffffff !important;
}

.title_spoiler .spoiler-title,
.title_spoiler a:not(.spoiler-btn-svg) {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #ffffff !important;
}

.text_spoiler {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-top: none !important;
  border-radius: 0 0 8px 8px !important;
  padding: 16px 20px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #334155 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
  margin-bottom: 14px !important;
}

/* ==========================================================================
   КРАСИВЫЕ ТАБЛИЦЫ В СТАТЬЯХ (ИЗ ДЕМО INDEX_V3.HTML И ЛЮБЫХ МАТЕРИАЛАХ DLE)
   ========================================================================== */
.story-body table:not(.calendar-table),
.story-content table:not(.calendar-table),
.content-area table:not(.calendar-table),
.full-story table:not(.calendar-table),
.dle-spoiler table:not(.calendar-table),
.content-table,
.fr-solid-borders {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  margin: 20px 0 !important;
  background: #ffffff !important;
  border: 2px solid #04558D !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  font-size: 13.5px !important;
  box-shadow: 0 4px 16px rgba(4, 85, 141, 0.12) !important;
}

/* Шапка таблицы: thead th, th, или первая строка tr:first-child td если нет th */
.story-body table:not(.calendar-table) thead th,
.story-body table:not(.calendar-table) th,
.story-body table:not(.calendar-table) tr:first-child th,
.story-body table:not(.calendar-table) tr:first-child td,
.story-content table:not(.calendar-table) tr:first-child td,
.content-area table:not(.calendar-table) tr:first-child td,
.full-story table:not(.calendar-table) tr:first-child td,
.dle-spoiler table:not(.calendar-table) tr:first-child td,
.content-table thead th {
  background: linear-gradient(135deg, #021e42 0%, #04558D 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 14px 18px !important;
  border: 1.5px solid #0284c7 !important;
  border-bottom: 3.5px solid #0284c7 !important;
  text-align: center !important;
  letter-spacing: 0.03em !important;
  font-size: 14px !important;
}

.story-body table:not(.calendar-table) thead th *,
.story-body table:not(.calendar-table) th *,
.story-body table:not(.calendar-table) tr:first-child td *,
.story-content table:not(.calendar-table) tr:first-child td *,
.content-area table:not(.calendar-table) tr:first-child td *,
.full-story table:not(.calendar-table) tr:first-child td *,
.dle-spoiler table:not(.calendar-table) tr:first-child td * {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Обычные ячейки данных со второй строки (увеличенные четкие границы и отступы) */
.story-body table:not(.calendar-table) tr:not(:first-child) td,
.story-content table:not(.calendar-table) tr:not(:first-child) td,
.content-area table:not(.calendar-table) tr:not(:first-child) td,
.full-story table:not(.calendar-table) tr:not(:first-child) td,
.dle-spoiler table:not(.calendar-table) tr:not(:first-child) td,
.content-table tbody tr td {
  padding: 12px 18px !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #1e293b !important;
  line-height: 1.55 !important;
  vertical-align: middle !important;
  font-size: 13.5px !important;
  transition: background-color 0.18s ease, border-color 0.18s ease !important;
}

/* Выразительная синяя чередующаяся зебра (цвета сайта) */
.story-body table:not(.calendar-table) tr:nth-child(even):not(:first-child) td,
.story-content table:not(.calendar-table) tr:nth-child(even):not(:first-child) td,
.content-table tbody tr:nth-child(even) td {
  background-color: #edf5fd !important;
}

.story-body table:not(.calendar-table) tr:nth-child(odd):not(:first-child) td,
.story-content table:not(.calendar-table) tr:nth-child(odd):not(:first-child) td,
.content-table tbody tr:nth-child(odd) td {
  background-color: #ffffff !important;
}

/* Яркая синяя подсветка каждой строки при наведении курсора */
.story-body table:not(.calendar-table) tr:hover:not(:first-child) td,
.story-content table:not(.calendar-table) tr:hover:not(:first-child) td,
.content-area table:not(.calendar-table) tr:hover:not(:first-child) td,
.full-story table:not(.calendar-table) tr:hover:not(:first-child) td,
.dle-spoiler table:not(.calendar-table) tr:hover:not(:first-child) td,
.content-table tbody tr:hover td {
  background-color: #dbeafe !important;
  border-color: #93c5fd !important;
}

/* Снятие любых конфликтов от редактора Froala */
.story-body table td.fr-green,
.story-body table th.fr-green,
.story-content table td.fr-green,
.story-content table th.fr-green {
  box-sizing: border-box !important;
}

/* КОМПАКТНЫЕ ПЛАШКИ ВЛОЖЕНИЙ ВНУТРИ ЯЧЕЕК ТАБЛИЦЫ (НЕ ЛОМАЮТ ТАБЛИЦУ) */
.story-body table td .attachment-box {
  margin: 3px 0 !important;
  padding: 7px 10px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 3.5px solid #0284c7 !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}

.story-body table td .attachment-info {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-align: left !important;
}

.story-body table td .attachment-icon {
  font-size: 22px !important;
  color: #0284c7 !important;
  flex-shrink: 0 !important;
}

.story-body table td .attachment-name {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #042959 !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
}

.story-body table td .attachment-size {
  font-size: 11px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

.story-body table td .attachment-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.story-body table td .btn-attach {
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  border-radius: 4px !important;
  gap: 4px !important;
}

.story-body table td .btn-attach i.material-icons {
  font-size: 14px !important;
}

/* Адаптивная обертка для горизонтального скролла широких таблиц */
.table-responsive {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 18px 0 !important;
}

/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ (BREADCRUMBS / SPEEDBAR DLE)
   ========================================================================== */
.breadcrumbs-bar,
.speedbar,
.speedbar.allstory {
  background: #ffffff !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
  font-size: 13.5px !important;
  color: #64748b !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1.5 !important;
}

.breadcrumbs-bar a,
.speedbar a {
  color: #04558D !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color 0.15s ease !important;
}

.breadcrumbs-bar a:hover,
.speedbar a:hover {
  color: #0284c7 !important;
  text-decoration: underline !important;
}

.breadcrumbs-bar span,
.speedbar span {
  color: #64748b !important;
}

.breadcrumbs-bar .material-icons,
.speedbar .material-icons {
  font-size: 16px !important;
  color: #0284c7 !important;
  vertical-align: middle !important;
}

/* ==========================================================================
   ПАГИНАЦИЯ DLE (NAVIGATION / SPLITNEWSNAVIGATION) В ЕДИНОМ СТИЛЕ САЙТА
   ========================================================================== */
.pagination-wrapper,
.navigation,
.navigation.story {
  background: #ffffff !important;
  padding: 14px 22px !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #cbd5e1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 28px 0 16px 0 !important;
  flex-wrap: wrap !important;
  clear: both !important;
}

.pagination-wrapper .pages-list,
.navigation .pages {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

/* Кнопки номеров страниц и стрелок */
.pagination-wrapper a,
.pagination-wrapper span:not(.page-dots):not(.nav-arrow),
.navigation a,
.navigation .pages a,
.navigation .pages span {
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

/* Наведение на кнопки страниц */
.pagination-wrapper a:hover,
.navigation a:hover,
.navigation .pages a:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25) !important;
}

/* Активная текущая страница (в цветах шапки/подвала) */
.pagination-wrapper span:not([class]),
.pagination-wrapper .page-btn.active,
.navigation .pages span:not([class]),
.navigation span:not([class]) {
  background: linear-gradient(135deg, #042149 0%, #04558D 100%) !important;
  border-color: #04558D !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(4, 85, 141, 0.35) !important;
  cursor: default !important;
}

/* Стрелочки перелистывания (chevron_left / chevron_right) */
.pagination-wrapper > a,
.navigation > a {
  background: #f8fafc !important;
  color: #04558D !important;
  font-weight: 700 !important;
}

.pagination-wrapper > a:hover,
.navigation > a:hover {
  background: #04558D !important;
  color: #ffffff !important;
  border-color: #04558D !important;
}

.pagination-wrapper .material-icons,
.navigation .material-icons {
  font-size: 20px !important;
}

/* ==========================================================================
   ОФОРМЛЕНИЕ ССЫЛОК В БЛОКЕ «ПОПУЛЯРНОЕ» (В СТИЛЕ БЛОКА «ПРАЗДНИКИ»)
   ========================================================================== */
.topnews-widget ol,
.topnews-widget ul,
.topnews-box ol,
.topnews-box ul,
.topnews ol,
.topnews ul,
.topnews-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

.topnews-widget li,
.topnews-box li,
.topnews li,
.topnews-item {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.topnews-widget a,
.topnews-box a,
.topnews a,
.topnews-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 3.5px solid #0284c7 !important;
  border-radius: 6px !important;
  padding: 8px 11px !important;
  color: #1e293b !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  margin-bottom: 0 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box !important;
}

.topnews-widget a:hover,
.topnews-box a:hover,
.topnews a:hover,
.topnews-link:hover {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  border-left-color: #0284c7 !important;
  color: #0369a1 !important;
  transform: translateX(4px) !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.18) !important;
}

.topnews-link .topnews-thumb {
  width: 44px !important;
  height: 44px !important;
  border-radius: 5px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  border: 1px solid #cbd5e1 !important;
}

.topnews-link .topnews-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.topnews-link .topnews-details {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.topnews-link .topnews-title {
  font-weight: 600 !important;
  color: #042959 !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: color 0.15s ease !important;
}

.topnews-widget a:hover .topnews-title,
.topnews-box a:hover .topnews-title,
.topnews a:hover .topnews-title,
.topnews-link:hover .topnews-title {
  color: #0284c7 !important;
}

.topnews-link .topnews-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 11px !important;
  color: #64748b !important;
}

.topnews-link .topnews-meta span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.topnews-link .topnews-meta .material-icons {
  font-size: 12px !important;
  color: #0284c7 !important;
}





/* =========================================================================
   ИИ-КОНСУЛЬТАНТ БГМТК (СТИЛИ ДИАЛОГОВОГО ОКНА)
   ========================================================================= */
.consultant-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.consultant-icon-btn {
  background: transparent;
  border: none;
  color: #93c5fd;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.consultant-icon-btn:hover {
  color: #ffffff;
}
.ai-chat-messages {
  max-height: 330px;
  min-height: 220px;
  overflow-y: auto;
  padding: 6px 2px 12px 2px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.ai-msg {
  display: flex;
  gap: 8px;
  max-width: 92%;
  animation: aiFadeIn 0.25s ease-out;
}
@keyframes aiFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-msg.bot {
  align-self: flex-start;
}
.ai-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-msg-avatar i {
  font-size: 16px;
}
.ai-msg.user .ai-msg-avatar {
  background: #03254c;
}
.ai-msg-bubble {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.ai-msg.bot .ai-msg-bubble {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-radius: 12px 12px 12px 2px;
}
.ai-msg.user .ai-msg-bubble {
  background: linear-gradient(135deg, #04558D 0%, #03254c 100%);
  color: #ffffff;
  border-radius: 12px 12px 2px 12px;
  box-shadow: 0 2px 8px rgba(4, 85, 141, 0.2);
}
.ai-msg.bot .ai-msg-bubble strong {
  color: #04558D;
}
.ai-msg.bot .ai-msg-bubble a {
  color: #0284c7;
  text-decoration: underline;
}

/* Quick Chips */
.consultant-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.quick-chip {
  background: #e6f2ff;
  border: 1px solid #bae6fd;
  color: #04558D;
  border-radius: 14px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.quick-chip:hover {
  background: #04558D;
  color: #ffffff;
  border-color: #04558D;
  transform: translateY(-1px);
}

/* Chat Input Form */
.consultant-chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 4px 6px 4px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.consultant-chat-form:focus-within {
  border-color: #04558D;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(4, 85, 141, 0.12);
}
.consultant-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 13px;
  color: #1e293b;
  outline: none;
}
.consultant-chat-send-btn {
  width: 34px;
  height: 34px;
  background: #04558D;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.consultant-chat-send-btn:hover {
  background: #0284c7;
  transform: scale(1.05);
}
.consultant-chat-send-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

/* Typing Indicator */
.ai-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px 12px 12px 2px;
}
.ai-typing-indicator span {
  width: 6px;
  height: 6px;
  background: #0284c7;
  border-radius: 50%;
  animation: aiTypingBounce 1.4s infinite ease-in-out both;
}
.ai-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes aiTypingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.consultant-ai-disclaimer {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-top: 8px;
  line-height: 1.3;
}


/* ==========================================================================
   ПАГИНАЦИЯ НОВОСТЕЙ DLE: ВЫНЕСЕНА ИЗ СЕТКИ И ПОЛНОШИРИННАЯ
   ========================================================================== */
.news-pagination-outer {
  width: 100% !important;
  display: block !important;
  clear: both !important;
  margin: 12px 0 20px 0 !important;
}

/* Страховка для CSS Grid, если пагинатор временно оказывается внутри .news-grid-mode */
.news-feed-container.news-grid-mode > .pagination-wrapper,
.news-feed-container.news-grid-mode > .navigation,
.news-feed-container.news-grid-mode .pagination-wrapper,
.news-feed-container.news-grid-mode .navigation {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.pagination-wrapper,
.navigation,
.navigation.story {
  background: #ffffff !important;
  padding: 14px 22px !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #cbd5e1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 16px 0 !important;
  flex-wrap: wrap !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.pagination-wrapper .pages-list,
.navigation .pages {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.pagination-wrapper a,
.pagination-wrapper span:not(.page-dots):not(.nav-arrow),
.navigation a,
.navigation .pages a,
.navigation .pages span {
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.pagination-wrapper a:hover,
.navigation a:hover,
.navigation .pages a:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25) !important;
}

.pagination-wrapper span:not([class]),
.pagination-wrapper .page-btn.active,
.navigation .pages span:not([class]),
.navigation span:not([class]) {
  background: linear-gradient(135deg, #042149 0%, #04558D 100%) !important;
  border-color: #04558D !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(4, 85, 141, 0.35) !important;
  cursor: default !important;
}

.pagination-wrapper > a,
.navigation > a {
  background: #f8fafc !important;
  color: #04558D !important;
  font-weight: 700 !important;
}

.pagination-wrapper > a:hover,
.navigation > a:hover {
  background: #04558D !important;
  color: #ffffff !important;
  border-color: #04558D !important;
}

.pagination-wrapper .material-icons,
.navigation .material-icons {
  font-size: 20px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}
