.header {
  --header-column-gap: 8px;
  --color-text: 51, 51, 51, 0.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 0px;
  position: relative;
  background-color: rgb(var(--color-header-background));
  color: rgb(var(--color-header-text));
  transition: 0.5s;
  background-color: rgba(0, 0, 0, 0);
}

.header__container {
  display: grid;
  column-gap: 8px;
  align-items: center;
}
.notHome_header .header__logo img {
}
.header__logo {
  grid-area: logo;
  margin: 0.8rem 0;
}

.header__logo img {
  width: var(--header-logo-pc-width);
  height: auto;
}

.header__menu {
  grid-area: menu;
}

.header__menu .list-start {
  justify-content: start;
}

.header__menu-list {
  display: flex;
  justify-content: center;
}

.header__menu-list-item {
  padding: 0 1rem;
}

.header__menu-list-item-has-submenu {
  position: static;
}

.header__menu-list-item-has-submenu:hover .header__inline-submenus {
  visibility: visible;
  pointer-events: inherit;
  opacity: 1;
  transition: all 0.25s cubic-bezier(0.104, 0.204, 0.492, 1);
}

.header__menu-list-item-has-submenu:hover::before {
  content: attr(data-item-title);
  position: absolute;
  height: 100%;
  top: 0;
  margin-left: -30px;
  padding-left: 30px;
  padding-right: 30px;
  opacity: 0;
}

.header__inline-submenus {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background-color: rgba(var(--color-header-background));
  width: 100%;
  z-index: 10;
  border-top: 1px solid rgb(var(--color-entry-line));
  box-shadow: 0 10px 15px #0000001a;
  max-height: 760px;
  min-height: 280px;
  overflow: auto;
}

.header__tools {
  color: rgba(var(--color-text));
  grid-area: tools;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 1rem;
}
.header__tools-mobile > div {
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
  position: absolute;
  left: 50%;
  margin-left: -10px;
  top: 50%;
  transition: 0.8s;
}
.header__tools-mobile .nav1 {
  margin-top: -1px;
}
.header__tools-mobile .nav2 {
  margin-top: -8px;
}
.header__tools-mobile .nav3 {
  margin-top: 6px;
}
.navh .nav1 {
  margin-top: -1px;
  transform: rotate(45deg);
}
.navh .nav2 {
  transform: rotate(-45deg);
  width: 10px;
  margin-left: -1px;
  margin-top: -5px;
}
.navh .nav3 {
  transform: rotate(-45deg);
  width: 9px;
  margin-top: 3px;
  margin-left: -8px;
}
.header__tools-mobile {
  grid-area: tools;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 20px;
  justify-content: center;
  position: relative;
  z-index: 40;
}

.header__tools svg {
  cursor: pointer;
}
.head2 {
  --color-text: 51, 51, 51, 0.5;
  background-color: rgba(255, 255, 255, 1);
  padding-top: calc(var(--section-padding-top) + 10px);
  padding-bottom: calc(var(--section-padding-bottom) + 10px);
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.6);
}
.head2 .header__logo img {
}
.header_left-line {
  grid-template:
    "logo . tools" auto
    "menu menu menu" auto
    / auto 1fr auto;
}

.header_left-left {
  grid-template: "logo menu tools" auto / auto 1fr auto;
}
.header_left-right {
  grid-template: "logo . menu tools" auto / auto 1fr auto auto;
}

.header_left-left .header__logo {
  margin-right: 0.75rem;
}

.header_middle-left {
  grid-template: "menu logo tools" auto / 1fr auto 1fr;
}

.header_middle-line {
  grid-template:
    ". logo tools" auto
    "menu menu menu" auto
    / 1fr auto 1fr;
}

.header__inline-nav--has-divider::before {
  position: absolute;
  content: "";
  width: 100%;
  left: 0;
  border-top: 1px solid rgb(var(--color-entry-line));
}

.normal_href {
  cursor: inherit;
  text-decoration: none !important;
}

.header-inline-menus__link {
  --padding-inline: 0px;
  --padding-block: 0.75rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: var(--padding-block) var(--padding-inline);
}
.header__menu-list-item:hover .header-inline-menus__link {
  --color-text: 51, 51, 51, 1;
}
.head2 .header__menu-list-item:hover .header-inline-menus__link {
  --color-text: 51, 51, 51, 1;
}
.menus__link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: rgb(var(--color-text));
  opacity: 1;
  transition: opacity 0.2s;
  cursor: pointer;
}
.header__menu-list-item-has-submenu:has(.header-menu-item-title-active) {
  --color-text: 51, 51, 51, 1;
}
.megamenu-list__item:has(.header-menu-item-title-active) {
  --color-text: 51, 51, 51, 1;
}
.menus__link:hover::after {
  transform: scale(1);
}

.menus__link::after {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  will-change: transform;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: rgb(var(--color-text));
  transition: all 0.25s cubic-bezier(0.104, 0.204, 0.492, 1);
}

.header-inline-menus__link:hover::after,
.header-inline-menus__link:focus::after {
  transform: scale(1);
}

.megamenu__list {
  padding: 40px;
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 0;
  flex: 1;
  grid-auto-columns: minmax(100px, 280px);
  grid-auto-flow: column;
}

