body {
  height: 100%;
  margin: 0;
  font-family: "DM Sans", sans-serif;
}


/* hero (pierwszy ekran) */
.hero {
  height: 100vh;
  background: url("IMG_1954.JPG") no-repeat center center / cover;
  display: flex;
  align-items: center;
  padding-left: 5%;
  position: relative;
  overflow: hidden;
  will-change: background-position, transform;
  box-shadow: 0 10px 15px -5px rgba(0,0,0,0.6);
 
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}



  .date{
    top:30%;
    left:5%;
    font-size: 25px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    z-index: 1;           /* ponad pseudo-elementem */
    position: absolute;
  }
  /* nagłówek nad overlayem */
  .t1 {
    top:30%;
    left:5%;
    font-size: 4vw;
    color: rgb(255, 255, 255);
    z-index: 1;           /* ponad pseudo-elementem */
    position: absolute;
    
  }
.t2{
    top:45%;
    left:5%;
    font-size: 1.75vw;
    font-weight: bold;
    color: rgb(255, 255, 255);
    z-index: 1;           /* ponad pseudo-elementem */
    position: absolute;
    max-width: 25%;
}
.header{
    max-width: 10%;
}
/* 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;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  }


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);}


/* żeby przełącznik był po prawej w nav */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .menu { flex: 1; justify-content: center; }

.news{
    font-size: 50px;
    margin: 4%;
    text-align: center;
     color: rgb(0, 0, 0);
     
    
}


.news_content {
  background-color: white;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 12%;
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.5);
  margin-left: 10%;
  max-width: 60vw;
  max-height: 26vw;

}

.news_content img {
  width: 15vw;
  height: auto;
  margin-left: 5%;
  margin-bottom: 5%;
  margin-top: 5%;
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.5);
}
.news_content img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
.text_content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 55%;
  font-family: "DM Sans", sans-serif;
  margin-left: 5%;
  margin-top: 1%;
}

.article_title {
  font-size: 1.5vw;
  
}

.article_content {
  font-size: 1.25vw;
  padding: 3%;
  margin-top: -2%;
}
.article_date{
   margin-top: -2%;
  font-size: 0.75vw;
 
}
hr {
  border: none;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.671); /* czarna linia */
  margin-top: 5%; /* odstępy nad i pod linią */
  width: 80%; /* szerokość linii */
  margin-bottom: 10%;
}

.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}
.ending{
  display: flex;
  justify-content: center;
  gap: 1vw;
  margin: 5%;
}
.ending img{
    filter: invert(9%) sepia(100%) saturate(7471%) hue-rotate(238deg) brightness(95%) contrast(130%);
  width: 4vw;
  height: auto;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;  
  background: url('IMG_1954.JPG') center/cover no-repeat fixed;
  color: #fff;
}

.hero::before {
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,0.4);
}

@media (max-width: 768px){
.hero .date { margin-bottom: 10%; }
.hero .t1 { margin: 12% 0; }
.hero .t2 { margin-top: 20px; }
}

/* ===== BURGER (domyślnie ukryty) ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 100%;
  height: 3px;
  background: #fff; /* biały burger */
}

/* ===== MOBILE NAV (schowane domyślnie) ===== */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgb(0, 2, 131); /* jasny niebieski */
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 20000;
  padding: 40px; /* odstęp od brzegów */
  box-sizing: border-box;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0; /* odstęp od górnego rogu */
  text-align: left;
}
.mobile-nav li { margin: 20px 0; }
.mobile-nav a {
  color: #fff;
  font-size: 22px;
  font-weight: 600;         /* grubsze litery */
  text-decoration: none;
  display: inline-block;    /* żeby transform działał poprawnie */
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav a:hover {
  transform: scale(1.1);    /* powiększenie przy najechaniu */
  color: #eaf2f8;           /* możesz dać jaśniejszy kolor przy hoverze */
}


.mobile-nav .close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 36px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ===== MEDIA QUERY DLA TELEFONÓW ===== */
@media (max-width: 768px) {
  /* chowamy cały pasek nav */
   nav:not(.mobile-nav) { display: none; }

  /* burger pokazujemy w lewym górnym rogu */
  .burger {
    display: flex;
    position: fixed; /* żeby nie znikał przy scrollu */
    top: 15px;
    left: 15px;
    z-index: 10001;
  }

  /* hero – inne tło, brak parallax */
  .hero {
    background: url('mobile_photo.jpg') center/cover no-repeat;
    background-attachment: scroll;
    min-height: 100svh;
  }

  .hero .t1 {
    font-size: 8vw;
  }
  .hero .t2 {
    font-size: 4vw;
    max-width: 90%;
  }

  .ending img { margin-bottom: -100%; }
}
.mobile-logo {
  text-align: center;
  margin-top: 40px;   /* odstęp od góry */
  margin-bottom: 30px;
}
.mobile-logo img {
  max-width: 120px;   /* szerokość logo na telefonie */
  filter: brightness(0) invert(1); /* zmiana na biały */
}
.hero-logo {
  display: none; /* domyślnie ukryte na desktopie */
}

.hero-logo img {
  width: 30px;              /* taka sama wielkość jak burger */
  height: auto;
  filter: brightness(0) invert(1); /* białe logo */
}

/* tylko na telefonach */
@media (max-width: 768px) {
  .hero-logo {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;   /* logo po prawej stronie, burger po lewej */
    z-index: 10001;
  }
}