.container-oferta {
  max-width: 1200px;
  margin: 0 auto;
}

.container-oferta-safety {
  width: 100%;
  max-width: 1200px;
  position: relative;
  height: 500px;
}

.safety-section-menu-box {
  margin-top: 60px;
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: Arial, sans-serif;
}

.safety-section-menu-box h1 {
  font-weight: 700;
  font-size: 40px;
  line-height: 50px;
  text-align: center;
  padding-left: 10px;
}

.safety-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  margin: 35px 0;
}

.safety-text,
.safety-image {
  flex: 1 1 45%;
  align-content: center;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px;
}

.safety-text h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 40px;
}

.safety-text p {
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.safety-text-strong {
  color: #050505;
}

.safety-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 217px;
  border-bottom-right-radius: 150px;
}

#cl .safety-image img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 326px;
}

.material-icons {
  font-size: 16px;
}

.safety-section-menu {
  cursor: pointer;
  font-weight: bold;
  position: relative;
  padding: 10px;
  background-color: #fff;
  color: black;
  border: 1px solid black;
  border-radius: 6px;
}

#dropdown-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

#menu-hover-area.open #dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: -50px;
  background-color: #fff;
  width: 250px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  pointer-events: none;
  font-size: 13px;
}

.dropdown-menu li a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #dfdfdf;
}

.dropdown-menu li a:hover {
  background-color: #dfdfdf;
}

.safety-section-menu.open .dropdown-menu {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
}

.container-safety-section {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  background-color: #126f8d;
  padding: 60px 20px;
}

.text-block {
  width: 30%;
  color: #fff;
  position: relative;
}

.image-block {
  width: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-block img {
  max-width: 70%;
  max-height: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -50px;
}

.safety-advice-fullwidth {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: #126f8d;
  padding: 60px 20px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 80px;
  margin-bottom: 60px;
}

.safety-advice-fullwidth .text-block {
  width: 40%;
  color: #fff;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -100px;
}

.safety-advice-fullwidth .image-block {
  width: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.safety-section-shifted {
  position: relative;
  z-index: 2;
  transform: translateX(-30%);
  margin-bottom: 20px;
  color: #fff;
}

.safety-section-btn {
  color: #126f8d !important;
  background-color: #fff !important;
  margin-left: calc(-30%);
  display: none;
}

a.safety-section-btn:hover {
  background-color: #126f8d;
  border: 1px solid #fff;
  color: #fff;
}

a.safety-section-btn:active {
  background-color: #0d5a72;
  color: #fff;
}

a.safety-section-btn:focus {
  outline: 2px solid #126f8d;
  outline-offset: 4px;
}

/* === Media Queries === */

/* Wspólne style dla obu breakpointów */
@media (max-width: 1024px) {
  .container-oferta-safety {
    height: auto;
  }

  .container-oferta {
    height: auto;
  }

  .safety-section-menu-box {
    flex-direction: column;
    text-align: left;
    gap: 20px;
  }

  .safety-section-menu-box h1 {
    font-size: 25px;
    line-height: 34px;
  }

  .safety-section .safety-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px !important;
    margin: 24px 0;
    padding: 0 12px;
    height: auto;
  }

  .safety-section .safety-image,
  .safety-section .safety-text,
  .safety-section .image-block,
  .safety-advice-fullwidth .text-block {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
  }

  .safety-section .safety-image,
  .safety-section .image-block {
    order: 1;
    text-align: left;
  }

  .safety-section .safety-text,
  .safety-advice-fullwidth .text-block {
    order: 2;
    padding: 0;
  }

  .safety-section .safety-text h2 {
    font-size: 25px;
    margin-bottom: 34px;
    text-align: left;
  }

  .safety-section .safety-text p {
    margin-bottom: 16px;
    text-align: left;
  }

  .safety-section .safety-image img,
  .safety-section .image-block img {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    height: auto;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
  }

  .safety-image img {
    opacity: 1;
    border-top-left-radius: 104px;
    border-bottom-right-radius: 74px;
  }

  .safety-advice-fullwidth {
    flex-direction: column;
    text-align: left;
    padding: 32px 16px;
    height: auto;
    margin-top: 40px;
    margin-bottom: 0px;
  }

  .safety-advice-fullwidth .text-block {
    margin-top: 16px;
    text-align: left;
    padding-left: 25px;
    padding-right: 25px;
  }

  .safety-section-shifted {
    transform: none !important;
    text-align: left;
    margin-left: 0;
  }

  .safety-section-shifted h2 {
    font-size: 25px;
    line-height: 34px;
  }

  .safety-section-btn {
    margin-left: 0;
    margin-top: 20px;
    display: inline-block;
  }

  /* .faq {
    padding: 0 12px;
  }

  .faq-question span {
    font-size: 16px;
  }

  .faq-answer p {
    font-size: 14px;
  }
  

  .faq-answer-list {
    font-size: 14px;
    line-height: 24px;
  } */

  .safety-section-btn {
    margin: 25px auto 30px auto !important;
  }
}

/* Różnice dla 1024px */
@media (max-width: 1024px) {
  .container-oferta {
    margin: 0 60px;
  }

  .safety-section-menu-box h1 {
    text-align: left;
    padding-left: 50px;
  }
}

@media (max-width: 480px) {
  .container-oferta {
    margin: 0 20px;
  }

  .safety-section-menu-box h1 {
    padding-left: 0;
  }

  .safety-section-menu-box {
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    margin-left: 10px;
  }

  .safety-section .safety-image img,
  .safety-section .image-block img {
    max-width: 100%;
  }

  #advice {
    margin-top: -50px;
  }

  .safety-section-menu-box h1 {
    margin: -30px 0;
  }

  .safety-section-menu {
    font-size: 14px;
    padding: 8px 12px;
  }

  .dropdown-menu {
    left: 0;
    width: 100vw;
    border-radius: 0;
  }

  .safety-content-wrapper {
    gap: 32px;
    margin: 32px 0;
    padding: 0 12px;
  }

  .safety-text h2 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .safety-text p {
    margin-bottom: 14px;
  }

  .safety-advice-fullwidth {
    padding: 32px 12px;
    left: -35px;
    box-sizing: border-box;
  }

  .safety-advice-fullwidth .safety-section-shifted {
    text-align: left;
  }

  .safety-section-btn {
    margin: 20px auto 0;
    font-size: 15px;
    padding: 12px 20px;
  }

  .faq {
    padding: 0 12px;
    width: calc(100% - 24px);
    margin: 0 auto;
  }

  .faq-answer ul {
    padding-left: 16px;
  }

  .faq-answer {
    padding: 0;
  }

  .material-icons {
    font-size: 18px;
  }

  .safety-section {
    padding-bottom: 32px;
  }

  body {
    overflow-x: hidden;
  }
}
