/*Хедер*/

:root {
  --header-link-font-size: 16px;
  --header-link-line-height: 19px;
  --link-border-bottom: 2px solid #004BC1;
}



.main-menu-icon {
  position: relative;
  padding-left: 28px;
}

.main-menu-icon:before {
  content: '';
  width: 24px;
  height: 24px;
  background: url(/wp-content/themes/GPchild/assets/icons/icon_document.svg);
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  /*top: 50%;*/
  left: -2px;
  /*transform: translate(0%, -50%);*/
  top: -2px;
}

.header-links-container,
.header-links-container > .elementor-widget-container,
.header-settings-container,
.header-settings-container > .elementor-widget-container {
  height: 100%;
}

.header-links {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  align-items: flex-end;
}

.visual-impairment {
  font-size: var(--header-link-font-size);
  line-height: var(--header-link-line-height);
  position: relative;
  padding-left: 45px;
  display: none;
}

.visual-impairment:before {
  content: '';
  width: 44px;
  height: 44px;
  background-image: url(/wp-content/themes/GPchild/assets/icons/icon-eye.svg);
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}

.search-link {
  font-size: var(--header-link-font-size);
  line-height: var(--header-link-line-height);
  position: relative;
  padding-left: 23px;
  border-bottom: var(--link-border-bottom);
  padding-bottom: 4px;
  cursor: pointer;
}

.search-link:before {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url(/wp-content/themes/GPchild/assets/icons/icon-search-desk.svg);
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}

.header-search {
  position: absolute;
  width: 100%;
  height: 230px;
  background: #004BC1;
  border: 1px solid #707070;
  top:0;
  left: 0;
  display: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.header-search.active {
  display: flex;

}

.search-close {
  display: flex;
  width: 50px;
  height: 50px;
  background:url(/wp-content/themes/GPchild/assets/icons/icon-close-white.svg);
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 28px;
  right: 10px;
  cursor: pointer;
}

.search-form-wrap {
  position: relative;
  width: 1200px;
  padding: 10px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-width: 100%;
}

.search-input {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-input form {
  position: relative;
  width: 800px;
}

.search-input form.active:before {
    transform: scale(1);
}

.search-input form:before {
  content: '';
  width: 100%;
  height: 1px;
  background: #fff;
  position: absolute;
  bottom: 0;
  transform: scale(0);
  transition: transform .3s ease .1s;
}

.search-input form input#menu-search {
  background: transparent;
  border-color: transparent;
  border-bottom: 1px solid rgba(245, 247, 250, .5);
  width: 100%;
  color: #fff;
  padding: 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  max-width: 100%;
}

.search-input form input#menu-search::placeholder {
  font-family: inherit;
  font-size: 18px;
  line-height: 22px;
  font-weight: 400;
  color: #fff;
}
.search-input form input#menu-search:focus {
  outline: none;
}

.search-input form button {
  background: transparent;
  border-color: transparent;
  color: #fff;
  position: absolute;
  right: 0;
  bottom: 50%;
  transform: translateY(50%);
  font-size: 18px;
  line-height: 22px;
  font-weight: 500;
  padding-right: 35px;
}

.search-input form button:not(.mobile):before {
  position: absolute;
  content: '';
  width: 24px;
  height: 24px;
  background: url(/wp-content/themes/GPchild/assets/icons/icon-arrow-white.svg);
  background-size: cover;
  background-repeat: no-repeat;
  right: 0;
}

.search-input form button.mobile {
  width: 30px;
  height: 30px;
  display: flex;
  position: absolute;
  top:50%;
  right: 0;
  transform: translate(0%, -50%);
  display: none;
}

.search-input form button.mobile:before {
  content: '';
  width: 30px;
  height: 30px;
  background: url(/wp-content/themes/GPchild/assets/icons/button-search-mobile.svg);
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  position: absolute;
  transform: rotate(90deg) translateY(25%);
  top:0;
}








