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

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #1a5276;
  --secondary-color: #2e86c1;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --text-dark: #2c3e50;
  --text-light: #5d6d7e;
  --bg-light: #f8f9fa;
  --border-color: #ecf0f1;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eff7 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

i.fas,
i.fab,
i.far,
i.fal {
  display: inline-block;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 16px 0;
  box-shadow: var(--shadow);
}
.top-bar-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.top-bar-contacts {
    display: flex !important;
    gap: 24px !important;
    font-size: 0.9rem !important;
}

.top-bar-contacts i {
    margin-right: 6px !important;
    width: auto !important;
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .top-bar-contacts {
        justify-content: center !important;
        gap: 16px !important;
        flex-wrap: wrap !important;
    }
}

.institution-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.main-header {
  background: white;
  padding: 32px 0;
  box-shadow: var(--shadow);
}
.header-content {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.logo-section {
  flex: 1;
  min-width: 250px;
}
.logo-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 700;
}
.logo-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
}
.college-image {
  width: 600px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.main-nav {
  background: linear-gradient(135deg, var(--primary-color) 0%, #154360 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.nav-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  padding: 1.2rem 2rem; 
  transition:
    background 0.3s,
    color 0.3s;
  font-weight: 500;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent-color);
  transition: width 0.3s;
  transform: translateX(-50%);
}
.nav-list a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.nav-list a:hover::after {
  width: 80%;
}

/* --- Заголовок страницы (Page Header) --- */
.page-header {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  color: white;
  padding: 48px 0;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.page-title {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.page-subtitle {
  font-size: 1.2rem; /* 19.2px */
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  margin-bottom: 48px;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.sidebar-menu {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.sidebar-title {
  font-size: 1.3rem; /* 20.8px */
  color: var(--primary-color);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.3s;
  user-select: none;
}
.sidebar-title:hover {
  color: var(--secondary-color);
}
.sidebar-title .toggle-icon {
  margin-left: auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 20px;
  text-align: center;
}
.sidebar-title.collapsed .toggle-icon {
  transform: rotate(-90deg);
}
.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Анимированный выпадающий список */
.sidebar-list.collapsible-list {
  max-height: 500px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    margin 0.3s ease,
    padding 0.3s ease;
}
.sidebar-list.collapsible-list.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}
.sidebar-list.collapsible-list li {
  margin-bottom: 8px;
  transform: translateX(0);
  opacity: 1;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}
.sidebar-list.collapsible-list.collapsed li {
  transform: translateX(-10px);
  opacity: 0;
}
.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s;
  will-change: transform;
}
.sidebar-list a:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: white;
  transform: translateX(5px);
}
.sidebar-list a i {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}
.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem; /* 20.8px */
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
}
.social-link.vk {
  background: #4a76a8;
}
.social-link.instagram {
  background: #e4405f;
}
.social-link.tiktok {
  background: #000000;
}
.social-link:hover {
  transform: translateY(-3px) rotate(360deg);
  box-shadow: var(--shadow-lg);
}

/* --- Подвал (Footer) --- */
.footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #1a252f 100%);
  color: white;
  padding: 48px 0 24px;
  margin-top: 48px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-section h3 {
  margin-bottom: 16px;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-section p,
.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  line-height: 1.8;
}
.footer-section a:hover {
  color: white;
}
.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #34495e;
  color: #95a5a6;
}

/* ==================================================
   КОНТЕНТНЫЕ БЛОКИ (CONTENT SECTIONS)
   ================================================== */

/* Основная область контента */
.content-section {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
  width: 100%;
}
.content-section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.section-title {
  font-size: 1.8rem; /* 28.8px */
  color: var(--primary-color);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--secondary-color);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.section-meta {
  font-size: 1rem; /* 16px */
  font-weight: normal;
  color: var(--text-light);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Текстовое содержимое */
.content-text {
  line-height: 1.8;
  color: var(--text-light);
}
.content-text h3 {
  color: var(--primary-color);
  margin: 24px 0 16px;
  font-size: 1.3rem; /* 20.8px */
}
.content-text p {
  margin-bottom: 16px;
}
.content-text strong {
  color: var(--text-dark);
}
.content-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}
.content-text a:hover {
  text-decoration: underline;
}

