.credit {
  color: white;
  background: linear-gradient(to bottom,#2C4545, #112929, #112929,#112929, #2C4545); 
  padding: 60px 15px;
  overflow: hidden;  
  position: relative;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.credit-bg {
  position: absolute;
  bottom: -300px;
  right: -320px;
  width: 100%;
  height: 100%;
  object-fit: cover; /* картинка розтягується */
  opacity: 0.2; /* якщо треба трохи затемнити */
  z-index: 0; /* фон під контентом */
}

.credit-bg-2 {
  position: absolute;
  top: -300px;
  left: 0px;
  width: 500px;
  height: 500px;
  object-fit: cover; /* картинка розтягується */
  opacity: 0.85; /* якщо треба трохи затемнити */
  z-index: 0; /* фон під контентом */
}

.credit-bg-3 {
  position: absolute;
  bottom: 150px;
  left: -150px;
  width: 600px;
  height: 600px;
  object-fit: cover; /* картинка розтягується */
  opacity: 0.25; /* якщо треба трохи затемнити */
  z-index: 0; /* фон під контентом */
}

.credit-title {
  z-index: 3;
  font-size: 50px;
  line-height: 1.75;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  height: 147px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-image: url(../images/credit.png.webp);
  background-position: center;
  background-size: 700px 140px;
  background-repeat: no-repeat;
  margin-bottom: 20px;
  position: relative;
}

.credit-text {
  z-index: 3;
  font-size: 24px;
  line-height: 1.75;
  font-weight: 400;
  text-transform: uppercase;
  text-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin-top: 10px;
  position: relative;
  z-index: 5;
}

.credit-subtitle {
  z-index: 3;
  font-size: 26px;
  line-height: 1.75;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  color: #87e37b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 830px;
  margin: 30px 0;
  position: relative;
  z-index: 5;
}

.credit-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1000px;
  position: relative;
  z-index: 5;
}

.credit-card {
  position: relative;
  z-index: 5;
  max-width: 230px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 30px;
  text-transform: uppercase;
  text-align: center;

  >img {
    margin-bottom: 8px;
    width: 50px;
  }
}

.credit-card-title {
  color: white;
  font-size: 24px;
}


@media (max-width: 960px) {
  .credit-bg {
    bottom: -300px;
    right: 0px;
  }
  
  .credit-bg-2 {
    position: absolute;
    bottom: -100px;
    left: 0px;
    width: 500px;
    height: 500px;
  }
  
  .credit-bg-3 {
    position: absolute;
    top: 150px;
    left: -150px;
    width: 600px;
    height: 600px;
    object-fit: cover; /* картинка розтягується */
    opacity: 0.25; /* якщо треба трохи затемнити */
    z-index: 0; /* фон під контентом */
  }
  
}

@media (max-width: 720px) {
  .credit-title {
    font-size: 40px;
    background-size: contain;
    background-position: bottom;
  }

  .credit-text {
    font-size: 18px;
  }

  .credit-subtitle {
    font-size: 28px; 
  }
}

