body {
  height: 100%;
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background-color: white;
  background-size: cover;       /* Dopasowuje obraz do całej strony */
  background-position: center;  /* Wyśrodkowanie */
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* hero (pierwszy ekran) */
.hero {
    height: 100vh;
    
    display: flex;
    align-items: center;
    padding-left: 5%;
    position: relative;
    z-index: 0;
  }
  
  /* ciemna warstwa nad tłem */
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    z-index: 0;
  }

  
  /* nagłówek nad overlayem */
  .t1 {
    top:10%;
    left:44%;
    font-size: 80px;
    color: rgb(0, 2, 131);
    z-index: 1;           /* ponad pseudo-elementem */
    position: absolute;
  }
    .t2 {
    top:40%;
    left: 5%;
    font-size: 50px;
    color: rgb(0, 2, 131);
    z-index: 1;           /* ponad pseudo-elementem */
    position: absolute;
    
  }


/* nawigacja */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
     box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    background: white;   /* na początku przezroczyste */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
    transition: background 0.3s ease;
  }
  
  /* po scrollu */
  nav.scrolled {
    background: url("cdb94bb5-b8ce-43d7-bbfc-6069cc31516b.png") no-repeat center center;
    background-size: cover;
  }


nav .logo img {
    height: 60px;
    width: auto;
}

nav ul.menu {
    list-style: none;
    display: flex;
    gap: 60px;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex: 1;
}

nav ul.menu li a {
    text-decoration: none;
    color: rgb(0, 2, 131);
    font-size: 30px;
    font-weight: bold;
    padding-inline: 40px;
    transition: transform 0.3s ease;
    display: inline-block;
}
nav.scrolled ul.menu li a {
    color: rgb(255, 255, 255); /* kolor po scrollu */
  }
  nav ul.menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;                 /* odległość linii od tekstu */
    width: 0;
    height: 2px;
    background-color: currentColor; /* linia w kolorze tekstu */
    transition: width 0.3s ease;    /* animacja szerokości */
  }
  
  nav ul.menu li a:hover {
    transform: scale(1.1);
  }
  
  nav ul.menu li a:hover::after {
    width: 60%;   
    left: 20%;                
  }

  .lang-toggle {
  margin-left: 16px;
}

.switch {
  position: relative;
  width: 78px;
  height: 34px;
  background: #e6e6e6;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.15);
}

.flag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
}
.flag img {
  width: 100%;
  height: 100%;
}
.flag.left{
  left: 3px;
}
.flag.right{
  right: 3px;
}

#langSwitch {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .25s ease; 
}

#langSwitch:checked + .switch .knob {
  transform: translateX(60px);}


.galeria-grid {
  
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10%;
  max-width: 100vw;
  margin: 20%;
  padding: 5px;
    margin-top: -20%;
}

.galeria-grid img {
 box-shadow: 0 5px 20px rgba(0, 0, 0, 0.445);
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.8);
}

.galeria-grid img:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}
.team-heading {
  grid-column: 1 / -1;   /* nagłówek zajmuje całą szerokość siatki */
  font-size: 32px;
  font-weight: bold;
  color: rgb(0, 2, 131);
  margin: 40px 0 20px;
  text-align: left;
}


/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .galeria-grid {
    grid-template-columns: 1fr;
  }
}
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  transform: translateX(300px);   /* start poza ekranem na prawo */
  transition: transform 0.6s ease, opacity 0.5s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
  transform: translateX(0);  
}

