/* Shared testing-service navigation and CMS-managed text / image galleries. */
.sec-lab .testing-labs { display: grid; grid-template-columns: 242px minmax(0, 1fr); gap: 28px; align-items: start; }
.testing-labs-tabs { display: flex; flex-direction: column; gap: 10px; }
.testing-labs-tab { display: flex; align-items: center; gap: 12px; min-height: 62px; width: 100%; padding: 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(15,31,23,.55); color: #fff; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.testing-labs-index { font-size: 12px; font-weight: 500; opacity: .55; font-variant-numeric: tabular-nums; }
.testing-labs-tab b { flex: 1; font-size: 15px; line-height: 1.5; font-weight: 600; }
.testing-labs-tab .icon { font-size: 16px; opacity: .5; }
.testing-labs-tab:hover { border-color: #96c94b; }
.testing-labs-tab.on { background: var(--green, #009946); border-color: var(--green, #009946); box-shadow: 0 5px 18px rgba(0,0,0,.12); }
.testing-labs-tab.on .icon, .testing-labs-tab.on .testing-labs-index { opacity: 1; }
.testing-labs-tab:focus-visible { outline: 3px solid #b7e17a; outline-offset: 3px; }
.testing-labs-content { min-width: 0; background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.8); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.15); overflow: hidden; }
.testing-labs-panel { padding: 28px; min-height: 566px; color: #35423c; }
.testing-labs-panel[hidden] { display: none; }
.testing-labs-panel h3 { color: #087b3d; font-size: 24px; line-height: 1.45; font-weight: 700; margin: 0 0 18px; }
.testing-labs-points { margin: 0; padding: 0; list-style: none; }
.testing-labs-points li { position: relative; padding-left: 17px; margin: 9px 0; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.testing-labs-points li::before { content: ''; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; background: #079847; border-radius: 50%; }
.testing-labs-panel.has-gallery .testing-labs-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; align-items: center; min-height: 508px; }
.testing-labs-copy, .testing-labs-gallery { min-width: 0; }
.testing-labs-gallery { position: relative; }
.testing-labs-slides { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 9px; background: #edf1ee; touch-action: pan-y; }
.testing-labs-slide { display: block; width: 100%; height: 100%; }
.testing-labs-slide[hidden], .testing-labs-gallery-controls[hidden] { display: none; }
.testing-labs-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.testing-labs-gallery-controls { position: absolute; z-index: 1; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 12px; width: max-content; max-width: calc(100% - 24px); box-sizing: border-box; padding: 7px 10px; margin: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: 0 3px 16px rgba(15,31,23,.16); }
.testing-labs-prev, .testing-labs-next { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid #d6e2d9; border-radius: 50%; background: #fff; color: #087b3d; cursor: pointer; }
.testing-labs-prev:hover, .testing-labs-next:hover { background: #087b3d; color: #fff; border-color: #087b3d; }
.testing-labs-dots { display: flex; justify-content: center; flex-wrap: wrap; min-width: 0; }
.testing-labs-dots button { display: grid; place-items: center; width: 24px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.testing-labs-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #bccdc1; }
.testing-labs-dots button.on::before { width: 18px; border-radius: 5px; background: #079847; }
.testing-labs-count { flex-shrink: 0; font-size: 12px; color: #647369; font-variant-numeric: tabular-nums; }
.testing-labs-gallery:focus-visible, .testing-labs-gallery button:focus-visible { outline: 2px solid #079847; outline-offset: 3px; }
.testing-labs-panel.has-gallery .testing-labs-projects ul { columns: 2; }
.testing-labs-projects { margin-top: 24px; }
.testing-labs-projects h4 { font-size: 18px; color: #087b3d; margin-bottom: 14px; }
.testing-labs-projects ul { list-style: none; margin: 0; padding: 18px; columns: 3; column-gap: 24px; background: #edf6ef; border-radius: 8px; }
.testing-labs-projects li { break-inside: avoid; position: relative; padding: 6px 0 6px 13px; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.testing-labs-projects li::before { content: ''; position: absolute; left: 0; top: 14px; width: 4px; height: 4px; border-radius: 50%; background: #079847; }
@media (min-width: 1500px) {
  .testing-labs-panel.has-gallery .testing-labs-points li { font-size: 15px; margin-bottom: 16px; }
}
@media (max-width: 1200px) {
  .sec-lab .testing-labs { grid-template-columns: 220px minmax(0,1fr); gap: 20px; }
  .testing-labs-panel { padding: 24px; }
  .testing-labs-panel.has-gallery .testing-labs-body { gap: 24px; min-height: 516px; }
  .testing-labs-projects ul { columns: 2; }
}
@media (max-width: 992px) {
  .sec-lab .testing-labs { grid-template-columns: 1fr; }
  .testing-labs-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  .testing-labs-tab { min-height: 58px; padding: 12px; gap: 8px; }
  .testing-labs-tab .icon { display: none; }
  .testing-labs-panel { min-height: 0; }
  .testing-labs-panel.has-gallery .testing-labs-body { min-height: 0; }
}
@media (max-width: 767px) {
  .testing-labs-panel.has-gallery .testing-labs-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .testing-labs-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .testing-labs-tab { min-height: 50px; padding: 10px; }
  .testing-labs-tab b { font-size: 13px; }
  .testing-labs-panel { padding: 20px 16px; }
  .testing-labs-panel h3 { font-size: 20px; margin-bottom: 14px; }
  .testing-labs-points li { font-size: 13px; }
  .testing-labs-gallery-controls { gap: 6px; bottom: 10px; max-width: calc(100% - 16px); padding: 5px 7px; }
  .testing-labs-dots button { width: 20px; }
  .testing-labs-projects ul, .testing-labs-panel.has-gallery .testing-labs-projects ul { columns: 1; padding: 12px; }
}
