:root{
  color-scheme: light;
}

img{
  filter:none !important;
}

html,body{
  margin:0;
  height:100%;
  font-family:Arial;
  background:url('../assets/tlo.jpg') center/cover no-repeat fixed;
}

#bar1{
  position:fixed;
  top:0;
  height:30px;
  width:100%;
  background:black;
  z-index:10;
}

.bar1inner{
  width:80%;
  height:100%;
  margin:auto;
  display:flex;
  align-items:center;
}

/* Flagi językowe w bar1 */
#bar1 .rightMenu {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: auto;
}

#bar1 .rightMenu .lang {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

#bar1 .rightMenu .lang img {
  height: 20px;
  cursor: pointer;
  margin: 0;
}

#bar2{
  position:fixed;
  top:30px;
  height:50px;
  width:80%;
  left:10%;
  background:rgba(69,68,68,0.8);
  z-index:10;
}

#bar3{
  position:fixed;
  bottom:0;
  height:50px;
  width:80%;
  left:10%;
  background:rgba(69,68,68,0.8);
  z-index:10;
}

.inner{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.rightMenu{
  display:flex;
  align-items:center;
  margin-left:auto;
}

#menu{
  display:flex;
}

#content{
  position:absolute;
  top:80px;
  bottom:50px;
  left:10%;
  width:80%;
  background:rgba(69,68,68,0.5);
  overflow-y:scroll;
  scroll-snap-type:y mandatory;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

#content::-webkit-scrollbar{
  display:none;
}

.section{
  height:100%;
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  color:white;
  text-align:center;
}

.sectionTitle{
  height:8%;
  font-size:2em;
  display:flex;
  align-items:center;
  justify-content:center;
}

.sectionBottomText{
  height:10%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
}

.carouselWrapper{
  height:92%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.carousel{
  display:flex;
  overflow-x:hidden;
  scroll-snap-type:x mandatory;
  width:100%;
  height:100%;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.carousel::-webkit-scrollbar{
  display:none;
}

.carouselArrow{
  width:80px;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:48px;
  cursor:pointer;
  user-select:none;
  line-height:1;
}

.carouselArrow:hover{
  background:rgba(255,255,255,0.15);
}

.carousel-item{
  flex:0 0 100%;
  height:100%;
  scroll-snap-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start; /* obraz przy górze */
}

.carousel-item img{
  width: auto;                  /* zachowuje proporcje w poziomie */
  max-width: 100%;              /* nie wychodzi poza div */
  max-height: calc(100% - 20%); /* dynamicznie zostawia miejsce na tekst (20%) */
  object-fit: contain;
}

.carouselText{
  min-height:20%;
  width:100%;
  padding:10px;
  box-sizing:border-box;
  text-align:center;
}

.landingSection{
  display:flex;
  align-items:center;
  justify-content:center;
}

.landingSection img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.contactSection{
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
}

.contactContain{
  display:flex;
  max-width:80%;
  align-items:center;
  justify-content:center;
}

.contactQR img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.contactQR{
  flex-shrink:0;
  margin-right:20px;
}

.contactForm{
  display:flex;
  flex-direction:column;
}

.contactForm input, .contactForm textarea{
  margin-bottom:10px;
  padding:8px;
  font-size:1em;
  border:none;
  border-radius:4px;
  background: rgba(255,255,255,0.5);
  color:black;
}

.contactForm textarea{
  flex:1;
  resize:none;
}

.g-recaptcha{
  display:flex;
  justify-content:center;
  margin:10px 0;
}

.contactForm .sendBtn{
  background:#286090;
  border:none;
  color:white;
  padding:10px;
  cursor:pointer;
  border-radius:4px;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
}

.contactForm .sendBtn:hover{
  background:rgba(40,96,144,0.9);
}

.contactForm .fileWrapper{
  display:flex;
  align-items:center;
  margin-bottom:10px;
}

.contactForm .fileBtn{
  background:rgba(20,50,80,0.9);
  border:none;
  color:white;
  padding:8px 12px;
  cursor:pointer;
  border-radius:4px;
  margin-right:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.contactForm .fileBtn:hover{
  background:rgba(40,96,144,0.9);
}

.contactForm .fileList{
  font-size:0.9em;
  color:white;
  overflow-x:auto;
}

button{
  background:none;
  border:none;
  color:white;
  height:50px;
  padding:0 15px;
  cursor:pointer;
}

button:hover{
  background:rgba(255,255,255,0.2);
}

#contactBtn{
  background:#286090;
}

.logo{
  height:45px;
  margin-left:20px;
}

.lang img{
  height:20px;
  margin-left:10px;
  cursor:pointer;
}

#footerContent{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  text-align:center;
  font-size:14px;
}

/* ===================================== */
/* TRYB MOBILE */
@media (max-width:900px){

  /* bary i content na pełen ekran */
  #bar2, #bar3, #content{
    width:100%;
    left:0;
  }

  /* dopasowana wysokość bar2 */
  #bar2{
    height:92px; /* teraz dokładnie tyle, żeby przycisk pasował */
  }

  #content{
    top:122px; /* 30px bar1 + 92px bar2 */
  }

  /* ułożenie logo i menu */
  .inner{
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;
  }

  .logo{
    height:48px; /* lekko zmniejszone, proporcjonalnie do bar2 */
    margin:5px 0;
  }

  #menu{
    justify-content:center;
    flex-wrap:wrap;
  }

  .rightMenu{
    margin-left:0;
  }

  /* przyciski menu */
  button{
    height:32px;  /* mieszczą się w bar2 */
    line-height:32px;
    padding:0 12px;
  }

  /* kontakt i QR */
  .contactContain{
    flex-direction:column;
    width:80%;
    height:auto;
    align-items:center;
    justify-content:center;
  }

  .contactQR{
    width:50%;
    height:auto;
    margin:0 0 20px 0;
  }

  .contactForm{
    width:100%;
  }

  /* strzałki karuzeli mniejsze */
  .carouselArrow{
    width:45px;
  }

  /* powiększenie obrazów w karuzeli */
  .carousel-item img{
    max-height: calc(100% - 15%);
  }

  /* tekst karuzeli */
  .carouselText{
    min-height:25%;
    width:99%;      
    max-width:99vw; 
    margin:0 auto;  
    font-size:0.85em; 
  }

  /* sekcja tytułu */
  .sectionTitle{
    height:6%;
    font-size:1.45em; 
  }
  .landingSection img {
    max-width:90%;   /* trochę mniejszy niż cała szerokość */
   /* max-height:60%;   ograniczamy wysokość, nie zajmuje całego viewportu */
    object-fit:contain;
  }

}

/* blokada overscroll i scroll chaining na mobile */
html, body, #content {
  overscroll-behavior: none;
  touch-action: none;
}

body {
  overflow: hidden;
}

#content {
  overflow-y: auto;
  -webkit-overflow-scrolling: auto; /* wyłącza momentum scroll na iOS */
}

