.site-header {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  min-width: 0;
  color: #0f0f0f;
  font-family: "Golos Text", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 28.8px;
  text-decoration: none;
}

.header-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  flex-wrap: nowrap;
}

.header-nav__links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 32px !important;
  column-gap: 32px !important;
  flex-wrap: nowrap;
}

.header-nav__links > .header-link + .header-link {
  margin-left: 0;
}

.header-nav__controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-link {
  position: relative;
  color: #0f0f0f;
  font-size: 16px;
  font-weight: 600;
  line-height: 19.2px;
  text-decoration: none;
  transition: color 160ms ease;
}

.header-link:hover,
.header-link:focus-visible {
  color: #a86a2a;
}

.header-link__icon {
  display: none;
  width: 18px;
  height: 18px;
  color: currentColor;
  flex-shrink: 0;
}

.header-link__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.header-link__label {
  display: inline;
}

.header-link__copy-feedback {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 8px 20px rgba(15, 15, 15, 0.16);
}

.header-link.is-copied .header-link__copy-feedback {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 821px) {
  .site-header .header-nav,
  .site-header .header-nav__links {
    gap: 32px !important;
    column-gap: 32px !important;
  }
}

.header-menu-toggle,
.header-mobile-menu {
  display: none;
}

.header-menu-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0f0f0f;
  outline: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.header-menu-toggle__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-menu-toggle__icon svg,
.header-mobile-menu__close svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: none;
}

.header-mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.header-mobile-menu__top {
  width: 100%;
  padding: 32px 16px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-mobile-menu__brand {
  color: #0f0f0f;
  font-family: "Golos Text", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 28.8px;
  text-decoration: none;
}

.header-mobile-menu__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0f0f0f;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.header-mobile-menu__close svg {
  width: 20px;
  height: 20px;
}

.header-mobile-menu__content {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 24px 16px 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.header-mobile-menu .header-link {
  width: auto;
  height: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  outline: none;
  color: #0f0f0f;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  transition: color 160ms ease;
}

.header-mobile-menu .header-link__icon {
  display: none;
}

.header-mobile-menu .header-link__label {
  display: inline;
}

.header-mobile-menu .header-link:active,
.header-mobile-menu .header-link.is-pressing {
  color: #a86a2a;
}

body.is-site-menu-open {
  overflow: hidden;
  touch-action: none;
}

body.is-site-menu-open .site-scrollbar {
  display: none;
}

body.is-menu-open .site-header .brand,
body.is-menu-open .site-header .header-menu-toggle {
  opacity: 0;
  pointer-events: none;
}

body.is-menu-open .site-header .language-toggle {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}

@media (max-width: 820px) {
  .site-header {
    position: relative;
    z-index: 14;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .header-nav {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .header-nav > .header-link,
  .header-nav__links {
    display: none;
  }

  .header-nav__controls {
    flex: 0 0 auto;
    gap: 12px;
  }

  .header-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .header-mobile-menu {
    display: flex;
  }
}
