.profiles-page main {
  color: var(--landing-ink);
}

.profiles-hero {
  border-bottom: 1px solid var(--landing-line);
}

.profiles-hero-inner {
  padding-block: clamp(42px, 7vw, 86px) clamp(48px, 8vw, 96px);
}

.profiles-breadcrumbs {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 30px;
  color: #706960;
  font-size: 12px;
  font-weight: 600;
}

.profiles-breadcrumbs a {
  color: inherit;
  text-underline-offset: 3px;
}

.profiles-kicker {
  margin: 0;
  color: var(--landing-red);
  font-family: "Caveat", cursive;
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
  line-height: 1;
  transform: rotate(-1deg);
}

.profiles-hero h1 {
  max-width: 980px;
  margin: 16px 0 24px;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .96;
}

.profiles-intro {
  display: grid;
  max-width: 960px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 46px;
  color: #413c36;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.profiles-intro p {
  margin: 0;
}

.profiles-summary {
  display: grid;
  max-width: 980px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 46px 0 0;
}

.profiles-summary > div {
  display: flex;
  min-height: 126px;
  flex-direction: column-reverse;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--landing-line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .64);
}

.profiles-summary dt {
  color: #625c55;
  font-size: 13px;
  font-weight: 700;
}

.profiles-summary dd {
  margin: 0;
  color: var(--landing-ink);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .9;
}

.profiles-summary .is-covered {
  border-top: 4px solid #287743;
}

.profiles-summary .is-expanding {
  border-top: 4px solid #b66b12;
}

.profiles-catalog {
  padding-block: clamp(52px, 8vw, 96px) 110px;
}

.profiles-catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 36px;
}

.profiles-catalog h2 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(32px, 4.8vw, 58px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
}

.profiles-legend {
  display: grid;
  flex: none;
  gap: 8px;
  padding-bottom: 4px;
  color: #5d5750;
  font-size: 12px;
  font-weight: 700;
}

.profiles-legend span {
  display: flex;
  gap: 8px;
  align-items: center;
}

.profiles-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  grid-template-areas:
    "search sort"
    "search results";
  gap: 8px 18px;
  align-items: start;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--landing-line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .72);
}

.profiles-tools[hidden] {
  display: none;
}

.profiles-search-field,
.profiles-sort-field {
  display: grid;
  gap: 7px;
}

.profiles-search-field {
  grid-area: search;
}

.profiles-sort-field {
  grid-area: sort;
}

.profiles-tools label {
  color: var(--landing-ink);
  font-size: 13px;
  font-weight: 800;
}

.profiles-tools input,
.profiles-tools select {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #aaa197;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--landing-ink);
  font: inherit;
  font-size: 16px;
}

.profiles-tools input::placeholder {
  color: #756e66;
  opacity: 1;
}

.profiles-tools input:focus-visible,
.profiles-tools select:focus-visible,
.profiles-empty button:focus-visible {
  outline: 3px solid rgba(204, 42, 32, .28);
  outline-offset: 2px;
  border-color: var(--landing-red);
}

.profiles-search-field > span {
  color: #6b645c;
  font-size: 12px;
}

.profiles-results {
  grid-area: results;
  align-self: end;
  margin: 0;
  color: #625c55;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.profile-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
}

.profile-dot.is-covered {
  background: #287743;
}

.profile-dot.is-expanding {
  background: #b66b12;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profiles-grid[hidden],
.profile-card[hidden] {
  display: none;
}

.profile-card {
  display: grid;
  min-height: 132px;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 14px 12px;
  padding: 18px;
  border: 1px solid var(--landing-line);
  border-radius: 10px;
  background: rgba(255, 253, 248, .68);
}

.profile-number {
  color: var(--landing-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.profile-name {
  align-self: start;
  color: var(--landing-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.profile-status {
  grid-column: 2;
  justify-self: start;
  color: #6b645c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.profile-status.is-covered {
  color: #287743;
}

.profile-status.is-expanding {
  color: #8b5310;
}

.profiles-empty {
  padding: clamp(42px, 7vw, 78px) 20px;
  border: 1px dashed #aaa197;
  border-radius: 12px;
  text-align: center;
}

.profiles-empty[hidden] {
  display: none;
}

.profiles-empty h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -.035em;
}

.profiles-empty p {
  margin: 0 auto 22px;
  color: #625c55;
}

.profiles-empty button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--landing-ink);
  border-radius: 8px;
  background: transparent;
  color: var(--landing-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 900px) {
  .profiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profiles-catalog-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .profiles-intro,
  .profiles-summary,
  .profiles-tools,
  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .profiles-tools {
    grid-template-areas:
      "search"
      "sort"
      "results";
    gap: 16px;
  }

  .profiles-results {
    text-align: left;
  }

  .profiles-summary > div {
    min-height: 108px;
  }

  .profiles-catalog {
    padding-bottom: 76px;
  }

  .profile-card {
    min-height: 108px;
  }
}
