/* Language switcher — header layout */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 auto;
  padding-top: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.header .logo a {
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
}

.header .logo a img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 280px;
  object-fit: contain;
}

.header .nav {
  position: relative;
  right: auto;
  top: auto;
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 0;
  margin-right: 12px;
}

.header .nav ul {
  float: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.header .nav ul li {
  float: none;
}

.lang-switch {
  position: relative;
  right: auto;
  top: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 120;
  border: 1px solid #d7dde5;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  margin-right: 12px;
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 6px 10px;
  background: transparent;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__btn + .lang-switch__btn {
  border-left: 1px solid #d7dde5;
}

.lang-switch__btn:hover {
  color: #0b6e4f;
  background: #f3faf6;
}

.lang-switch__btn.is-active {
  background: #0b6e4f;
  color: #fff;
}

.header.header-hover .lang-switch,
.header.header-hover1 .lang-switch {
  border-color: #d7dde5;
  background: #fff;
}

.header .btn-m-list {
  position: relative;
  right: auto;
  top: auto;
  flex: 0 0 auto;
  margin-top: 0;
}

@media screen and (max-width: 1100px) {
  .header .nav {
    margin-right: 8px;
  }

  .lang-switch {
    margin-right: 8px;
  }

  .header .logo a img {
    height: 40px;
  }
}

@media screen and (max-width: 768px) {
  .header {
    height: 60px;
  }

  .header .logo {
    padding-top: 0;
  }

  .header .logo a img {
    height: 34px;
    max-width: 180px;
  }

  .header .nav {
    display: none;
  }

  .lang-switch {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
  }

  .header .btn-m-list {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
  }

  .lang-switch__btn {
    padding: 5px 8px;
    font-size: 11px;
  }
}

@media screen and (max-width: 640px) {
  .header .logo {
    padding-top: 0;
  }

  .header .logo a img {
    height: 30px;
    max-width: 150px;
  }
}
