.references .wrap {
  position: relative;
  padding-block: 26px 17px;
  border-bottom: 1px solid #dbd1c3;
}

.references .ref-heading {
  margin: 0 44px 6px;
  color: #86612f;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

.ref-toggle {
  position: absolute;
  top: 16px;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #86612f;
  cursor: pointer;
}

.ref-toggle[hidden] { display: none; }

.ref-toggle:hover,
.ref-toggle:focus-visible {
  background-color: #efe6d9;
}

.ref-toggle::before {
  box-sizing: content-box;
  width: 3px;
  height: 9px;
  border-inline: 2px solid currentColor;
  content: "";
}

.references[data-paused] .ref-toggle::before {
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 5px 0 5px 8px;
  border-left-color: currentColor;
}

.ref-window {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ref-window:focus-visible,
.ref-toggle:focus-visible {
  outline: 2px solid #86612f;
  outline-offset: 2px;
}

.ref-track {
  width: max(100%, 780px);
}

.ref-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.ref-group li {
  display: grid;
  grid-template-rows: minmax(125px, auto) auto;
  justify-items: center;
  align-items: center;
  gap: 3px;
  padding-inline: 4px;
  scroll-snap-align: start;
  text-align: center;
}

.ref-group img {
  display: block;
  width: 100%;
  height: 108px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ref-group .ref-oliveri { max-width: 132px; }
.ref-group .ref-lydex { max-width: 156px; }
.ref-group .ref-dar { width: 75px; height: 87px; }

.ref-logo {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.ref-name {
  font-size: clamp(20px, 2vw, 23px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.ref-place {
  color: #5b534b;
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 720px) {
  .references .wrap { padding-block: 17px 11px; }
  .references .ref-heading { font-size: 10px; letter-spacing: .12em; }
  .ref-toggle { top: 6px; right: -4px; }
  .ref-track { width: clamp(650px, 200%, 780px); }
  .ref-group li { grid-template-rows: minmax(62px, auto) auto; padding-inline: 1px; }
  .ref-group img { height: 60px; }
  .ref-group .ref-oliveri { max-width: 80px; }
  .ref-group .ref-lydex { max-width: 93px; }
  .ref-group .ref-dar { width: 44px; height: 43px; }
  .ref-logo { gap: 2px; font-size: 11px; }
  .ref-name { font-size: clamp(14px, 4vw, 17px); }
  .ref-place { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ref-toggle { display: none; }
}