.lightbox-content {
  flex: 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox-img {
  max-width: 90%;
  border-radius: 20px;
  max-height: 80vh;
  box-shadow: 0 5px 30px rgba(0,0,0,0.6);
}

.lightbox-sidebar {
    height: 100%;
    font-size: 40px;
   align-items: flex-start;
  background: white;
  color: rgb(20, 25, 88);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  max-width: 40%;
  width: 40%;
  max-height: 80vh;
  overflow-y: auto;
  margin: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 2;
}

.lightbox-description h2 {
  margin-top: 0;
  font-size: 80px;
  z-index: 2;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

.prev, .next {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transform: translateY(-50%);
  z-index: 1000;
}

.prev { left: 10px; }
.next { right: 10px; }

.lightbox-logo{
  position: absolute;
  bottom: 10%;
  left: 60%;
  width: 4%;
  height: auto;
  opacity: 0.9;
  z-index: 2;
}
.ending{
  display: flex;
  justify-content: center;
  gap: 1vw;
  margin-bottom: 5%;
  margin-top: 65%;
}
.ending img{
  filter: invert(9%) sepia(100%) saturate(7471%) hue-rotate(238deg) brightness(95%) contrast(130%);
  width: 4vw;
  height: auto;
}
/* === BURGER (tylko na mobile) === */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10001;
}
.burger span {
  width: 100%;
  height: 3px;
  background: #000; /* czarny na jasnym tle */
}

/* === MOBILE NAV === */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgb(0, 2, 131);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 10000;
  padding: 40px 20px;
  box-sizing: border-box;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 60px 0 0 0;
  text-align: center;
}
.mobile-nav li { margin: 15px 0; }
.mobile-nav a {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}
.mobile-nav a:hover {
  transform: scale(1.1);
  color: #eaf2f8;
}
.mobile-nav .close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 36px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* === DODATKI DO HERO === */
@media (max-width: 768px) {
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero .t1 {
  font-size: 8vw;   /* responsywnie */
  font-weight: bold;
  margin-top: 50%;
  position: relative;
  top: auto;
  left: auto;
  margin-bottom: 30%;
}

.t2 {
  font-size: 6vw;
  font-weight: 800;
  margin: 5%;
  position: relative;

  top: auto;
  text-align: center;
  color: rgb(0, 2, 131);
}
}
.mobile-logo {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}
.mobile-logo img {
  max-width: 120px;
  filter: brightness(0) invert(1);
}
@media (max-width: 768px) {
.galeria-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 5%;
  margin: 10% auto;
  padding: 2%;
}
.galeria-grid img {
  margin-bottom: 10px; /* mniejszy odstęp pod obrazkiem */
}
}
.caption h3 {
  font-size: 18px;
  margin: 5px 0;
}
.caption p {
  font-size: 14px;
  margin: 0;
}

/* === MEDIA QUERY === */
@media (max-width: 768px) {
  /* chowamy desktopowy nav */
   nav:not(.mobile-nav) { display: none; }

  /* burger w lewym górnym rogu */
  .burger {
    display: flex;
    position: fixed;
    top: 15px;
    left: 15px;
  }

  /* grid na 2 kolumny */
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4%;
    margin: 15% auto;
  }
  .ending{ margin-top: 100%;}
}


@media (max-width: 480px) {
  .galeria-grid {
    grid-template-columns: 1fr;
    margin: 20% auto;
  }
}
@media (max-width: 768px) {
  .lightbox {
    flex-direction: column; /* tekst pod obrazkiem */
    padding: 10px;
  }

  .lightbox-content {
    flex: none;
    width: 100%;
    justify-content: center;
  }

  .lightbox-img {
    max-width: 95%;    /* większe zdjęcie */
    max-height: 60vh;  /* wyższe zdjęcie */
  }

  .lightbox-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin: 15px 0 0 0;
    padding: 15px;
    font-size: 16px;   /* mniejszy tekst */
    box-shadow: none;
    border-radius: 10px;
  }

  .lightbox-description h2 {
    font-size: 22px; /* mniejsze nagłówki */
    margin-bottom: 10px;
  }

  .lightbox-description p {
    font-size: 14px; /* mniejsze akapity */
    line-height: 1.4;
  }

  .prev, .next {
    font-size: 28px; /* mniejsze strzałki nawigacji */
    top: 45%;
  }
}