:root {
  --blue: #0b4ddb;
  --yellow: #ffd400;
  --dark: #0a0a0a;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f4f6fb;
  color: #111;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  padding: 0 60px;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--blue);
}

.nav a {
  margin-left: 35px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--yellow);
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}


/* ===== SEKCJE ===== */
.section {
  padding: 140px 10%;
  background: white;
  text-align: center;
}

.section h2 {
  font-size: 52px;
  margin-bottom: 40px;
  color: var(--blue);
}

.section p {
  font-size: 22px;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--blue);
  color: white;
  padding: 30px;
  text-align: center;
}

/* ===== ANIMACJE ===== */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .header {
    padding: 0 20px;
  }

  .nav a {
    margin-left: 15px;
    font-size: 14px;
  }

  .section {
    padding: 100px 6%;
  }
}



/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.logo {
  height: 60px;
}

.nav a {
  margin-left: 25px;
  text-decoration: none;
  font-weight: 700;
  color: #0b4dbb;
}

body {
  padding-top: 130px;
}



/* ===== O NAS ===== */
.section.about {
  padding: 100px 8%;
  background: #f5f7fa;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
}

.about-row img {
  width: 50%;
  height: 360px;
  object-fit: cover;
  border-radius: 18px;
}

.about-text {
  width: 50%;
}

.about-text h2 {
  font-size: 48px;
  color: #0b4dbb;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 20px;
  line-height: 1.7;
}

/* ODWROTNY UKŁAD */
.about-row.reverse {
  flex-direction: row-reverse;
}

/* ===== ANIMACJE ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .about-row,
  .about-row.reverse {
    flex-direction: column;
  }

  .about-row img,
  .about-text {
    width: 100%;
  }

  .about-row img {
    height: 260px;
  }

  .about-text h2 {
    font-size: 34px;
    text-align: center;
  }

  .about-text p {
    text-align: center;
  }
}



.hero {
  height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-home {
  background-image: url("img/hero.jpg");
}

.hero-sub {
  background-image: url("img/dworze/dwor8.jpg");
}

.hero-sub1 {
  background-image: url("img/cennik.jpg");
}


.hero-sub2 {
  background-image: url("img/gora.jpg");
}


.hero-content {
  position: relative;
  color: white;
  text-align: center;
  z-index: 2;
}

.hero-content h1 {
  font-size: 120px;
  font-weight: 800;
  letter-spacing: 3px;
}

.hero-content p {
  font-size: 54px;
  margin-top: 10px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}





.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  z-index: 999;
}

.logo img {
  height: 60px;
}

nav a {
  color: white;
  margin-left: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffd500;
}



.section-title {
  text-align: center;
  font-size: 56px;
  margin-bottom: 80px;
  letter-spacing: 4px;
  color: #003b8f;
}


.about {
  padding: 120px 80px;
  background: #f8f9fc;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.about-row img {
  width: 50%;
  border-radius: 24px;
}

.about-text {
  width: 50%;
  font-size: 18px;
  line-height: 1.7;
}





/* ===== HEADER – FINALNE USTAWIENIA ===== */
.header {
  height: 170px;                 /* jeszcze trochę wyższy */
  padding-left: 40px;            /* logo lekko z lewej */
  padding-right: 40px;
  justify-content: space-between; /* menu bardziej w prawo */
}

/* ===== LOGO ===== */
.logo {
  height: 165px;                 /* DUŻE LOGO */
}

/* ===== NAWIGACJA ===== */
.nav {
  margin-left: 100px;             /* wypycha menu w prawo */
  margin-right: 100px;
}

.nav a {
  font-size: 40px;               /* czytelne, ale eleganckie */
  margin-left: 52px;
  font-weight: 1000;
}










/* Cała sekcja z jasnoniebieskim tłem */
.atuty-sekcja {
    background-color: #3aaaf9; /* Jasny błękit */
    padding: 100px 20px; /* Duży odstęp góra-dół */
    width: 100%;
}

/* Nagłówek sekcji */
.atuty-tytul {
    color: #ffffff; 
    text-align: center;
    font-size: 6rem; /* Jeszcze większy */
    font-family: 'Arial Black', sans-serif;
    margin-bottom: 100px;
    font-weight: 900;
    text-transform: uppercase;
}

