.marmaduke-brands {
  --marmaduke-accent: #00d9e2;
  --marmaduke-border: #e8e2ef;
  margin: 0 auto;
  max-width: 1400px;
  padding: clamp(24px, 5vw, 72px) 20px;
}

.marmaduke-brands__index {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}

.marmaduke-brands__index a,
.marmaduke-brands__index span {
  align-items: center;
  border: 1px solid var(--marmaduke-border);
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  height: 36px;
  justify-content: center;
  text-decoration: none;
  width: 36px;
}

.marmaduke-brands__index a:hover,
.marmaduke-brands__index a:focus-visible {
  background: var(--marmaduke-accent);
  border-color: var(--marmaduke-accent);
  color: #fff;
}

.marmaduke-brands__index span {
  opacity: .35;
}

.marmaduke-brands__group {
  scroll-margin-top: 120px;
}

.marmaduke-brands__group > h2 {
  border-bottom: 1px solid var(--marmaduke-border);
  margin: 48px 0 24px;
  padding-bottom: 12px;
}

.marmaduke-brands__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.marmaduke-brand-card {
  margin: 0;
  min-width: 0;
}

.marmaduke-brand-card > a,
.marmaduke-brand-card > span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--marmaduke-border);
  border-radius: 14px;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  min-height: 190px;
  padding: 20px 14px 16px;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.marmaduke-brand-card > a:hover,
.marmaduke-brand-card > a:focus-visible {
  border-color: var(--marmaduke-accent);
  box-shadow: 0 12px 32px rgba(74, 46, 95, .12);
  transform: translateY(-3px);
}

.marmaduke-brand-card__logo {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  width: 100%;
}

.marmaduke-brand-card__logo img {
  height: 110px;
  max-width: 100%;
  object-fit: contain;
  width: 140px;
}

.marmaduke-brand-card__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 14px;
}

.marmaduke-brand-placeholder {
  align-items: center;
  background: #f5f0fb;
  border-radius: 50%;
  color: var(--marmaduke-accent);
  display: inline-flex;
  font-size: 42px;
  font-weight: 700;
  height: 96px;
  justify-content: center;
  width: 96px;
}

@media (max-width: 600px) {
  .marmaduke-brands__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marmaduke-brand-card > a,
  .marmaduke-brand-card > span {
    min-height: 170px;
  }
}
