.brand-slider {
  position: relative;
  margin-top: 40px;
  padding: 24px 0 40px;
  background: transparent;
}

.brand-slider__header {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.brand-slider__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 119, 101, 0.10);
  color: #007765;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-slider__headline {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-slider__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.22), rgba(30, 41, 59, 0));
}

.brand-slider__title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1;
  color: #1f2937;
}

.brand-slider__lead {
  max-width: 760px;
  font-size: 15px;
  color: #5b6470;
}

.brand-slider__shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0;
}

.brand-slider__viewport {
  overflow: hidden;
  padding: 4px 0;
}

.brand-slider__track {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  transform: translateX(0);
}

.brand-slider__item {
  flex: 0 0 clamp(210px, 19vw, 270px);
  min-height: 164px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 18px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f8 100%);
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand-slider__item:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 41, 55, 0.14);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}

.brand-slider__logo-wrap {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-slider__logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) saturate(0.1) contrast(1.05);
  opacity: 0.84;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.brand-slider__item:hover .brand-slider__logo-wrap img {
  filter: none;
  opacity: 1;
  transform: scale(1.02);
}

.brand-slider__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f3947;
}

.brand-slider__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.brand-slider__arrow:hover {
  background: #007765;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 119, 101, 0.22);
}

.brand-slider__arrow:hover,
.brand-slider__arrow:focus-visible {
  color: #ffffff;
}

.brand-slider__arrow:focus-visible {
  outline: 2px solid rgba(0, 119, 101, 0.30);
  outline-offset: 3px;
}

.brand-slider__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .brand-slider {
    margin-top: 28px;
    padding: 16px 0 28px;
  }

  .brand-slider__header {
    gap: 8px;
    margin-bottom: 18px;
  }

  .brand-slider__headline {
    gap: 12px;
  }

  .brand-slider__title {
    font-size: clamp(20px, 8vw, 32px);
  }

  .brand-slider__lead {
    font-size: 14px;
  }

  .brand-slider__shell {
    gap: 6px;
  }

  .brand-slider__arrow {
    width: 32px;
    height: 32px;
  }

  .brand-slider__arrow svg {
    width: 18px;
    height: 18px;
  }

  .brand-slider__item {
    flex-basis: clamp(170px, 65vw, 225px);
    min-height: 136px;
    gap: 12px;
    padding: 16px 12px 14px;
    border-radius: 18px;
  }

  .brand-slider__logo-wrap {
    min-height: 66px;
  }

  .brand-slider__name {
    font-size: 12px;
  }
}