/* Kontener - maksymalnie rozległy */
.atuty-kontener {
    display: flex;
    justify-content: space-between; /* Rozpycha elementy do samych krawędzi */
    align-items: center;
    max-width: 1600px; /* Bardzo szeroki */
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 40px;
}

/* Pojedynczy element atutu */
.atut-box {
    color: #ffcc00; /* Startowy kolor ŻÓŁTY */
    text-align: center;
    transition: all 0.3s ease-in-out;
    flex: 1;
    min-width: 250px; /* Szersza podstawa dla gigantycznych ikon */
    cursor: pointer;
}

/* Ikony - EKSTREMALNIE DUŻE */
.atut-box i {
    font-size: 130px; /* Gigantyczne ikony */
    display: block;
    margin-bottom: 40px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Napisy pod ikonami */
.atut-box p {
    font-size: 2.8rem; /* Ekstremalnie duże napisy */
    font-weight: 900;
    margin: 0;
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Efekt Hover - Zmiana na POMARAŃCZOWY */
.atut-box:hover {
    color: #ff8800; /* Głęboki pomarańczowy */
}

.atut-box:hover i {
    transform: scale(1.2) rotate(5deg); /* Powiększenie i lekki obrót dla dynamiki */
}

/* RWD - poprawka na tablety i telefony */
@media (max-width: 1200px) {
    .atut-box i { font-size: 100px; }
    .atut-box p { font-size: 2rem; }
}
















.kontakt-sekcja {
    background-color: #f0f8ff; /* Bardzo jasny błękit */
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    font-family: 'Arial Black', sans-serif;
}

.kontakt-kontener {
    display: flex;
    max-width: 1600px;
    width: 100%;
    gap: 80px;
    align-items: center;
    flex-wrap: wrap; /* Na telefonach dane będą nad mapą */
}

/* Styl danych po lewej */
.kontakt-dane {
    flex: 1;
    min-width: 400px;
}

.kontakt-naglowek {
    color: #007bff;
    font-size: 3.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.kontakt-item {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    color: #465fab; /* Twój bazowy niebieski */
}

.kontakt-item i {
    font-size: 70px;
    color: #ffcc00; /* Żółte ikony jak w atutach */
    transition: color 0.3s ease;
}

.kontakt-item:hover i {
    color: #ff8800; /* Zmiana na pomarańczowy */
}

.tekst-box span {
    display: block;
    font-size: 1.2rem;
    color: #333;
    text-transform: uppercase;
}

.tekst-box a {
    font-size: 2.2rem;
    color: #000;
    text-decoration: none;
    font-weight: 900;
    transition: 0.3s;
}

.tekst-box a:hover {
    color: #007bff;
}

/* Styl mapy po prawej */
.kontakt-mapa {
    flex: 1.5;
    min-width: 500px;
    height: 500px;
    background: #ddd;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.placeholder-mapy {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #888;
}

/* Żeby wklejona mapa wypełniała całe okno */
.kontakt-mapa iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* RWD */
@media (max-width: 1024px) {
    .kontakt-naglowek { font-size: 2.5rem; }
    .tekst-box a { font-size: 1.6rem; }
    .kontakt-mapa { min-width: 100%; height: 400px; }
}


.stopka-pasek {
    background-color: #007bff; /* Ten sam niebieski co w nagłówkach */
    color: #ffffff; /* Biały tekst dla kontrastu */
    text-align: center;
    padding: 25px 0; /* Wysokość paska */
    width: 100%;
    margin-top: 0; /* Styka się z sekcją powyżej */
    font-family: 'Arial', sans-serif;
    border-top: 4px solid #ffcc00; /* Żółty akcent nawiązujący do ikon */
}

.stopka-pasek p {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* ===== EFEKT CZYTAJ DALEJ ===== */
.more-text {
    display: none; /* Domyślnie ukryte */
}

.read-more-btn {
    background: none;
    border: 2px solid var(--blue);
    color: var(--blue);
    padding: 8px 20px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 25px;
    transition: 0.3s;
}

.read-more-btn:hover {
    background: var(--blue);
    color: white;
}

/* ===== NOWE ANIMACJE PRZEWIJANIA ===== */
/* Elementy będą się pojawiać z lekkim obrotem i powiększeniem */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    filter: blur(5px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Opóźnienie dla ikon w atutach (efekt fali) */
.atut-box:nth-child(1) { transition-delay: 0.1s; }
.atut-box:nth-child(2) { transition-delay: 0.2s; }
.atut-box:nth-child(3) { transition-delay: 0.3s; }
.atut-box:nth-child(4) { transition-delay: 0.4s; }
.atut-box:nth-child(5) { transition-delay: 0.5s; }

/* ===== POPRAWKI MOBILNE (Telefony) ===== */
@media (max-width: 768px) {
    body { padding-top: 100px; } /* Mniejszy margines na górze */

    .header { height: 100px; padding: 0 15px; }
    .logo { height: 80px; }
    
    .atuty-tytul { font-size: 3rem; margin-bottom: 40px; }
    .atut-box i { font-size: 80px; }
    .atut-box p { font-size: 1.8rem; }

    .about-row { gap: 30px; }
    .about-text h2 { font-size: 2.2rem; }
    .about-text p { font-size: 18px; }

    .kontakt-naglowek { font-size: 2.5rem; }
    .tekst-box a { font-size: 1.5rem; }
}




/* --- LOGIKA CZYTAJ DALEJ --- */

/* Na komputerze (szeroki ekran) */
@media (min-width: 769px) {
    .more-text {
        display: inline !important; /* Zawsze pokazuj tekst */
    }
    .read-more-btn {
        display: none !important; /* Zawsze ukrywaj przycisk */
    }
}

/* Na telefonie (wąski ekran) */
@media (max-width: 768px) {
    .more-text {
        display: none; /* Ukryj tekst na start */
    }
    .read-more-btn {
        display: block !important; /* Pokaż przycisk */
        margin: 15px auto;
        padding: 10px 25px;
        background-color: #0b4ddb;
        color: white;
        border: none;
        border-radius: 20px;
        font-weight: bold;
        cursor: pointer;
    }
    
    /* Poprawka obrazków na telefon */
    .about-row {
        flex-direction: column !important; /* Obrazek nad tekstem */
        text-align: center;
    }
    .about-row img {
        width: 100% !important;
        height: auto !important;
    }
    .about-text {
        width: 100% !important;
    }
}


@media (max-width: 768px) {
    .more-text {
        display: none; /* To musi tu być, żeby JS mógł to zmienić na inline */
    }
}


@media (max-width: 768px) {
    .more-text {
        display: none; /* To musi być tutaj, aby przycisk miał co rozwijać */
    }
}



@media (max-width: 768px) {
    .about-row {
        flex-direction: column-reverse !important; /* Obrazek ląduje nad tekstem w obu blokach */
        display: flex;
    }
    
    /* Jeśli wolisz obrazek pod tekstem, użyj samej wartości 'column' */
}



@media (max-width: 768px) {
    .more-text {
        display: none; /* Musi być none, żeby JS mógł to przełączyć */
    }

    .read-more-btn {
        display: block !important;
        position: relative;
        z-index: 999; /* Wyciąga przycisk na wierzch, żeby dało się go kliknąć */
        margin: 20px auto !important;
        background: #0b4ddb !important;
        color: white !important;
        padding: 15px 30px !important;
        border-radius: 50px;
        border: none;
        cursor: pointer;
    }
    
    /* Naprawa układu, żeby nic na siebie nie nachodziło */
    .about-row {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }
}




/* Styl dla Hamburgera */
.menu-toggle {
  display: none; /* Ukryty na komputerze */
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 35px;
  height: 4px;
  background-color: #0b4ddb;
  border-radius: 2px;
  transition: 0.3s;
}

/* RWD - TELEFON */
@media (max-width: 768px) {
  .header {
    height: 80px !important; /* Znacznie niższy pasek na tel */
    padding: 0 20px !important;
  }

  .logo {
    height: 60px !important; /* Mniejsze logo */
  }

  .menu-toggle {
    display: flex; /* Pokazujemy hamburgera */
  }

  .nav {
    display: none; /* Chowamy standardowe menu */
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-align: center;
    gap: 15px;
  }

  /* Klasa aktywująca menu (dodawana przez JS) */
  .nav.mobile-active {
    display: flex;
  }

  .nav a {
    font-size: 24px !important; /* Czytelne linki w pionie */
    margin: 0 !important;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }
  
  /* Animacja hamburgera na X po kliknięciu */
  .menu-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
}




@media (max-width: 768px) {
  /* Zmniejszenie głównego napisu */
  .hero-content h1 {
    font-size: 50px !important; /* Znacznie mniejszy, by zmieścił się w jednej linii */
    letter-spacing: 1px !important;
    line-height: 1.1;
  }

  /* Zmniejszenie podtytułu */
  .hero-content p {
    font-size: 20px !important; /* Czytelny podtytuł */
    margin-top: 10px;
    padding: 0 10px; /* Marginesy, żeby tekst nie dotykał brzegów */
  }

  /* Dostosowanie wysokości sekcji Hero na telefonie */
  .hero {
    height: 60vh !important; /* Nieco niższy baner, żeby szybciej było widać treść O NAS */
  }
}





/* Kontener galerii */
.gallery-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.gallery-section h2 {
    color: #0077c2;
    font-size: 88px;
    margin-bottom: 30px;
    text-align: center;
}

/* Siatka Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 12px;
}

/* Kafelki */
.grid-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.grid-item:hover img {
    transform: scale(1.08);
}

/* Rozmiary kafelków */
.wide { grid-column: span 2; }
.tall { grid-row: span 2; }

/* Ukryte zdjęcia */
.hidden-images { display: none; }

/* Niebieska nakładka +35 */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 119, 194, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    pointer-events: none; /* Pozwala kliknąć w link pod spodem */
}

/* Responwywność */
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .wide, .tall { grid-column: span 1; grid-row: span 1; }
}

/* Powiększenie zdjęcia w lightboxie */
.lb-image {
    border: 4px solid white; /* Opcjonalna ramka */
    border-radius: 8px;
}

/* Wyśrodkowanie i odsunięcie od góry (bezpieczne dla skryptu) */
.lightbox {
    outline: none !important;
}

/* Zwiększenie tła pod zdjęciem */
.lb-outerContainer {
    background-color: #000 !important;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    /* Zmniejszenie gigantycznego napisu */
    .gallery-section h2 {
        font-size: 36px; /* Z 88px na czytelne 36px */
        margin-bottom: 20px;
    }

    .gallery-section {
        margin: 30px auto;
        padding: 0 15px;
    }

    /* Siatka Grid na Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny */
        grid-auto-rows: 150px; /* Nieco niższe kafelki na mniejszym ekranie */
        gap: 8px; /* Mniejsze odstępy, żeby oszczędzić miejsce */
    }

    /* Wyłączenie specjalnych rozmiarów na mobile, aby siatka była równa */
    .wide, .tall {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* Centrowanie ostatniego kafelka (+35), jeśli jest nieparzysty */
    .grid-item:last-child:nth-child(odd) {
        grid-column: span 2 !important; /* Rozciągnij na całą szerokość dla balansu */
    }

    /* Dopasowanie napisu na nakładce */
    .overlay {
        font-size: 24px;
    }

    /* Optymalizacja Lightboxa na dotyk */
    .lb-data .lb-close {
        width: 35px;
        height: 35px;
        background-size: 100%;
    }
}

/* Dodatkowa poprawka dla bardzo małych ekranów (poniżej 480px) */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 duży kafelek w rzędzie dla lepszej widoczności */
        grid-auto-rows: 250px;
    }
    
    .grid-item:last-child:nth-child(odd) {
        grid-column: span 1 !important;
    }
}




/* ===================================================
   FIX TYLKO DLA PODSTRONY ZDJECIA.HTML (MOBILE)
   =================================================== */

@media (max-width: 768px) {
    /* Naprawa nawigacji specjalnie pod podstronę zdjęcia */
    .gallery-section ~ .header, 
    body:has(.gallery-section) .header {
        height: 80px !important;
        padding: 0 15px !important;
    }

    body:has(.gallery-section) .logo {
        height: 60px !important;
    }

    /* Włączenie hamburgera na podstronie zdjęcia */
    body:has(.gallery-section) .menu-toggle {
        display: flex !important;
    }

    /* Menu mobilne dla podstrony zdjęcia */
    body:has(.gallery-section) .nav {
        display: none; 
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    body:has(.gallery-section) .nav.mobile-active {
        display: flex !important;
    }

    body:has(.gallery-section) .nav a {
        font-size: 20px !important;
        margin: 15px 0 !important;
        color: #0b4ddb !important;
        text-align: center;
    }

    /* GALERIA - To najważniejsze dla zdjęcia.html */
    .gallery-section h2 {
        font-size: 34px !important; /* Zmniejszenie napisu z 88px */
        margin-top: 20px !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 zdjęcia obok siebie */
        grid-auto-rows: 150px !important; /* Niższe kafelki */
        gap: 8px !important;
    }

    /* Wyłączenie szerokich i wysokich kafelków, żeby się nie rozjeżdżały */
    .wide, .tall {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* Ostatnie zdjęcie (+35) na całą szerokość dla ładnego wyglądu */
    .grid-item:last-child {
        grid-column: span 2 !important;
    }

    /* Dopasowanie banera na górze */
    .hero-sub {
        height: 40vh !important;
        margin-top: 80px !important;
    }

    .hero-content h1 {
        font-size: 40px !important;
    }
}


/* =========================
   CENNIK – CZYSTY RESET
   ========================= */

.cennik {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* usuń wpływ globalnych styli */
.cennik * {
    box-sizing: border-box;
}

/* =========================
   NAGŁÓWKI
   ========================= */

.cennik h1 {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 32px;
}

.cennik .year {
    margin: 0 0 12px 0;
    font-weight: 600;
    font-size: 16px;
}

/* =========================
   TABELA
   ========================= */

.cennik table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 10px 0;
}

.cennik thead th {
    background: #1f7acb;
    color: #fff;
    padding: 8px;
    font-size: 25px;
}

.cennik tbody td {
    border: 1px solid #ddd;
    padding: 6px;
    font-size: 20px;
    text-align: center;
}

.cennik tbody td:first-child {
    text-align: left;
    font-weight: 600;
}

/* =========================
   TEKST POD TABELĄ
   (ZERO KAFLI)
   ========================= */

.cennik .note,
.cennik .cennik-text {
    margin: 4px 0;
    padding: 0;
    font-size: 20px;
    line-height: 1.35;
    background: none;
    border: none;
    box-shadow: none;
}

/* strong NIE robi nowej linii */
.cennik .cennik-text strong {
    font-weight: 600;
}

/* =========================
   WYRÓŻNIENIA
   ========================= */

.cennik .highlight {
    font-weight: 700;
}

.cennik .free {
    font-weight: 700;
    color: green;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {
    .cennik {
        padding: 20px 10px;
    }

    .cennik h1 {
        font-size: 26px;
    }

    .cennik table {
        font-size: 14px;
    }

    .cennik thead th,
    .cennik tbody td {
        padding: 6px;
    }
}







/* Kontener całej sekcji */
.jg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

/* Nagłówek główny */
.jg-main-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #222;
    text-transform: uppercase;
}

/* Pojedynczy wiersz */
.jg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 40px;
}

/* Odwrócenie kolejności (zdjęcie na lewo) */
.jg-row.reverse {
    flex-direction: row-reverse;
}

/* Kolumny */
.jg-content, .jg-image {
    flex: 1;
}

.jg-content h2 {
    font-size: 1.8rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.jg-content p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #444;
}

.jg-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
}

/* Responsywność dla telefonów */
@media (max-width: 768px) {
    .jg-row, .jg-row.reverse {
        flex-direction: column; /* Wszystko w jednej kolumnie */
        margin-bottom: 50px;
        gap: 20px;
    }

    .jg-main-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .jg-content {
        text-align: center; /* Wyśrodkowanie tekstu na komórce */
    }
}



/* Kontener i typografia */
.jg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

.jg-main-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 70px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Układ wierszy */
.jg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 90px;
    gap: 50px;
}

