body{
  font-family: Arial, sans-serif;
  margin:0;
  background:#0a0a0a;
  color:#d6d6d6;;
}

header{
  background:#161313;
  color:white;
  padding:40px;
  text-align:center;
  letter-spacing:2px;
}

section{
  padding:60px 20px;
  max-width:900px;
  margin:auto;
    margin:40px auto;
  background:#0a0a0a;
  border-radius:12px;
    border:1px solid #1f1f1f;
    transition:0.3s;
    box-shadow:0 5px 15px rgba(0,0,0,0.4);
  }

section:hover{
  border-color:#2a2a2a;
}
  
h2{
  background:#1a0000
}

a{
  color:#ff2a2a;
}

p{
  color:#d6d6d6;
}

    .telefon{
  display:inline-block;
  margin-top:10px;
  padding:10px 20px;
  background:#b40000;
  color:black;
  border-radius:8px;
  text-decoration:none;
  font-weight:bold;
  display:inline-block;
  font-size:20px;
}

.telefony{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
}

.tel{
  color:#e0e0e0;
  text-decoration:none;
  font-size:16px;
  font-weight:bold;
  transition:0.3s;
  position:relative;
}

.tel:hover{
  color:#ff2a2a;
  text-shadow:0 0 6px rgba(255,0,0,0.4);
}

.tel::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-4px;
  width:70%;
  height:2px;
  background:#ff2a2a;
  opacity:0.4;
  transition:0.3s;
}

.tel:hover::after{
  width:100%;
  opacity:0.8;
}

.dojazd{
  display:block;
  width:60%;
  margin:30px auto 50px;
  padding:15px;
  background:#8b0000;
  color:white;
  text-decoration:none;
  border-radius:12px;
  font-weight:bold;
  text-align:center;
  transition:0.3s;
  box-sizing:border-box;
}

.dojazd:hover{
  background:#ff2a2a;
  transform:scale(1.02);
}


nav{
  background:#1a0000;
  border-bottom:1px solid #222;
padding:10px;
text-align:center;
  margin-top:10px;
}

nav a{
  color:white;
  margin:0 15px;
  text-decoration:none;
  transition:0.3s;
    font-size:20px;
  font-weight:bold;
}

nav a:hover{
  color:#d80000;
}

iframe{
  filter: grayscale(30%) contrast(0.9);
}

.zdjecia{
background:#f3f3f3;
padding:30px;
text-align:center;
}

.kontakt{
  background:#111;
  color:white;
padding:30px;
text-align:center;
}



footer{
background:#222;
color:white;
text-align:center;
padding:20px;
}

footer a{
  display:inline-block;
  padding:6px 12px;
  background:#2a2a2a;
  border-radius:6px;
  color:#d6d6d6;
  text-decoration:none;
  transition:0.3s;
}

footer a:hover{
  background:#3a3a3a;
  color:#ff2a2a;
}

.tagline{
  margin:10px auto 10px;
  font-size:16px;
    color:#ffd500;
  text-align:center;
  max-width:600px;
    text-shadow:0 0 6px rgba(255,213,0,0.4);
      font-weight:600;
  letter-spacing:0.5px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000; /* Zostawiamy czarne, nieprzezroczyste tło, żeby zasłaniało tekst pod spodem */
  padding: 10px 20px;
  border-bottom: 1px solid #1a1a1a;
  min-height: auto;
  
  /* --- NOWE WŁAŚCIWOŚCI DO PRZYKLEJENIA --- */
  position: sticky;
  top: 0;
  z-index: 1000; /* Gwarantuje, że pasek zawsze będzie nad zdjęciami i kafelkami */
  box-shadow: 0 5px 15px rgba(0,0,0,0.8); /* Dodajemy lekki cień pod paskiem, żeby fajnie oddzielał się od scrollowanej treści */
}

.top:hover{
  background:#050505;
}

.left{
  display:flex;
  gap:10px;
  margin-left:30px;
  align-items:center;
  flex-shrink:0;
    position:absolute;
  left:20px;
}

.left:hover img{
  opacity:0.5;
}

.left img{
  height:150px;
  filter: drop-shadow(0 0 5px rgba(255,0,0,0.3));
  transition:0.3s;
}
.left img:hover{
  transform:scale(1.4);
    opacity:1;
}

