/* ================== RESET & BAZOWE STYLES ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.5px;
  word-spacing: 1px;
  color: #333;
  background-color: #f9f9f9;
}

/* ================== TYTUŁ / NAGŁÓWEK STRONY ================== */
.title_adaptacja {
  width: 100%;
  height: auto;
  margin-top: 60px;
  padding: 10px;
  text-align: center;
  font-size: 32px;
}

.line_adaptacja {
  width: 100%;
  height: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.line_30 {
  width: 15%;
  height: 4px;
  background-color: #4aa3df;
  margin-top: 10px;
}

/* ================== SEKCJE (ROW) ================== */
.row_1 {
  height: 100vh;
  display: flex;
  background-color: #8fc2e4;
}

.row_2 {
  display: flex;
  background-color: #e9dd3a;
  position: relative;
  top: -150px;
  height: 100vh;
}

.row_3 {
  display: flex;
  background-color: #9ff178;
  position: relative;
  top: -320px;
  height: 100vh;
}

/* ================== EFEKTY CIĘĆ (CUT-UP, CUT-DOWN) ================== */
/* --- ZACHOWUJEMY TE SAME KSZTAŁTY CO W PIERWOTNYM KODZIE --- */
.cut-up_row_1 {
  height: 100px;
  position: relative;
  top: 80px;
  background-color: #ffffff;
  clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 20%);
  z-index: 100;
}
.cut-down_row_1 {
  height: 100px;
  position: relative;
  background-color: #ffffff;
  clip-path: polygon(100% 20%, 0% 100%, 100% 100%);
  z-index: 100;
  top: -100px;
}

.cut-up_row_2 {
  height: 100px;
  position: relative;
  top: -50px;
  background-color: #ffffff;
  clip-path: polygon(0 0, 0 100%, 100% 0);
  z-index: 100;
}
.cut-down_row_2 {
  height: 100px;
  position: relative;
  background-color: #ffffff;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  z-index: 100;
  top: -250px;
}

.cut-up_row_3 {
  height: 100px;
  position: relative;
  top: -220px;
  background-color: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: 100;
}
.cut-down_row_3 {
  height: 100px;
  position: relative;
  background-color: #ffffff;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 100;
  top: -420px;
}

/* ================== UKŁAD WEWNĄTRZ SEKCJI ================== */
.space {
  width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.space img {
  height: 60%;
  width: 80%;
  padding: 10px;
  margin-top: 40px;
}

.space-2 img {
  transform: scaleX(-1);
}

.cloud-box {
  width: 70%;
  margin: 0 auto;
  background: url("/img/chmurka2.png") no-repeat center/contain;
  min-height: 800px;
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cloud-box p {
  width: 80%;
  margin: 0 auto;
  font-size: 16px;
  color: #333;
  padding: 40px 100px 40px 100px;
  margin: 120px 0 0 50px;
}

/* ================== MEDIA QUERY - MOBILE ================== */
@media screen and (max-width: 768px) {
  /* Sekcje: zmniejszamy wysokość i przesunięcie, aby uniknąć nakładania */
  .row_1, .row_2, .row_3 {
    height: auto;
  }
  .row_2 {
    top: -50px;
  }
  .row_3 {
    top: -100px;
  }

  /* Cięcia: zmniejszamy wysokość i korygujemy top */
  .cut-up_row_1,
  .cut-down_row_1,
  .cut-up_row_2,
  .cut-down_row_2,
  .cut-up_row_3,
  .cut-down_row_3 {
    height: 60px; /* można dostosować w zależności od potrzeb */
  }

  .cut-up_row_1 {
    top: 40px;
  }
  .cut-down_row_1 {
    top: -60px;
  }

  .cut-up_row_2 {
    top: -30px;
  }
  .cut-down_row_2 {
    top: -120px;
  }

  .cut-up_row_3 {
    top: -100px;
  }
  .cut-down_row_3 {
    top: -180px;
  }

  /* Dostosowanie szerokości i wysokości obrazków, chmurek, tekstu */
  .space {
    width: 100%;
  }
  .space img {
    width: 60%;
    margin-top: 20px;
  }
  .cloud-box {
    width: 100%;
    min-height: 400px; /* zmniejszone z 800px */
  }
  .cloud-box p {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    font-size: 14px;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
.mobile-menu.active {
  display: block;
  opacity: 1;
}
.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 80px 20px 20px;
  text-align: center;
}
.mobile-menu-list a {
  text-decoration: none;
  font-size: 24px;
  color: #333;
  transition: color 0.3s;
}
.mobile-menu-list a:hover {
  color: #ffdd57;
}

/* Blokada scrollowania tła */
.no-scroll {
  overflow: hidden;
}

