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

/* Sekcja o nas */
#o-nas {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

#o-nas h2 {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    
    margin-bottom: 30px;
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

#o-nas p.o-nas-description {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    
    margin-bottom: 30px;
    text-align: left;
}

.o-nas-img {
    width: 100%;
    height: 600px;
    display: block;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 20px;
    image-rendering: crisp-edges;
}

.o-nas-content {
    background-color: #f4f4f4;
    padding: 30px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.o-nas-content p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
}

.o-nas-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    max-width: 1000px;
    height: 500px;
    margin: 20px auto 0;
    gap: 5px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-img.large {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.gallery-img.small:first-child {
    grid-column: 2;
    grid-row: 1;
}

.gallery-img.small:last-child {
    grid-column: 2;
    grid-row: 2;
}

.misja {
    background-color: #f4f4f4;
    padding: 60px 80px;
    width: 100%;
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-sizing: border-box;
}

.misja-tekst {
    flex: 1;
    min-width: 300px;
}

.misja-naglowek {
    
    font-size: 1.5em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #333;
}

.misja-opis {
    
    font-size: 1.2em;
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

.misja-obrazek,
.misja-obrazek1 {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.misja-obrazek img,
.misja-obrazek1 img {
    width: 250px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}
@media (max-width: 768px) {
  .misja-obrazek img,
  .misja-obrazek1 img {
    width: 180px;
    margin: 15px auto;
  }
}

/* Responsywność dla ekranów poniżej 480px */
@media (max-width: 480px) {
  .misja-obrazek img,
  .misja-obrazek1 img {
    width: 140px;
    margin: 10px auto;
  }
}

.nasze-maszyny1 {
    padding: 40px 40px;
    text-align: center;
}

.nasze-maszyny1 h3 {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 100px;
    text-transform: uppercase;
}

.maszyny-galeria1 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    justify-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.maszyna1 {
    width: 100%;
    background-color: #ffffff;
    padding: 0;
    border-radius: 8px;
    box-shadow: none;
    text-align: center;
}

.maszyna1 img {
    width: 100%;
    height: auto;
    border-radius: 0;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

.komentarz {
    background-color: #ffffff;
    padding: 10px;
    font-size: 1.2em;
    color: #333;
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.liczby {
    padding: 40px;
    background-color: #f4f4f4;
}

.liczby-tekst {
    text-align: center;
    margin-bottom: 40px;
}

.liczby-naglowek {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff0000;
}

.liczby-opis {
    font-size: 1.2em;
    color: #666;
}

.liczby-statystyki {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.liczba {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 20%;
    min-width: 200px;
}

.liczba-numer {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
}

.liczba-opis {
    font-size: 1.2em;
    color: #777;
}

.liczba .liczba-numer.active {
    transition: all 1s ease-in-out;
    transform: scale(1.5);
    color: #ff0000;
}

/* Gama maszyn i Prezes */
.sekcja-gama-maszyn,
.sekcja-prezes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.gama-obrazek img,
.prezes-obrazek img {
    max-width: 600px;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gama-tekst {
    max-width: 650px;
    text-align: left;
    margin-left: 80px;
}

.gama-naglowek {
    font-size: 28px;
    margin-bottom: 20px;
    color: #111;
    font-family: 'Arial Black', sans-serif;
}

.gama-opis {
    font-size: 18px;
    line-height: 1.65;
    color: #222;
}

/* --- RESPONSYWNOŚĆ --- */

@media (max-width: 1024px) {
    .maszyny-galeria1 {
        grid-template-columns: repeat(3, 1fr);
    }

    .gama-tekst {
        margin-left: 0;
        text-align: center;
    }

    .gama-obrazek img,
    .prezes-obrazek img {
        min-height: auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .maszyny-galeria1 {
        grid-template-columns: repeat(2, 1fr);
    }

    .o-nas-gallery {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .gallery-img {
        height: auto;
    }

    #o-nas p.o-nas-description {
        text-align: center;
    }

    .misja {
        padding: 40px 20px;
        flex-direction: column;
    }

    .gama-tekst {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    #o-nas h2,
    .nasze-maszyny1 h3,
    .liczby-naglowek {
        font-size: 1.5em;
    }

    #o-nas p.o-nas-description,
    .misja-naglowek,
    .gama-naglowek {
        font-size: 1.2em;
    }

    .misja-opis,
    .gama-opis,
    .liczby-opis {
        font-size: 1em;
    }

    .maszyny-galeria1 {
        grid-template-columns: 1fr;
    }

    .liczby-statystyki {
        flex-direction: column;
        align-items: center;
    }

    .liczba {
        width: 100%;
    }
}
.prezes-obrazek img {
  max-width: 600px;
  height: 100%;
  min-height: 400px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.prezes-tekst {
  max-width: 650px;
  text-align: left;
  margin-right: 80px;
}

.prezes-naglowek {
  font-size: 28px;
  margin-bottom: 20px;
  color: #111;
  font-family: 'Arial Black', sans-serif;
}

.prezes-opis {
  font-size: 18px;
  line-height: 1.65;
  color: #222;
}

.sekcja-kontakt-przycisk {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background-color: #fefefe;
}

.kontakt-przycisk {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #c20000;
  color: #fff;
  padding: 20px 30px;
  text-decoration: none;
  font-size: 20px;
  border-radius: 12px;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  font-family: 'Arial', sans-serif;
}

.kontakt-przycisk:hover {
  background-color: #a80000;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.kontakt-ikona {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* --- DODANA RESPONSYWNOŚĆ --- */
@media (max-width: 1024px) {
  .prezes-tekst {
    margin-right: 40px;
  }

  .prezes-naglowek {
    font-size: 24px;
  }

  .prezes-opis {
    font-size: 16px;
  }

  .kontakt-przycisk {
    font-size: 18px;
    padding: 18px 26px;
  }
}

@media (max-width: 768px) {
  .prezes-obrazek img {
    max-width: 100%;
    min-height: auto;
    height: auto;
  }

  .prezes-tekst {
    margin-right: 0;
    text-align: center;
    max-width: 100%;
  }

  .prezes-naglowek {
    font-size: 22px;
  }

  .prezes-opis {
    font-size: 16px;
  }

  .sekcja-kontakt-przycisk {
    padding: 60px 10px;
  }

  .kontakt-przycisk {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    font-size: 16px;
    padding: 16px 24px;
  }

  .kontakt-ikona {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .prezes-naglowek {
    font-size: 20px;
  }

  .prezes-opis {
    font-size: 15px;
  }

  .kontakt-przycisk {
    font-size: 15px;
    padding: 14px 20px;
  }

  .kontakt-ikona {
    width: 28px;
    height: 28px;
  }
}
