/* Resetowanie domyślnych styli */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Globalne style */
body {
  font-family: "Roboto", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Główna zawartość - wypełnia całą dostępną przestrzeń */
.main {
  flex: 1;
  padding: 30px;
}

/* Nagłówek */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #c0b39a;
  padding: 5px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px; /* Niski header */
  overflow: visible; /* Zapewnia, że logo nie zostanie ucięte */
  border-bottom: 2px solid black;
}

.header a {
  color: black;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  height: 90px;
  transition: color 0.3s ease-in-out;
}

.header .logo {
  position: relative;
  z-index: 10;
}

.header .logo img {
  height: 140px; /* Zwiększona wysokość logo */
  max-height: 140px;
  width: auto;
  object-fit: contain;
  border: 2px solid black; /* Cienka czarna ramka */
  border-radius: 5px; /* Opcjonalne zaokrąglenie rogów */
  position: absolute;
  bottom: -50px; /* Logo wystaje 50px poniżej nagłówka */
  left: 10px; /* Możesz dostosować pozycję */
}

.header-right a:hover {
  color: #68440f; /* Zmiana koloru czcionki */
  background-color: transparent;
}

.header .logo img:hover {
  background-color: transparent !important; /* Usuwa tło */
  transform: none !important; /* Usuwa powiększenie */
  filter: none !important; /* Usuwa inne efekty */
}

.header a.active {
  color: #68440f; /* Kolor taki sam jak na hover */
  background-color: transparent;
}

.header-right {
  display: flex;
  gap: 10px;
  padding: 5px 5px;
}

/* Menu mobilne */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: black;
  font-size: 24px;
  cursor: pointer;
}

.footer .social img {
  width: 40px;
  height: 40px;
  filter: invert(1); /* Odwrócenie kolorów (czarny na biały) */
}

@media (max-width: 768px) {
  .header-right {
    display: none;
    flex-direction: column;
    background-color: #c0b39a;
    position: absolute;
    top: 50px;
    right: 0;
    width: 100%;
  }

  .header-right.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* Stopka - zawsze na dole */
.footer {
  width: 100%;
  background-color: #c0b39a;
  color: white;
  padding: 10px 0;
  text-align: center;
  margin-top: auto;
}

.footer .social a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
}

.footer .social a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header-right {
    display: none;
    flex-direction: column;
    background-color: #c0b39a;
    position: absolute;
    top: 50px;
    right: 0;
    width: 50%;
    max-height: 300px; /* Ograniczenie wysokości menu */
    overflow-y: auto; /* Dodanie przewijania, jeśli potrzeba */
    padding: 5px 0; /* Zmniejszenie paddingu */
    border: 1px solid black;
    border-radius: 5px;
  }

  .header .logo img {
    height: 100px; /* Zmniejszone logo */
    max-height: 100px;
    bottom: -30px; /* Mniej wystaje poniżej nagłówka */
    left: 5px; /* Możesz dostosować pozycję */
  }

  .header-right.show {
    display: flex;
  }

  .header-right a {
    font-size: 0.9em; /* Zmniejszona czcionka */
    padding: 6px 10px; /* Mniejsze odstępy */
  }

  .menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .header .logo img {
    height: 120px; /* Średnia wysokość dla tabletów */
    max-height: 120px;
    bottom: -40px; /* Nieco mniej wystaje */
    left: 10px;
  }

  .header-right {
    gap: 8px; /* Mniejsze odstępy między elementami */
    padding: 5px 10px;
  }

  .header-right a {
    font-size: 1em; /* Normalna czcionka */
    padding: 8px 12px;
  }
}
@media (max-width: 992px) {
  /* Ukrywamy standardowe menu i włączamy toggle */
  .header-right {
    display: none;
    flex-direction: column;
    background-color: #c0b39a;
    position: absolute;
    top: 60px;
    right: 0;
    width: 50%;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px 0;
    border: 1px solid black;
    border-radius: 5px;
  }

  .header-right.show {
    display: flex;
  }

  .menu-toggle {
    display: block; /* Pokazujemy toggle dla max 992px */
  }

  /* Logo dopasowane do tabletów */
  .header .logo img {
    height: 100px;
    max-height: 100px;
    bottom: -30px;
    left: 5px;
  }

  /* Dostosowanie headera */
  .header {
    height: 60px;
  }

  .header-right a {
    font-size: 0.9em;
    padding: 6px 8px;
  }
}
