#page {
  overflow: hidden;
}
/* ===== Tabs (desktop) ===== */
.labkit-single .labkit-tablist {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
  position: relative; /* keep baseline visible */
}
.labkit-single .labkit-tab {
  appearance: none;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 10px 0;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.labkit-single .labkit-tab.is-active {
  background: #dff5ec;
  border-bottom-color: #2cad76; /* green 2px */
  padding: 10px 14px;
  margin-bottom: -1px; /* visually sit on baseline */
  position: relative;
  z-index: 1; /* keep baseline around it */
  color: #000;
}

.labkit-tab button:hover {
  background: #fff !important;
  color: #000;
}

/* ===== Panels ===== */
.labkit-single .labkit-tabpanel {
  border: 1px solid #e5e5e5;
  border-radius: 0;
  padding: 0;
}
.labkit-single .labkit-tabpanel[hidden] {
  display: none;
}

/* ===== Accordion (mobile collapse) ===== */
@media (min-width: 769px) {
  .labkit-single .labkit-tabs {
    display: block;
  }
  .labkit-single .labkit-accordion {
    display: none;
  }
}
@media (max-width: 768px) {
  .labkit-single .labkit-tabs {
    display: none;
  }
  .labkit-single .labkit-accordion {
    display: block;
  }

  /* accordion frame + item separators */
  .labkit-single .labkit-accordion {
    border-top: 1px solid #e5e5e5;
  }
  .labkit-single .labkit-acc {
    border-bottom: 1px solid #e5e5e5;
    margin: 0;
  }

  /* clickable header with chevron */
  .labkit-single .labkit-acc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
  }
  .labkit-single .labkit-acc__summary::-webkit-details-marker {
    display: none;
  } /* hide native marker */
  .labkit-single .labkit-acc__summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #2cad76;
    border-bottom: 2px solid #2cad76;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  .labkit-single .labkit-acc[open] .labkit-acc__summary::after {
    transform: rotate(-135deg); /* chevron up when opened */
  }
  .labkit-single .labkit-acc__panel {
    padding: 8px 0 12px;
  }
}

/* ===== Table: solid white (keep nested tables intact) ===== */
.labkit-single .labkit-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.labkit-single .labkit-table > * > tr > th,
.labkit-single .labkit-table > * > tr > td {
  background: #fff;
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid #ededed;
}
.labkit-single .labkit-table > tbody > tr > th {
  width: 320px;
  font-weight: 600;
  color: #333;
  text-align: justify;
}

/* ===== Categories: inline on desktop, stacked on mobile ===== */
.labkit-single .labkit-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  gap: 0;
}
.labkit-single .labkit-cats li {
  position: relative;
  padding-left: 0;
}
.labkit-single .labkit-cats li::before {
  display: none;
}
.labkit-single .labkit-cats li + li {
  padding-left: 14px;
}
.labkit-single .labkit-cats li + li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #0a386c;
}
.labkit-single .labkit-cats a {
  color: #434343;
  text-decoration: none;
}
.labkit-single .labkit-cats a:hover {
  color: #0a386c;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .labkit-single .labkit-cats {
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
    gap: 6px 0;
  }
  .labkit-single .labkit-cats li,
  .labkit-single .labkit-cats li + li {
    width: 100%;
    padding-left: 14px;
  }
  .labkit-single .labkit-cats li::before {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    top: 0.9em;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: #0a386c;
  }
}

/* ===== Meta lines ===== */
.labkit-meta__value {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500; /* Medium */
  font-size: 16px;
  line-height: 1; /* 100% */
  letter-spacing: 0;
  color: #000200; /* value color */
}
/* Header as a 2-column grid: [arrow | content] */
.labkit-single .labkit-header {
  /* layout */
  display: grid;
  grid-template-columns: 28px 1fr; /* arrow width + content */
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;

  /* spacing */
  margin-bottom: 40px;
  margin-top: 40px;
}

