.site-header {
  background: #f2f2f2;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__container {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 33px;
  width: 100%;
  min-width: 0;
}

.site-logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 64px;
  padding-right: 0;
  background: #ffffff;
}

.site-logo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  bottom: 0;
  width: 100vw;
  background: #ffffff;
  z-index: -2;
}

.site-logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 79px;
  height: 100%;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  z-index: -1;
}

.site-logo img,
.site-logo svg {
  position: relative;
  z-index: 1;
  display: block;
  height: 34px;
  width: auto;
}

.container-search {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  min-height: 64px;
  background: #f2f2f2;
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 497px);
  height: 40px;
  border: 1px solid var(--quimatic-orange);
  background: #ffffff;
  overflow: visible;
  border-left: none;
}

.site-search::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -19px;
  width: 12px;
  height: 70px;
  background: #F2F2F2;
  z-index: 2;
  pointer-events: none;
  transform: rotate(-49deg);
}

.site-search::after {
  content: "";
  position: absolute;
  left: 48px;
  bottom: -1px;
  width: 1px;
  height: 60px;
  background: var(--quimatic-orange);
  transform-origin: bottom left;
  transform: rotate(-50deg);
  z-index: 3;
  pointer-events: none;
}

.site-search input {
  font-family: "Myriad Pro", sans-serif;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  color: var(--quimatic-text);
  padding: 8px 52px 8px 49px;
  outline: none;
}

.site-search input::placeholder {
  color: var(--quimatic-muted);
  opacity: 1;
  transition: color 220ms ease;
}

.site-search button {
  position: absolute;
  z-index: 1;
  right: 20px;
  top: 8px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--quimatic-muted);
  cursor: pointer;
  transition: color 220ms ease;
}

.site-search button svg {
  width: 24px;
  height: 24px;
  display: block;
}

.site-search button svg path {
  stroke: currentColor;
}

.site-search:hover input::placeholder {
  color: var(--quimatic-text);
}

.site-search:hover button {
  color: var(--quimatic-orange);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
  background: #f2f2f2;
}

.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 4px 15px 0 11px;
  border: 1px solid var(--quimatic-orange);
  background: #ffffff;
  color: var(--quimatic-orange);
  text-decoration: none;
  font-family: "Myriad Pro", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  transition: background-color 220ms ease, color 220ms ease;
}

.header-login:hover,
.header-login:focus-visible {
  background: #fff4ee;
  color: var(--quimatic-orange);
}

.header-login img,
.header-login svg {
  width: 24px;
  height: 24px;
  display: block;
}

.header-login svg path {
  fill: currentColor;
}

.header-languages {
  display: inline-flex;
  align-items: center;
  height: 28px;
}

.header-languages button {
  width: 40px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--quimatic-orange);
  border-radius: 0;
  background: #ffffff;
  color: #0A0203;
  font-family: "Myriad Pro", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 28px;
  padding: 2px 0 0 0;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease;
}

.header-languages button + button {
  border-left: 0;
}

.header-languages button:not(.is-active):hover,
.header-languages button:not(.is-active):focus-visible {
  background: #fff4ee;
}

.header-languages button.is-active {
  background: var(--quimatic-orange);
  color: #ffffff;
  font-weight: 600;
}

.site-header__nav {
  background: #ffffff;
}

.site-header__nav-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 33px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item {
  position: relative;
}

.site-nav__item--has-dropdown {
  min-width: 240px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 4px 16px 0;
  border-bottom: 4px solid transparent;
  font-family: "Myriad Pro", sans-serif;
  font-size: 17.4px;
  font-weight: 400;
  line-height: 19.8px;
  color: var(--quimatic-text);
  text-decoration: none;
  white-space: nowrap;
  transition: border-bottom-color 220ms ease, color 220ms ease;
}