.logo{
  max-width:700px;
  width:100%;
  height:auto;
  animation:logoPulse 3.5s ease-in-out infinite;
  transition:0.3s;
}

.logo:hover{
  transform:scale(1.05);
  filter:drop-shadow(0 0 12px rgba(255,0,0,0.6));
}

@keyframes logoPulse{
  0%,100%{
    filter: drop-shadow(0 0 5px rgba(100,0,0,0.4));
  }

  40%{
    filter: drop-shadow(0 0 12px rgba(180,0,0,0.7));
  }

  60%{
    filter: drop-shadow(0 0 20px rgba(255,0,0,1));
  }
}

.auto{
  height:65px;
  right:30px;
  flex-shrink:0;
  margin-right:10px;
    position:absolute;
  right:20px;
}

.center{
  display:flex;
  flex-direction:column;
  align-items:center;
   flex:1;
   flex-direction:column;
  gap:5px;
}

.oferta{
  background:#0a0a0a;
  padding:60px 20px;
  text-align:center;
}

.oferta h2{
  color:white;
  margin-bottom:30px;
}

.kafelki{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  max-width:900px;
  margin:auto;
}



.box{
  color:white;
  padding:15px;
  border-radius:10px;
  margin-top:10px;
  transition:0.3s;
    box-shadow:0 6px 18px rgba(0,0,0,0.6),
             0 0 10px rgba(255,0,0,0.2);
}

.box:hover{
  background:#ff26009d;
  transform:translateY(-3px) scale(1.02);
    box-shadow:0 10px 30px rgba(0,0,0,0.8),
             0 0 15px rgba(255,0,0,0.4);
}

.box:nth-child(odd){
  background:#7a0000;
}

.box:nth-child(even){
  background:#b30000;
}

.box:nth-child(odd):hover{
  background:#7a0000;
}

.box:nth-child(even):hover{
  background:#b30000;
}

.klik{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:bold;
  cursor:pointer;
}

.arrow{
  transition:0.3s;
}

.content{
  max-height:0;
  overflow:hidden;
  margin-top:10px;
  font-size:14px;
  line-height:1.6;
  transition:max-height 0.3s ease;
}


section h1{
  text-align:center;
  margin-bottom:30px;
}

section h2{
  margin-top:30px;
  color:#ff2a2a;
}

section p{
  margin-top:5px;
  color:#d6d6d6;
}

h2::after{
  content:"";
  display:block;
  height:2px;
  width:60%;
  margin:10px auto 20px;
  border-radius:2px;

  background:linear-gradient(
    90deg,
    #7a0000,
    #888,
    #fff,
    #888,
    #7a0000
  );

  background-size:200% 100%;
  animation:glowLine 3s ease-in-out infinite;
}

/* Kontener galerii */
.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Kafelki miniaturek (wersja przesuwna slider) */
.thumbnails {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px; /* Dodane miejsce na pasek przewijania pod zdjęciami */
    
    /* Płynne przewijanie na telefonach */
    -webkit-overflow-scrolling: touch; 
    scroll-behavior: smooth;
    
    /* Pasek w Firefox */
    scrollbar-width: thin;
    scrollbar-color: #ff2a2a #1f1f1f; 
}

.thumb {
    flex: 0 0 auto; /* BARDZO WAŻNE: Zapobiega ściskaniu zdjęć na siłę */
    width: 150px; /* Sztywna szerokość zamiast 100% z Grida */
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid #333;
    transition: transform 0.3s, border-color 0.3s, filter 0.3s;
    filter: grayscale(40%); /* Twój stary filtr zachowany */
}

.thumb:hover {
    transform: scale(1.1);
    border-color: #ff2a2a;
    filter: grayscale(0%);
    z-index: 5;
}

.active-thumb {
    border-color: #ff2a2a;
    filter: grayscale(0%);
    transform: scale(1.05); /* Twoje lekkie powiększenie aktywnej */
}

