/* --- Reset i podstawowe style --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f9f9fb;
  color: #333;
  line-height: 1.6;
}

/* --- Nagłówek --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo */
.logo {
  font-size: 36px;
  font-weight: 800;
  color: #0077ff;
  transition: transform 0.3s, color 0.3s;
}
.logo:hover {
  transform: scale(1.05);
  color: #0055cc;
}

/* --- Hamburger --- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 44px;
  height: 36px;
  cursor: pointer;
  position: relative;   /* lub fixed jeśli chcesz przyklejony do góry */
  z-index: 10001;       /* większy niż nav-menu */
}


.hamburger span {
  display: block;
  width: 30px;
  height: 4px;
  background: #0077ff;
  margin: 4px 0;
  transition: transform 0.35s ease, opacity 0.25s ease, background 0.25s ease;
  border-radius: 2px;
}

/* Animacja hamburgera w X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
  background: white;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px,-6px);
  background: white;
}

/* --- Menu --- */
.nav-menu {
  position: fixed;
  top: 0;
  right: -250px; /* ukryte poza ekranem */
  width: 250px;
  height: 100%;
  background: #0077ff;
  z-index: 10000;  /* mniejszy od hamburgera */
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 60px 20px;
}


.nav-menu a, #menu a {
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.nav-menu a:hover, #menu a:hover {
  color: #ffff99;
}

/* Aktywne menu pokazuje się */
.nav-menu.active, #menu.active {
  right: 0;
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0077ff, #66a6ff);
  color: white;
}
.hero h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}
.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 20px auto;
}

/* --- Sekcje treści --- */
.section {
  padding: 50px 10%;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* --- Stopka --- */
footer {
  text-align: center;
  padding: 30px 10%;
  background: #0077ff;
  color: white;
  font-weight: 500;
}
/* Mini-karty w górnej części strony */
.card.mini {
  display: flex;
  flex-direction: row;   /* tekst po lewej, obrazek po prawej */
  align-items: flex-start;
  gap: 15px;
  padding: 15px 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-wrap: wrap;       /* na małych ekranach tekst spada pod obrazek */
}
.card.pelny .tekst,
.card.pelny .przepis {
  flex: 1;
  max-width: 600px;          /* ogranicza szerokość tekstu */
  line-height: 1.5;           /* odstęp między wierszami */
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.card.mini img {
  flex-shrink: 0;
  width: 200px;
  height: auto;
  border-radius: 4px;
}

.card.mini .mini-tekst {
  flex: 1;              /* zajmuje pozostałą przestrzeń obok obrazka */
}

/* --- Karty / przepisy --- */

.card {
  padding: 15px 20px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: auto;
  clear: both;
}
.card img {
  float: right;
  width: 200px;
  margin-left: 15px;
  margin-bottom: 10px;
}
.card h3 {
  margin-top: 0;
  font-size: 1.3em;
  color: #0077ff;
}
.card a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #0077ff;
  font-weight: 500;
  transition: color 0.3s;
}
.card a:hover { color: #0056cc; }
.card::after { content:""; display:block; clear:both; }

/* --- Galeria --- */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  gap: 10px;
  justify-items: center;
  align-items: start;
  margin: 20px 0;
}
.galeria figure {
  text-align: center;
  margin: 0;
  width: 100%;
}
.galeria img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.galeria img:hover { transform: scale(1.05); }
.galeria figcaption {
  font-size: 14px;
  margin-top: 5px;
}

/* --- Lightbox --- */
.lightbox, .lightbox-overlay, .overlay {
  position: fixed;
  top:0; left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.lightbox img, .overlay img {
  max-width:90%;
  max-height:90%;
  border-radius:8px;
  box-shadow:0 0 20px rgba(0,0,0,0.5);
}

/* --- Scroll / header --- */
header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* --- Hamburger / media queries --- */
@media (max-width: 1200px) {
  .hamburger { display:flex; }
}
@media (max-width: 768px) {
  .nav-menu {
    width: 220px;
    padding: 50px 20px;
    top:0;
    right:-250px;
    height:100%;
    flex-direction: column;
    gap:20p
