.matrix-detail-link{display:inline-flex;align-items:center;gap: var(--space-04);color:inherit;text-decoration:none}.matrix-detail-link span{color:var(--blue-500);font-weight:900}.matrix-detail-link:hover{text-decoration:underline}

.catalog-hero h1 {
  max-width: none;
  font-size: clamp(var(--font-size-500), 4vw, var(--font-size-600));
  white-space: nowrap;
}

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

.matrix-section {
  padding: var(--space-09) 0 var(--space-11);
  background: var(--white);
}

.matrix-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-07);
  margin-bottom: var(--space-06);
}

.matrix-intro h2 {
  margin: 0 0 var(--space-04);
  color: var(--neutral-900);
  font-size: var(--font-size-300);
  line-height: 1.15;
}

.matrix-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-size-175);
}

.matrix-legend {
  display: inline-flex;
  align-items: center;
  gap: var(--space-04);
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: var(--font-size-150);
  font-weight: 750;
}

.matrix-check {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: var(--white);
  background: var(--blue-500);
  font-size: var(--font-size-150);
  font-weight: 900;
}

.matrix-scroll {
  max-height: none;
  overflow: visible;
  border: var(--border-width-default) solid var(--border-subtle);
  border-radius: var(--radius-xlarge);
  box-shadow: 0 14px 38px rgba(0, 22, 58, 0.08);
  scrollbar-color: var(--neutral-300) var(--blue-50);
}

.service-matrix {
  width: 100%;
  min-width: 850px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
}

.service-matrix th,
.service-matrix td {
  padding: var(--space-05) var(--space-05);
  border-bottom: var(--border-width-default) solid var(--border-subtle);
  vertical-align: middle;
}

.service-matrix thead th {
  position: sticky;
  top: 72px;
  z-index: 5;
  color: var(--white);
  background: var(--neutral-900);
  font-size: var(--font-size-150);
  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: var(--text-muted);
  font-size: var(--font-size-150);
  font-weight: 750;
}

.service-matrix .feature-cell {
  width: 380px;
  color: var(--text-secondary);
  font-size: var(--font-size-150);
  font-weight: 750;
  text-align: left;
}

.availability-badge {
  display: inline-flex;
  margin-left: var(--space-04);
  padding: var(--space-03) var(--space-04);
  border: var(--border-width-default) solid var(--feedback-success-border);
  border-radius: var(--radius-full);
  background: var(--feedback-success-background);
  color: var(--feedback-success-foreground);
  font-size: var(--font-size-100);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.matrix-cost-note {
  margin: var(--space-04) var(--space-02) 0;
  color: var(--text-muted);
  font-size: var(--font-size-100);
  font-weight: 650;
}

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

.service-matrix .module-row th {
  padding: var(--space-04) var(--space-05);
  color: var(--blue-500);
  background: var(--blue-50);
  border-bottom-color: var(--border-subtle);
  font-size: var(--font-size-100);
  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: var(--blue-50);
}

.service-matrix tbody .is-invoicing td,
.service-matrix tbody .is-invoicing th {
  background: var(--blue-50);
}

.service-matrix tbody .is-invoicing .area-cell {
  color: var(--blue-500);
  font-weight: 900;
}

.service-matrix tbody .is-invoicing .feature-cell {
  border-left: 3px solid var(--blue-500);
}

.verifactu {
  display: inline-block;
  padding: var(--space-02) var(--space-04);
  border-radius: var(--radius-full);
  color: var(--white);
  background: var(--blue-500);
  font-size: var(--font-size-150);
  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 var(--space-04);
  color: var(--text-muted);
  font-size: var(--font-size-100);
  font-weight: 700;
}

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

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

  .catalog-hero h1 {
    font-size: var(--font-size-400);
  }

  .matrix-section {
    padding: var(--space-08) 0 var(--space-10);
  }

  .matrix-intro {
    align-items: start;
    flex-direction: column;
    gap: var(--space-05);
  }

  .matrix-intro h2 {
    font-size: var(--font-size-300);
  }

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

  .matrix-scroll {
    max-height: none;
    overflow: visible;
    margin-right: 0;
    border-radius: var(--radius-xlarge);
  }

  .service-matrix {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    background: var(--white);
  }

  .service-matrix thead th {
    top: 64px;
    padding: var(--space-04) var(--space-03);
    font-size: var(--font-size-175);
    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: var(--space-04) var(--space-03);
  }

  .service-matrix .feature-cell {
    position: static;
    width: auto;
    min-width: 0;
    background: var(--white);
    box-shadow: none;
    font-size: var(--font-size-150);
    line-height: 1.3;
  }

  .service-matrix .feature-cell::before {
    content: attr(data-area);
    display: block;
    margin-bottom: var(--space-02);
    color: var(--text-muted);
    font-size: var(--font-size-100);
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .service-matrix .module-row th {
    position: relative;
    padding: var(--space-04) var(--space-04);
  }

  .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: var(--font-size-100);
  }

  .availability-badge {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: var(--space-03) 0 0;
    padding: var(--space-02) var(--space-03);
    font-size: var(--font-size-175);
    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: var(--white);
    font-size: var(--font-size-175);
  }

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