/* Ładny pasek przewijania dla Chrome/Edge/Safari/Opera */
.thumbnails::-webkit-scrollbar {
    height: 18px; /* Gruby, wygodny pasek dla starszych osób */
}
.thumbnails::-webkit-scrollbar-track {
    background: #161313;
    border-radius: 10px;
}
.thumbnails::-webkit-scrollbar-thumb {
    background: #ff2a2a;
    border-radius: 10px;
}

/* Widok główny */
.main-view {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 12px;
    padding: 0; /* Usuwamy padding, żeby strefy dotykały krawędzi */
    border: 1px solid #333;
    height: 600px; /* Stała wysokość, o której rozmawialiśmy */
    overflow: hidden;
}

.main-view img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* Styl dla szerokich stref kliknięcia */
.nav-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%; /* Szerokość strefy (możesz zwiększyć do 20% jeśli chcesz) */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05); /* Lekkie wyszarzenie tła */
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    user-select: none;
}

.left-zone { left: 0; border-radius: 12px 0 0 12px; }
.right-zone { right: 0; border-radius: 0 12px 12px 0; }

/* Efekt po najechaniu na strefę */
.nav-zone:hover {
    background: rgba(255, 255, 255, 0.15); /* Mocniejsze wyszarzenie przy hover */
}

/* Styl samej strzałki wewnątrz strefy */
.arrow {
    color: white;
    font-size: 40px;
    font-weight: bold;
    opacity: 0.5;
    transition: 0.3s;
}

.nav-zone:hover .arrow {
    opacity: 1;
    transform: scale(1.2);
}

/* Przyciski prawo/lewo */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* Strzałki na wierzchu */
    pointer-events: none; /* KLUCZOWE: kliknięcie "przelatuje" przez strzałkę do zdjęcia */
    opacity: 0.8;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
    background: #ff2a2a;
    transform: translateY(-50%) scale(1.1);
}

/* Na komputerach możemy pokazać strzałki jaśniej po najechaniu na całą galerię */
.main-view:hover .prev, 
.main-view:hover .next {
    opacity: 1;
}

/* Animacja linii pod nagłówkami */
@keyframes glowLine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- PROMOCJA --- */
.promocja {
  background: linear-gradient(135deg, #1a0505 0%, #0a0a0a 100%); /* Bardzo subtelny bordowo-czarny gradient */
  border-left: 4px solid #ff2a2a; /* Czerwony akcent z lewej */
  border-right: 4px solid #ff2a2a; /* Czerwony akcent z prawej */
  border-radius: 8px;
  padding: 20px 30px;
  margin: 30px auto;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.promocja:hover {
  transform: scale(1.02); /* Lekko "puchnie" przy najechaniu myszką */
  border-color: #ffd500; /* Boczne paski zmieniają kolor na złoty przy najechaniu */
}

.promocja p {
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.promocja-tytul {
  color: #ffd500; /* Złoty ostrzegawczy kolor z Twojego głównego nagłówka */
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 8px;
}

.promocja-gratis {
  color: #ff2a2a; /* Głęboka czerwień */
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
}

/* --- MODAL (Okno w Oknie dla Galerii) --- */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  /* POPRAWKA TŁA: Solidna czerń dla pełnego zakrycia strony pod spodem */
  background-color: #000;
  /* Dajemy więcej miejsca od góry na gigantyczny X */
  padding-top: 60px; 
  left: 0; top: 0;
  width: 100%; height: 100%; 
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  border: 1px solid #333;
  /* POPRAWKA: Tło directly pod obrazkiem też czarne */
  background: #000;
  /* Subtelny jasny cień, żeby czarny obrazek oddzielił się od czarnego tła Modala (warsztatowy klimat) */
  box-shadow: 0 0 50px rgba(255,255,255,0.1); 
}

.close {
  position: absolute;
  /* POPRAWKA POZYCJI: Trzymamy go wysoko i przy krawędzi ekranu */
  top: 15px; 
  right: 25px; 
  color: #fff; 
  /* POPRAWKA ROZMIARU: Gigantyczny symbol, żeby starsi ludzie go trafili */
  font-size: 150px; 
  font-weight: bold;
  line-height: 0.8; /* Pomaga wyrównać duży symbol wertykalnie */
  cursor: pointer;
  z-index: 2010; /* Upewniamy się, że jest nad wszystkim */
  transition: 0.3s;
  /* Cień pod tekstem, żeby X był widoczny na jasnym zdjęciu */
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.close:hover {
  color: #ff2a2a;
  transform: scale(1.1);
}

.modal-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2005;
}
.modal-nav:hover {
  background: rgba(255,255,255,0.05);
}

/* --- NAPRAWA BIAŁEGO TŁA W GALERII --- */
.gallery-container, 
.main-view, 
.thumbnails,
#thumbnails-container {
  background-color: #0a0a0a !important; /* Wymusza ciemne, warsztatowe tło */
}

.main-view {
  border: 1px solid #2a2a2a !important; /* Dodaje subtelną, ciemną ramkę wokół zdjęcia */
  border-radius: 8px !important; /* Zaokrągla rogi, żeby pasowało do reszty strony */
}

/* --- POWIĘKSZENIE STRZAŁEK TYLKO W GALERII --- */
.nav-zone .arrow, 
.modal-nav .arrow {
    font-size: 130px !important; /* Zmień tę wartość, żeby dopasować wielkość (np. 80px lub 90px) */
    font-weight: bold;
    color: #ff0000;
    text-shadow: 0 0 10px rgba(0,0,0,0.8); /* Cień, żeby były widoczne na jasnych zdjęciach */
}

/* Kursor lupy zachęcający do kliknięcia na głównym zdjęciu (tylko na komputerach) */
@media (min-width: 901px) {
  #expandedImg {
    cursor: zoom-in;
    transition: transform 0.3s;
  }
  #expandedImg:hover {
    transform: scale(1.02);
  }
}

