html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Roboto", serif;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  margin: 0 auto;
  max-width: 1170px;
  width: 100%;
}

.logo {
  max-width: 250px;
}

.headerArea {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.headerNavUl {
  list-style: none;
  display: flex;
  gap: 40px;
}

.headerNavUlLi.active a {
  color: #3fb206;
  text-decoration: underline;
}

.headerNavUlLi a:hover {
  color: #3fb206;
}

.slider {
  width: 100%;
  height: 74vh;
  background-image: url("../assets/images/background.jpeg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sliderArea {
  text-align: center;
  z-index: 10;
  color: white;
}

.sliderArea h1 {
  font-size: 54px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7), -1px -1px 0 rgba(0, 0, 0, 0.7),
    1px -1px 0 rgba(0, 0, 0, 0.7), -1px 1px 0 rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

.sliderArea h2 {
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7), -1px -1px 0 rgba(0, 0, 0, 0.7),
    1px -1px 0 rgba(0, 0, 0, 0.7), -1px 1px 0 rgba(0, 0, 0, 0.7);
  margin-bottom: 50px;
}

.sliderArea h3 {
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7), -1px -1px 0 rgba(0, 0, 0, 0.7),
    1px -1px 0 rgba(0, 0, 0, 0.7), -1px 1px 0 rgba(0, 0, 0, 0.7);
}

.sliderButtons {
  margin-top: 20px;
}

.sliderButtons button {
  padding: 10px 20px;
  background-color: #fff;
  border: none;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  margin: 5px;
}

.sliderButtons button:hover {
  background-color: #f0f0f0;
}

.footer {
  background-color: #222;
  color: white;
  line-height: 26px;
}

.footer .footerArea {
  display: flex;
  padding: 30px 0;
  justify-content: space-between;
}

.footerArea iframe {
  width: 100%; /* Dopasuj szerokość do rodzica */
  aspect-ratio: 16 / 9; /* Zachowaj proporcje ekranu (16:9 lub inne, np. 4:3) */
  max-width: 100%; /* Ogranicz szerokość do rodzica */
  border: 0; /* Usuń domyślną ramkę */
}

.footerLogo {
  max-width: 300px;
}

.aboutCompanyP {
  max-width: 600px;
}

.footerPhoneNumber {
  color: #3fb206;
  text-decoration: underline;
}

.footerEmail {
  color: #3fb206;
  text-decoration: underline;
}

.rzetelna-firma {
  text-align: center;
}

.copyright {
  padding: 10px 0;
  background: limegreen;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

/* OFFER */

.offerSlider {
  padding: 50px 0;
  background-image: url("../assets/images/background.jpeg");
  text-align: center;
  color: white;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-bottom: 50px;
}

.offerDetails {
  padding-bottom: 15px;
}

.offerGallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  gap: 10px;
  justify-content: center;
}

.spacer {
  width: 100%;
  margin-top: 40px;
}

.image-class {
  height: 250px;
  width: 350px;
}

/* Media Queries */
@media (max-width: 1024px) {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 16px;
  }

  .sliderButtons button {
    font-size: 14px;
  }

  .aboutCompanyP {
    max-width: 100%; /* Gwarantuje, że tekst nie wychodzi poza ekran */
    word-wrap: break-word; /* Łamanie długich słów */
    overflow-wrap: break-word; /* Alternatywna właściwość dla starszych przeglądarek */
    padding: 0 15px; /* Dodanie marginesu po bokach, aby tekst nie przylegał do krawędzi */
  }
}

@media (max-width: 992px) {
  .headerArea {
    flex-direction: column;
    align-items: center;
  }

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

  .sliderArea h2 {
    font-size: 1.25rem;
  }

  .footer .footerArea {
    flex-direction: column;
    text-align: center;
  }

  .offerSlider h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .headerNavUl {
    gap: 20px;
    flex-direction: column;
  }

  .sliderArea h1 {
    font-size: 2rem;
  }

  .sliderArea h2 {
    font-size: 1rem;
  }

  .offerGallery {
    grid-template-columns: 1fr;
  }

  .image-class {
    height: auto;
    max-width: 100%;
  }

  .sliderArea {
    padding: 15px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 14px;
  }

  .sliderButtons {
    flex-direction: column;
    gap: 10px;
  }

  .sliderButtons button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100%;
  }

  .aboutCompanyP {
    max-width: 100%; /* Gwarantuje, że tekst nie wychodzi poza ekran */
    word-wrap: break-word; /* Łamanie długich słów */
    overflow-wrap: break-word; /* Alternatywna właściwość dla starszych przeglądarek */
    padding: 0 10px; /* Mniejsze marginesy na jeszcze mniejszych ekranach */
  }
}

@media (max-width: 576px) {
  .headerNavUl {
    font-size: 0.9rem;
  }

  .offerSlider h1 {
    font-size: 1.5rem;
  }

  .footer .footerArea {
    gap: 10px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 14px;
  }

  .sliderButtons button {
    padding: 12px 20px;
    font-size: 14px;
  }

  .aboutCompanyP {
    max-width: 100%; /* Gwarantuje, że tekst nie wychodzi poza ekran */
    word-wrap: break-word; /* Łamanie długich słów */
    overflow-wrap: break-word; /* Alternatywna właściwość dla starszych przeglądarek */
    padding: 0 5px; /* Jeszcze mniejsze marginesy */
  }

  .footerLogo {
    max-width: 180px;
  }
}
