
.header {
  background: #ffffff;
}



.header__logo-wrapper {
  max-height: 27px;
}

.header__top {
  padding: 40px 0 40px 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-align: center;
  align-items: center;
}

/* Domyślnie header sticky dla większych ekranów */
.header__top.is-sticky {
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  background: #ffffff;
  padding: 40px 0 40px 0;
}

.header__top.is-sticky ~ .header__sticky-bar {
  visibility: visible;
}

/* Wyłączenie sticky w mobilnej wersji (poniżej 1000px) */
@media (max-width: 1000px) {
  .header__top.is-sticky {
    position: relative;
    background: transparent;
    top: initial;
    z-index: initial;
    width: 100%;
  }

  /* Usunięcie sticky paska w wersji mobilnej */
  .header__top.is-sticky ~ .header__sticky-bar {
    display: none;
  }

  /* Logo oraz menu mają być zawsze na górze */
  .header__top {
    position: relative;
    background: #ffffff;
    padding: 35px 0;
    width: 100%;
  }

  /* Stylizacja dla samego menu */
  .header__menu {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background: #036d51;
    z-index: 10;
    visibility: visible;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .header__menu-items {
    flex-direction: column;
  }

  .header__menu-items > li {
    margin-bottom: 10px;
  }
}


@media (max-width: 1000px) {
  .header__top {
    padding: 35px 0;
    position: relative;
  }
}

.header__sticky-bar {
  position: fixed;
  left: 0;
  width: 100%;
  height: 107px;
  top: 0;
  z-index: 9;
  background: #ffffff;
  pointer-events: none;
  visibility: hidden;
}

@media (max-width: 1000px) {
  .header__sticky-bar {
    height: 107px;
  }
}

@media (max-width: 659px) {
  .header__sticky-bar {
    height: 96px;
  }
}

.header__bottom {
  padding: 0 0 70px 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
}

@media (max-width: 1023px) {
  .header__bottom {
    padding: 0 0 0 0;
    height: calc(100% - 97px);
    padding: 0 0 40px 0;
  }
}

@media (max-width: 659px) {
  .header__bottom {
    padding: 0 0 0 0;
  }
}

.header__bottom-data {
  -ms-flex: 0 0 392px;
  flex: 0 0 392px;
  margin: 50px 0 0 0;
}

@media (max-width: 659px) {
  .header__bottom-data {
    margin: auto 0 0 0;
    box-sizing: border-box;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    padding: 0 0 40px 0;
  }
}

.header__bottom-data h1 {
  margin: 0;
  font-style: normal;
  color: #000000;
}

.header__bottom-data h1 > .heading-main {
  font-weight: bold;
  font-size: 57px;
  line-height: 70px;
  position: relative;
}

@media (max-width: 1023px) {
  .header__bottom-data h1 > .heading-main {
    font-size: 43px;
    line-height: 53px;
  }
}

.header__bottom-data h1 > .heading-additional {
  display: block;
  margin-top: 65px;
  font-weight: normal;
  font-size: 21px;
  line-height: 38px;
}

@media (max-width: 1023px) {
  .header__bottom-data h1 > .heading-additional {
    font-size: 18px;
    line-height: 32px;
  }
}

.header__bottom-image {
  -ms-flex: 0;
  flex: 0;
  max-width: calc(100% - 392px);
}

@media (max-width: 1023px) {
  .header__bottom-image {
    margin: auto 0;
  }
}

@media (max-width: 659px) {
  .header__bottom-image {
    display: none;
  }
}

.header__hamburger-menu {
  display: none;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 82px;
  height: 60px;
  position: absolute;
  top: 20px;
  right: 0;
  padding: 0 34px 0 17px;
  box-sizing: border-box;
  background: #ffffff;
}

@media (max-width: 1000px) {
  .header__hamburger-menu {
    display: -ms-inline-flexbox;
    display: inline-flex;
  }
}

.header__hamburger {
  display: none;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 82px;
  height: 60px;
  position: absolute;
  top: 18px;
  right: -25px;
  padding: 0 34px 0 17px;
  box-sizing: border-box;
  transition: 0.3s ease-in-out;
}


.header__hamburger > span {
  width: 100%;
  height: 2px;
  border-radius: 25px;
  background: #000000;
}

.header__hamburger > span:nth-child(2) {
  margin: 5px 0;
}

@media (max-width: 1000px) {
  .header__hamburger {
    display: -ms-inline-flexbox;
    display: inline-flex;
  }
}














.header__menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.header__menu-items > li {
  margin-right: 35px;
  position: relative;
}

.header__menu-items > li:last-child {
  margin-right: 0;
}

/* Parent menu item link styles */
.header__menu-item {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0 15px; /* Adjust padding as needed */
  line-height: normal; /* Ensure line-height does not cause extra height */
  z-index: 1; /* Set lower z-index than submenu */
}

/* Default hover effect */
/* Efekt podkreślenia tylko dla głównych pozycji menu */
.header__menu-items > li > .header__menu-item:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0%;
  height: 2px;
  background: #036d51;
  transition: width 0.3s ease-in-out;
  z-index: -1;
}