/* ==================================================
   ТАБЛИЦЫ (TABLES)
   ================================================== */
.table-container {
  overflow-x: auto;
  margin: 24px 0;
}
.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.styled-table th,
.styled-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.styled-table th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}
.styled-table tr:hover {
  background: var(--bg-light);
}

/* ==================================================
   ТЕГИ И МЕТКИ (TAGS)
   ================================================== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--secondary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem; /* 13.6px */
  margin: 4px;
}
.tag.warning {
  background: var(--warning-color);
}
.tag.danger {
  background: var(--accent-color);
}
.tag.success {
  background: var(--success-color);
}

/* ==================================================
   КНОПКИ (BUTTONS)
   ================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem; /* 16px */
  font-weight: 500;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}
.btn-outline:hover {
  background: var(--secondary-color);
  color: white;
}

/* ==================================================
   КАРУСЕЛЬ (CAROUSEL) И МОДАЛЬНОЕ ОКНО (MODAL)
   ================================================== */
.carousel {
  position: relative;
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a1a1a;
}
.carousel-blur-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.6);
  transform: scale(1.1);
  z-index: 0;
  transition: background-image 0.4s ease;
}
.carousel-inner {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.carousel-inner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  backface-visibility: hidden;
  z-index: 2;
}
.carousel-inner img.active {
  opacity: 1;
  visibility: visible;
  animation: slideIn 0.4s ease forwards;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.carousel-inner img:hover {
  filter: brightness(1.05);
  transform: scale(1.01);
  transition: all 0.4s ease-out;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.carousel-caption {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 24px 32px;
  pointer-events: none;
  text-align: center;
  z-index: 3;
}
.carousel-caption h3 {
  font-size: 1.3rem; /* 20.8px */
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.carousel-caption p {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Элементы управления каруселью */
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 16px;
  pointer-events: none;
  z-index: 4;
}
.carousel-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem; /* 19.2px */
  pointer-events: all;
  color: var(--primary-color);
}
.carousel-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* Индикаторы карусели */
.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.5;
}
.carousel-indicator:hover {
  opacity: 0.8;
  transform: scale(1.2);
}
.carousel-indicator.active {
  opacity: 1;
  width: 30px;
  border-radius: 5px;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  overflow: auto;
}
.modal-content {
  position: relative;
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  top: 50%;
  transform: translateY(-50%);
  animation: zoom 0.3s;
}
@keyframes zoom {
  from {
    transform: translateY(-50%) scale(0.8);
  }
  to {
    transform: translateY(-50%) scale(1);
  }
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}
.modal-close:hover,
.modal-close:focus {
  color: var(--accent-color);
  text-decoration: none;
}
.modal-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #ccc;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-sm);
  font-size: 1.1rem; /* 17.6px */
  text-align: center;
}
.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  pointer-events: none;
}
.modal-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem; /* 24px */
  color: white;
  pointer-events: all;
}
.modal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* ==================================================
   МЕДИА (ВИДЕО)
   ================================================== */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
  height: 0;
  overflow: hidden;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
ul {
  list-style-position: outside; /* по умолчанию */
  padding-left: 1.5em;
}

.news-text,
.news-text p,
.news-text li,
.news-signature,
.section-title {
  font-family: "Nunito", "Roboto", sans-serif;
}

.news-text {
  line-height: 1.8;
  color: #5d6d7e;
}

