body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #ffffff; /* Biel */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
}

.wrapper {
  flex: 1;
}

header {
  position: relative;
  text-align: center;
  color: white;
  width: 100%;
  height: 220px; /* Możesz dostosować wysokość banera */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.logo {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3; /* Ustawienie logo nad gradientem */
}

.logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 150px;
}

.hero {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.banner {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /* Ustawienie zdjęcia pod gradientami */
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, white 50%, transparent 100%);
  z-index: 2; /* Ustawienie gradientu nad zdjęciem */
}

.banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(to left, #333 50%, transparent 100%);
  z-index: 2; /* Ustawienie gradientu nad zdjęciem */
}

.hero h1 a {
  color: white;
  text-decoration: none;
}

.main-menu {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: linear-gradient(45deg, #8b6914, #dbbb02);
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
}

main {
  padding: 20px;
}

section {
  margin-bottom: 40px;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}


.about-gallery {
  font-size: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.about {
  flex: 1;
}

.gallery {
  display: flex;
  justify-content: center;
  gap: 20px; /* odstęp między kolumnami */
  margin: 40px auto;
  flex-wrap: wrap;
  max-width: 1200px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 20px; /* odstęp między zdjęciami w kolumnie */
}

.column img {
  width: 250px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.column img:hover {
  transform: scale(1.03);
}
/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}


.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(45deg, #8b6914, #dbbb02); /* Gradient bardzo jasne złoto do bardzo ciemne złoto */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
}

.advantages-container {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.advantage {
  width: 30%;
}

.advantage img {
  width: 50px;
  height: 50px;
}

.menu-nav {
  text-align: center;
  background-color: white;
  margin-bottom: 20px;
}

.menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.menu-nav ul li {
  margin: 0 10px;
}

.menu-nav ul li button {
  display: block;
  padding: 10px 20px;
  background: none;
  color: #333;
  text-decoration: none;
  border: 2px solid #333;
  border-radius: 5px;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.menu-nav ul li button:hover {
  background: #333;
  color: white;
}

.menu-nav ul li button.active {
  background: #333;
  color: #fff;
}

.menu-category {
  display: none;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-category.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.menu-category h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5em;
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

table th {
  background-color: #f2f2f2;
}

.menu-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 40px 20px;
}

.menu-box {
  flex: 1 1 300px;
  max-width: 350px;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 20px;
  background-color: #fdfdfd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-box h2 {
  margin-top: 0;
  color: #333;
  text-align: center;
}

.menu-box ul {
  padding-left: 20px;
}

.menu-box li {
  margin-bottom: 5px;
}

.contact-info {
  text-align: center;
  margin-bottom: 20px;
}

#contact {
  padding: 40px;
}

.contact-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-left, .contact-right {
  flex: 1;
  min-width: 300px;
}

.contact-left form {
  display: flex;
  flex-direction: column;
}

.contact-left form label {
  margin-top: 10px;
  font-weight: 600;
}

.contact-left form input,
.contact-left form textarea {
  padding: 8px;
  font-size: 16px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-left form button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-left form button:hover {
  background-color: #555;
}

.contact-info a {
  color: #333;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-right {
  display: flex;
  flex-direction: column;
}

.map-heading {
  text-align: center;
  margin-bottom: 10px;
  font-size: 30px;
  font-weight: 700;
}

.contact-info {
  margin-bottom: 20px;
}

.contact-info i {
  color: #333;
  margin-right: 8px;
}

.map-heading {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
}

.map-frame {
  border: 2px solid #ccc;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form {
  max-width: 600px;
  margin: 0 auto;

}

form label {
  display: block;
  margin-bottom: 5px;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

form button {
  text-align: center;
  display: block;
  width: 100%;
  padding: 10px;
  background: linear-gradient(45deg, #8b6914, #dbbb02); /* Gradient bardzo jasne złoto do bardzo ciemne złoto */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
}

.big-button {
  width: 25%;
  font-size: 1.5em;
  padding: 15px 30px;
  margin: 40px auto;
  display: block;
  text-align: center;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: auto;
}

/* Styl logowania */
.login-form {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background-color: #fdfdfd;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: left;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-form button {
  width: 100%;
  background-color: #333;
  color: white;
  padding: 10px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
}

.login-form button:hover {
  background-color: #555;
}

/* Styl formularza dodawania postu */
.admin-panel {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  border: 2px solid #ccc;
  border-radius: 10px;
  background-color: #fafafa;
}

.admin-panel h2 {
  text-align: center;
  margin-bottom: 20px;
}

.admin-panel label {
  font-weight: bold;
}

.admin-panel input,
.admin-panel textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

.admin-panel button {
  background: linear-gradient(45deg, #8b6914, #dbbb02);
  color: white;
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.admin-panel button:hover {
  background-color: #bfa21f;
}

/* Kontener na siatkę postów */
.news-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Styl pojedynczego posta */
.news-post {
  width: 48%;
  background-color: #fff;
  border: 3px solid #d6c07f;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-post h3 {
  font-size: 2em;
  color: #111;
  text-align: center;
  margin: 0 0 20px 0;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Nagłówek posta */
.news-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  text-align: center;
  color: #333;
  margin-bottom: 10px;
}

/* Wiersz: tekst + zdjęcie */
.news-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap; /* Nie zawija, ale zostaje w ramce */
}

.news-text {
  flex: 1;
  text-align: left;
  font-size: 1em;
  color: #444;
  line-height: 1.6;
  word-break: break-word; /* Zabezpiecza długie słowa/linki */
}

.news-image {
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  align-self: flex-start; /* Obrazek zostaje przy górze */
}

/* Hamburger menu */

.menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2em;
  cursor: pointer;
  z-index: 20;
  background: linear-gradient(45deg, #8b6914, #dbbb02);
  padding: 10px 15px;
  border-radius: 5px;
  color: white;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: 10% auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .menu-toggle {
    display: block;
  }

  .main-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: linear-gradient(45deg, #8b6914, #dbbb02);
    border-radius: 10px;
    z-index: 15;
    padding: 15px;
    /* ✅ CIEŃ NA STAŁE */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }

  .main-menu.open {
    display: block;
    
    
  }
  .main-menu ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .main-menu li {
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  }

  .main-menu li:last-child {
    border-bottom: none;
  }

  .main-menu a {
    display: block;
    padding: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    transition: background 0.2s ease, opacity 0.2s ease;
  }

  .main-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.9;
  }
}

/* ======================= */
/* STRONA GŁÓWNA – UKŁAD SEKCJI */
/* ======================= */

/* Domyślnie (mały ekran) – pionowo */
.main-top-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 20px;
}

/* Powyżej 1300px – tekst i galeria obok siebie */
@media (min-width: 1301px) {
  .main-top-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
  }

  .about {
    flex: 1;
    max-width: 50%;
    text-align: center;
  }

  .gallery {
    flex: 1;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .column {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .column img {
    width: 250px;
    border-radius: 15px;
    object-fit: cover;
  }
}

/* Poniżej 1300px – galeria pod przyciskiem */
@media (max-width: 1300px) {
  .gallery {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .column {
    flex-direction: column;
  }

  .column img {
    width: 200px;
  }

  .big-button {
    margin: 30px auto;
    padding: 12px 24px;
  }
}

@media (max-width: 650px) {
  .column img {
    width: 120px;
    height: 100px;
    object-fit: cover;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@media (max-width: 500px) {
  .auto-sticky {
    display: inline-block;
    font-size: 1.2em;
    padding: 12px 30px;
    background: linear-gradient(45deg, #8b6914, #dbbb02);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
    white-space: nowrap;
    text-align: center;
    margin: 40px auto 80px auto;
    min-width: 220px;
    max-width: 90vw;
  }
}

@media (max-width: 650px) {
  .logo img {
    max-width: 120px;
    max-height: 120px;
  }

  .logo {
    top: 5px;
    left: 5px;
  }
}

@media (max-width: 510px) {
  header {
    height: 150px; /* było 220px */
  }

  .banner {
    height: 150px;
  }

  .banner img {
    object-position: center;
  }

  .logo img {
    max-width: 90px;
    max-height: 90px;
  }

  .logo {
    top: 5px;
    left: 5px;
  }

  .menu-toggle {
    top: 10px;
    right: 10px;
    font-size: 1.6em;
    padding: 8px 12px;
  }
}

@media (max-width: 1300px) {
  .menu-nav ul {
    gap: 12px; /* odstęp poziomy i pionowy dzięki flex-wrap */
    justify-content: center;
    flex-wrap: wrap;
  }

  .menu-nav ul li {
    margin: 10px 8px; /* 🔥 więcej luzu wokół każdego przycisku */
  }

  .menu-nav ul li button {
    padding: 12px 20px;
    font-size: 1em;
    min-width: 120px;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .main-menu {
    top: calc(100% + 50px); /* ⬅️ Więcej przestrzeni pod hamburgerem */
  }
}

@media (max-width: 1050px) {
  .news-content {
    flex-direction: column;
    align-items: center;
  }

  .news-image {
    max-width: 90%;
    margin-top: 15px;
  }

  .news-text {
    text-align: center;
  }
}

@media (max-width: 1030px) {
  .news-post {
    width: 95%;
    margin: 0 auto;
  }
}

@media (max-width: 1030px) {
  .news-content {
    flex-direction: column;
    align-items: center;
  }

  .news-image {
    max-width: 50%; /* zmniejszamy obrazek o połowę */
    height: auto;
    margin-top: 15px;
  }

  .news-text {
    text-align: center;
  }
}

@media (max-width: 450px) {
  .contact-left,
  .contact-right {
    min-width: unset; /* ❗ usuwa sztywne minimum */
    width: 100%;
    margin: 0 auto;
  }

  .contact-left form {
    width: 100%;
    box-sizing: border-box;
  }

  .contact-left form input,
  .contact-left form textarea,
  .contact-left form button {
    width: 100%;
    box-sizing: border-box;
  }

  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  form {
    max-width: 90vw; /* formularz 90% szerokości ekranu */
    width: 100%;
    margin: 0 auto;
  }

  .contact-left form input,
  .contact-left form textarea,
  .contact-left form button {
    width: 100%;
  }
}
@media (max-width: 380px) {
  header {
    height: 120px;
  }

  .banner {
    height: 120px;
  }

  .banner img {
    object-position: center;
  }

  .logo img {
    max-width: 60px;
    max-height: 60px;
  }

  .logo {
    top: 5px;
    left: 5px;
  }
}

@media (max-width: 450px) {
  .contact-info p {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }

  .contact-info i {
    margin-bottom: 4px;
  }
}

/* Stylowanie ikony Facebooka w stopce */
footer {
  position: relative;  /* Ustawiamy stopkę na względne pozycjonowanie */
  padding: 20px;
  background-color: #333;  /* Kolor tła stopki */
  color: white;
  text-align: center;
}

.social-icons {
  position: absolute;  /* Pozycjonowanie absolutne względem stopki */
  bottom: 20px;        /* Ustalamy odstęp od dolnej krawędzi stopki */
  right: 20px;         /* Ustalamy odstęp od prawej krawędzi stopki */
}

.facebook-icon {
  font-size: 30px;      /* Zwiększamy rozmiar ikony */
  color: #3b5998;       /* Kolor ikony Facebooka */
  text-decoration: none; /* Usuwamy podkreślenie */
}

.facebook-icon:hover {
  color: #1d3557;       /* Zmiana koloru po najechaniu */
}
