/* Общие стили */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    ol, ul {
    padding-left: 0;
    }

    body {
      font-family: Arial, sans-serif;
      background-color: #f4f4f4;
      color: #333;
      overflow-x: hidden;
      position: relative;
    }

    /* Боковое меню */
    .sidebar {
      width: 250px;
      height: stretch;
      position: fixed;
      top: 0;
      left: 0;
      background-color: #2c3e50;
      color: white;
      padding: 20px 0;
      transition: transform 0.3s ease;
      z-index: 1000;
      overflow-y: auto;
      box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }

    .sidebar h2 {
      margin-bottom: 20px;
      text-align: center;
      padding: 0 15px;
    }

    /* Кнопка закрытия для мобильной версии */
    .close-menu {
      position: absolute;
      top: 15px;
      right: 15px;
      background: none;
      border: none;
      color: white;
      font-size: 24px;
      cursor: pointer;
      z-index: 1001;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      display: none; /* По умолчанию скрыта */
    }
    
    /* Аккордеон */
    .accordion {
      list-style-type: none;
      width: 100%;
    }

    .accordion li {
      margin-bottom: 5px;
      border-radius: 5px;
      overflow: hidden;
    }

    .accordion-header {
      background-color: #34495e;
      padding: 12px 15px;
      cursor: pointer;
      font-weight: bold;
      transition: background-color 0.3s ease;
      position: relative;
      border-bottom: 1px solid #34495e;
    }

    .accordion-header:hover {
      background-color: #3498db;
    }

    .accordion-header.active {
      background-color: #3498db;
    }

    .accordion-header::after {
      content: '+';
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      transition: transform 0.3s ease;
    }

    .accordion-header.active::after {
      content: '-';
      transform: translateY(-50%);
    }

    .accordion-content {
      background-color: #34495e;
      padding: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .accordion-content a {
      display: block;
      padding: 10px 15px;
      color: white;
      text-decoration: none;
      border-bottom: 1px solid #2c3e50;
      transition: background-color 0.3s ease;
    }

    .accordion-content a:hover {
      background-color: #2980b9;
    }

    .accordion-content a:last-child {
      border-bottom: none;
    }

    /* Основной контент */
    .main-content {
      position: relative;
      z-index: 1;
      margin-left: 250px;
      padding: 20px;
      transition: all 0.3s ease;
      min-height: 100vh;
      box-sizing: border-box;
      background-color: #f4f4f4;
    }

    /* Стили для отображения когда меню открыто */
    .sidebar.active {
      transform: translateX(0);
    }

    .main-content.shifted {
      margin-left: 250px;
      position: relative;
      z-index: 1;
    }

    .menu-toggle {
      display: none;
      background-color: #3498db;
      color: white;
      border: none;
      padding: 10px 15px;
      cursor: pointer;
      font-size: 16px;
      margin-bottom: 20px;
      z-index: 1001;
      position: fixed;
      top: 10px;
      left: 10px;
    }

  /* Стили для таблицы статей */
    .articles-container {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 20px;
      margin-top: 20px;
    }

    .article-card {
      background: white;
      border-radius: 8px;
      padding: 15px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      transition: transform 0.2s;
      display: flex;
      flex-direction: column;
    }

    .article-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .article-card h2 {
      font-size: 1.1em;
      margin-bottom: 10px;
      color: #2c3e50;
    }

    .article-image {
      width: 100%;
      height: auto;
      object-fit: cover;
      border-radius: 4px;
      margin-bottom: 10px;
      display: block;
    }

    .article-content {
      flex-grow: 1;
    }

    .article-text {
      font-size: 0.9em;
      line-height: 1.4;
      color: #555;
    }
    
    
    /* Стили для пагинации */
    .pagination ul{
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px 0;
      margin-top: 20px;
    }

    .pagination ul>li,
    .pagination span {
      padding: 10px 15px;
      margin: 0 5px;
      border: 1px solid #ddd;
      background-color: white;
      cursor: pointer;
      transition: all 0.3s ease;
      border-radius: 4px;
      list-style:none;
    }

    .pagination li:hover {
      background-color: #e9ecef;
    }

    .pagination .current {
      background-color: #007bff;
      color: white;
      border-color: #007bff;
    }

    .pagination .disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    /* Адаптивность */
    @media (max-width: 768px) {
      .close-menu {
        display: flex; /* Отображается только на мобильных устройствах */
      }
      .sidebar {
        transform: translateX(-100%);
        width: 250px;
      }

      .sidebar.active {
        transform: translateX(0);
      }

      .main-content.shifted {
        margin-left: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        z-index: 999;
      }
     .main-content {
        margin-left: 0;
        padding-top: 70px;
      }
      .menu-toggle {
        display: block;
      }
      
      .articles-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
      }
      
      
      .menu-toggle {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1002;
      }
      
      .pagination button,
      .pagination span {
        padding: 8px 12px;
        font-size: 14px;
      }
    }
    
    @media (max-width: 1200px) {
      .articles-container {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (max-width: 992px) {
      .articles-container {
        grid-template-columns: repeat(2, 1fr);
      }
      
    }
