.hero {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 22, 31, .98) 0%, rgba(7, 22, 31, .9) 42%, rgba(7, 22, 31, .25) 76%, rgba(7, 22, 31, .08) 100%),
    url('hero-microscope.webp') center right / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero p {
  max-width: 690px;
}

.hero .trust {
  max-width: 920px;
}

.category-filter {
  display: grid;
  grid-template-columns: auto minmax(250px, 410px) 1fr;
  align-items: center;
  gap: 14px;
  margin: 22px 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}

.category-filter label {
  font-weight: 850;
}

.category-filter select {
  width: 100%;
  padding: 13px 42px 13px 14px;
  border: 1px solid #bacbd2;
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

#visibleCount {
  justify-self: end;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.card[hidden] {
  display: none !important;
}

.finder-grid > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.finder-grid label {
  color: #d7e7eb;
  font-size: .84rem;
  font-weight: 800;
}

.finder-grid button {
  align-self: end;
  min-height: 49px;
  border: 0;
  background: #63e6d8;
  color: #062021;
  cursor: pointer;
}

.result-heading {
  margin: 0 0 12px;
}

.finder-results {
  display: grid;
  gap: 9px;
}

.finder-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid #33515c;
  border-radius: 10px;
  background: #102731;
  color: white;
  text-decoration: none;
}

.finder-match small {
  display: block;
  margin-top: 3px;
  color: #b9cdd3;
}

.finder-match:hover,
.finder-match:focus-visible {
  border-color: #63e6d8;
}

@media (max-width: 900px) {
  .hero {
    min-height: 610px;
    background-position: 62% center;
  }

  .category-filter {
    grid-template-columns: 1fr;
  }

  #visibleCount {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: auto;
    background:
      linear-gradient(rgba(7, 22, 31, .84), rgba(7, 22, 31, .96)),
      url('hero-microscope.webp') 64% center / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.3rem);
  }

  .finder-match {
    align-items: flex-start;
    flex-direction: column;
  }
}