/* Back arrow aligned to title center with bigger hit area */
.labkit-single .labkit-back {
  grid-column: 1;
  grid-row: 1; /* same row as title */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; /* tap target */
  height: 28px;
  color: #20244a;
  text-decoration: none;
}
.labkit-single .labkit-back svg {
  width: 15px;
  height: 15px;
}

/* Title occupies column 2; all meta lines go under it in column 2 */
.labkit-single .labkit-title {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 32px;
  margin: 15px 0px;
}
.labkit-single .labkit-header > .labkit-meta-line {
  grid-column: 2; /* start under the title */
}

/* Categories inline (desktop) stay on the same column as title */
.labkit-single .labkit-header > .labkit-meta-line .labkit-cats {
  /* already styled ранее; здесь только подчёркиваем одно-линейность */
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

/* Mobile: allow wrapping of categories without смещения из-за стрелки */
@media (max-width: 600px) {
  .labkit-single .labkit-header {
    grid-template-columns: 24px 1fr;
  }
  .labkit-single .labkit-back {
    width: 24px;
    height: 24px;
  }
  .labkit-single .labkit-header > .labkit-meta-line .labkit-cats {
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
  }
}

/* Tabs: no visual change on hover/focus */
.labkit-single .labkit-tab:hover,
.labkit-single .labkit-tab:focus {
  background: transparent !important;
  color: #1a1a1a !important;
  border-bottom-color: transparent !important;
}

/* Active tab keeps green badge on hover/focus */
.labkit-single .labkit-tab.is-active:hover,
.labkit-single .labkit-tab.is-active:focus {
  background: #dff5ec !important;
  border-bottom-color: #2cad76 !important; /* 2px */
  color: #1a1a1a !important;
}

/* If Elementor kit overrides button:hover, double-scope it */
[class*="elementor-kit-"] .labkit-single .labkit-tab:hover,
[class*="elementor-kit-"] .labkit-single .labkit-tab:focus {
  background: transparent !important;
  color: #1a1a1a !important;
  border-bottom-color: transparent !important;
}
[class*="elementor-kit-"] .labkit-single .labkit-tab.is-active:hover,
[class*="elementor-kit-"] .labkit-single .labkit-tab.is-active:focus {
  background: #dff5ec !important;
  border-bottom-color: #2cad76 !important;
  color: #1a1a1a !important;
}

/* Meta labels (e.g., "Categories:") */
.labkit-single .labkit-meta__label {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400; /* Regular */
  font-size: 16px;
  line-height: 1; /* 100% */
  letter-spacing: 0;
  color: #434343;
}

/* Categories list: one line on desktop */
.labkit-single .labkit-cats {
  display: flex;
  flex-wrap: nowrap; /* single line */
  white-space: nowrap;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Category item separator dot */
.labkit-single .labkit-cats li {
  position: relative;
  padding-left: 0;
}
.labkit-single .labkit-cats li + li {
  padding-left: 14px;
}
.labkit-single .labkit-cats li + li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #0a386c;
}

/* Category links (values) */
.labkit-single .labkit-cats a {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500; /* Medium */
  font-size: 16px;
  line-height: 1; /* 100% */
  letter-spacing: 0;
  color: #000200; /* value color */
  text-decoration: none; /* no underline */
}
.labkit-single .labkit-cats a:hover {
  color: #000200;
  text-decoration: none;
}

/* Mobile: stack items vertically */
@media (max-width: 600px) {
  .labkit-single .labkit-cats {
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
    gap: 6px 0;
  }
  .labkit-single .labkit-cats li,
  .labkit-single .labkit-cats li + li {
    width: 100%;
    padding-left: 14px; /* bullet indent */
  }
  .labkit-single .labkit-cats li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.9em;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: #0a386c;
  }
}
.elementor-kit-126 .labkit-single .labkit-meta__value--comma a {
  color: #000200 !important;
}
/* Category links (comma-separated or list) */
.labkit-single .labkit-meta__value--comma a,
.labkit-single .labkit-cats a {
  color: #000200;
  text-decoration: none;
}

