/* Header-mobile language dropdown — уникальный префикс hml */
.hml {
  position: relative;
  display: inline-block;
  z-index: 100;
  flex-shrink: 0;
  overflow: visible;
}

.header-block .hml {
  align-self: center;
}

.hml .hml__trigger {
  position: relative;
  cursor: pointer;
  letter-spacing: 0.15px;
  font-size: 13px;
  font-family: "HelveticaNeueCyr-Medium", sans-serif;
}

/* Текущий язык — кнопка */
.hml .hml__current {
  position: relative;
  background: #2C3D51;
  color: #fff;
  padding: 9.5px 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: border-radius 0.3s ease;
  font-size: 11px;
}

/* Список языков — выпадающий блок */
.hml .hml__list {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 100%;
  background: #2C3D51;
  color: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform-origin: top center;
  transform: translateY(-6px);
  transition:
    grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hml .hml__list-inner {
  min-height: 0;
  overflow: hidden;
  background: #2C3D51;
}

.hml .hml__link {
  display: block;
  padding: 10px 7px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  transition: background 0.2s ease;
  border: none;
  font-size: 11px;
}

.hml .hml__link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hml .hml__link:active {
  background: rgba(255, 255, 255, 0.08);
}

/* Стрелка вверх для сворачивания */
.hml .hml__backlink {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: transparent;
  transition: background 0.2s ease;
}

.hml .hml__backlink:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hml .hml__backlink::before {
  content: "";
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 5L5 1L9 5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Открытое состояние */
.hml.is-open .hml__current {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.hml.is-open .hml__list {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


@media screen and (min-width: 993px) {
.header-block  .hml {
    display: none !important;
  }
}