/* Rozszerzenie podkreślenia przy najechaniu */
.header__menu-items > li > .header__menu-item:hover:after,
.header__menu-items > li > .header__menu-item:focus:after {
  width: 100%;
}

/* Zapobiegaj efektowi podkreślenia na elementach podmenu */
.menu-picker__content .header__menu-item:after {
  content: none;
}






/* Dostosowanie do widoku mobilnego */
@media (max-width: 1000px) {
  .header__menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #036d51;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
    justify-content: flex-end;

  }

  .header__menu.is-active {
    visibility: visible;
    opacity: 1;
  }

  /* Zmiana rozmiaru tekstu i marginesów w trybie mobilnym */
  .header__menu-item {
    font-size: 30px;
    line-height: 34px;
    margin: 10px 0;
  }

  .header__menu-item:after {
    content: none;
  }

  .header__menu-items {
    
    flex-direction: column; /* Na mobilnych urządzeniach menu powinno być w kolumnie */
  }

  .header__menu-items li {
    position: relative;

    margin-right: 0; /* Na mobilnych marginesy poziome nie są potrzebne */
    margin-bottom: 10px;
  }
}

/* Stylowanie linków w menu */
.header__menu-items li a {
  color: #000000;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 18px;
  margin-right: 35px;
  text-decoration: none;
  position: relative;
}

/* Podkreślenie po najechaniu na element menu */
.header__menu-items li a:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0%;
  height: 2px;
  background: #036d51;
  transition: 0.3s ease-in-out;
}

.header__menu-items li a:hover:after, 
.header__menu-items li a:focus:after {
  width: 100%;
}







.menu-picker {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.menu-picker.is-active:after {
  width: 100%;
}

.menu-picker > a {
  position: relative;
  padding-right: 15px;
}

.menu-picker > a:after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: 5px;
}







/* Submenu */
/* Submenu styles */
/* Hide submenu by default */
@media (min-width: 851px) {
.menu-picker__content {
  position: absolute;
  left: 0;
  top: 100%;
  background: #f3faf4;
  display: none;
  flex-direction: column;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 10; /* Ensure submenu is above parent */
  visibility: hidden;
}

/* Show submenu on hover */
.header__menu-items > li.has-submenu:hover .menu-picker__content {
  display: flex;
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transition-delay: 0s;
}


/* Submenu links */
.menu-picker__content a {
  color: #fff;
  padding: 10px;
  text-decoration: none;
}

/* Hover effect on submenu items */
.menu-picker__content a:hover {
  text-decoration: underline;
}
}

/* Mobile Styles */
@media (max-width: 1000px) {
  .header__menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f3faf4;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
  }

  .header__menu.is-active {
    visibility: visible;
    opacity: 1;
  }

  .header__menu-items {
    flex-direction: column;
  }

  .header__menu-items > li {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .header__menu-item {
    font-size: 30px;
    line-height: 34px;
    margin: 10px 0;
  }

  .header__menu-item:after {
    content: none;
  }

  /* Adjust submenu for mobile */
  .menu-picker__content {
    position: static;
    opacity: 1;
    pointer-events: all;
    display: none;
  }

  .has-submenu.is-active .menu-picker__content {
    display: block;
  }

  /* Linki w podmenu */
.menu-picker__content a {
  color: #fff;
  padding: 10px;
  text-decoration: none;
  margin-left: 20px;
}

/* Efekt po najechaniu na linki w podmenu */
.menu-picker__content a:hover {
  text-decoration: underline;
}

.header__menu-items > li.pll-parent-menu-item {
  display: none;
}
}


.header__mobile-menu-links {
  display: none;
  -ms-flex-pack: center;
  justify-content: center;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 1;
  bottom: 35px;
}

@media (max-width: 1000px) {
  .header__mobile-menu-links {
    display: -ms-flexbox;
    display: flex;
  }
}

.header__mobile-menu-links > span {
  display: block;
  width: 1.5px;
  background: #ffffff;
}

.header__mobile-menu-links > a {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 18px;
  color: #ffffff;
  text-decoration: none;
}

.header__mobile-menu-links > a:first-child {
  padding-right: 23px;
}

.header__mobile-menu-links > a:last-child {
  padding-left: 23px;
}

.header__mobile-menu-links > a:link, .header__mobile-menu-links > a:active, .header__mobile-menu-links > a:hover, .header__mobile-menu-links > a:visited {
  color: #ffffff;
}


