body {
  height: 100%;
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background-image: url("image.png");
  background-size: cover;       /* Dopasowuje obraz do całej strony */
  background-position: center;  /* Wyśrodkowanie */
  background-repeat: no-repeat;
  background-attachment: fixed;
  max-width: 100%;
  overflow-x: hidden;
}

/* hero (pierwszy ekran) */

  /* ciemna warstwa nad tłem */
  .hero::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: rgba(0,0,0,0.4); /* czarny półprzezroczysty */
    z-index: 0;
  }

  
  /* nagłówek nad overlayem */
  


/* nawigacja */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: transparent;   /* 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(255, 255, 255);
    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 {
  margin-top: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9%;
  max-width: 100vw;
  padding: 5%;
  z-index: 1;
  margin-bottom: 20%;
}

.galeria-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.8);
  z-index: 1;
}

.galeria-grid img:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
  z-index: 1;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .galeria-grid {
    grid-template-columns: 1fr;
  }
}
.ending{
  display: flex;
  justify-content: center;
  gap: 1vw;
  margin: 5%;
}
.ending img{
    filter: brightness(0) invert(1);
  width: 4vw;
  height: auto;
}
.hero {
  width: 100vw;
  height: 100vh;                /* pełna wysokość ekranu */
  background-size: cover;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;      /* wyśrodkowanie pionowe i poziome */
  text-align: center;
  z-index: 1;
}
@media (max-width: 768px) {
  .hero .t1 {
    font-size: 10vw;   /* responsywna wielkość na telefonie */
  }
}
.hero .t1 {
  font-size: 80px;
  color: #fff;
  font-weight: bold;
  text-align: center;
  position: relative;
  z-index: 1;
  margin: 0; 
}
/* ciemna nakładka */
.hero::before {
  content: "";
   position: fixed; 
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

/* napis w hero */


/* === BURGER (domyślnie ukryty) === */
.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: #fff;
}

/* === 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;
  box-sizing: border-box;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  text-align: left;
}
.mobile-nav li { margin: 20px 0; }
.mobile-nav a {
  color: #fff;
  font-size: 22px;
  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;
}
.mobile-logo {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}
.mobile-logo img {
  max-width: 120px;
  filter: brightness(0) invert(1);
}


/* === RESPONSYWNOŚĆ === */
@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;
  }

  /* hero na mobile */
   .hero {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero .t1 {
  font-size: 10vw;
  color: #fff;
  font-weight: bold;
  text-align: center;
  position: relative;
  z-index: 1;
  margin: 0;              /* usuwa przesunięcia */
}
  /* galeria – 3 kolumny */
  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ending img { width: 10vw; }
}

@media (max-width: 480px) {
  .galeria-grid {
    grid-template-columns: 1fr; /* na bardzo małych ekranach pojedyncza kolumna */
  }
}

.logo-box {
  position: relative;
  display: inline-block;
}

.overlay {
  font-family:inherit;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: black;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  width: 60vw;        /* bazowa szerokość */
  max-width: 90vw;    /* na telefonie nie wyjedzie poza ekran */
  text-align: left;
  line-height: 1.4;
  font-size: 14px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}
.logo-box:hover .overlay {
  opacity: 1;
}