/* Header Social Media */

.social-box {
  position: relative;
  width: auto;
  float: left;
  margin-left: 60px;
  height: auto;
  color: #fff;
}

.boxes {
  display: inline-block;
}

.boxes p {
  margin-left: 0.6em;
  font-size: 1em;
  color: #468966;
}

.boxes a {
  cursor: pointer;
  color: #468966;
}

.boxes a:hover {
  opacity: 0.7;
}

.boxes.info p {
  font-weight: bold;
  text-transform: uppercase;
  color: #ffb03b;
  font-family: "Fira Sans", sans-serif;
}

.boxes.phone p::before {
  content: "|";
  display: inline-block;
  margin-right: 0.5em;
}

.socials {
  margin-right: 0.7em;
}

.socials a {
  position: relative;
  width: 1.85em;
  height: 1.8em;
  line-height: 1.8em;
  background-color: #0a6199;
  text-align: center;
  font-size: 1.3em;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  border: 2px solid #0a6199;
}

.socials a:before {
  position: absolute;
  content: "";
  top: 0;
  right: 100%;
  width: 150%;
  height: 220%;
  background: #097cbf;
  transform: rotate(130deg);
  -moz-transform: rotate(130deg);
  -o-transform: rotate(130deg);
  -ms-transform: rotate(130deg);
  -webkit-transform: rotate(130deg);
  transition: 0.4s;
  -moz-transition: 0.4s;
  -webkit-transition: 0.4s;
  -ms-transition: 0.4s;
  z-index: 2;
}

.socials a:hover:before {
  right: 0;
}

.socials a .icon {
  position: relative;
  color: #fff;
  transition: all 0.5s;
  -moz-transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -ms-transition: all 0.5s;
  z-index: 3;
}

.socials a:hover .icon {
  -webkit-transform: rotateY(360deg);
  -moz-transform: rotateY(360deg);
  -o-transform: rotateY(360deg);
  -ms-transform: rotateY(360deg);
  transform: rotatey(360deg);
}

/* Info bar */

.nav-bar {
  display: flex;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 70px;
  padding: 0.5em 0;
}

/* Hamburger */

button.hamburger {
  display: none;
}

.hamburger {
  padding: 10px;
  display: inline-block;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  margin: 0;
  width: auto;
  opacity: 1;
}

.hamburger__box {
  width: 40px;
  height: 24px;
  display: inline-block;
  position: relative;
  margin: 0;
  float: left;
}

.hamburger__inner {
  width: 70%;
  height: 3px;
  background-color: #ffb03b;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transition: background-color 0.3s 0.1s ease-in-out;
  -moz-transition: background-color 0.3s 0.1s ease-in-out;
  -webkit-transition: background-color 0.3s 0.1s ease-in-out;
  -ms-transition: background-color 0.3s 0.1s ease-in-out;
}

.hamburger__inner::before,
.hamburger__inner::after {
  content: "";
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ffb03b;
  position: absolute;
  transition: transform 0.3s ease-in-out;
  -webkit-transition: transform 0.3s ease-in-out;
  -moz-transition: transform 0.3s ease-in-out;
  -ms-transition: transform 0.3s ease-in-out;
  -o-transition: transform 0.3s ease-in-out;
}

.hamburger__inner::before {
  top: -8px;
}

.hamburger__inner::after {
  top: 8px;
}

.hamburger--active .hamburger__inner {
  background-color: transparent;
}

.hamburger--active .hamburger__inner::before {
  transform: translateY(8px) rotate(45deg);
  -webkit-transform: translateY(8px) rotate(45deg);
  -moz-transform: translateY(8px) rotate(45deg);
  -o-transform: translateY(8px) rotate(45deg);
  -ms-transform: translateY(8px) rotate(45deg);
}

.hamburger--active .hamburger__inner::after {
  transform: translateY(-8px) rotate(-45deg);
  -webkit-transform: translateY(-8px) rotate(-45deg);
  -moz-transform: translateY(-8px) rotate(-45deg);
  -o-transform: translateY(-8px) rotate(-45deg);
  -ms-transform: translateY(-8px) rotate(-45deg);
}

/* Logo nav-bar */
.logo-nav {
  visibility: hidden;
}

.logo-nav img {
  display: none;
}

/* Header */

.header {
  position: relative;
  display: flex;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
  margin: 0 auto;
  padding: 0.8em 5em;
}

.sticky {
  position: fixed;
  top: -90px;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 9995;
  border-radius: 0;
  box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2);
  -moz-box-box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
  -webkit-animation: slide 0.6s forwards;
  animation: slide 0.6s forwards;
}

