.container-page table,
.container-page table[border="1"],
.container-page table.MsoTableGrid,
.container-page .content-table,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 2.5rem 0 !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.03) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #1a1d23 !important;
  border: 1px solid rgba(229, 231, 235, 1.5) !important;
/*  border: none !important;*/
}

/* Сбрасываем все встроенные стили ячеек */
.container-page table td,
.container-page table th,
.container-page table.MsoTableGrid td,
.container-page table.MsoTableGrid th,
.container-page table[border="1"] td,
.container-page table[border="1"] th,
.container-page .content-table td,
.container-page .content-table th,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) td,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) th {
  border: none !important;
  padding: 1.4rem 1.8rem !important;
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
  text-align: left !important;
  vertical-align: top !important;
  width: auto !important;
  height: auto !important;
  font-weight: normal !important;
  font-style: normal !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Заголовок таблицы */
.container-page table thead,
.container-page table.MsoTableGrid thead,
.container-page .content-table thead,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
}

/* Ячейки заголовка */
.container-page table th,
.container-page table.MsoTableGrid th,
.container-page .content-table th,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) th {
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
  background: transparent !important;
}

/* Цветовое отличие ячеек в строках */
.container-page table tbody tr td:nth-child(odd),
.container-page table.MsoTableGrid tbody tr td:nth-child(odd),
.container-page .content-table tbody tr td:nth-child(odd),
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr td:nth-child(odd) {
  background: rgba(102, 126, 234, 0.03) !important;
  border-right: 1px solid rgba(102, 126, 234, 0.1) !important;
}

.container-page table tbody tr td:nth-child(even),
.container-page table.MsoTableGrid tbody tr td:nth-child(even),
.container-page .content-table tbody tr td:nth-child(even),
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr td:nth-child(even) {
  background: rgba(118, 75, 162, 0.02) !important;
  border-right: 1px solid rgba(118, 75, 162, 0.08) !important;
}

/* Убираем правую границу у последней ячейки в строке */
.container-page table tbody tr td:last-child,
.container-page table.MsoTableGrid tbody tr td:last-child,
.container-page .content-table tbody tr td:last-child,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr td:last-child {
  border-right: none !important;
}

/* Легкое разделение строк */
.container-page table tbody tr,
.container-page table.MsoTableGrid tbody tr,
.container-page .content-table tbody tr,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr {
  border-bottom: 1px solid rgba(229, 231, 235, 0.5) !important;
}

/* Убираем границу у последней строки */
.container-page table tbody tr:last-child,
.container-page table.MsoTableGrid tbody tr:last-child,
.container-page .content-table tbody tr:last-child,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr:last-child {
  border-bottom: none !important;
}

/* Эффект при наведении на строку */
.container-page table tbody tr,
.container-page table.MsoTableGrid tbody tr,
.container-page .content-table tbody tr,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr {
  transition: all 0.25s ease !important;
}

.container-page table tbody tr:hover,
.container-page table.MsoTableGrid tbody tr:hover,
.container-page .content-table tbody tr:hover,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr:hover {
  background: linear-gradient(90deg, 
    rgba(102, 126, 234, 0.04) 0%, 
    rgba(118, 75, 162, 0.02) 100%) !important;
}

.container-page table tbody tr:hover td,
.container-page table.MsoTableGrid tbody tr:hover td,
.container-page .content-table tbody tr:hover td,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr:hover td {
  color: #4f46e5 !important;
  background: rgba(102, 126, 234, 0.05) !important;
}

.container-page table tbody tr:hover td:nth-child(even),
.container-page table.MsoTableGrid tbody tr:hover td:nth-child(even),
.container-page .content-table tbody tr:hover td:nth-child(even),
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr:hover td:nth-child(even) {
  background: rgba(118, 75, 162, 0.04) !important;
}

/* Чередование цветов для четных строк */
.container-page table tbody tr:nth-child(even),
.container-page table.MsoTableGrid tbody tr:nth-child(even),
.container-page .content-table tbody tr:nth-child(even),
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr:nth-child(even) {
  background: #fafbff !important;
}

