.work-index {
  width: min(1480px, calc(100% - 2 * clamp(16px, 4vw, 64px)));
  margin-inline: auto;
  padding-block: clamp(28px, 5vw, 72px) clamp(42px, 6vw, 90px);
}

.work-index__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: clamp(20px, 3.5vw, 44px);
}

.work-index__header h1 {
  margin: 0 0 10px !important;
  font-size: clamp(31px, 4vw, 58px) !important;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.work-index__header p { margin: 0; max-width: 55ch; color: #526059; }
.work-index a.work-index__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 17px;
  white-space: nowrap;
}

.work-index__brands {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-index__brands li { min-width: 0; }
.work-index__brands a {
  display: grid;
  grid-template-rows: clamp(76px, 9vw, 128px) minmax(2.6em, auto);
  align-items: center;
  justify-items: center;
  gap: 7px;
  height: 100%;
  padding: 9px 4px 4px;
  border-radius: 6px;
  color: #27362f;
  text-align: center;
  font-size: clamp(12px, 1.15vw, 16px);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.work-index__brands img {
  display: block;
  width: min(100%, 134px);
  height: 100%;
  object-fit: contain;
}
.work-index__brands a:hover span { color: var(--green-dark); text-decoration: underline; text-underline-offset: 4px; }
.work-index__brands a:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }

@media (max-width: 1140px) {
  .work-index__brands { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .work-index__brands { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .work-index__brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.works-brand { width: min(1370px, calc(100% - 40px)); margin: 48px auto 72px; }
.works-brand h1 { margin: 16px 0 24px; }
.works-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 24px; }
.works-brand-grid a { display: grid; align-content: start; gap: 10px; }
.works-brand-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.works-brand-pages { display: flex; justify-content: center; gap: 20px; margin-top: 32px; }
