:root {
  --kion-header-x: clamp(20px, 4.2vw, 80px);
  --kion-header-height: 92px;
}

.container-kion {
  box-sizing: border-box;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 var(--kion-header-x);
}

.kds-web-header {
  position: relative;
  box-sizing: border-box;
  height: var(--kion-header-height);
  padding: 0 6px;
  color: var(--kds-text-ekaterinburg);
}

.kds-web-header__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: var(--kion-header-height);
}

.kds-web-header__logo {
  display: block;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.logo {
  display: block;
  margin: 0;
}

.logo__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 72px;
}

.kds-web-header-menu {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
}

.kds-web-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--kds-text-ekaterinburg);
  cursor: pointer;
  font-family: "MTS Compact", Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform 100ms ease-out, background 100ms ease-out, color 100ms ease-out;
  white-space: nowrap;
}

.kds-web-header-button:visited {
  color: var(--kds-text-ekaterinburg);
}

.kds-web-header-button:hover {
  color: var(--kds-text-vladimir);
  background: var(--kds-control-rostov);
}

.kds-web-header-menu__item.active,
.kds-web-header-menu__item.active:visited {
  color: var(--kds-text-vladimir);
}

.kds-web-header-button--icon {
  width: 44px;
  min-width: 44px;
  padding: 0 10px;
}

.kds-web-header-button--promo {
  padding: 0 18px 0 14px;
}

.kds-web-header-button--kids {
  width: 100px;
  padding: 0 18px;
}

.kds-web-header-button__text {
  display: block;
}

.kds-web-icon {
  display: block;
  width: var(--kds-web-bg-size, 24px);
  height: var(--kds-web-bg-size, 24px);
  flex: 0 0 auto;
  background: var(--kds-web-bg-icon) center / contain no-repeat;
}

.kds-web-header-kids__img {
  display: block;
  width: 64px;
  height: 36px;
  object-fit: contain;
}

.kds-web-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 44px;
}

.kds-web-animation-scale:active {
  transform: scale(0.95);
}

@media (max-width: 767.98px) {
  :root {
    --kion-header-height: 60px;
  }

  .kds-web-header-menu {
    display: none;
  }

  .kds-web-header-button--promo-text,
  .kds-web-header-button--kids,
  .kds-web-header-button--login {
    display: none;
  }

  .kds-web-header-button--promo {
    order: 0;
    width: 44px;
    min-width: 44px;
    padding: 0 10px;
  }

  .kds-web-header-button--parameters {
    order: 1;
  }

  .actions__search {
    order: 2;
  }

  .logo__img {
    height: 72px;
  }
}
