header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* Below is the upper block with links and burger */
.header_above {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 4%;
  background-color: white;
  height: 80px;
}
.header_above_logo {
  display: inline-block;
  height: 100%;
  line-height: 0;
}
.main_logo {
  height: 100%;
  object-fit: contain;
  max-height: 100%;
}
.header_link_email {
  text-decoration: none;
  margin-right: 20px;
  color: #494949;
}
.header_link_tel {
  text-decoration: none;
  color: #494949;
  margin-left: 10px;
  padding: 10px;
}
.header_nav_small_burger {
  display: none;
  background-image: url("../img/icons/burger.svg");
  width: 50px;
  height: 50px;
  background-size: cover;
  cursor: pointer;
}
/* Above is the block with links and burger. */



/* Below is the navigation for small devices */
.header_nav_small {
  display: none;
  flex-direction: column;
  background-color: white;
  border-top: 2px solid #1BB76D;
  border-bottom: 2px solid #1BB76D;
}
.header_nav_small_element_contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}
.custom_header_link_email {
  text-decoration: none;
  margin-right: 20px;
  color: #494949;
}
.custom_header_link_tel {
  text-decoration: none;
  color: #494949;
  margin-left: 10px;
  padding: 10px;
}
.header_nav_small_element {
  cursor: pointer;
}
.header_nav_small_element_title {
  display: flex;
  padding: 10px 5px;
  justify-content: space-between;
}
.header_nav_small_element_title span {
  text-transform: uppercase;
}
.header_nav_small_element_title:hover {
  background-color: #5F5F5F;
  color: #f7f7f7;
  transition: ease-in-out 200ms;
}
.header_nav_element_icon_dark {
  background-image: url("../img/icons/arrow_dark.svg");
  width: 20px;
  height: 20px;
  background-size: cover;
}
.header_nav_small_element_links {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}
.header_nav_small_element_link {
  padding: 10px 20px;
}
.header_nav_small_element_link a {
  all: unset;
  text-transform: uppercase;
}
.header_nav_small_element_link:hover {
  color: white;
  background-color: #1BB76D;
  transition: ease-in-out 200ms;
}
/* Above is the navigation for small devices */



/* Below is the big screen navigation menu */
.header_navigation {
  height: 40px;
  padding: 10px 4%;
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 auto;
  background-color: #5F5F5F;
}

.header_navigation_right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.header_navigation_left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header_navigation_unit {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}
.header_navigation_trigger {
  cursor: pointer;
}
.header_navigation_arrow_icon {
  display: inline-block;
  background-image: url("../img/icons/arrow.svg");
  width: 10px;
  height: 10px;
  background-size: cover;
}
.header_navigation_unit_popup {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 40px;
  background-color: whitesmoke;
  color: #0b0b0b;
  width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.header_navigation_unit_popup_big {
  display: none;
  position: absolute;
  top: 40px;
  left: -150px;
  background-color: whitesmoke;
  color: #0b0b0b;
  min-width: auto;
  width: max-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.header_navigation_switch_right {
  width: 350px;
  padding: 20px;
  border-right: 2px solid #1BB76D;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.header_navigation_switch_left {
  padding: 20px;
  display: grid;
  overflow-y: auto;
  align-items: start;
  width: 900px;
  height: 500px;
  overflow: auto;
}
.header_navigation_switch_left > div {
  display: none; /* hide all by default */
}
.header_navigation_switch_left > div.active {
  display: grid; /* or flex/whatever layout you want */
  gap: 5px;
  grid-template-columns: 1fr;
}
/*.header_navigation_switch_left > .header_navigation_switcher_block_3.active {*/
/*  display: grid;*/
/*  grid-template-columns: 1fr 1fr; !* two columns *!*/
/*  gap: 8px 20px;*/
/*}*/
.header_navigation_switch_left > .header_navigation_switcher_block_3.active {
  display: block;             /* switch from grid to block */
  column-count: 2;            /* number of columns */
  column-gap: 20px;           /* spacing between columns */
  max-height: 500px;          /* optional: limit height */
  overflow-y: auto;           /* scroll if too tall */
}
.header_navigation_switch_left > div.active:not(.header_navigation_switcher_block_3) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}
.active-switcher {
  background-color: #1BB76D;
}

.header_navigation_switcher_block_1 {}
.header_navigation_switcher_block_2 {}
.header_navigation_switcher_block_3 {}
/*.header_navigation_switcher_block_3 a {*/
/*  flex: 1 1 50%; !* two columns *!*/
/*  break-inside: avoid;        !* prevent breaking inside link *!*/
/*}*/
.header_navigation_switcher_block_1 a {
  display: block;             /* force links to stack vertically */
  padding: 5px;
}
.header_navigation_switcher_block_2 a {
  display: block;             /* force links to stack vertically */
  padding: 5px;
  height: fit-content;
}
.header_navigation_switcher_block_3 a {
  display: block;             /* force links to stack vertically */
  break-inside: avoid;        /* prevent links from breaking between columns */
  padding: 5px;
}
.header_navigation_switcher_block_4 a {
  display: block;             /* force links to stack vertically */
  padding: 5px;
}
.header_navigation_switcher_block_4 {}

.header_navigation_unit_popup_unit_switcher {
  text-decoration: none;
  color: #0b0b0b;
  padding: 2px 5px; /* restore previous size */
  /*width: 400px;        !* restore previous width *!*/
  /*text-transform: uppercase;*/
}
.header_navigation_unit_popup_unit_switcher:hover {
  background-color: #1BB76D;
  transition: ease-in-out 200ms;
  color: whitesmoke;
}
.header_navigation_unit_popup_unit {
  padding: 10px 20px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  color: #0b0b0b;
}
.header_navigation_unit_popup_unit:hover {
  color: whitesmoke;
  background-color: #1BB76D;
  transition: ease-in-out 200ms;
}

.header_navigation_language_link {
  text-decoration: none;
  text-transform: uppercase;
}

/*Drop down*/
.header_navigation_language_dropdown {
  position: relative;
  display: inline-block;
}

.header_navigation_language_menu {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 140px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  z-index: 999;
}

.header_navigation_language_menu a {
  display: block;
  padding: 20px 20px;
  color: #222;
  text-decoration: none;
}

.header_navigation_language_menu a:hover {
  background: #1BB76D;
  color: whitesmoke;
  transition: ease-in-out 200ms;
}

.header_navigation_language_dropdown.open .header_navigation_language_menu {
  display: block;
}
.header_navigation_language_link {
  color: whitesmoke;
}


/* Above is the big screen navigation menu */



/* Resolution adjustments */
@media (max-width: 776px) {
  .header_above_links {
    display: none;
  }
  .header_navigation {
    display: none;
  }
  .header_nav_small_burger {
    display: block;
  }
  .header_nav {
    display: none;
  }
  .header_above {
    padding: 20px 20px;
  }
  .open_small_links_header {
    display: block;
    background-color: #5F5F5F;
    color: #f7f7f7;
  }
  .open {
    display: flex;
    justify-content: end;
  }
}


