/* Стили для переключателя категорий */
.category-switcher {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .category-switcher__tabs {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
    gap: 2px;
  }
  
  .category-switcher__tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    min-width: 120px;
  }
  
  .category-switcher__tab:hover {
    color: #333;
    background: rgba(255, 255, 255, 0.5);
  }
  
  .category-switcher__tab.active {
    background: #4a90e2;
    color: white;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
  }
  
  /* Контент категорий */
  .category-content {
    display: none;
  }
  
  .category-content.active {
    display: block;
  }
  
  /* Стили для страницы лаборатории */
  .lab-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: url('/wp-content/themes/opmu209/images/bg-service.png') no-repeat center center;
    background-size: cover;
    padding: 120px 0 80px;
    color: var(--white);
    text-align: center;
  }
  
  .lab-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
  }
  
  .lab-hero__content {
    position: relative;
    z-index: 2;
  }
  
  .lab-hero__title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
  
  .lab-hero__divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 1.5rem;
  }
  
  /* --- Контент --- */
  .lab-content {
    padding: 50px 0;
    background-color: #f9f9f9;
  }
  
  .lab-content__wrapper {
    display: flex;
    gap: 30px;
  }
  
  /* --- Боковая панель --- */
  .lab-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  }
  
  .lab-sidebar__title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
  }
  
  .lab-sidebar__categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .lab-sidebar__category {
    padding: 12px 18px;
    background: #f5f8fa;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    border: 1px solid #e6e9ec;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .lab-sidebar__category:hover {
    background: #e9f2fd;
    border-color: #c5ddf5;
  }
  
  .lab-sidebar__category.active {
    border: none;
    color: white;
    background: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .lab-subcategories-group {
    margin-top: 8px;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 5px;
  }
  
  .lab-subcategory {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    background: #f0f3f5;
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: capitalize;
    font-weight: 400;
    border: 1px solid #e0e4e8;
    color: #555;
  }
  
  .lab-subcategory:hover {
    background: #e0f0ff;
    border-color: #c5ddf5;
    color: var(--primary-color);
  }
  
  .lab-subcategory input[type="checkbox"] {
    margin: 0;
    accent-color: var(--primary-color);
  }
  
  .lab-subcategories-clear {
    background: none;
    border: none;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
    text-align: right;
    text-decoration: underline;
    padding: 3px 5px;
  }
  
  .lab-subcategories-clear:hover {
    color: var(--primary-color);
  }
  
  /* --- Основной контент --- */
  .lab-main-content {
    flex-grow: 1;
  }
  
  /* --- Поиск --- */
  .lab-search {
    margin-bottom: 20px;
  }
  
  .lab-search__container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  }
  
  .lab-search__icon {
    position: absolute;
    left: 15px;
    font-size: 1rem;
    color: var(--primary-color);
  }
  
  .lab-search__input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    font-size: 1rem;
    border-radius: 10px;
  }
  
  .lab-search__clear {
    background: none;
    border: none;
    font-size: 1rem;
    color: #aaa;
    padding: 0 15px;
    cursor: pointer;
  }
  
  .lab-search__clear:hover {
    color: var(--primary-color);
  }
  
  /* --- Таблица --- */
  .lab-category-title {
    margin: 25px 0 15px 0;
  }
  
  .lab-table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  }
  
  .lab-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }
  
  .lab-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 10px;
    font-size: 1rem;
  }
  
  .lab-table td {
    padding: 15px 10px;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .lab-table__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  
  .lab-table__name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .lab-table tbody tr:hover {
    background-color: #f2f8ff;
  }
  
  .lab-subcategory-row {
    background: #f1f1f1;
    font-weight: bold;
  }
  
  .lab-subcategory-title {
    padding: 10px;
    color: #333;
  }
  
  /* --- Столбцы таблицы для 3 колонок --- */
  .lab-table--three-columns th:nth-child(1),
  .lab-table--three-columns td:nth-child(1) {
    width: 160px;
  }
  
  .lab-table--three-columns th:nth-child(2),
  .lab-table--three-columns td:nth-child(2) {
    width: auto;
  }
  
  .lab-table--three-columns th:nth-child(3),
  .lab-table--three-columns td:nth-child(3) {
    width: 100px;
    text-align: center;
  }
  
  /* --- Столбцы таблицы для 4 колонок --- */
  .lab-table--four-columns th:nth-child(1),
  .lab-table--four-columns td:nth-child(1) {
    width: 155px;
  }
  
  .lab-table--four-columns th:nth-child(2),
  .lab-table--four-columns td:nth-child(2) {
    width: auto;
  }
  
  .lab-table--four-columns th:nth-child(3),
  .lab-table--four-columns td:nth-child(3),
  .lab-table--four-columns th:nth-child(4),
  .lab-table--four-columns td:nth-child(4) {
    width: 100px;
    text-align: center;
  }
  
  /* --- Адаптивность --- */
  @media (max-width: 992px) {
    .lab-content__wrapper {
      flex-direction: column;
    }
    .lab-sidebar {
      width: 100%;
    }
  }
  
  @media (max-width: 768px) {
    .lab-table th,
    .lab-table td {
      padding: 10px;
    }
    
    .category-switcher__tab {
      padding: 10px 16px;
      font-size: 0.9rem;
      min-width: 100px;
    }
  }