.tests-hero {
  padding: 42px 0 50px;
  border-bottom: 1px solid #dfece4;
  background:
    linear-gradient(112deg, rgba(4, 101, 49, 0.1), rgba(236, 28, 36, 0.04) 54%, rgba(255, 255, 255, 0.94)),
    #f5fbf8;
}

.tests-hero-inner {
  max-width: 880px;
}

.tests-breadcrumb {
  margin-bottom: 14px;
  color: #667b8b;
  font-size: 14px;
}

.tests-hero h1 {
  margin-top: 10px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
}

.tests-hero p:not(.vn-kicker):not(.tests-breadcrumb) {
  max-width: 720px;
  margin-top: 12px;
  color: #4f6474;
  line-height: 1.7;
}

.tests-breadcrumb a {
  color: inherit;
}

.tests-hero-copy {
  max-width: 720px;
  margin-top: 12px;
  color: #4f6474;
  line-height: 1.7;
}

.tests-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(720px, 100%);
  margin-top: 22px;
  border: 1px solid rgba(4, 101, 49, 0.24);
  border-radius: 9px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 12px 28px rgba(4, 101, 49, 0.08);
}

.tests-search > svg {
  width: 20px;
  height: 20px;
  margin-left: 8px;
  color: var(--green);
}

.tests-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.tests-search button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.tests-lab-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tests-lab-filter a,
.tests-sidebar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tests-lab-filter a {
  min-height: 38px;
  border: 1px solid #d7e6dd;
  border-radius: 999px;
  background: #fff;
  color: #173044;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

.tests-lab-filter a.active,
.tests-lab-filter a:hover {
  border-color: rgba(4, 101, 49, 0.22);
  background: var(--green);
  color: #fff;
}

.lab-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.lab-red { background: #c0392b; }
.lab-orange { background: #e67e22; }
.lab-yellow { background: #d4ac0d; }
.lab-green { background: #27ae60; }
.lab-blue { background: #2980b9; }
.lab-purple { background: #8e44ad; }

.tests-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.tests-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 6px;
  border: 1px solid #dfece4;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
}

.tests-sidebar h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.tests-sidebar > a {
  border-radius: 8px;
  color: #33495c;
  padding: 9px 10px;
  font-size: 14px;
}

.tests-sidebar > a:hover,
.tests-sidebar > a.active {
  background: var(--green-soft);
  color: var(--green);
}

.tests-sidebar-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-radius: 8px;
  background: #f6fbf8;
  padding: 14px;
}

.tests-sidebar-card svg {
  width: 30px;
  height: 30px;
  color: var(--green);
}

.tests-sidebar-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tests-content {
  min-width: 0;
}

.tests-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.tests-toolbar h2 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.25;
}

.test-group {
  scroll-margin-top: 92px;
  margin-bottom: 14px;
  border: 1px solid #dfece4;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
}

.test-group[hidden],
.test-row[hidden],
.tests-empty[hidden] {
  display: none;
}

.test-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.test-group-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-group h3 {
  font-size: 20px;
}

.test-group-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.test-group-head svg {
  width: 15px;
  height: 15px;
}

.lab-label {
  border-radius: 999px;
  color: #fff;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.lab-label-red { background: #c0392b; }
.lab-label-orange { background: #e67e22; }
.lab-label-yellow { background: #d4ac0d; }
.lab-label-green { background: #27ae60; }
.lab-label-blue { background: #2980b9; }
.lab-label-purple { background: #8e44ad; }

.test-list {
  display: grid;
  gap: 8px;
}

.test-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #edf4ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.test-row:hover {
  border-color: rgba(4, 101, 49, 0.35);
  background: #fbfffd;
}

.test-row strong {
  display: block;
  color: #1e3548;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.test-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.test-row b {
  color: var(--red);
  font-size: 16px;
  white-space: nowrap;
}

.test-row em {
  color: #6d7f8f;
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}

.tests-empty {
  border: 1px solid #dfece4;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 18px;
}

.tests-final {
  border-top: 1px solid #e3ebef;
  background: #fff;
  padding: 42px 0 50px;
}

.tests-final-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tests-final article {
  display: grid;
  gap: 10px;
  border: 1px solid #dfece4;
  border-radius: 8px;
  padding: 22px;
}

.tests-final article:first-child {
  background: #f3f8ff;
  border-color: #cfe0f2;
}

.tests-final article:nth-child(2) {
  background: #fff9e8;
  border-color: #f0d99b;
}

.tests-final svg {
  width: 36px;
  height: 36px;
  color: var(--green);
}

.tests-final h2 {
  font-size: 24px;
}

.tests-final p {
  color: var(--muted);
  line-height: 1.6;
}

.tests-final .btn {
  width: fit-content;
}
