.yatbt-brands-showcase {
  padding-block: clamp(76px, 8vw, 124px);
  color: var(--yatbt-section-text, #1f4b2c);
  background: var(--yatbt-section-background, #fff);
}

.yatbt-brands-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  align-items: end;
  gap: clamp(34px, 6vw, 96px);
  margin: 0 0 clamp(40px, 5vw, 68px);
  padding-bottom: clamp(28px, 3vw, 42px);
  border-bottom: 1px solid color-mix(in srgb, var(--yatbt-section-text, #1f4b2c) 14%, transparent);
}

.yatbt-brands-heading h2 {
  max-width: 680px;
  margin: 0;
  color: inherit;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.yatbt-brands-heading > p:last-child {
  max-width: 680px;
  margin: 0;
  justify-self: end;
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: clamp(18px, 1.3vw, 21px);
  line-height: 1.7;
}

.yatbt-brands-grid {
  display: grid;
  gap: clamp(14px, 1.6vw, 24px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.yatbt-brand-card {
  min-width: 0;
}

.yatbt-brand-card__inner {
  display: flex;
  min-height: 235px;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 2.2vw, 34px);
  border: 1px solid color-mix(in srgb, var(--yatbt-section-text, #1f4b2c) 11%, transparent);
  border-radius: 18px;
  color: inherit;
  background: #fff;
  box-shadow: 0 12px 34px rgb(31 75 44 / 5%);
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.yatbt-brand-card__logo {
  display: grid;
  width: 100%;
  min-height: 132px;
  place-items: center;
}

.yatbt-brand-card__logo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 132px;
  object-fit: contain;
}

.yatbt-brand-card__logo span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  color: #1f4b2c;
  background: color-mix(in srgb, var(--yatbt-section-accent, #97ce73) 32%, #fff);
  font-size: 34px;
  font-weight: 750;
}

.yatbt-brand-card h3 {
  margin: 0;
  color: inherit;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: .01em;
}

.yatbt-brands-empty {
  padding: 32px;
  border: 1px dashed color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 18px;
  text-align: center;
}

@media (max-width: 1180px) {
  .yatbt-brands-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .yatbt-brands-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .yatbt-brands-heading > p:last-child {
    justify-self: start;
  }

  .yatbt-brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .yatbt-brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yatbt-brand-card__inner {
    min-height: 185px;
    padding: 20px 16px;
  }

  .yatbt-brand-card__logo,
  .yatbt-brand-card__logo img {
    max-height: 102px;
  }
}
