.services__slide[tradein] {
  --services-bg: url(../../img/services/tradein.webp);
}
.services__slide[credit] {
  --services-bg: url(../../img/services/credit.webp);
}
.services__slide[ransom] {
  --services-bg: url(../../img/services/ransom.webp);
}
.services__slide[lizing] {
  --services-bg: url(../../img/services/lizing.webp);
}
.services__slide[comission] {
  --services-bg: url(../../img/services/comission.webp);
}
.services__slide[insurance] {
  --services-bg: url(../../img/services/insurance.webp);
}

.services {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  align-items: center;
}
.services__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000000;
  gap: 12px;
}
.services__heading h3 {
  font-size: 20px;
  line-height: 105%;
  font-weight: 400;
}
.services__heading p {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  text-align: center;
}
@media (min-width: 1200px) {
  .services {
    gap: 30px;
    margin-top: 72px;
  }
  .services__heading {
    gap: 20px;
  }
  .services__heading h3 {
    font-size: 35px;
  }
  .services__heading p {
    font-size: 20px;
    line-height: 24px;
  }
}

.services__slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}
.services__slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: 4px 0;
  margin: 0;
}
.services__slider::-webkit-scrollbar {
  display: none;
}

.services__slide {
  flex: 0 0 auto;
  box-sizing: border-box;
  background: var(--services-bg), #f6f6f6;
  background-size: 100%;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  padding: 22px 11px;
  color: #000000;
  width: 227px;
  height: 153px;
  scroll-snap-align: start;
}
.services__slide h4 {
  font-size: 16px;
  line-height: 120%;
  font-weight: 500;
}
.services__slide p {
  max-width: 116px;
  margin-top: 8px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 400;
  flex-grow: 1;
}
.services__slide a[button] {
  background: #f90000;
  font-size: 10px;
  line-height: 11px;
  height: 24px;
  font-weight: 400;
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 999px;
  margin-top: auto;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.credit-modal__input-wrapper {
  margin-bottom: 16px;
}


@media (min-width: 1200px) {
  .services__slide a[button] {
    font-size: 14px;
    line-height: 24px;
    height: 34px;
  }
  .services__slider {
    padding: 4px 0;
    margin: 0;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .services__slide {
    width: 369px;
    height: 240px;
    padding: 24px;
  }

  .services__slide h4 {
    font-size: 20px;
  }

  .services__slide p {
    font-size: 14px;
    line-height: 18px;
    max-width: 140px;
  }

  .services__slide button {
    font-size: 12px;
    padding: 6px 20px;
  }

  .services__slider {
    gap: 20px;
  }
}
