.tyre-brands {
  color-scheme: light;
  color: #211d27;
  background: #faf9fc;
  border-block: 1px solid #e5e1e8;
  padding-block: clamp(20px, 2.5vw, 36px);
}
.tyre-brands__heading {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 32px);
  margin-bottom: 12px;
}
.tyre-brands__heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dcd6e2;
}
.tyre-brands__heading h2 {
  margin: 0;
  color: #27232c;
  font: 600 clamp(1.18rem, 2.1vw, 1.72rem)/1.22 var(--heading);
  letter-spacing: -.045em;
  text-transform: none;
}
.tyre-brands__heading strong { color: #613a80; font-weight: 750; }
.tyre-brands__toggle {
  display: none;
  order: 1;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #4c4156;
}
.tyre-brands__toggle:hover { background: #eeeaf2; }
.tyre-brands__toggle:focus-visible { outline: 2px solid #724898; outline-offset: 1px; }
.tyre-brands__toggle svg { width: 32px; height: 32px; }
.tyre-brands__toggle .play, .tyre-brands__toggle[aria-pressed="true"] .pause { display: none; }
.tyre-brands__toggle[aria-pressed="true"] .play { display: block; }
.tyre-brands__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.tyre-brands__list li { display: grid; place-items: center; min-height: 52px; }
.tyre-brands__list img {
  display: block;
  width: min(var(--logo-width), 85%);
  height: auto;
  max-height: 43px;
  object-fit: contain;
}
.tyre-brands__list[aria-hidden] { display: none; }
@keyframes tyre-brands-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: no-preference) {
  .tyre-brands[data-animated] .tyre-brands__toggle { display: grid; }
  .tyre-brands[data-animated] .tyre-brands__window {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 min(4%, 36px), #000 calc(100% - min(4%, 36px)), transparent);
  }
  .tyre-brands[data-animated] .tyre-brands__track { display: flex; }
  .tyre-brands[data-animated] .tyre-brands__list {
    display: flex;
    flex: none;
    min-width: 100%;
    gap: 0;
    justify-content: space-around;
    animation: tyre-brands-scroll 34s linear infinite;
  }
  .tyre-brands[data-animated] li { width: clamp(155px, 15.5vw, 215px); padding-inline: 12px; }
  .tyre-brands[data-paused] .tyre-brands__list { animation-play-state: paused; }
}
@media (max-width: 620px) {
  .tyre-brands { padding-block: 10px; }
  .tyre-brands__heading { justify-content: space-between; margin-bottom: 2px; }
  .tyre-brands__heading::after { display: none; }
  .tyre-brands__heading h2 { font-size: .95rem; letter-spacing: -.03em; }
  .tyre-brands__toggle { flex-basis: 36px; width: 36px; height: 36px; }
  .tyre-brands__toggle svg { width: 26px; height: 26px; }
  .tyre-brands__list li { min-height: 38px; }
  .tyre-brands__list img { max-height: 24px; width: min(calc(var(--logo-width) * .8), 85%); }
  .tyre-brands[data-animated] li { width: 122px; padding-inline: 10px; }
}
@media print {
  .tyre-brands[data-animated] .tyre-brands__window { mask-image: none; }
  .tyre-brands[data-animated] .tyre-brands__list { display: grid; animation: none; }
  .tyre-brands[data-animated] .tyre-brands__track { display: block; }
  .tyre-brands[data-animated] li { width: auto; }
  .tyre-brands[data-animated] .tyre-brands__list[aria-hidden], .tyre-brands[data-animated] .tyre-brands__toggle { display: none; }
}