.jg-row.reverse {
    flex-direction: row-reverse;
}

.jg-content, .jg-image {
    flex: 1;
}

.jg-content h2 {
    font-size: 1.8rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.jg-content p {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #444;
}

/* Zdjęcia i efekty */
.jg-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.jg-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* --- LOGIKA ANIMACJI --- */
.jg-animate {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 900px) {
    .jg-row {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .jg-row, .jg-row.reverse {
        flex-direction: column;
        margin-bottom: 60px;
    }

    .jg-content {
        text-align: center;
    }

    .jg-main-title {
        margin-bottom: 40px;
    }
}

/* ===== OSTATECZNY FIX RESPONSYWNOŚCI ===== */

@media (max-width: 768px) {
    /* 1. Blokujemy poziome przesuwanie się strony */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }

    /* 2. Resetujemy ogromne marginesy w nagłówku, które psuły układ */
    .header {
        width: 100% !important;
        padding: 0 15px !important;
        margin: 0 !important;
        justify-content: space-between !important;
        left: 0 !important;
    }

    /* Usuwamy "wypychacze" menu */
    .nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* 3. Pozycjonowanie hamburgera (menu-toggle) */
    .menu-toggle {
        display: flex !important;
        z-index: 1001;
        margin-left: auto; /* Pcha hamburger do prawej krawędzi */
    }

    /* 4. Naprawa nawigacji mobilnej (żeby nie uciekała w prawo) */
    .nav {
        display: none; /* Domyślnie ukryte */
        position: fixed; /* Zmienione z absolute dla lepszej stabilności */
        top: 80px; /* Wysokość Twojego header na mobile */
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav.mobile-active {
        display: flex !important;
    }

    /* 5. Upewniamy się, że logo nie zajmuje 100% szerokości */
    .logo {
        max-width: 150px;
        height: auto !important;
        margin: 0 !important;
    }
    
    .logo img {
        height: 50px !important;
        width: auto;
    }
}

/* Stylizacja kontenera cennika */
.cennik-sekcja {
    padding: 60px 0;
    background-color: #f8f9fc;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto; /* To włącza przewijanie tabeli na boki */
    margin: 30px 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: white;
    -webkit-overflow-scrolling: touch; /* Płynność na iPhone */
}

/* Tabela */
.cennik table {
    width: 100%;
    min-width: 700px; /* Wymuszamy szerokość, żeby kolumny się nie gniotły */
    border-collapse: collapse;
}

.cennik thead th {
    background: #0b4ddb;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 18px;
}

.cennik tbody td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 17px;
}

.cennik tbody td:first-child {
    text-align: left;
    font-weight: bold;
    background: #fdfdfd;
}

/* Teksty pod tabelą */
.cennik-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.cennik-text {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    line-height: 1.6;
}

/* Naprawa numeru konta na telefonie */
.numer-konta {
    display: inline-block;
    word-break: break-all; /* Rozbija numer, jeśli jest za długi na ekran */
    font-weight: bold;
    color: #0b4ddb;
    font-size: 1.1rem;
}

/* Responsywność dla telefonów */
@media (max-width: 768px) {
    .cennik-info-grid {
        grid-template-columns: 1fr; /* Jeden pod drugim na telefonie */
    }

    .cennik h1 {
        font-size: 32px;
    }

    .note {
        font-size: 15px;
        text-align: center;
        margin-bottom: 10px;
    }

    .table-wrapper {
        margin: 20px 0;
    }
}


/* 1. GLOBALNY FIX PRZESUWANIA (DODAJ NA POCZĄTKU) */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* To blokuje przesuwanie strony na boki */
}

