/* Хаб-страницы: таблица «модель → вкус → цена».
   Десктоп закрыт (Guard-VC), читают с телефона, поэтому на узком экране
   таблица превращается в карточки: подпись ячейки берётся из data-l.
   ВАЖНО: тема Astra задаёт ячейкам white-space: nowrap — без !important
   длинный текст вкуса обрезался справа. Это проверено в браузере. */

.bnd-hub-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bnd-hub-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 6px;
  font-size: 15px;
}
.bnd-hub-table th,
.bnd-hub-table td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.bnd-hub-table th {
  background: #f1f5fb;
  font-weight: 600;
  white-space: nowrap;
}
.bnd-hub-table tr:nth-child(even) td { background: #fbfcfe; }

@media (max-width: 700px) {
  .bnd-hub-wrap { overflow-x: visible; }
  .bnd-hub-table,
  .bnd-hub-table tbody,
  .bnd-hub-table tr,
  .bnd-hub-table td {
    display: block;
    width: auto;
    max-width: 100%;
    table-layout: auto;
    /* перебиваем white-space: nowrap темы — иначе текст не переносится */
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  /* шапку прячем: WordPress не оборачивает её в thead */
  .bnd-hub-table tr:has(th),
  .bnd-hub-table thead { display: none; }
  .bnd-hub-table tr {
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    margin: 0 0 12px;
    padding: 4px 0 6px;
    background: #fff;
  }
  .bnd-hub-table td {
    border: 0;
    border-bottom: 1px dashed #e6ebf3;
    padding: 7px 14px;
    background: transparent !important;
  }
  .bnd-hub-table td:last-child { border-bottom: 0; }
  .bnd-hub-table td::before {
    content: attr(data-l) ':';
    display: block;
    font-size: 12px;
    color: #6b7a90;
    letter-spacing: .01em;
    margin-bottom: 1px;
  }
  .bnd-hub-table td:first-child::before { display: none; }
  .bnd-hub-table td:first-child { font-size: 17px; font-weight: 600; }
  .bnd-hub-table td:last-child { font-weight: 600; color: #1f6feb; }
  .bnd-hub-table small { display: block; }
}
