.sqm-header {
  background-blend-mode: darken;
  padding: 0 131px;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  z-index: 10;
}

.sqm-header__image {
  height: 30px;
}

.sqm-header__dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
}

.sqm-header__buttons {
  margin-left: auto;
  display: flex;
  gap: 14px;
  align-items: center;
}

.sqm-header__hamburger {
  display: none;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.sqm-header__hamburger span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 1px;
}
.sqm-button__globe {
  font-weight: 500;
  text-decoration: none;
  height: 48px;
  font-size: 16px;
  color: white;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sqm-button__globe:hover {
  cursor: pointer;
  color: #05022d;
}

.sqm-mobile-dropdown__toggle {
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  display: block;
  cursor: pointer;
}

.sqm-mobile-dropdown__menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1s ease;
}

.sqm-mobile-dropdown__menu li a {
  display: block;
  padding: 0.5rem 0;
  color: white;
  text-decoration: none;
}

.sqm-mobile-dropdown.open .sqm-mobile-dropdown__menu {
  max-height: 500px;
}

.sqm-header__dropdown .sqm-dropdown {
  position: relative;
  display: inline-block;
}

.sqm-header__dropdown .sqm-dropdown__menu {
  position: fixed;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1rem 0;
  background: white;
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  border-radius: 0;
  z-index: 1000;
}

.sqm-header__dropdown .sqm-dropdown__menu li a {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}

.sqm-header__dropdown .sqm-dropdown__menu li a:hover {
  background: #f5f5f5;
}

.sqm-header__dropdown .sqm-dropdown.open .sqm-dropdown__menu {
  display: block;
}

.sqm-mobile-menu {
  display: none;
}
.sqm-header__buttons .sqm-dropdown {
  position: relative;
  display: inline-block;
}

.sqm-dropdown .sqm-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: white;
  list-style: none;
  padding: 0.5em 0;
  border-radius: 4px;
  min-width: 160px;
  z-index: 20;
}

.sqm-header__buttons .sqm-dropdown__menu li a {
  display: block;
  padding: 0.5em 1em;
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
}

.sqm-header__buttons .sqm-dropdown__menu li a:hover {
  background: #f5f5f5;
}

.sqm-header__buttons .sqm-dropdown.open .sqm-dropdown__menu {
  display: block;
}

.sqm-dropdown__menu--mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  margin: 0;
  padding: 16px 16px;
  list-style: none;
  background: #fff;
  display: none;
  grid-template-columns: repeat(3, minmax(200px, 400px));
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  z-index: 1000;
  border-radius: 0;
}

.sqm-dropdown__menu--mega.open {
  display: grid;
}

.sqm-dropdown__menu--mega li {
  margin: 8px;
  padding: 0;
  list-style: none;
  display: flex;
}

.sqm-dropdown__menu--mega li a img {
  height: 24px;
  margin-right: 8px;
}

.sqm-dropdown__menu--mega li a {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 8px;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}
.sqm-dropdown__menu--mega li a:hover {
  background: #f5f5f5;
}

@media screen and (max-width: 1580px) {
  .sqm-header {
    justify-content: space-between;
    padding: 0px 48px;
  }
  .sqm-header__dropdown {
    position: static;
    transform: none;
    gap: 24px;
  }
  .sqm-header__buttons {
    margin-left: 0;
  }
}

@media screen and (max-width: 1200px) {
  .sqm-dropdown__menu--mega {
    grid-template-columns: repeat(2, minmax(200px, 400px));
    top: 136px;
  }
}

@media screen and (max-width: 1200px) and (min-width: 769px) {
  .sqm-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px 24px 0 24px;
    gap: 15px;
  }

  .sqm-header__image {
    order: 1;
    margin-left: 0;
  }

  .sqm-header__dropdown {
    order: 2;
    position: static;
    transform: none;
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 24px;
    margin: 0;
  }

  .sqm-header__buttons {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 0.5rem 0;
  }
}

@media screen and (max-width: 768px) {
  .sqm-header {
    padding: 15px 24px 0px 24px;
    flex-wrap: wrap;
    position: relative;
  }

  .sqm-header__image {
    order: 1;
  }

  .sqm-header__dropdown,
  .sqm-header__buttons {
    display: none;
  }
  .sqm-header__hamburger {
    display: flex;
    order: 2;
    margin-left: auto;
    position: static;
    top: auto;
    right: auto;
  }

  .sqm-mobile-menu {
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease;
    background: transparent;
    order: 3;
    margin-top: 15px;
    z-index: 1000;
  }

  .sqm-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .sqm-mobile-menu li {
    padding: 0.75rem 1.5rem;
  }

  .sqm-mobile-menu > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .sqm-mobile-menu a {
    display: block;
    text-decoration: none;
    font-weight: 500;
    color: white;
  }

  .sqm-mobile-menu.open {
    max-height: 1500px;
  }
}