/* --- KOMPLEKSOWA SEKCJA RESPONSYWNA DLA CAŁEJ WITRYNY --- */
@media (max-width: 900px) {
  
  /* 1. OGÓLNE I HEADER (Strona Główna + Usługi) */
  header {
    padding: 20px 10px;
  }

  .left, .auto {
    display: none !important; /* Ukrywamy ozdobniki na mobile, by nie śmieciły */
  }

  .logo {
    margin: 0 auto 15px auto;
    width: 85%;
    height: auto;
    display: block;
  }

  .center {
    position: static;
    transform: none;
    width: 100%;
  }

  /* 2. TELEFONY I TAGLINE */
  .telefony {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .tel {
    font-size: 16px;
    background: #8b0000;
    padding: 12px;
    border-radius: 8px;
    width: 95%;
    text-align: center;
    box-sizing: border-box;
  }

  .tagline {
    font-size: 14px;
    line-height: 1.4;
    padding: 10px;
    margin: 0;
  }

  /* 3. NAWIGACJA (Układ 2x2) */
nav {
    display: grid !important; /* Wymuszamy siatkę */
    grid-template-columns: 1fr 1fr !important; /* Dwa rzędy po dwa kafelki */
    gap: 10px !important;
    padding: 15px !important;
    background: transparent; /* Usuwamy tło paska, jeśli było */
  }

nav a {
    display: block !important;
    background: #333 !important; /* Ciemne tło kafelka */
    color: white !important;
    padding: 20px 10px !important; /* Duży padding dla "grubego palucha" */
    border-radius: 10px !important;
    text-align: center !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border: 1px solid #444 !important;
  }
  
  nav a:active {
    background: #ff2a2a !important; /* Kolor przy kliknięciu */
  }

  /* 4. STRONA GŁÓWNA I USŁUGI (Układ treści) */
  section {
    padding: 30px 15px;
    margin: 20px 10px;
  }

  .kafelki, .uslugi {
    grid-template-columns: 1fr !important; /* Wszystko w jednej kolumnie */
    gap: 15px;
  }

/* 5. PODSTRONA ZDJĘCIA (Galeria) */
  .thumbnails {
    gap: 8px; /* Zostawiamy tylko gap, wywalamy grid-template-columns */
  }
  
  .thumb { 
    height: 90px; 
    width: 110px; /* Dodajemy sztywną szerokość na telefony, żeby były mniejsze */
  }
  
  .nav-zone { width: 25%; }
  .main-view { height: 350px; }


  .prev, .next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  /* 6. MAPA I STOPKA */
  iframe {
    height: 300px; /* Mniejsza mapa na mobile */
  }
}

