.bank-partners {
  width: calc(100% - 40px);
  height: 430px;
  margin-inline: 20px;
  padding-block: 44px;
  overflow: hidden;
  color: #121614;
  background: #f4f6f5;
  border: 1px solid rgba(244, 246, 244, 0.1);
}

.bank-partners__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 83px;
  padding-inline: 40px;
}

.bank-partners__header h2 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 38px;
  font-weight: 600;
  line-height: 41.04px;
  letter-spacing: -0.57px;
  text-transform: uppercase;
  white-space: nowrap;
}

.bank-partners__header h2 span:last-child {
  color: rgba(18, 22, 20, 0.55);
  font-weight: 400;
}

.bank-partners__header > p {
  width: 300px;
  margin: 0;
  color: rgba(18, 22, 20, 0.6);
  font-size: 14px;
  line-height: 22.4px;
}

.bank-partners__logos-wrap {
  width: 100%;
  height: 178px;
  padding: 34px 40px;
  overflow: hidden;
}

.bank-partners__logos-track {
  display: flex;
  width: 200%;
  height: 110px;
  overflow: hidden;
  background: rgba(18, 22, 20, 0.14);
  border-radius: 14px;
  animation: bank-partners-logos 24s linear infinite;
  will-change: transform;
}

.bank-partners__logos {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  flex: 0 0 50%;
  gap: 1px;
  width: 50%;
  height: 110px;
  overflow: hidden;
}

.bank-partners__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 20px;
  background: #fff;
}

.bank-partners__logo > img {
  display: block;
  max-width: 130px;
  max-height: 48px;
}

.bank-partners__logo-vtb {
  width: 106px;
  height: 36.899px;
}

.bank-partners__logo-alfa {
  width: 130px;
  height: 32.643px;
}

.bank-partners__logo-dom {
  width: 130px;
  height: 46.126px;
}

.bank-partners__logo-gazprom {
  width: 130px;
  height: 27.508px;
}

.bank-partners__logo-rshb {
  width: 130px;
  height: 26.442px;
}

.bank-partners__logo-sovcom {
  width: 130px;
  height: 16.744px;
}

.bank-partners__sber {
  display: flex;
  align-items: center;
  width: 129px;
  height: 36px;
}

.bank-partners__sber-icon {
  position: relative;
  width: 36.46px;
  height: 36px;
  flex: 0 0 36.46px;
  overflow: hidden;
}

.bank-partners__sber-fill {
  position: absolute;
  inset: 0;
  width: 36.46px;
  height: 36px;
  object-fit: cover;
}

.bank-partners__sber-ring {
  position: absolute;
  top: 0.59px;
  left: 0.59px;
  width: 35.295px;
  height: 34.811px;
}

.bank-partners__sber-check {
  position: absolute;
  top: 7.36px;
  left: 11.53px;
  width: 22.79px;
  height: 15.15px;
}

.bank-partners__sber-word {
  display: flex;
  align-items: center;
  gap: 3.29px;
  height: 22px;
  margin-left: 9.63px;
}

.bank-partners__sber-word img:nth-child(1) { width: 17.064px; height: 21.674px; }
.bank-partners__sber-word img:nth-child(2) { width: 18.874px; height: 20.951px; }
.bank-partners__sber-word img:nth-child(3) { width: 16.05px; height: 20.939px; }
.bank-partners__sber-word img:nth-child(4) { width: 18.104px; height: 20.964px; }

.bank-partners__ticker {
  width: 100%;
  height: 55px;
  margin-top: 26px;
  overflow: hidden;
  border-top: 1px solid rgba(18, 22, 20, 0.12);
  border-bottom: 1px solid rgba(18, 22, 20, 0.12);
}

.bank-partners__ticker-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: bank-partners-ticker 34s linear infinite;
  will-change: transform;
}

.bank-partners__ticker-track > div {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 100%;
}

.bank-partners__ticker-track span {
  padding-inline: 26px;
  color: rgba(18, 22, 20, 0.45);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.56px;
  white-space: nowrap;
}

@keyframes bank-partners-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes bank-partners-logos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .bank-partners__logos-wrap {
    overflow: hidden;
  }

  .bank-partners__logos-track {
    width: 2112px;
  }

  .bank-partners__logos {
    grid-template-columns: repeat(7, 150px);
    flex-basis: 1056px;
    width: 1056px;
  }
}

@media (max-width: 600px) {
  .bank-partners {
    height: auto;
    padding-top: 36px;
  }

  .bank-partners__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    height: auto;
    padding-inline: 20px;
  }

  .bank-partners__header h2 {
    font-size: 32px;
    line-height: 35px;
  }

  .bank-partners__header > p {
    width: 100%;
  }

  .bank-partners__logos-wrap {
    margin-top: 28px;
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bank-partners__ticker-track {
    animation-play-state: paused;
  }

  .bank-partners__logos-track {
    animation-play-state: paused;
  }
}
