
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Arial, sans-serif;
      background: #f9f9f9;
      color: #333;
      line-height: 1.6;
    }

    .container {
      display: flex;
      min-height: 100vh;
    }

    /* Боковое меню */
    .sidebar {
      width: 280px;
      background: white;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
      padding: 30px 20px;
      position: fixed;
      height: 100vh;
      overflow-y: auto;
      z-index: 1000;
    }

    .logo {
      font-size: 1.8rem;
      font-weight: 700;
      color: #2c3e50;
      margin-bottom: 40px;
      text-align: center;
    }

    .nav-menu {
      list-style: none;
    }

    .nav-menu li {
      margin-bottom: 10px;
    }

    .nav-menu a {
      display: block;
      padding: 12px 15px;
      color: #555;
      text-decoration: none;
      border-radius: 6px;
      transition: all 0.3s ease;
    }

    .nav-menu a:hover {
      background: #ecf0f1;
      color: #3498db;
      transform: translateX(5px);
    }

    .nav-menu a.active {
      background: #3498db;
      color: white;
    }

    /* Основная область контента */
    .main-content {
      flex: 1;
      margin-left: 280px;
      padding: 40px;
    }

    header {
      text-align: center;
      margin-bottom: 40px;
    }

    h1 {
      color: #2c3e50;
      font-size: 2.5rem;
      margin-bottom: 15px;
    }

    .subtitle {
      color: #7f8c8d;
      font-size: 1.2rem;
    }

    /* Горизонтальное меню */
    .horizontal-menu {
      background: white;
      padding: 15px 0;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      margin: 30px auto;
      max-width: 800px;
    }

    .horizontal-menu ul {
      display: flex;
      justify-content: center;
      list-style: none;
      gap: 30px;
      flex-wrap: wrap;
    }

    .horizontal-menu a {
      text-decoration: none;
      color: #555;
      font-weight: 500;
      padding: 8px 16px;
      border-radius: 4px;
      transition: all 0.3s ease;
      position: relative;
    }

    .horizontal-menu a:hover {
      color: #3498db;
    }

    .horizontal-menu a::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 50%;
      width: 0;
      height: 2px;
      background: #3498db;
      transition: all 0.3s ease;
      transform: translateX(-50%);
    }

    .horizontal-menu a:hover::after {
      width: 80%;
    }

    .content-section {
      background: white;
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      margin-bottom: 30px;
    }

    .content-section h2 {
      color: #2c3e50;
      margin-bottom: 15px;
      border-bottom: 2px solid #ecf0f1;
      padding-bottom: 10px;
    }

    footer {
      text-align: center;
      padding: 20px;
      color: #7f8c8d;
      font-size: 0.9rem;
      border-top: 1px solid #ecf0f1;
      margin-top: 40px;
    }

    /* Адаптивность для планшетов (768px–1024px) */
    @media (max-width: 1024px) {
      .sidebar {
        width: 250px;
      }
      .main-content {
        margin-left: 250px;
      }
      h1 {
        font-size: 2.2rem;
      }
    }

    /* Адаптивность для мобильных устройств (до 768px) */
    @media (max-width: 768px) {
      /* Скрываем боковое меню по умолчанию */
      .sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* Скрываем за левым краем экрана */
        width: 280px;
        height: 100vh;
        transition: left 0.4s ease;
        z-index: 1100;
      }

      .sidebar.open {
        left: 0; /* Показываем при классе open */
      }

      /* Кнопка для открытия меню */
      .mobile-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #3498db;
        z-index: 1200;
      }

      .main-content {
        margin-left: 0;
        padding: 20px;
      }

      h1 {
        font-size: 1.8rem;
      }

      .subtitle {
        font-size: 1rem;
      }

      /* Горизонтальное меню — делаем вертикальным на мобильных */
      .horizontal-menu ul {
        flex-direction: column;
        align      .horizontal-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
      }

      .horizontal-menu a {
        padding: 10px 20px;
        width: 80%;
        text-align: center;
      }

      .content-section {
        padding: 20px;
      }
    }