.news-text p {
  margin-bottom: 6px;
  text-indent: 35px;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.news-text p:first-of-type {
  margin-top: 0;
}

.news-text strong {
  color: #2c3e50;
}

/* Подпись автора в новостях */
.news-signature {
  text-align: right;
  margin-top: 25px;
  padding-top: 12px;
  border-top: 1px solid #ecf0f1;
  font-style: normal;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.news-signature b {
  color: #2e86c1;
  font-weight: 600;
}

@media (max-width: 768px) {
  .news-signature {
    margin-top: 15px;
    padding-top: 8px;
    font-size: 0.75rem;
  }

  .news-signature b {
    font-size: 0.8rem;
  }
}

.news-text ul,
.news-text ol {
  margin: 10px 0 10px 25px;
  padding-left: 0;
}

.news-text li {
  margin-bottom: 5px;
  line-height: 1.6;
  text-indent: 0;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.section-title {
  border-bottom: 3px solid #2e86c1 !important;
  padding-bottom: 12px !important;
}

.search-nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.search-nav-btn {
  width: 100%;
  padding: 10px 12px;
  background: #2e86c1;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s;
  text-align: center;
}

.search-nav-btn:hover {
  background: #1a5276;
}

.search-nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.search-counter {
  font-size: 0.85rem;
  color: #333;
  background: #e8edf5;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  width: 100%;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */

.main-nav,
.top-bar,
.mobile-nav-toggle,
.mobile-sidebar-toggle {
  background: #0a2f5a !important;
}

.carousel-inner img {
  cursor: pointer;
  transition: none !important;
  object-fit: contain !important;
}

.carousel-inner img:hover {
  filter: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.carousel-caption {
  display: none !important;
}

.scroll-top-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0a2f5a;
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.sidebar-banners {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.sidebar-banner-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  text-align: center;
}

.sidebar-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sidebar-banner-card .banner-image {
  width: 100%;
  background: linear-gradient(135deg, #2e86c1, #1a5276);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.sidebar-banner-card .banner-image img {
  width: 100%;
  display: block;
  object-fit: contain;
  cursor: default;
  pointer-events: none;
}

.sidebar-banner-card .banner-link {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  background: white;
  color: #1a5276;
  font-weight: 600;
  border-top: 1px solid #ecf0f1;
  transition: background 0.3s;
}

.sidebar-banner-card .banner-link:hover {
  background: #f8f9fa;
}

.sidebar-title.collapsible {
  cursor: pointer;
  user-select: none;
}

.sidebar-title.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .main-header {
    padding: 20px 0 !important;
  }

  .header-content {
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 15px;
    width: 100%;
  }

  .logo-section {
    order: 2;
  }

  .college-image {
    order: 1;
    width: 300px !important;
    height: auto !important;
    max-height: 100px !important;
    object-fit: cover;
    border-radius: 12px;
  }

  .logo-title {
    font-size: 1.1rem !important;
    line-height: 1.3;
  }

  .logo-subtitle {
    font-size: 0.8rem !important;
  }

  .main-nav .container {
    padding: 0 !important;
  }

  .nav-list {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a2f5a;
    z-index: 1000;
    margin: 0;
    padding: 0;
  }

  .nav-list.show {
    display: flex !important;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid #2c6288;
  }

  .nav-list li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
  }

  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
  }

  .main-content {
    display: flex;
    flex-direction: column !important;
    gap: 20px;
  }

  main {
    width: 100%;
  }

  .sidebar {
    display: none !important;
  }

  .mobile-sidebar-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 20px;
    padding-top: 10px !important;
    overflow-y: auto;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.2);
  }

  .mobile-sidebar-panel.open {
    right: 0;
  }

  .mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
  }

  .mobile-sidebar-close {
    text-align: right;
    font-size: 28px;
    color: #0a2f5a;
    cursor: pointer;
    margin-bottom: 10px;
  }

  .mobile-sidebar-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .scroll-top-btn {
    bottom: 80px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
  }

  .hero-section {
    padding: 20px !important;
    margin-bottom: 20px !important;
  }

  .hero-text p {
    font-size: 0.9rem !important;
  }

  .content-section {
    padding: 15px !important;
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
  }

  .section-meta {
    font-size: 0.7rem !important;
    padding: 3px 10px !important;
    background: #e8edf5;
    border-radius: 20px;
    display: inline-block;
    white-space: nowrap;
  }

  .section-title {
    font-size: 1.2rem !important;
    margin: 8px 0 12px 0 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid #2e86c1 !important;
    padding-bottom: 12px !important;
  }

  .news-text p {
    font-size: 0.85rem;
    margin-bottom: 12px !important;
    text-indent: 20px !important;
    line-height: 1.5;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .news-text li {
    font-size: 0.85rem;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .breadcrumbs {
    font-size: 0.75rem;
    margin: 10px 0;
  }

  .page-title {
    font-size: 1.6rem !important;
  }

  .carousel-inner {
    height: 300px !important;
  }

  .footer {
    padding: 30px 0 20px !important;
    margin-top: 30px !important;
  }

  .footer-content {
    flex-direction: column !important;
    text-align: center;
    gap: 25px !important;
    margin-bottom: 20px !important;
  }

  .footer-section {
    text-align: center;
    padding: 0 15px;
  }

  .footer-section h3 {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
    justify-content: center;
  }

  .footer-section p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  .footer-bottom {
    padding-top: 15px !important;
    font-size: 0.75rem !important;
  }

  .mobile-sidebar-panel .sidebar-menu:first-child {
    margin-top: 0;
    padding-top: 0;
  }

  .mobile-sidebar-panel .sidebar-menu:first-child .sidebar-title {
    margin-top: 0;
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) {
  .mobile-nav-toggle,
  .mobile-sidebar-toggle,
  .mobile-sidebar-panel,
  .mobile-sidebar-overlay {
    display: none !important;
  }

  .sidebar {
    display: block !important;
  }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.video-item {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .video-item iframe {
    width: 100%;
    height: 100%;
  }
}

.section-meta i {
  vertical-align: middle;
  position: relative;
  top: -1px;
  margin-right: -3px;
  margin-top: -2px;
  margin-left: -3px;
}

.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-text {
  border-left: 5px solid #2e86c1;
  padding: 25px 30px;
}

.hero-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.hero-text strong {
  color: #0a2f5a;
}

.search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

.search-input:focus {
  border-color: #2e86c1;
}

.breadcrumbs {
  padding: 15px 0;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumbs a {
  color: #2e86c1;
  text-decoration: none;
}

.breadcrumbs i {
  margin: 0 8px;
  font-size: 0.7rem;
}

/* Улучшенный поиск */
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  display: none;
  z-index: 2;
}

.search-input-clear:hover {
  color: #e74c3c;
}

.search-input {
  padding-right: 35px !important;
}

.search-results-count {
  font-size: 0.75rem;
  color: #2e86c1;
  margin-top: 8px;
  text-align: center;
  background: #e8f4f8;
  padding: 4px 8px;
  border-radius: 15px;
  display: inline-block;
  width: auto;
}

.news-transition {
  transition: all 0.3s ease;
}

.content-section:not(.hidden) {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

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

.search-highlight {
  background-color: #ffeb3b;
  color: #000;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
  animation: highlightPulse 0.3s ease;
}

@keyframes highlightPulse {
  0% {
    background-color: #ff9800;
  }

  100% {
    background-color: #ffeb3b;
  }
}

/* Фильтр по годам над новостями */
.news-filter {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.news-filter-label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-filter-label i {
  color: #2e86c1;
}

.news-filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-filter-btn {
  padding: 6px 16px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  color: #555;
}

.news-filter-btn:hover {
  background: #e8f4f8;
  border-color: #2e86c1;
}

.news-filter-btn.active {
  background: #2e86c1;
  color: white;
  border-color: #2e86c1;
}

@media (max-width: 768px) {
  .news-filter {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 15px;
  }

  .news-filter-buttons {
    justify-content: center;
  }
}

.content-section.hidden {
  display: none !important;
}

/* Кнопка "В начало" - тот же размер, другой цвет */
#firstPageBtn {
  background: #1a5276;
}

#firstPageBtn:hover:not(:disabled) {
  background: #0e3a5c;
}

.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 30px 0 20px;
}

.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.pagination-first {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-left: 10px;
}

@media (max-width: 768px) {
  .pagination-nav {
    gap: 10px;
  }

  .pagination-nav .pagination-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
  }

  .pagination-nav .pagination-info {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .pagination-first .pagination-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
}

.pagination-btn {
  padding: 10px 20px;
  background: #2e86c1;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
  background: #1a5276;
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.9rem;
  color: #555;
  background: #e8edf5;
  padding: 8px 16px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .pagination {
    gap: 10px;
  }

  .pagination-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .pagination-info {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}