/* Hover/focus: underline + #2CAD76 */
.labkit-single .labkit-meta__value--comma a:hover,
.labkit-single .labkit-meta__value--comma a:focus-visible,
.labkit-single .labkit-cats a:hover,
.labkit-single .labkit-cats a:focus-visible {
  color: #2cad76;
  text-decoration: underline;
  text-decoration-thickness: auto; /* keep default thickness */
  text-underline-offset: 2px; /* nicer underline */
}

/* Beat Elementor kit color rule if needed */
[class*="elementor-kit-"] .labkit-single .labkit-meta__value--comma a,
[class*="elementor-kit-"] .labkit-single .labkit-cats a {
  color: #000200;
}
[class*="elementor-kit-"] .labkit-single .labkit-meta__value--comma a:hover,
[class*="elementor-kit-"]
  .labkit-single
  .labkit-meta__value--comma
  a:focus-visible,
[class*="elementor-kit-"] .labkit-single .labkit-cats a:hover,
[class*="elementor-kit-"] .labkit-single .labkit-cats a:focus-visible {
  color: #2cad76;
  text-decoration: underline;
}

/* Table links: always underlined, lower offset, fixed color */
.labkit-single .labkit-table th a,
.labkit-single .labkit-table td a {
  color: #20244a; /* link text color */
  text-decoration: underline; /* always on */
  text-decoration-style: solid;
  text-decoration-color: #20244a; /* underline color */
  text-decoration-thickness: 1.5px; /* a bit thicker for clarity */
  text-underline-offset: 3px; /* move underline lower */
}

/* Keep same look in all states */
.labkit-single .labkit-table th a:hover,
.labkit-single .labkit-table td a:hover,
.labkit-single .labkit-table th a:focus,
.labkit-single .labkit-table td a:focus,
.labkit-single .labkit-table th a:visited,
.labkit-single .labkit-table td a:visited {
  color: #20244a;
  text-decoration-color: #20244a;
  text-decoration: underline;
}

/* Beat Elementor kit anchor color if it overrides */
[class*="elementor-kit-"] .labkit-single .labkit-table th a,
[class*="elementor-kit-"] .labkit-single .labkit-table td a {
  color: #20244a;
  text-decoration-color: #20244a;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

/* Обёртка для таблицы — горизонтальный скролл только на мобилках */
@media (max-width: 768px) {
  .labkit-single .labkit-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
  }

  /* Таблица может быть шире экрана, чтобы появились колонки «в скролл» */
  .labkit-single .labkit-table {
    width: 100%;
    border-collapse: separate; /* нужно для sticky + тени */
    border-spacing: 0;
    table-layout: auto; /* пусть колонки сами берут ширину */
    min-width: 150px; /* базово, но дальше заданием колонок */
  }

  /* Первая колонка фикс 150px и прилипает слева */
  .labkit-single .labkit-table > thead > tr > th:first-child,
  .labkit-single .labkit-table > tbody > tr > th:first-child,
  .labkit-single .labkit-table > tbody > tr > td:first-child {
    position: sticky;
    left: 0;
    z-index: 2; /* поверх остальных ячеек */
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    background: #fff; /* перекрываем подложку при скролле */
  }

  /* Чуть отделим визуально границей/тенью */
  .labkit-single .labkit-table > thead > tr > th:first-child,
  .labkit-single .labkit-table > tbody > tr > th:first-child,
  .labkit-single .labkit-table > tbody > tr > td:first-child {
    box-shadow: 4px 0 0 0 #ededed; /* кромка справа от первой колонки */
  }

  /* Остальные колонки — чтобы точно ушли «в скролл», зададим мин. ширину */
  .labkit-single .labkit-table > thead > tr > th:not(:first-child),
  .labkit-single .labkit-table > tbody > tr > td:not(:first-child) {
    min-width: 220px; /* подбери по контенту: 180–280px */
    white-space: normal; /* переносим текст при необходимости */
  }
}
