.lab-testgrid-wrapper {
  padding: 60px 5vw;
}

.lab-testgrid-wrapper--dark {
  background-color: #1b1a30;
  color: #ffffff;
}

.lab-testgrid-wrapper--light {
  background-color: #ffffff;
  color: #1b1a30;
}

.lab-testgrid-wrapper__frame {
  display: flex;
  justify-content: center;
}

.lab-testgrid-wrapper__content {
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vh, 72px);
}

.lab-testgrid__header {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lab-testgrid__title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  margin: 0;
}

.lab-testgrid__description {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  margin: 0;
}

.lab-testgrid {
  --lab-gap: clamp(16px, 4vw, 32px);
  --lab-testgrid-color: #ffffff;
  width: min(100%, 1100px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: var(--lab-gap);
  margin: 0 auto;
}

.lab-testgrid--light {
  --lab-testgrid-color: #1b1a30;
}

.lab-testgrid:not(.lab-testgrid--light) {
  --lab-testgrid-color: #ffffff;
}

.lab-testgrid__item {
  flex: 0 1 calc((100% - (2 * var(--lab-gap))) / 3);
  max-width: calc((100% - (2 * var(--lab-gap))) / 3);
  width: calc((100% - (2 * var(--lab-gap))) / 3);
  min-width: 0;
  min-height: clamp(48px, calc((100vh - var(--lab-header-space, 220px) - ((var(--lab-row-count, 1) - 1) * var(--lab-gap))) / var(--lab-row-count, 1)), 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 48px;
  border: 1px solid var(--lab-testgrid-color, #ffffff);
  background: transparent;
  color: var(--lab-testgrid-color, #ffffff);
  text-decoration: none;
  padding: clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lab-testgrid__item:visited {
  color: inherit;
}

.lab-testgrid__item:hover,
.lab-testgrid__item:focus {
  text-decoration: none;
  outline: none;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.lab-testgrid__label {
  width: 100%;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(16px, 2.8vw, 26px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 991px) {
  .lab-testgrid-wrapper {
    padding: 48px 4vw;
  }

  .lab-testgrid-wrapper__content {
    gap: clamp(24px, 6vh, 48px);
  }
}

@media (max-width: 575px) {
  .lab-testgrid-wrapper {
    padding: 32px 16px;
  }

  .lab-testgrid-wrapper__content {
    min-height: 100vh;
  }
}