@-webkit-keyframes slide {
  100% {
    top: 0;
  }
}

@keyframes slide {
  100% {
    top: 0;
  }
}

.header.sticky img {
  width: 210px;
}

.header.sticky .nav {
  margin-top: 0.5em;
  line-height: 5em;
}

.header.sticky .nav > ul > li > a,
.header.sticky .nav > ul > li > span {
  font-size: 0.9em;
}

/* Logo */

.logo {
  width: 360px;
  height: auto;
}

.logo img {
  display: block;
  width: 100%;
}

/* Overlay przy otwartym submenu */
.nav-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 994;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Aktywny overlay submenu*/
.nav-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Submenu Wrapper*/
.custom-submenu-wrapper:not(.custom-submenu-clone .custom-submenu-wrapper) {
  display: none;
}

/* Hover linków w submenu */
.custom-submenu-clone .custom-slide-menu span:hover,
.custom-submenu-clone .custom-slide-menu a:hover,
.custom-submenu-clone .custom-slide-menu li:hover {
  color: #ffb03b !important;
  transition: color 0.3s ease;
}

/* Linki w submenu */
.custom-slide-menu a {
  color: white;
  text-decoration: none;
  display: block;
  font-size: 1.6em;
  letter-spacing: 1px;
  font-weight: 500;
  transition: color 0.2s ease;
  float: left;
}

/* Elementy listy w submenu*/
.custom-slide-menu li {
  list-style: none;
  padding: 0.3em 0;
  text-align: end;
}

/* Link do katalogu w submenu*/
.custom-slide-menu .menu-offer-link {
  font-size: 1em;
  margin: 3em 0 3em 0;
  display: inline-block;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
}

/* Przycisk Powrót w submenu*/
.menu-back {
  font-size: 0.8em !important;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  text-align: start !important;
}

/* Toggle submenu */
.menu-toggle {
  display: inline-block;
  cursor: pointer;
  font-size: 1.8em;
  margin-left: 1em;
  color: #fff;
  vertical-align: middle;
  padding-top: .15em;
}

/* Ikonka SVG toggle w submenu*/
.menu-toggle svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  fill: #fff;
}

.menu-toggle svg:hover {
  fill: #ffb03b;
  transition: fill 0.3s ease;
}

/* Pasek zamykania submenu */
.menu-close {
  border-bottom: 1px solid rgb(89, 159, 123);
  text-align: right;
}

/* X zamykający submenu */
.menu-close span {
  cursor: pointer;
  color: #fff;
  font-size: 2.5em !important;
  padding: 0 0 0 25px;
  display: inline-block;
}

/* Submenu klonowane */
.custom-submenu-clone {
  position: absolute;
  top: 0;
  left: -100%;
  height: 100dvh;
  background: linear-gradient(180deg, rgb(49, 96, 71) 0%, rgb(68, 135, 100) 50%);
  margin: 0;
  z-index: 9999;
  transition: left 0.7s ease;
}

/* Lista w klonowanym submenu */
.custom-submenu-clone .custom-slide-menu {
  /* Scrollbar: Firefox */
  scrollbar-width: thin; /* lub auto / none */
  scrollbar-color: #ffb03b #468966;
  /* Pozostałe style */
  line-height: 4em;
  z-index: 9999;
  visibility: visible;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  height: 100%;
  width: 100%;
  touch-action: pan-y;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  padding: 1em 2em 0 2.8em;
}

/* Podstawowy scrollbar WebKit */
.custom-submenu-clone .custom-slide-menu::-webkit-scrollbar {
  width: 8px;
}

/* Tło toru scrollbara */
.custom-submenu-clone .custom-slide-menu::-webkit-scrollbar-track {
  background: #468966;
  border-radius: 4px;
}