.megamenu-list__submenu {
  padding: 0;
}
.megamenu-submenu__item + .megamenu-submenu__item {
  margin-top: 8px;
}

.megamenu-list__item-title {
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}
.megamenu-list__item:hover > .megamenu-list__item-title {
  --color-text: 51, 51, 51, 1;
}
/* static_menus */

.header__menu-list-item-has-submenu:hover .header__inline-static_menus {
  display: block;
}

.header__inline-static_menus {
  content: attr(data-item-title);
  position: absolute;
  height: 100%;
  top: -4px;
  display: none;
  cursor: pointer;
  z-index: 2;
}

.header__inline-static_menus .static_menus-container {
  position: relative;
  height: 100%;
}

.header__inline-static_menus .megamenu__list {
  position: absolute;
  top: 100%;
  margin-left: -30px;
  background: white;
  z-index: 3;
  display: flex;
  flex-direction: column;
  box-shadow: "0 8px 10px rgb(0 0 0 / 5%)";
}

.header__inline-static_menus .megamenu__list {
  gap: 10px;
}

.header__inline-static_menus .megamenu__list {
  padding: 10px 0;
  white-space: nowrap;
}

.header__inline-static_menus .megamenu-list__item {
  position: relative;
  padding-left: 15px;
  padding-right: 15px;
}
@media (min-width: 959px) {
  section:has(header-layout[data-sticky-type="always"]) {
    position: fixed;
    width: 100%;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    /* border-bottom: 1px solid rgb(var(--color-entry-line)); */
  }
}
/* sticky */

.header_conact-social .list-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header_conact-social svg {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  transition: all 0.3s;
}

.header_conact-social svg:hover {
  transform: scale(1.1);
}
/* header-layout {
  z-index: 102;
} */
.search-header {
  position: relative;
}
header-layout-mobile[open] {
  display: flex;
  transform: translateX(0);
  justify-content: end;
  opacity: 1;
  visibility: visible;
}

header-layout-mobile {
  visibility: hidden;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  /* background-color: white; */
  transform: translateX(100%);
  transition: all 0.3s;
  z-index: 20;
}
header-layout-mobile > div {
  padding: 70px 20px 20px;
}
header-layout-mobile .header-layout-mobile__back {
  padding: 16px;
}

header-layout-mobile .header-layout-mobile__back svg {
  width: 30px;
  height: 30px;
}
.search-header form {
  height: 37px;
  border: 1px solid #84644d;
}
.search-header form {
  width: 236px;
  height: 0px;
  overflow: hidden;
  position: absolute;
  right: 0px;
  top: 32px;
  background: #fff;
  border: 0px solid rgba(0, 0, 0, 0);
  color: #84644d;
  transition: 0.8s;
  margin: 0;
  padding: 0;
  z-index: 7;
  list-style: none;
  font-style: normal;
}
.sousuof form {
  display: flex;
  height: 37px;
  border: 1px solid #84644d;
}
.search-header input {
  width: 180px;
  height: 35px;
  line-height: 35px;
  padding-left: 10px;
  font-size: 14px;
  color: #333;
  border: none;
  outline: none;
  z-index: 8;
}
form .search-icon {
  height: 35px;
  border: none;
  background-color: #fff;
  padding-left: 10px;
  position: absolute;
  right: 0;
  z-index: 9;
}
header-layout-mobile form {
  position: relative;
  background-color: #fff;
}
.header__inline-static_menus
  .megamenu-list__item:hover
  .header__inline_static_menus_child {
  display: block;
}
.header__inline_static_menus_child {
  display: none;
  position: absolute;
  right: 0;
  transform: translateX(100%);
  top: -10px;
}
.header__inline_static_menus_child li {
  padding: 0 15px;
}
.header_menus_box {
  --color-text: 51, 51, 51, 0.5;
  padding: 8px 0;
  background-color: #ffffff;
  box-shadow: 1px 3px 6px 0px rgba(0, 0, 0, 0.07);
  border-radius: 4px;
}
.header-menu-item-title-active {
  --color-text: 51, 51, 51, 1;
}
.head2 .header-menu-item-title-active {
  --color-text: 51, 51, 51, 1;
}

@media (max-width: 959px) {
  .header__logo img {
    width: var(--header-logo-mobile-width);
    height: auto;
  }

  .header_left-line,
  .header_middle-left,
  .header_middle-line,
  .header_left-left {
    grid-template: "tools logo menu" auto / 1fr auto 1fr;
  }
  .header {
    padding-top: var(--section-padding-top);
    padding-bottom: var(--section-padding-bottom);
  }
  form[name="productform_m"] {
    height: 35px;
    display: flex;
    align-items: center;
    background-color: #fff;
  }
  form[name="productform_m"] input {
    border: none;
  }
  section:has(header-layout[data-sticky-type="always"]) {
    height: 63.3px;
    /* border-bottom: 1px solid rgb(var(--color-entry-line)); */
  }
  section header-layout[data-sticky-type="always"] {
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 1500;
    background-color: #fff;
    left: 0px;
    /* border-bottom: 1px solid rgb(var(--color-entry-line)); */
  }
  header-layout-mobile {
    --color-text: 41, 37, 44;
    color: #000;
  }
}