/* 2. STYLIZACJA SEKCJI CENNIKA */
.cennik-sekcja {
    padding: 60px 20px;
    background-color: #f4f7fb;
}

.cennik {
    max-width: 1100px;
    margin: 0 auto;
}

.cennik h1 {
    text-align: center;
    color: #0b4ddb;
    font-size: 42px;
    margin-bottom: 10px;
}

.year {
    text-align: center;
    font-weight: bold;
    margin-bottom: 30px;
    color: #555;
}

/* 3. TABELA - WIDOK KOMPUTEROWY */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.responsive-table th {
    background: #0b4ddb;
    color: white;
    padding: 20px;
    font-size: 18px;
}

.responsive-table td {
    padding: 18px;
    border: 1px solid #eee;
    text-align: center;
    font-size: 17px;
}

/* 4. SIATKA INFORMACJI (INFO-GRID) */
.cennik-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.cennik-text {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid #0b4ddb;
}

.highlight { color: #0b4ddb; font-weight: bold; }
.free { color: #28a745; font-weight: bold; }
.note { text-align: center; margin-bottom: 15px; color: #666; font-style: italic; }

/* 5. FIX DLA NUMERU KONTA */
.numer-konta {
    display: block;
    word-break: break-all; /* Rozbija długi numer na tel */
    font-family: monospace;
    font-size: 1.1rem;
    margin: 10px 0;
    color: #333;
}

/* =============================================
   6. MAGIA DLA TELEFONU (BRAK PRZESUWANIA)
   ============================================= */

@media (max-width: 768px) {
    .cennik-sekcja {
        padding: 40px 15px;
    }

    /* Ukrywamy standardowy nagłówek tabeli */
    .responsive-table thead {
        display: none;
    }

    /* Zamieniamy tabelę w pionowe bloki */
    .responsive-table, 
    .responsive-table tbody, 
    .responsive-table tr, 
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        margin-bottom: 25px;
        border: 2px solid #0b4ddb;
        border-radius: 15px;
        padding: 10px;
    }

    .responsive-table td {
        text-align: right;
        padding: 12px 15px;
        position: relative;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .responsive-table td:last-child {
        border-bottom: none;
    }

    /* Wyświetlamy etykiety z data-label (np. "Niski sezon") po lewej stronie */
    .responsive-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: #0b4ddb;
        font-size: 14px;
    }

    /* Logo i nagłówki na telefon */
    .cennik h1 { font-size: 30px; }
    
    .cennik-info-grid {
        grid-template-columns: 1fr; /* Wszystko w jednej kolumnie */
    }
}

/* ===== POPRAWKA DLA CENNIKA NA TELEFONIE ===== */

@media (max-width: 768px) {
    /* 1. Odsuwamy całą sekcję cennika w dół, żeby nie była pod headerem */
    .cennik-sekcja {
        padding-top: 120px !important; /* Większy odstęp od góry */
    }

    /* 2. Powiększamy nagłówek "Cennik" */
    .cennik h1 {
        font-size: 48px !important; /* Duży, wyraźny napis */
        margin-bottom: 20px !important;
        line-height: 1.2;
    }

    /* 3. Dodatkowa poprawka odstępu dla samej tabeli */
    .responsive-table {
        margin-top: 30px !important;
    }

    /* 4. Fix dla "niebieskiego najeżdżania" - upewniamy się, że header ma tło */
    .header {
        background: white !important; /* Lub inny kolor, który masz */
        z-index: 1000 !important;
    }
}

/* --- STYL DLA WSZYSTKICH --- */
.cennik-tytul { text-align: center; color: #0b4ddb; font-size: 45px; margin-bottom: 20px; }
.tabela-desktop { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.tabela-desktop th { background: #0b4ddb; color: white; padding: 15px; }
.tabela-desktop td { border: 1px solid #eee; padding: 15px; text-align: center; }

/* --- DOMYŚLNIE UKRYWAMY WIDOK MOBILNY NA KOMPUTERZE --- */
.cennik-mobilny { display: none; }

/* --- MAGIA DLA TELEFONU (@media) --- */
@media (max-width: 768px) {
    /* 1. Chowamy starą tabelę, bo ona zawsze ucina */
    .tabela-desktop { display: none !important; }

    /* 2. Pokazujemy karty mobilne */
    .cennik-mobilny { display: block !important; padding: 0 10px; }

    .cennik-tytul { 
        font-size: 60px !important; /* Bardzo duży napis */
        margin-top: 50px !important;
        margin-bottom: 30px !important;
    }

    .karta-cennika {
        background: white;
        border: 3px solid #0b4ddb;
        border-radius: 20px;
        padding: 20px;
        margin-bottom: 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .naglowek-karty {
        font-size: 26px;
        font-weight: bold;
        color: #0b4ddb;
        text-align: center;
        border-bottom: 2px solid #eee;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .wiersz-ceny {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        font-size: 18px;
        border-bottom: 1px solid #f9f9f9;
    }

    .wiersz-ceny span { color: #555; }
    .wiersz-ceny strong { color: #000; font-weight: 800; }
}


.cennik-karta {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    border: 3px solid #0b4ddb;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.cennik-naglowek-glowny {
    background: #0b4ddb;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.cennik-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.cennik-item:last-child { border-bottom: none; }

.cennik-label { font-weight: bold; color: #333; line-height: 1.2; }
.cennik-wartosc { text-align: right; color: #0b4ddb; font-weight: 800; font-size: 18px; }

@media (max-width: 768px) {
    .cennik-tytul { font-size: 55px !important; margin-top: 50px !important; }
    .cennik-item { padding: 12px 15px; }
    .cennik-label { font-size: 14px; }
    .cennik-wartosc { font-size: 16px; }
}