.matrix-detail-link{display:inline-flex;align-items:center;gap:7px;color:inherit;text-decoration:none}.matrix-detail-link span{color:#0757f7;font-weight:900}.matrix-detail-link:hover{text-decoration:underline}

.catalog-hero h1 {
  max-width: none;
  font-size: clamp(38px, 4vw, 54px);
  white-space: nowrap;
}

.catalog-inheritance {
  max-width: none !important;
  white-space: nowrap;
}

.matrix-section {
  padding: 42px 0 72px;
  background: #ffffff;
}

.matrix-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.matrix-intro h2 {
  margin: 0 0 7px;
  color: #061b4e;
  font-size: 28px;
  line-height: 1.15;
}

.matrix-intro p {
  max-width: 720px;
  margin: 0;
  color: #526587;
  font-size: 14px;
}

.matrix-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #405573;
  font-size: 12px;
  font-weight: 750;
}

.matrix-check {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #0757f7;
  font-size: 13px;
  font-weight: 900;
}

.matrix-scroll {
  max-height: none;
  overflow: visible;
  border: 1px solid #d8e5f6;
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(6, 27, 78, 0.08);
  scrollbar-color: #b9c9de #f2f6fb;
}

.service-matrix {
  width: 100%;
  min-width: 850px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

.service-matrix th,
.service-matrix td {
  padding: 11px 14px;
  border-bottom: 1px solid #e7edf6;
  vertical-align: middle;
}

.service-matrix thead th {
  position: sticky;
  top: 72px;
  z-index: 5;
  color: #ffffff;
  background: #061b4e;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-align: center;
}

.service-matrix thead th:nth-child(1),
.service-matrix thead th:nth-child(2) {
  text-align: left;
}

.service-matrix .area-cell {
  width: 150px;
  color: #60718e;
  font-size: 12px;
  font-weight: 750;
}

.service-matrix .feature-cell {
  width: 380px;
  color: #203759;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}

.availability-badge {
  display: inline-flex;
  margin-left: 10px;
  padding: 4px 9px;
  border: 1px solid #9ddfca;
  border-radius: 999px;
  background: #eafaf4;
  color: #087a59;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.matrix-cost-note {
  margin: 10px 2px 0;
  color: #7a879c;
  font-size: 11px;
  font-weight: 650;
}

.service-matrix .product-cell {
  width: 105px;
  text-align: center;
}

.service-matrix .module-row th {
  padding: 10px 14px;
  color: #0757f7;
  background: #eef5ff;
  border-bottom-color: #cadcf7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.service-matrix .module-row[data-module="NUTRI"] th {
  color: #6e35cb;
  background: #f5f0ff;
  border-bottom-color: #dfd2f7;
}

.service-matrix .module-row[data-module="TERAPEUTAS"] th {
  color: #087d76;
  background: #edf9f7;
  border-bottom-color: #cae9e5;
}

.service-matrix .module-row[data-module="HOME"] th {
  color: #bd650a;
  background: #fff7eb;
  border-bottom-color: #f3dfc3;
}

.service-matrix tbody tr:not(.module-row):hover td,
.service-matrix tbody tr:not(.module-row):hover th {
  background: #f8fbff;
}

.service-matrix tbody .is-invoicing td,
.service-matrix tbody .is-invoicing th {
  background: #eef5ff;
}

.service-matrix tbody .is-invoicing .area-cell {
  color: #0757f7;
  font-weight: 900;
}

.service-matrix tbody .is-invoicing .feature-cell {
  border-left: 3px solid #0757f7;
}

.verifactu {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  color: #ffffff;
  background: #0757f7;
  font-size: .92em;
  font-weight: 900;
  letter-spacing: .01em;
}

.service-matrix tbody tr:last-child td,
.service-matrix tbody tr:last-child th {
  border-bottom: 0;
}

.matrix-mobile-note {
  display: none;
  margin: 0 0 10px;
  color: #60718e;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .catalog-hero {
    padding-top: 34px;
  }

  .catalog-hero h1,
  .catalog-inheritance {
    white-space: normal;
  }

  .catalog-hero h1 {
    font-size: 34px;
  }

  .matrix-section {
    padding: 30px 0 54px;
  }

  .matrix-intro {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .matrix-intro h2 {
    font-size: 23px;
  }

  .matrix-mobile-note {
    display: none;
  }

  .matrix-scroll {
    max-height: none;
    overflow: visible;
    margin-right: 0;
    border-radius: 11px;
  }

  .service-matrix {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    background: #ffffff;
  }

  .service-matrix thead th {
    top: 64px;
    padding: 9px 4px;
    font-size: 9px;
    letter-spacing: 0;
  }

  .service-matrix thead th:first-child,
  .service-matrix .area-cell {
    display: none;
  }

  .service-matrix thead th:nth-child(2),
  .service-matrix .feature-cell {
    width: 52%;
    text-align: left;
  }

  .service-matrix thead th:nth-child(n+3),
  .service-matrix .product-cell {
    width: 16%;
  }

  .service-matrix th,
  .service-matrix td {
    padding: 9px 5px;
  }

  .service-matrix .feature-cell {
    position: static;
    width: auto;
    min-width: 0;
    background: #ffffff;
    box-shadow: none;
    font-size: 12px;
    line-height: 1.3;
  }

  .service-matrix .feature-cell::before {
    content: attr(data-area);
    display: block;
    margin-bottom: 2px;
    color: #70809a;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .service-matrix .module-row th {
    position: relative;
    padding: 8px 9px;
  }

  .service-matrix .product-cell {
    display: table-cell;
    text-align: center;
  }

  .service-matrix .product-cell .matrix-check {
    width: 18px;
    height: 18px;
    margin: 0 auto;
    font-size: 10px;
  }

  .availability-badge {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 4px 0 0;
    padding: 3px 6px;
    font-size: 8px;
    white-space: normal;
  }

  .service-matrix thead th:last-child {
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .service-matrix thead th:last-child::after {
    content: "TERAP.";
    color: #ffffff;
    font-size: 9px;
  }

  html[lang="en"] .service-matrix thead th:last-child::after {
    content: "THERAP.";
  }
}
