body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}


/* Styl dla pokazu slajdów */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

/* Slajdy */
.slajd {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0; /* Domyślnie slajdy są niewidoczne */
  transition: opacity 1s ease-in-out; /* Płynne przejście */
}

/* Obrazki slajdów */
.slajd img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tekst na slajdach */
.tekst {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: white;
  text-align: left;
  font-family: Arial, sans-serif;
  max-width: 40%;
}

/* Nagłówek tekstu */
.tekst h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Treść tekstu */
.tekst p {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

/* Przycisk */
.button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 25px;
  background-color: red;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/* Efekt przycisku */
.button:hover {
  background-color: darkred;
  transform: scale(1.1); /* Powiększenie przy najechaniu */
}
@media (max-width: 600px) {
  .slideshow-container {
    height: 50vh; /* niższa wysokość, mniej miejsca zajmuje */
  }
  .slajd img {
    height: 100%;
    object-fit: contain; /* obraz dopasowany bez przycinania */
  }
  .tekst {
    display: none; /* ukrywamy tekst */
  }
}


.informacja {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: black;
  max-width: 60%;
  margin: 30px auto;
  padding: 20px;
  border: 3px solid #333;
  border-radius: 10px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
  line-height: 1.6;
}
.maszyny-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.maszyna {
  position: relative;
  width: 30%;
  height: 450px; /* Wszystkie na tę samą wysokość */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.maszyna img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Przycinamy nadmiar, bez białych pasków */
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  border-radius: 10px;
}
.kategoria {
  position: absolute;
  bottom: 50px; /* Przesunięcie tekstu wyżej */
  width: 100%;
  color: rgb(255, 255, 255);
  text-align: center;
  font-weight: bold;
  font-size: 50px; /* Zwiększenie rozmiaru tekstu */
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: transform 0.3s ease;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Dodanie cienia dla lepszej widoczności */
}

.opis {
  position: absolute;
  bottom: -20px; /* Początkowo ukryty poniżej */
  width: 100%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px; /* Zwiększenie czcionki */
  letter-spacing: 1px;
  transition: bottom 0.3s ease;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); /* Dodanie cienia dla lepszej widoczności */
  
  /* Nowe style */
  text-align: center; /* Wyśrodkowanie tekstu */
  font-weight: bold; /* Pogrubienie tekstu */
  text-decoration: underline; /* Podkreślenie tekstu */
}


.maszyna {
  position: relative;
  overflow: hidden;
  height: 600px;
  display: block; /* Konieczne dla <a> */
  text-decoration: none;
  color: inherit;
}

/* Obrazek */
.maszyna img {
  transition: transform 0.3s ease;
  transform-origin: bottom;
  width: 100%;
  height: 100%;
  display: block;
}

/* Po najechaniu obrazek powiększa się */
.maszyna:hover img {
  transform: scale(1.1);
  filter: blur(5px);
}

/* Białe zaznaczenie – poprawka: nie blokuje kliknięć */
.maszyna::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s ease;
  pointer-events: none; /* <<< kluczowe! */
}
@media (max-width: 600px) {
  .maszyny-section {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  .maszyna {
    width: 100%;
    height: 300px; /* Możesz zmienić wysokość dla mniejszych ekranów */
  }
}


/* Tekst główny i opis */
.kategoria {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #fff; /* ← biały kolor */
  transition: transform 0.3s ease;
}

.opis {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 23px;
  color: #fff; /* ← biały kolor */
  transition: bottom 0.3s ease;
}


.maszyna:hover .kategoria {
  transform: translateY(-30px);
}

.maszyna:hover .opis {
  bottom: 20px;
}

.oferta {
  background-color: #f0f0f0;
  padding: 30px 20px;
  margin-top: 50px;
  text-align: center;
}

.oferta h2 {
  font-size: 24px;
  margin-bottom: 40px;
}

.oferta-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.oferta-box {
  background-color: #d3d3d3;
  padding: 30px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
   text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oferta-box:hover {
  background-color: #b3b3b3;
  transform: scale(1.05);
}

.duzy {
  flex: 1;
  height: 312px;
}

.oferta-kolumna {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
}

.oferta-kolumna .oferta-box {
  height: 115px;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');


/* RESPONSYWNOŚĆ DLA TABLETÓW (601px – 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  .slideshow-container {
    height: 60vh;
  }

  .tekst {
    max-width: 80%;
    left: 10%;
    top: 55%;
  }

  .tekst h1 {
    font-size: 2.5rem;
  }

  .tekst p {
    font-size: 1rem;
  }

  .button {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .informacja {
    font-size: 1.2rem;
    padding: 15px;
    max-width: 80%;
  }

  .maszyny-section {
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }

  .maszyna {
    width: 45%;
    height: 350px;
  }

  .kategoria {
    font-size: 30px;
    bottom: 40px;
  }

  .opis {
    font-size: 18px;
    bottom: -20px;
  }

  .maszyna:hover .kategoria {
    transform: translateY(-20px);
  }

  .maszyna:hover .opis {
    bottom: 15px;
  }

  .oferta-container {
    flex-direction: column;
    align-items: center;
  }

  .oferta-box {
    width: 100%;
    max-width: 90%;
    font-size: 18px;
    padding: 20px;
  }

  .oferta-kolumna {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .oferta-kolumna .oferta-box {
    width: 45%;
    height: auto;
    margin-bottom: 20px;
  }

  .duzy {
    height: auto;
  }
}








