@layer components {
  .hack-partners {
    max-width: 48rem;
    margin: clamp(3rem, 7vw, 5rem) auto 0;
    padding-top: clamp(2rem, 5vw, 3rem);
    border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  }

  .hack-partners > h3 {
    margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
  }

  .hack-partners__groups {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3rem);
  }

  .hack-partners__group {
    min-width: 0;
  }

  .hack-partners__label {
    margin: 0 0 1.25rem;
    color: color-mix(in srgb, currentColor 58%, transparent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
  }

  .hack-partners__logos {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(2rem, 7vw, 4.5rem);
    align-items: center;
    justify-content: center;
  }

  .hack-partners__logo {
    display: grid;
    width: min(100%, 12.5rem);
    min-height: 4rem;
    place-items: center;
  }

  .hack-partners__logo img {
    display: block;
    width: 100%;
    max-height: 4.75rem;
    object-fit: contain;
  }

  .hack-partners__group:first-child .hack-partners__logo {
    width: min(100%, 11.5rem);
  }

  @media (max-width: 700px) {
    .hack-partners__logo {
      width: min(40vw, 11rem);
    }
  }
}