.header-settings {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.switcher-container {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.switcher-container li {
  
}

.switcher-container li a {
  position: relative;
  padding-left: 26px;
  padding-bottom: 1px;
  border-bottom: 2px solid #004BC1;
  font-size: 16px;
  line-height: 28px;
}

.switcher-container li a:before {
  content: '';
  background: url(/wp-content/themes/GPchild/assets/icons/icon_globe.svg);
  background-size: cover;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  position: absolute;
  top:50%;
  transform: translateY(-50%);
  left: 0;
}

.header-settings .dashboard {
  position: relative;
  transform: translateY(-12px);
}

.header-settings .dashboard:before {
  content: '';
  width: 60px;
  height: 60px;
  border: 2px solid #FFBA47;
  position: absolute;
  top: 50%;
  transform: translate(-40%, -55%);
  z-index: -1;
  transition: border .1s ease;
}
.header-settings .dashboard.active:before {
    border: 4px solid #FFBA47;
}
/*.header-settings .dashboard:hover:before {
  border: 4px solid #FFBA47;
}
*/
.header-settings .dashboard a {
  font-size: 24px;
  line-height: 29px;
  font-weight: 500;
  position: relative;
  transform: translateY(-17px);
  background: #fff;
  z-index: 0;
}

.header-menu-background-overlay {
  position: fixed;
  top:0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: -1;
  display: none;
}

.header-menu-background-overlay.active {
  display: flex;
}

.header-menu-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  background-color: #F8C46E;
  min-height: 72px;
  justify-content: center;
  z-index: 1;
}
.header-menu-container.en .mobile-header a.logo {
  width: 110px;
  background: url(/wp-content/uploads/2021/04/logo-eng-3.1.svg);
  background-size: cover;
  background-repeat: no-repeat;
}

.header-menu-container .menu-content-wrapper {
  /*height: 100%;*/
  align-items: center;
  width: 100%;
}

.header-menu-container .menu-content-wrapper .mobile-dashboard-link,
.menu-content-wrapper .switcher-container {
  display: none;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container {
  width: 100%;
  height: 100%;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu {
  display: flex;
  width: 100%;
  flex-direction: row;
  height: 100%;
  justify-content: center;
  margin:0;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item {
  display: flex;
  position: relative;
  height: inherit;
  flex-grow: 1;
  justify-content: center;
  padding: 0 35px;
  margin-top: 2px;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item > a {
  display: flex;
  height: inherit;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: 18px;
  line-height: 28px;
  /*font-weight: bold;*/
  padding-right: 10px;
  position: relative;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item > a:before {
  content: '';
  width: 24px;
  height: 24px;
  background: url(/wp-content/themes/GPchild/assets/icons/icon-menu-arrow.svg);
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(70%, -49%) rotate(0);
  transition: transform .3s ease;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item.active > a:before {
  transform: translate(70%, -50%) rotate(-180deg);
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item > a i {
  margin-left: 10px;
  position: absolute;
  right: -10px;
  transform-origin: center center;
  transition: transform .4s ease;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item:hover {
  cursor: pointer;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item:hover ul {
  cursor: default;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item ul.sub-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 100%;
  left: 0%;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item ul.sub-menu > li {
/*  padding: 2px 0px;*/
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item ul.sub-menu > li > a {
  font-size: 16px;
  line-height: 28px;
  text-decoration: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item:last-child ul.sub-menu {
  right: 0;
  left: unset;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item.active {
  background: #fff;
  font-weight: bold;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item.active i {
  transform: rotate(-180deg);
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item.active ul.sub-menu {
  display: flex;
  padding: 30px 35px;
  box-shadow: 2px 2px 20px #00000029;
  list-style: none;
  z-index: -1;
  max-height: 320px;
  flex-direction: column;
  flex-wrap: wrap;
  width: 160%;
  margin:0;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item.active ul.sub-menu li {
  width: 100%;
}

.header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item.menu-item-wide ul.sub-menu li {
  width: 50%;
}

.header-menu-container .mobile-header {
  display: none;
}

.external-link a {
  position: relative;
}

.external-link a:after {
  content: '';
  width: 22px;
  height: 22px;
  background: url(/wp-content/themes/GPchild/assets/icons/icon_geo_location.svg);
  background-repeat: no-repeat;
  background-size: cover;
  display: inline-block;
  transform: translate(4px, 3px);
}

@media (max-width: 1024px) {

  .menu-content-wrapper .switcher-container {
    display: flex;
  }

  .header-search {
    height: 232px;
  }

  .search-close {
    top: 20px;
    right: 15px;
  }

  .search-form-wrap {
    width: 100%;
  }

  .search-input form input#menu-search {
    width: 100%;
    font-size: 16px;
    line-height: 19px;
    padding-left: 0;
    padding-right: 0;
  }

  .search-input form input#menu-search::placeholder {
    font-family: inherit;
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    color: #fff;
  }
  .search-input form input#menu-search:focus {
    outline: none;
  }

  .search-input form button:not(.mobile) {
    display: none;
  }
  .search-input form button.mobile {
    display: flex;
  }

  .header-menu-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 20px 16px;
    max-height: 100vh;
    overflow: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  .header-menu-container::-webkit-scrollbar {
    display: none;
  }
  .header-menu-container .mobile-header {
    display: flex;
    width: 100%;
  }
  .header-menu-container .mobile-header a.logo {
    width: 170px;
    height: 100%;
    background: url(/wp-content/themes/GPchild/assets/icons/geo-logo.svg) ;
    background-size: cover;
    background-repeat: no-repeat;
  }

  body.pojo-a11y-high-contrast .header-menu-container:not(.en) .mobile-header a.logo,
  body.pojo-a11y-negative-contrast .header-menu-container .mobile-header a.logo {
    background-image: url(/wp-content/uploads/2021/02/geo-logo-white.svg) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
  body.pojo-a11y-high-contrast .header-menu-container.en .mobile-header a.logo,
  body.pojo-a11y-negative-contrast .header-menu-container.en .mobile-header a.logo {
    background-image: url(/wp-content/themes/GPchild/assets/icons/logo_eng_final-white.svg) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
  .header-menu-container .mobile-header .options-container {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
  }
  .header-menu-container .mobile-header .options-container .search {
    width: 50px;
    height: 50px;
    display: flex;
    background: url(/wp-content/themes/GPchild/assets/icons/icon-search.svg);
    background-size: cover;
    background-repeat: no-repeat;
    justify-self: self-end;
  }
  .header-menu-container .mobile-header .options-container .search:active {
    width: 50px;
    height: 50px;
    display: flex;
    background: url(/wp-content/themes/GPchild/assets/icons/icon-search-active1.svg);
    background-size: cover;
    background-repeat: no-repeat;
    justify-self: self-end;
  }
  body.pojo-a11y-high-contrast .header-menu-container .mobile-header .options-container .search,
  body.pojo-a11y-negative-contrast .header-menu-container .mobile-header .options-container .search {
    background: url(/wp-content/themes/GPchild/assets/icons/icon-search-white.svg) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
  .header-menu-container .mobile-header .options-container .bars {
    width: 50px;
    height: 50px;
    display: flex;
    background: url(/wp-content/themes/GPchild/assets/icons/icon-menu.svg);
    background-repeat: no-repeat;
    background-size: cover;
    /*justify-self: self-end;*/
  }
  .header-menu-container .mobile-header .options-container .bars:active {
    background: url(/wp-content/themes/GPchild/assets/icons/icon-menu-active.svg);
    background-repeat: no-repeat;
    background-size: cover;
    /*justify-self: self-end;*/
  }
  body.pojo-a11y-high-contrast .header-menu-container .mobile-header .options-container .bars,
  body.pojo-a11y-negative-contrast .header-menu-container .mobile-header .options-container .bars {
    background: url(/wp-content/themes/GPchild/assets/icons/icon-menu-white.svg) !important;
    background-size: cover !important;
    background-repeat: no-repeat  !important;
  }
  .header-menu-container .mobile-header .options-container .bars.active {
    background: url(/wp-content/themes/GPchild/assets/icons/icon-close.svg);
  }
  .header-menu-container .mobile-header .options-container .bars.active:active {
    background: url(/wp-content/themes/GPchild/assets/icons/icon-close-active.svg);
  }
  body.pojo-a11y-high-contrast .header-menu-container .mobile-header .options-container .bars.active,
  body.pojo-a11y-negative-contrast .header-menu-container .mobile-header .options-container .bars.active {
    background: url(/wp-content/themes/GPchild/assets/icons/icon-close-white1.svg) !important;
    background-size: cover !important;
    background-repeat: no-repeat  !important;
  }
  .header-menu-container .menu-content-wrapper {
    width: 100%;
    align-items: center;
    height: inherit;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .header-menu-container .menu-content-wrapper.active {
    display: flex;

  }

  .header-menu-container .menu-content-wrapper .mobile-dashboard-link {
    display: flex;
    position: relative;
    transform: translateY(-12px);
    margin-left: 20px;
    margin-top: 50px;
  }
  .header-menu-container .menu-content-wrapper .mobile-dashboard-link:before {
    content: '';
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    position: absolute;
    top: 50%;
    transform: translate(-40%, -50%);
    left: 0;
    z-index: -1;
  }
  .header-menu-container .menu-content-wrapper .mobile-dashboard-link a {
    font-size: 24px;
    line-height: 29px;
    font-weight: 500;
    position: relative;
    background: #F8C46E;
    z-index: 0;
  }
  .header-menu-container .menu-content-wrapper .menu-main-menu-container {
    width: 100%;
    padding: 30px 0px;
    height: auto;
  }
  .header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu {
    display: flex;
    width: 100%;
    flex-direction: column;
    height: unset;
    justify-content: center;
  }
  .header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item {
    justify-content: flex-start;
    padding: 0px;
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 10px;
    cursor: none;
    overflow:hidden;
    margin-top: 0px;
  }
  .header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item > a {
    font-size: 18px;
    line-height: 28px;
  }
  .header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item ul.sub-menu {
    display: none;
    width: 100%;
    list-style: none;
/*    height: 0;*/
    flex-direction: column;
    background: transparent;
    position: unset;
    top: unset;
    left: unset;
    margin:0;
    padding: 10px 20px 0px 20px;
  }
  .header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item ul.sub-menu > li {
/*    padding: 3px 0;*/
  }
  .header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item ul.sub-menu > li > a {
    font-size: 16px;
    line-height: 28px;
  }
  .header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item:last-child ul.sub-menu {
    right: unset;
    left: unset;
  }
  .header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item.active {
    margin: 0;
    background: transparent;
  }
  .header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item.active ul.sub-menu {
    display: flex;
    box-shadow: unset;
    list-style: none;
    z-index: unset;
    max-height: unset;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 10px 20px 0px 20px;
    width: 100% !important;

  }
  .header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item.active ul.sub-menu li {
    width: 100%;
  }
  .header-menu-container .menu-content-wrapper .menu-main-menu-container ul.menu > li.menu-item.menu-item-wide ul.sub-menu li {
    width: 100%;
  }
}