.container-page table tbody tr:nth-child(even) td:nth-child(odd),
.container-page table.MsoTableGrid tbody tr:nth-child(even) td:nth-child(odd),
.container-page .content-table tbody tr:nth-child(even) td:nth-child(odd),
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr:nth-child(even) td:nth-child(odd) {
  background: rgba(102, 126, 234, 0.04) !important;
}

.container-page table tbody tr:nth-child(even) td:nth-child(even),
.container-page table.MsoTableGrid tbody tr:nth-child(even) td:nth-child(even),
.container-page .content-table tbody tr:nth-child(even) td:nth-child(even),
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr:nth-child(even) td:nth-child(even) {
  background: rgba(118, 75, 162, 0.03) !important;
}

.container-page table tbody tr:nth-child(even):hover,
.container-page table.MsoTableGrid tbody tr:nth-child(even):hover,
.container-page .content-table tbody tr:nth-child(even):hover,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr:nth-child(even):hover {
  background: linear-gradient(90deg, 
    rgba(102, 126, 234, 0.06) 0%, 
    rgba(118, 75, 162, 0.04) 100%) !important;
}

/* Стили для ссылок */
.container-page table a,
.container-page table.MsoTableGrid a,
.container-page .content-table a,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) a {
  color: #2563eb !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.container-page table a:hover,
.container-page table.MsoTableGrid a:hover,
.container-page .content-table a:hover,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) a:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .container-page table,
  .container-page table.MsoTableGrid,
  .container-page .content-table,
  .container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) {
    border-radius: 12px !important;
    margin: 1.5rem 0 !important;
    font-size: 14px !important;
  }
  
  .container-page table td,
  .container-page table th,
  .container-page table.MsoTableGrid td,
  .container-page table.MsoTableGrid th,
  .container-page .content-table td,
  .container-page .content-table th,
  .container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) td,
  .container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) th {
    padding: 1.2rem 1.4rem !important;
  }
  
  .container-page table th,
  .container-page table.MsoTableGrid th,
  .container-page .content-table th,
  .container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) th {
    font-size: 13px !important;
  }
  
  /* Убираем границы между ячейками на мобильных */
  .container-page table tbody tr td,
  .container-page table.MsoTableGrid tbody tr td,
  .container-page .content-table tbody tr td,
  .container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr td {
    border-right: none !important;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .container-page table,
  .container-page table.MsoTableGrid,
  .container-page .content-table,
  .container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) {
    font-size: 13px !important;
  }
  
  .container-page table td,
  .container-page table th,
  .container-page table.MsoTableGrid td,
  .container-page table.MsoTableGrid th,
  .container-page .content-table td,
  .container-page .content-table th,
  .container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) td,
  .container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) th {
    padding: 1rem 1.2rem !important;
  }
  
  .container-page table th,
  .container-page table.MsoTableGrid th,
  .container-page .content-table th,
  .container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) th {
    font-size: 12px !important;
  }
}

/* Анимация появления строк */
@keyframes tableRowAppear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container-page table tbody tr,
.container-page table.MsoTableGrid tbody tr,
.container-page .content-table tbody tr,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) tbody tr {
  animation: tableRowAppear 0.4s ease forwards !important;
}

/* Улучшенная типографика */
.container-page table,
.container-page table.MsoTableGrid,
.container-page .content-table,
.container-page table:not([class*="bx-"]):not([class*="adm-"]):not([id*="bx-"]):not([id*="adm-"]):not(.bx-editor-table) {
  font-feature-settings: 'kern' on, 'liga' on, 'calt' on !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Стили для контейнера с горизонтальным скроллом */
.container-page .table-container {
  overflow-x: auto !important;
  border-radius: 16px !important;
  margin: 2rem 0 !important;
  -webkit-overflow-scrolling: touch !important;
}

.container-page .table-container::-webkit-scrollbar {
  height: 6px !important;
}

.container-page .table-container::-webkit-scrollbar-track {
  background: #f1f3f4 !important;
  border-radius: 3px !important;
}

.container-page .table-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #667eea, #764ba2) !important;
  border-radius: 3px !important;
}

.container-page .table-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #5a6ae0, #6a4190) !important;
}