body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Baner */
.baner-serwis {
    width: 100%;
    height: 300px;
    background-image: url('img/serwis/serwis_2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 60px;
    box-sizing: border-box;
    position: relative;
}

.baner-serwis::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.baner-tresc {
    color: white;
    text-align: left;
    z-index: 2;
}

.baner-tresc h1 {
    font-size: 48px;
    margin: 0;
}

.baner-tresc p {
    font-size: 20px;
    margin: 10px 0 0 0;
}

/* Zakres usług */
.zakres-serwisu {
    padding: 80px 30px;
    background: linear-gradient(135deg, #f4f4f4 0%, #ffffff 100%);
    text-align: center;
    position: relative;
}

.zakres-serwisu h2 {
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.zakres-serwisu h2::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: #c8102e;
    border-radius: 5px;
}

.uslugi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.usluga {
    background-color: white;
    padding: 30px;
    border-radius: 20px 20px 0 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.usluga::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background-color: #c8102e;
    border-radius: 0 0 10px 10px;
}

.usluga:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.usluga i {
    font-size: 40px;
    color: #c8102e;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.usluga:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.usluga h3 {
    font-size: 22px;
    margin: 10px 0;
    color: #333;
    transition: color 0.3s ease;
}

.usluga:hover h3 {
    color: #c8102e;
}

.usluga p {
    font-size: 16px;
    color: #555;

}
.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;
}
.kontakt-sekcja-serwis {
  background-color: #fdfdfd;
  padding: 60px 20px;
  border-top: 1px solid #eee;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.kontener-kontaktu-serwis {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: center;
}

.lewa-strona-opisu {
  flex: 1 1 500px;
}

.lewa-strona-opisu h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #003366;
}

.lewa-strona-opisu p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  max-width: 600px;
}

.prawa-strona-kafelek {
  flex: 1 1 300px;
}

.kafelek {
  position: relative;
  background-color: #f0f2f5;
  border: 1px solid #ccc;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.kafelek:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.kafelek h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #003366;
  font-weight: 600;
}

.kafelek p {
  margin: 6px 0;
  color: #444;
  font-size: 1rem;
}

.kafelek a {
  color: #007bff;
  text-decoration: none;
}

.kafelek a:hover {
  text-decoration: underline;
}

.firma-logo {
  position: absolute;
  bottom: -40px;
  right: 20px;
  opacity: 0.2;
  width: 100px;
  height: auto;
  pointer-events: none;
}


