body {
  font-family: Arial, sans-serif;
  background-color: #f0f4f8;
  margin: 0;
  padding: 20px;
  color: #222;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #5b9bd5;
  border-radius: 10px;
  padding: 20px;
}

/* Шапка и меню */
.header {
  border-bottom: 2px solid #5b9bd5;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.header h1 {
  margin: 0 0 12px 0;
  font-size: 22px;
  color: #003366;
}

.menu a {
  display: inline-block;
  background: #5b9bd5;
  color: white;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 5px;
  margin-right: 4px;
  font-size: 14px;
  font-weight: bold;
}

.menu a.active, .menu a:hover {
  background: #d9534f; /* Красный акцент как у активной вкладки в оригинале */
}

/* Двухколоночная разметка */
.main-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Левая колонка (Новости) */
.sidebar {
  width: 240px;
  flex-shrink: 0; /* Запрещаем колонке сжиматься */
}

.sidebar-box {
  background-color: #f7fbff;
  border: 1px solid #9dc3e6;
  border-radius: 8px;
  padding: 12px;
}

.sidebar-title {
  background-color: #5b9bd5;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 15px;
}

.news-item {
  border-bottom: 1px dashed #bdd7ee;
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.news-date {
  font-weight: bold;
  color: #b22222;
  font-size: 12px;
}

.news-item p {
  margin: 3px 0 0 0;
}

.sidebar-links {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.sidebar-links a {
  color: #004499;
}

/* Правая колонка (Основной контент) */
.content {
  flex-grow: 1;
}

.content h2 {
  margin-top: 0;
  font-size: 18px;
  color: #003366;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  text-decoration: none;
  color: #003366;
  font-size: 14px;
}

.card:hover {
  background-color: #eef6ff;
  border-color: #5b9bd5;
}

/* Заглушка вместо картинок-иконок для проверки кода */
.icon-placeholder {
  width: 40px;
  height: 40px;
  background: #e1ecf4;
  border: 1px solid #9dc3e6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  flex-shrink: 0;
}

/* Подвал */
.footer {
  margin-top: 25px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* Адаптация для мобильных экранов */
@media (max-width: 700px) {
  .main-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}






/* Верхняя часть шапки с поиском */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.header-top h1 {
  margin: 0;
}

/* Форма поиска */
.search-box {
  display: flex;
  gap: 5px;
}

.search-box input {
  padding: 5px 10px;
  border: 1px solid #5b9bd5;
  border-radius: 4px;
  font-size: 13px;
  width: 200px;
}

.search-box button {
  background-color: #5b9bd5;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
  font-weight: bold;
}

.search-box button:hover {
  background-color: #4178be;
}

/* Меню внутри левой колонки */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  border-bottom: 1px dashed #bdd7ee;
  padding: 6px 0;
}

.sidebar-menu li:last-child {
  border-bottom: none;
}

.sidebar-menu a {
  text-decoration: none;
  color: #003366;
  font-size: 13px;
}

.sidebar-menu a:hover {
  text-decoration: underline;
  color: #d9534f;
}

/* Хлебные крошки и текст */
.breadcrumbs {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: #004499;
}

.intro-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Таблица файлов */
.files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}

.files-table th {
  background-color: #e1ecf4;
  color: #003366;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #9dc3e6;
}

.files-table td {
  padding: 8px 10px;
  border: 1px solid #d0d7de;
  vertical-align: middle;
}

.files-table tr:nth-child(even) {
  background-color: #f9fbfd;
}

.files-table tr:hover {
  background-color: #eef6ff;
}

/* Значки типов файлов */
.file-links {
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 3px;
  color: white;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  margin-right: 3px;
}

.badge.pdf { background-color: #d9534f; }
.badge.zip { background-color: #f0ad4e; }
.badge.doc { background-color: #337ab7; }
.badge.xls { background-color: #5cb85c; }