.site-nav__item--has-dropdown > .site-nav__link {
  width: 100%;
  font-weight: 600;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__item--has-dropdown:hover > .site-nav__link,
.site-nav__item--has-dropdown:focus-within > .site-nav__link,
.site-nav__item--has-dropdown.is-open > .site-nav__link {
  border-bottom-color: var(--quimatic-orange);
  color: var(--quimatic-orange);
}

.site-nav__link-arrow,
.mobile-menu__link-arrow {
  width: 14px;
  height: 9px;
  display: block;
  flex: 0 0 auto;
}

.site-nav__link-arrow svg,
.mobile-menu__link-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  z-index: 20;
  width: 240px;
  padding-top: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.site-nav__item--has-dropdown:hover > .site-nav__dropdown,
.site-nav__item--has-dropdown:focus-within > .site-nav__dropdown,
.site-nav__item--has-dropdown.is-open > .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav__dropdown-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fdfdfd;
  box-shadow: 0 20px 40px rgba(10, 2, 3, 0.08);
}

.site-nav__dropdown-item + .site-nav__dropdown-item {
  border-top: 1px solid rgba(10, 2, 3, 0.04);
}

.site-nav__dropdown-link {
  display: block;
  padding: 8px 12px;
  font-family: "Myriad Pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
  text-decoration: none;
  background: #fdfdfd;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav__dropdown-link:hover,
.site-nav__dropdown-link:focus-visible {
  color: var(--quimatic-orange);
  background: #fff6f1;
}

.site-header__contact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 4px 0 0;
  border-bottom: 4px solid transparent;
  font-family: "Myriad Pro", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--quimatic-orange);
  text-decoration: none;
  white-space: nowrap;
  transition: border-bottom-color 220ms ease;
}

.site-header__contact:hover,
.site-header__contact:focus-visible {
  border-bottom-color: var(--quimatic-orange);
}

.site-header__contact img {
  width: 24px;
  height: 24px;
  display: block;
}

.site-header__contact span {
  margin-top: 2px;
}

.site-header__mobile-toggle {
  display: none;
}

.site-header__mobile-search {
  display: none;
}

.mobile-menu {
  display: none;
}

