body {
  animation-name: opacityCon;
  animation-duration: 1s;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

@keyframes opacityCon {
  from {
    opacity: 0;
  }

  to {
    opacity: 75%;
  }
}


#services {
  padding: 5rem 2rem;

  margin: auto;
  color: white;
}

#services-menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  background-color: rgb(238, 238, 238);
  color: black;
  padding: 0.5rem 0;
  justify-content: center;

}

#services-menu li {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
  font-weight: 200;

}

#services-menu li:hover,
#services-menu li.active {
  text-decoration: underline;

}

#service-content {
  max-width: 1050px;
  margin: auto;
}

#service-content h2 {
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 3rem;

}

#service-content hr {
  border: none;
  border-top: 1px solid #cccccc2a;
  margin: 2rem 0;
}

#service-content .subheader {
  font-style: italic;
  margin-bottom: 1rem;
}

#service-content .images-row {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

#service-content .images-row .card {
  text-align: center;
  flex: 1;
}

#service-content .images-row img {
  width: 100%;
  max-width: 200px;
  margin: auto;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

#service-content .full-image {
  margin: 1rem 0;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

#service-content h3 {
  font-weight: 200;
  margin-top: 1rem;
  color: rgba(245, 245, 245, 0.631)
}

#service-content p {
  max-width: 450px;
  font-weight: 200;
  color: rgba(245, 245, 245, 0.631);
}

#service-content ul {
  list-style: disc inside;

}

#service-content li {
  font-weight: 200;
  color: rgba(245, 245, 245, 0.631);
}

#service-content .for-whom {
  list-style: none;
  padding: 0;
}

#service-content .for-whom li::before {
  content: "✔";
  margin-right: 0.5rem;
  color: green;
}

.white{
  color: white;
}

.menuP{
  color: white;
}


/* opakowanie listy + przyciski */
.services-wrapper {
  position: relative;

}

/* ukrywamy scrollbar na desktopie */
#services-menu {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  list-style: none;
  justify-content: center;
}

/* strzałki */
.scroll-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0);
  padding: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
  color: white;
}



#scroll-left  { left: -2rem; }
#scroll-right { right: -2rem; }



/* ===== MOBILNE: poziome scroll + scroll-snap dla #services-menu ===== */
@media (max-width: 768px) {
.scroll-btn{
display: block;
}

  #services-menu {
    /* wyłącz center, zaczynamy od lewej */
    justify-content: flex-start !important;

    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    border-radius: 25px;
  }
  #services-menu li {
    flex: 0 0 auto;
    scroll-snap-align: center;
    white-space: nowrap;
  }
  #services-menu::-webkit-scrollbar {
    display: none;
  }
}
