/* RESET DLA NAGŁÓWKA */
header, header * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* PODSTAWOWY HEADER (DESKTOP) */
header {
  width: 100%;
  height: 80px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid #111;
}

/* Logo */
header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

header .logo h1 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  margin: 0;
}
header .logo img {
  max-height: 80px;
  width: auto;
  display: block;
  padding: 5px 0;
}

/* Nawigacja - desktop */
.nav-menu {
  display: block;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-menu li { display: block; }

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #cda45e;
  border-bottom-color: #cda45e;
}

/* Hamburger - ukryty na desktop */
.menu-toggle {
  display: none;
  width: 44px;
  height: 36px;
  cursor: pointer;
  /* layout for bars when visible (kept for clarity) */
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  /* remove vertical margin so spacing comes from container */
  margin: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --- MOBILE / TABLET --- */
@media (max-width: 1024px) {
  header .logo img {
    max-height: 50px !important;
  }

  /* pokaż hamburger */
  .menu-toggle { display: flex; height: 24px; justify-content: space-between; flex-direction: column; }

  /* Nawigacja jako wysuwane menu z prawej */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: #000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding-top: 90px; /* zostawia miejsce pod header */
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 18px;
    padding: 0 20px 40px 20px;
  }

  .nav-menu a {
    display: block;
    font-size: 16px;
    padding: 10px 4px;
  }

  /* Aktywne menu (widoczne) */
  .nav-menu.active {
    transform: translateX(0);
  }

  /* Animacja hamburger -> X */
  .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Drobne poprawki dostępności i porządku */
.nav-menu { will-change: transform; }