*{
  box-sizing: border-box;
  scroll-behavior: smooth;
  
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #0f342f;
  margin: 5px;
}
h1{
  font-size: 40px;
  font-weight: 600;

}
h2{
  font-size: 28px;
  font-weight: 500;

}
h3{
  font-size: 22px;
  font-weight: 500;
}
section {
  margin: 60px auto;
  padding: 0 15px;
}
body, p, li, a {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
  font-size: 18px;
  color: #0f342f;
}
a:hover {
  color: #0f342f;
}
img{
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 10px 15px rgba(0,0,0,0.25);
  transition: opacity 0.3s ease;
}
ul {
  list-style: none;
}

body{ 
  font-family: Arial, sans-serif;

 background-color: #Fffaf4;
 color: #0f342f;
  }
header {
    padding: 0px 0px 0px 0px;
    }

footer {
    padding: 0px 0px 0px 0px;
    }
.baner-bar {
 display: flex;
  justify-content: center;
  align-items: center;
}
.baner{
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 40%;
  height: auto;
  box-shadow: none;
}
.burger-toggle {
  display: none;
  cursor: pointer;
  gap: 5px;

}

.burger {
  position: static;
  top: 0;
  height: 0;
  z-index: 1001; /* Wyżej niż reszta treści */
  background-color: #F4F8F6; /* Musi mieć tło, żeby treść pod spodem nie prześwitywała */
  width: 100%;
}



.menu{
   width: 100%;
  max-width: 1000px;
  margin: 0 auto;
   position: sticky;
  top: 0;
  z-index: 1000;
  margin-top: 20px;
  box-sizing: border-box;
    background-color: #Fffaf4;
    text-align: center;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0px;
  }

.menu a {
    margin: 0 px;
    text-decoration: none;
    color: #0f342f;
    font-weight: bold;
    cursor:pointer
  
}
.menu a:hover {
  color: #0f342f;
}
.rozdzial1{
  text-align: center;
}
.rozdzial2{
 text-align: center;
}
.rozdzial3{
 text-align: center;
}



.button{
  display: inline-block;
  background-color: #Fffaf4 ;
  color:#0f342f;
  text-decoration: none;
  transition: background-color 0.3s ease;
  padding: 5px;
  border-radius: 15px;
  font-weight: 500;
  margin: 5px;
}

.button:hover {
   background-color: #Fffaf4;
}

footer {
  background-color: #Fffaf4;
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}
footer p {
  margin: 10px;
}
.footer {
  text-decoration: none;
  background-color: #Fffaf4;
  color: #0f342f;
  justify-content: center;
  font-weight: bold;
  cursor:pointer;
  transition: background-color 0.3s ease;
  padding: 14px 32px;
  margin: 10px;
  border-radius: 15px;
  font-weight: 500;
}
.footer:hover {
   background-color: #Fffaf4;
   color:  #0f342f;
}
.instagram-link {
  color: #6F8F94;
  text-decoration: none;
  
}
.threads-link {
  color: #6F8F94;
  text-decoration: none;

}

@media (max-width: 599px) {
  body{ 
    font-family: Arial, sans-serif;
    margin: 0px 10px 0px 10px;
  }
  .baner{
    max-width: 60%;
  }
  .menu a { 
    font-size: 12px; 
  }
  .lang-menu{
    width: 25px;
  }
  .selected-lang img {
  width: 25px;
  height: auto;
}

.lang-menu ul li img {
  width: 25px;
}
}






@media (min-width: 600px) and (max-width: 1199px) {
  body{ 
    font-family: Arial, sans-serif;
    margin: 0px 15px 0px 15px;
  }
   .baner{
    max-width: 70%;
   }
    .menu a { 
      font-size: 18px;
     }
     .instagram-link {
      font-size: 18px;
     }
     .threads-link {
      font-size: 18px;
     }

    } 
  .lang-menu{
    width: 25px;
  }
  .selected-lang img {
  width: 25px;
  height: auto;
}

.lang-menu ul li img {
  width: 25px;
}



.lang-menu {
  width: 30px;
  position: relative;
}

.selected-lang {
  padding: 5px;
  cursor: pointer;
  background: #F4F8F6;
  display: flex;
  justify-content: center;
}

.selected-lang img {
  width: 30px;
  height: auto;
}

.lang-menu ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  border: 1px solid #ccc;
  background: #F4F8F6;
  position: absolute;
  width: 30px;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lang-menu ul li a {
  display: flex;
  justify-content: center;
  padding: 5px;
}

.lang-menu ul li a:hover {
  background: #F4F8F6;
}

.lang-menu ul li img {
  width: 30px;
}

.lang-menu:hover ul {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
  @media (max-width: 600px) {
  body {
    font-family: Arial, sans-serif;
    margin: 0px 10px 0px 10px;
  }
  h1{
  font-size: 40px;
}
h2{
  font-size: 28px;

}
h3{
  font-size: 22px;
}
p{
  font-size: 18px;
}
  .baner {
    max-width: 60%;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #Fffaf4;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    justify-content: center;
    z-index: 999;
  }

  .menu.active {
    display: flex;
  }

  .burger {
    display: block;
    height: 0;
    padding: 0;
    margin: 0;
  }

  .burger-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 30px;
    cursor: pointer;
  }

  .menu a {
    font-size: 22px;
    padding: 20px;
    border: none;
    text-align: center;
  }
}





.masonry {
  column-width: 300px; /* Ширина колонки, при которой они начинают перестраиваться */
  column-gap: 15px;    /* Отступ между колонками */
  padding: 15px;
}

.item {
  display: inline-block; /* Важно: элементы не должны быть блочными */
  width: 100%;           /* Ширина 100% от родительской колонки */
  margin-bottom: 15px;   /* Отступ снизу для каждого фото */
  break-inside: avoid;   /* Запрещает разрыв карточки на две части между колонками */
}

.item img {
  display: block;
  width: 100%;
  border-radius: 12px;
  /* Фото теперь не обрезаются, а сохраняют пропорции */
  height: auto; 
}