/* Importujemy bazowe style, żeby nie dublować kodu (opcjonalnie) */
/* Jeśli nie chcesz importować, skopiuj tutaj resztę stylów z mezoterapia.css */

.mezoterapia-container {
  position: relative;
  width: 100%;
  top: 75px;
}

.mezo-title {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  position: relative;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.mezo-title h1 {
  font-size: 36px;
  font-weight: 400;
  position: relative;
  margin: 0;
  font-family: "Raleway", sans-serif;
  text-align: center;
}

.mezo-title p {
  font-family: sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 11px;
  color: rgb(12, 77, 56);
  margin-top: 10px;
}

.mezo-title::before {
  content: "";
  background: url(/images/PTAKI\ LICENCJA.png);
  background-size: cover;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
  position: absolute;
  opacity: 0.4;
}

.mezo-text {
  margin-top: 25px;
  width: 1200px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Raleway", sans-serif;
}

/* masaz_hadado.html laduje dodatkowo akupunktura.css, ktory doklada
   padding-bottom: 100px na kontenerze i na .mezo-text. Zerujemy oba, zeby
   odstep pod przeciwwskazaniami byl taki sam jak na pozostalych podstronach
   z tym ukladem. Selektory musza byc bardziej szczegolowe, bo akupunktura.css
   laduje sie pozniej. */
body .mezoterapia-container {
  padding-bottom: 0;
}

.mezoterapia-container .mezo-text {
  padding-bottom: 0;
  /* zamyka kontekst formatowania, zeby margines ostatniej sekcji nie
     wyciekal poza kontener (dzieje sie tak na mobile, gdy .mezo-text
     wraca do normalnego przeplywu) */
  display: flow-root;
}

.mezo-text span {
  color: rgb(84, 178, 149);
  font-weight: bold;
}

.first-paragraph {
  line-height: 30px;
}

.second-paragraph {
  display: flex;
  margin-top: 70px;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 30px;
  gap: 100px;
}

.second-paragraph h2 {
  color: rgb(84, 178, 149);
}

.second-paragraph img {
  width: 400px;
  border-radius: 5px;
}

.third-paragraph {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 100px;
  line-height: 30px;
  gap: 100px;
}

.third-paragraph.single-column {
  grid-template-columns: 1fr;
}

.third-paragraph .right-column,
.left-column {
  border: 1px solid rgb(145, 222, 198);
  border-radius: 5px;
  box-shadow: 2px 2px 16px rgb(168, 234, 213);
  padding: 20px;
}

.third-paragraph h2 {
  margin-bottom: 30px;
  color: rgb(84, 178, 149);
  margin-left: 40px;
}

/* Podpis pod naglowkiem kolumny - wyrownany do naglowka, nie do krawedzi karty.
   Druga regula dotyczy masaz_hadado.html, ktory laduje tez akupunktura.css
   centrujacy ten podpis przez display:flex - wyrownujemy go jak na reszcie. */
.third-paragraph .column-lead {
  margin-left: 40px;
}

.third-paragraph .right-column p {
  display: block;
  margin-left: 40px;
}

.third-paragraph ul {
  list-style: none;
  padding-left: 0;
}

.third-paragraph ul li {
  position: relative;
  padding-left: 60px;
  margin-bottom: 20px;
}

.third-paragraph ul li::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 6px;
  width: 20px;
  height: 20px;
  background-image: url(/images/diamond-icon.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* --- NOWY STYL CZWARTEGO AKAPITU --- */
.forth-paragraph {
  margin-top: 120px;
  padding: 40px;
  background-color: rgba(145, 222, 198, 0.05); /* Bardzo delikatne tło */
  border-left: 4px solid rgb(84, 178, 149); /* Akcent boczny zamiast ramki wokół */
  line-height: 1.8;
  margin-bottom: 30px;
}

.forth-paragraph h2 {
  color: rgb(12, 77, 56);
  font-size: 28px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.forth-paragraph ul {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Lista w dwóch kolumnach dla elegancji */
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.forth-paragraph ul li {
  padding-left: 30px;
  position: relative;
}

.forth-paragraph ul li::before {
  content: "✦"; /* Elegancki symbol zamiast obrazka dla odmiany */
  position: absolute;
  left: 0;
  color: rgb(84, 178, 149);
  font-size: 18px;
}

.duration-info {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed rgb(145, 222, 198);
  font-style: italic;
  color: rgb(12, 77, 56);
}

/* --- MEDIA QUERIES --- */

@media (max-width: 1250px) {
  .mezo-text {
    width: 800px;
  }
}

@media (max-width: 860px) {
  .mezo-text {
    width: 90%;
  }

  .forth-paragraph {
    padding: 25px;
  }

  .forth-paragraph ul {
    grid-template-columns: 1fr; /* Na komórkach jedna kolumna */
  }

  .third-paragraph {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .third-paragraph h2 {
    margin-left: 0;
  }

  .third-paragraph .column-lead {
    margin-left: 0;
  }

  .third-paragraph .right-column p {
    margin-left: 0;
  }

  .third-paragraph ul li {
    padding-left: 30px;
  }

  .third-paragraph ul li::before {
    left: 3px;
  }

  .second-paragraph {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .second-paragraph img {
    width: 100%;
    max-width: 350px;
  }
}