body.has-mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .site-header__left {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .site-logo {
    min-height: 52px;
    padding-right: 0;
  }

  .site-logo::before,
  .site-logo::after {
    display: none;
  }

  .container-search {
    flex-direction: column;
    align-items: stretch;
  }

  .site-search {
    width: 100%;
  }

  .site-header__actions {
    justify-content: flex-end;
  }

  .site-header__nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav__list {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .site-nav__item--has-dropdown {
    min-width: 0;
  }

  .site-nav__link {
    padding: 10px 12px;
  }
}

@media (max-width: 560px) {
  .site-header__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .site-header {
    background: #ffffff;
  }

  .site-header .site-header__container {
    width: min(100%, calc(100% - 32px));
    min-height: auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 8px;
    padding-top: 24px;
    padding-bottom: 16px;
  }

  .site-header .site-header__left {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 0;
    min-width: 0;
    flex: 0 1 auto;
  }

  .site-header .site-logo {
    min-height: 0;
    padding: 0;
    background: transparent;
  }

  .site-header .site-logo::before,
  .site-header .site-logo::after {
    display: none;
  }

  .site-header .site-logo img,
  .site-header .site-logo svg {
    height: 28px;
  }

  .container-search,
  .site-header__nav {
    display: none;
  }

  .site-header__mobile-toggle {
    display: inline-flex;
    align-items: center;
    border: none;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    color: var(--quimatic-orange);
    cursor: pointer;
  }

  .site-header__mobile-toggle-lines {
    width: 24px;
    height: 24px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .site-header__mobile-toggle-lines span {
    width: 18px;
    height: 2px;
    background: currentColor;
    display: block;
  }

  .site-header__mobile-toggle:focus-visible {
    outline: 2px solid var(--quimatic-orange);
    outline-offset: 4px;
  }

  .site-header__mobile-search {
    width: 100%;
    flex: 0 0 100%;
    order: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 8px;
    border: 1px solid var(--quimatic-orange);
    background: #ffffff;
  }

  .site-header__mobile-search-input {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--quimatic-text);
    font-family: "Myriad Pro", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    outline: none;
  }

  .site-header__mobile-search-input::placeholder {
    color: var(--quimatic-muted);
    opacity: 1;
  }

  .site-header__mobile-search-input::-webkit-search-decoration,
  .site-header__mobile-search-input::-webkit-search-cancel-button,
  .site-header__mobile-search-input::-webkit-search-results-button,
  .site-header__mobile-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
  }

  .site-header__mobile-search-button {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--quimatic-muted);
    cursor: pointer;
  }

  .site-header__mobile-search-button svg {
    display: block;
    width: 24px;
    height: 24px;
  }

  .site-header__mobile-search-button svg path {
    stroke: currentColor;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 220;
  }

  .mobile-menu:not([hidden]) {
    display: block;
  }

  .mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  .mobile-menu__panel {
    position: relative;
    margin-left: auto;
    width: min(88vw, 372px);
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 260ms ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  }

  .mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
  }

  .mobile-menu__header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #e4e4e4;
  }

  .mobile-menu__title {
    font-family: "Myriad Pro", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0a0203;
  }

  .mobile-menu__close {
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    color: #0a0203;
    width: 42px;
    height: 42px;
    cursor: pointer;
  }

  .mobile-menu__tools {
    padding: 14px 16px;
    border-bottom: 1px solid #ececec;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-menu__search {
    position: relative;
  }

  .mobile-menu__search input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--quimatic-orange);
    background: #ffffff;
    padding: 10px 46px 10px 12px;
    font-family: "Myriad Pro", sans-serif;
    font-size: 16px;
    color: #0a0203;
  }

  .mobile-menu__search input::placeholder {
    color: #7f7f7f;
  }

  .mobile-menu__search button {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #7f7f7f;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-menu__search button svg path {
    stroke: currentColor;
  }

  .mobile-menu__aux {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-menu__login {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 4px 10px 0;
    border: 1px solid var(--quimatic-orange);
    color: var(--quimatic-orange);
    text-decoration: none;
    font-family: "Myriad Pro", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    background: #ffffff;
  }

  .mobile-menu__login svg {
    width: 20px;
    height: 20px;
  }

  .mobile-menu__login svg path {
    fill: currentColor;
  }

  .mobile-menu__languages {
    display: inline-flex;
    align-items: center;
    height: 32px;
  }

  .mobile-menu__languages button {
    width: 40px;
    height: 32px;
    border: 1px solid var(--quimatic-orange);
    background: #ffffff;
    color: #0A0203;
    font-family: "Myriad Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-menu__languages button + button {
    border-left: 0;
  }

  .mobile-menu__languages button.is-active {
    background: var(--quimatic-orange);
    color: #ffffff;
    font-weight: 600;
  }

  .mobile-menu__nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0;
  }

  .mobile-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-menu__item {
    border-bottom: 1px solid #ececec;
  }

  .mobile-menu__link {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px 10px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    text-decoration: none;
    color: #0a0203;
    font-family: "Myriad Pro", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
  }

  .mobile-menu__submenu-toggle {
    cursor: pointer;
  }

  .mobile-menu__submenu-toggle[aria-expanded='true'] {
    color: var(--quimatic-orange);
  }

  .mobile-menu__submenu {
    background: #fdfdfd;
    border-top: 4px solid var(--quimatic-orange);
  }

  .mobile-menu__submenu-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-menu__submenu-item + .mobile-menu__submenu-item {
    border-top: 1px solid rgba(10, 2, 3, 0.04);
  }

  .mobile-menu__submenu-link {
    display: block;
    padding: 10px 20px;
    font-family: "Myriad Pro", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #000000;
    text-decoration: none;
  }

  .mobile-menu__submenu-link:hover,
  .mobile-menu__submenu-link:focus-visible {
    color: var(--quimatic-orange);
    background: #fff6f1;
  }

  .mobile-menu__link:hover,
  .mobile-menu__link:focus-visible {
    color: var(--quimatic-orange);
  }
}