/* Scrollbar-thumb (uchwyt) – domyślny */
.custom-submenu-clone .custom-slide-menu::-webkit-scrollbar-thumb {
  background-color: #ffb03b;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

/* Scrollbar Hover */
.custom-submenu-clone .custom-slide-menu::-webkit-scrollbar-thumb:hover {
  background-color: #ffb03b;
}

/* Scrollbar Active (podczas przeciągania) */
.custom-submenu-clone .custom-slide-menu::-webkit-scrollbar-thumb:active {
  background-color: #ffb03b;
}

/* Overlay przy otwartym submenu */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Aktywny overlay submenu*/
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media screen and (max-width: 1280px) {
  /* Header */
  .header {
    padding: 1em 0;
  }

  .header.sticky .nav {
    margin-top: 1em;
  }

  /* Logo */
  .logo {
    width: 280px;
    height: auto;
    margin-left: 0;
  }

  /* Header Social Media */
  .social-box {
    margin-left: 2.5em;
  }

  .socials a {
    line-height: 1.7em;
  }

  /* Icon search */
  .icon-search .icon {
    line-height: 1.52em;
  }
}

@media screen and (max-width: 1080px) {
  /* Header Social Media */
  .social-box {
    width: 320px;
    height: auto;
    margin-left: 2em;
  }

  /* Header */
  .header {
    padding: 1em 0.5em;
  }

  .header.sticky {
    padding: 2.5em;
  }

  .header.sticky img {
    width: 200px;
  }

  /* Logo */
  .logo {
    width: 280px;
    height: auto;
    margin-left: 2em;
  }
}


@media screen and (max-width: 980px) {
  /* Info bar */
  .nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 80px;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    opacity: 1;
    box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2);
    -moz-box-box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2);
    padding: 0 0.8em;
    z-index: 998;
  }

  /* Logo nav-bar */
  .logo-nav {
    visibility: visible;
    width: 200px;
    height: auto;
  }

  .logo-nav img {
    display: block;
    width: 100%;
    height: auto;
  }
  
  .logo-nav--disabled {
	pointer-events: none;
	opacity: 0.2 !important; 
  }

  /* Header Social Media */
  .social-box {
    display: none;
  }

  /* Header */
  .header {
    width: 0;
    height: 0;
  }

  /* Logo */
  .logo {
    width: 300px;
    margin: 0;
  }

  /* Header sticky */
  .header.sticky {
    position: static;
    background: none;
    height: auto;
  }

  .header.sticky .nav {
    margin-top: 0;
    line-height: 4em;
  }

  .header.sticky .nav > ul > li > a,
  .header.sticky .nav > ul > li > span {
    font-size: 1.2em;
  }

  /* hamburger */
  button.hamburger {
    display: block;
  }

  /* Image */
  .image.left {
    width: 25%;
    margin-bottom: 2em !important;
  }

}

@media screen and (max-width: 736px) {
  /* Image */
  .image.left {
    width: 25%;
    margin-bottom: 2em !important;
  }

  /* Hamburger */
  .hamburger {
    padding: 0;
    margin-left: 0.5em;
  }

  .hamburger__box {
    width: 30px;
  }

  .hamburger__inner::before {
    top: -6px;
  }

  .hamburger__inner::after {
    top: 6px;
  }

  .hamburger--active .hamburger__inner::before {
    transform: translateY(6px) rotate(45deg);
    -webkit-transform: translateY(6px) rotate(45deg);
    -moz-transform: translateY(6px) rotate(45deg);
    -o-transform: translateY(6px) rotate(45deg);
    -ms-transform: translateY(6px) rotate(45deg);
  }

  .hamburger--active .hamburger__inner::after {
    transform: translateY(-6px) rotate(-45deg);
    -webkit-transform: translateY(-6px) rotate(-45deg);
    -moz-transform: translateY(-6px) rotate(-45deg);
    -o-transform: translateY(-6px) rotate(-45deg);
    -ms-transform: translateY(-6px) rotate(-45deg);
  }

  /* Logo nav-bar */
  .logo-nav {
    width: 170px;
    height: auto;
    margin: 0 2em;
  }

  /* Header Social Media */
  .socials {
    margin-right: 0.4em;
  }

  .socials a {
    width: 2.05em;
    height: 2em;
    line-height: 1.8em;
    font-size: 1.1em;
  }

  .socials a:hover .icon {
    -webkit-transform: none;
    -moz-transform: none;
    -o-transform: none;
    -ms-transform: none;
    transform: none;
  }

  /* Icon search */
  .icon-search {
    margin-right: 0;
    width: 2em;
    height: 2em;
    font-size: 1.1em;
  }

  .icon-search .icon {
    line-height: 1.7em;
  }

  .icon-search:hover .icon {
    -webkit-transform: none;
    -moz-transform: none;
    -o-transform: none;
    -ms-transform: none;
    transform: none;
  }

  /* Logo */
  .logo {
    width: 75%;
    margin: 0;
  }
  
  /* Linki w submenu */
  .custom-slide-menu a {
	font-size: 1.45em;
  }
}


@media screen and (max-width: 338px) {
  /* Logo nav-bar */
  .logo-nav {
    width: 250px;
    height: auto;
    margin: 0 1.2em;
  }
}
