body{
  background-image: url(zbiornik3.jpg);
  background-attachment: fixed;
  background-size: cover;
}

.zbiornik {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 400px;
  background: rgba(0,0,0,0.4);
  text-align: center;
  color: white;
  padding: 0 20px;
}

.zbiornik h1 { 
  font-size: 50px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.zbiornik p { 
  font-size: 20px;
  max-width: 700px;
  line-height: 1.4; 
}

/* SEKCJA O NAS */
.about-section {
  padding: 60px 20px;
  background-color: #f5f7fa;
  color: #002d4f;
}

.about-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  margin-bottom: 0;       /* usuwa zbędną przerwę na dole sekcji */
  padding-bottom: 0;      /* redukuje dodatkowy odstęp */
}

.with-image {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.about-text {
  flex: 1 1 500px;
  max-width: 600px;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 20px;
  line-height: 1.6;
}

.about-values {
  margin-top: 20px;
  margin-bottom: 0;       /* kluczowe: usuwa nadmiarowy margines pod listą */
  list-style: none;
  padding-left: 0;
}

.about-values li {
  font-size: 18px;
  margin-bottom: 10px;
}

.about-values li:last-child {
  margin-bottom: 0;       /* usuwa margines ostatniego elementu listy */
}

.about-photo {
  flex: 1 1 300px;
  max-width: 500px;
}

.about-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.about-bottom-photo {
  max-width: 1100px;
  margin: 10px auto 0 auto;  /* minimalny margines nad zdjęciem, brak przerwy pod listą */
}

.about-bottom-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* SEKCJA NASZA ZAŁOGA */
.crew-section {
  padding: 60px 20px;
  background-color: #002d4f;
  color: #fff;
}

.crew-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.crew-wrapper h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.crew-wrapper p {
  font-size: 20px;
  margin-bottom: 40px;
}

.crew-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.crew-card {
  background: #fff;
  color: #002d4f;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 250px;
  overflow: hidden;
  text-align: center;
}

.crew-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.crew-info {
  padding: 20px;
}

.crew-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.crew-info p {
  font-size: 18px;
  color: #555;
}



/*RESPONSYWNOSC*/
@media (max-width: 1024px) {
  .about-text h2 {
    font-size: 32px;
  }
  .about-text p,
  .crew-wrapper p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .zbiornik h1 {
    font-size: 36px;
  }
  .zbiornik p {
    font-size: 18px;
  }
  .with-image {
    flex-direction: column;
    text-align: center;
  }

  .crew-cards {
    flex-direction: column;
    align-items: center;
  }

  .crew-card img {
    height: 200px;  /* zmniejsza wysokość zdjęć załogi na mobile */
  }

  .about-bottom-photo {
    margin-top: 0;         /* usuwa przerwę od góry */
    padding-top: 0;        /* usuwa ewentualny padding */
  }

  .about-wrapper > *:last-child {
    margin-bottom: 0;      /* usuwa dolny margines ostatniego dziecka w sekcji tekstowej */
  }

  .about-bottom-photo img {
    height: 200px;         /* zmniejsza wysokość zdjęcia w sekcji O nas */
    object-fit: cover;     /* zachowuje proporcje i wypełnia przestrzeń */
    width: 100%;           /* pełna szerokość dla responsywności */
    margin-top: 0;         /* usuwa ewentualny margines od góry */
  }
}

@media (max-width: 480px) {
  .zbiornik h1 {
    font-size: 28px;
  }
  .zbiornik p {
    font-size: 16px;
  }
  .with-image {
    flex-direction: column;
    text-align: center;
  }
  .crew-cards {
    flex-direction: column;
    align-items: center;
  }
  .crew-card img {
    height: 150px !important;  /* mniejsze zdjęcia załogi na bardzo małych ekranach */
  }
  .about-bottom-photo {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .about-wrapper > *:last-child {
    margin-bottom: 0 !important;
  }
  .about-bottom-photo img {
    height: 150px !important;  /* zmniejszenie zdjęcia w sekcji O nas */
    object-fit: cover;
    width: 100%;
    margin-top: 0 !important;
  }
  .about-text h2 {
    font-size: 20px !important;  /* mniejsze nagłówki */
  }
  .about-text p {
    font-size: 14px !important;  /* mniejszy tekst w opisie */
  }
  .crew-info h3 {
    font-size: 16px !important;  /* mniejsze imię/nazwisko w kartach */
  }
  .crew-info p {
    font-size: 13px !important;  /* mniejsze opisy w kartach */
  }
  .about-section {
    padding-bottom: 0 !important;     /* usuwa dodatkową przestrzeń na dole sekcji O nas */
  }
}
