.service-brand-list {
  padding: clamp(18px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.service-brand-list h2 {
  margin-bottom: clamp(18px, 3vw, 32px);
}

.service-brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-brand-grid li { min-width: 0; }

.service-brand-tile {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  height: 100%;
  padding: 12px 6px;
  border-radius: 10px;
  background: var(--bg);
  text-align: center;
}
.service-brand-tile:is(:hover, :focus-visible) {
  color: var(--accent);
  outline: 1px solid currentColor;
  text-decoration: none;
}

.service-brand-mark {
  display: grid;
  width: 60px;
  height: 44px;
  place-items: center;
  border-radius: 7px;
  background: #edf0ee;
}

.service-brand-mark img {
  display: block;
  width: 48px;
  height: 32px;
  object-fit: contain;
}

.service-brand-name {
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.service-brand-more {
  margin-top: 16px;
}

.service-brand-more summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.service-brand-more summary::-webkit-details-marker {
  display: none;
}

.service-brand-more summary::after {
  width: 7px;
  height: 7px;
  margin: 0 3px 4px 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  content: '';
}

.service-brand-more summary:hover {
  border-color: var(--line);
}

.service-brand-more summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.service-brand-more[open] summary::after {
  margin-bottom: -4px;
  transform: rotate(225deg);
}

.service-brand-more[open] .service-brand-grid {
  margin-top: 12px;
}

.service-brand-collapse,
.service-brand-more[open] .service-brand-expand {
  display: none;
}

.service-brand-more[open] .service-brand-collapse {
  display: inline;
}

@media (max-width: 850px) {
  .service-brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .service-brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .service-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
