.services-section {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  margin: -2rem auto 6rem;
  max-width: 2200px;
  padding: 0 2rem;
}

.service-item {
  display: flex;
  flex-direction: row;
  position: relative;
  min-height: 500px;
  width: 100%;
  margin: 2rem auto;
  transition: transform 0.3s ease;
  justify-content: space-between;
}

.service-header {
  display: flex;
  justify-content: center;
}

.service-header h1 {
  margin: 1rem 0;
  font-size: 6rem;
}

.service-text {
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  height: auto;
  margin-bottom: 2rem;
}


.service-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #111;
}

.service-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.service-image {
  width: 55%;
  margin: 2rem auto 0;
  background-color: #e0e0e0;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-picture {
  display: block;
  width: 100%;
}

.service-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.b2 {

}

@media screen and (max-width: 768px) {
  .service-item {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    padding: 1rem 0;
    min-height: 300px;
  }

  .service-item.reverse {
    flex-direction: column-reverse;
    justify-content: flex-end;
  }

  .service-image,
  .service-text {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    height: auto;
  }

  .service-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .services-section {
    gap: 3rem;
    padding: 0 1rem;
  }

  .service-header h1 {
    font-size: 3rem;
  }

  .service-text h2 {
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem 0;
  }

  .service-text p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .b2{
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
    height: 0.5rem;
    background-color: #131313cc;
    margin-top: 2rem;
    margin-bottom: -4rem;
    }
}