* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
  
main {
  flex: 1;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #d2dae2;
  color: #333;
}

/* MENU */
header, footer {
  background: linear-gradient(135deg, #227093, #6cc5eb);
  padding: 15px 0;
}
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}
nav ul li {
  margin: 0 20px;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
nav ul li a.active,
nav ul li a:hover {
  text-decoration: underline;
}

/* DESCRIPTION */
.description {
  text-align: justify;
  padding: 40px 20px;
  background-color: #fff;
}
.description h1 {
  text-align: center;
  text-transform:uppercase;
  font-size: 2rem;
  margin-bottom: 15px;
}
.description p {
  max-width: 800px;
  margin: auto;
}

.description a {
  text-decoration: none;
  color: #b33939;
  font-weight: bold;
}

/* GALLERY */
.gallery {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 80px 30px 80px;
  background: linear-gradient(135deg, #227093, #89cbe8);
}

.gallery h2 {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
  font-size: 2rem;
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) ;
  gap: 15px;
}

/* Responsywność */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  cursor: pointer;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  object-fit: cover;
  background: #f0f0f0;
}
.gallery-item:hover {
  transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 30px;
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
  display: block;
  margin: auto;
  max-width: 95%;
  max-height: 95%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}
.lightbox-content.visible {
  opacity: 1;
}
.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.close:hover {
  color: #bbb;
}
.controls .prev,
.controls .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 40px;
  font-weight: bold;
  color: white;
  padding: 16px;
  margin-top: -22px;
  transition: color 0.3s, transform 0.2s;
  user-select: none;
}
.controls .prev {
  left: 20px;
}
.controls .next {
  right: 20px;
}
.controls .prev:hover,
.controls .next:hover {
  color: #bbb;
  transform: scale(1.2);
}
/* Photos numbering */
.caption {
  position: absolute;
  bottom: 20px;
  right: 50px;
  color: #fff;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 10px;
  border-radius: 5px;
}

@media (max-width: 400px) {
  .lightbox-content {
    max-width: 80%;
    max-height: 80%;
  }
}

/* CONTACT */
.contact {
  max-width: 1000px;
  margin: 50px auto;
  padding: 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, #227093, #89cbe8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact h1,
.contact p,
.contact a {
  color: #fff;
}

.contact .data h1 {
  margin-bottom: 60px;
  font-size: 2rem;
  text-align: left;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}

.contact .data {
  flex: 1 1 300px;
}

.contact .data p {
  font-size: 1.3rem;
}

.contact .data a {
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3rem;
  color: #fff;
  transition: color 0.3s ease;
}

.contact .data a:hover {
  color: #b33939;
}

.contact .photo {
  margin: 0 auto;
  display: block;
}

.contact .photo img {
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.contact .photo img:hover {
  transform: scale(1.03);
}

footer {
  color: #fff;
  text-align: center;
  padding: 15px 20px;
}

.footer-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.footer-content p {
  margin: 0 auto;
  text-align: center;
}

.footer-right {
  position: absolute;
  right: 20px;
  font-size: small;
  color: #cfe7f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-right:hover {
  color: #fff;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    position: static;
    /* wyłączenie absolute na mobile */
  }

  .footer-right {
    margin-top: 5px;
    position: static;
  }
}

/* baner cookies z animacją */
.cookie-consent.subtle {
  position: fixed;
  bottom: -100px;
  /* start poza ekranem */
  left: 0;
  width: 100%;
  background: rgba(51, 51, 51, 0.95);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-family: sans-serif;
  z-index: 10000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
  transition: bottom 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.cookie-consent.subtle.visible {
  bottom: 0;
  opacity: 1;
}

.cookie-consent.subtle span {
  flex: 1 1 auto;
  margin-right: 10px;
}

.cookie-consent.subtle span a {
  color: #34ace0;
  text-decoration: underline;
}

.cookie-consent.subtle button {
  background-color: #227093;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
  font-size: 13px;
  margin-top: 8px;
}

.cookie-consent.subtle button:hover {
  background: #34ace0;
}

/* Responsywność */
@media (max-width: 600px) {
  .cookie-consent.subtle {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent.subtle span {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

.privacy-policy {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  line-height: 1.7;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: #333;
}

.privacy-policy h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #222;
}

.privacy-policy h2 {
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #444;
  border-left: 4px solid #b33939;
  padding-left: 10px;
}

.privacy-policy p {
  margin-bottom: 16px;
  text-align: justify;
}

.privacy-policy ul {
  margin: 15px 0;
  padding-left: 20px;
}

.privacy-policy ul li {
  margin-bottom: 8px;
}

.privacy-policy strong {
  color: #000;
}

@media (max-width: 768px) {
  .privacy-policy {
    margin: 20px;
    padding: 15px;
    font-size: 15px;
  }

  .privacy-policy h1 {
    font-size: 1.6rem;
  }

  .privacy-policy h2 {
    font-size: 1.1rem;
  }
}

.back-home {
  margin-top: 40px;
  text-align: center;
}

.btn-back {
  display: inline-block;
  background: #227093;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.btn-back:hover {
  background: #34ace0;
  transform: translateY(-2px);
}

/* --- Poprawki dla bardzo małych ekranów --- */
@media (max-width: 480px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact .data {
    flex: 1 1 100%;
  }

  .contact .photo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .contact .photo img {
    width: 90%;
    max-width: none;
    height: auto;
    margin: 20px 0 0 0;
  }

  body {
    overflow-x: hidden;
    /* zapobiega poziomemu przewijaniu */
  }
}