.site-header {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 3.2%;
  right: 3.2%;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 14px 0 21px;
  border: 1px solid rgba(241, 236, 223, .16);
  border-radius: 999px;
  background: rgba(5, 6, 6, .72);
  color: #f1ecdf;
  backdrop-filter: blur(18px);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header .brand img {
  display: block;
  width: clamp(128px, 12vw, 168px);
  height: auto;
  filter: grayscale(1) sepia(.12) saturate(.62) brightness(1.16);
}

.site-header .main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.site-header .main-nav a {
  color: rgba(241, 236, 223, .68);
  font-size: 13px;
  transition: color .2s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible {
  color: #f1ecdf;
}

.site-header .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(241, 236, 223, .14);
  border-radius: 999px;
  background: transparent;
  color: #f1ecdf;
  font-size: 11px;
  cursor: pointer;
}

.site-header .menu-toggle svg {
  width: 13px;
  height: 13px;
}

.site-header .header-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 9px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #f1ecdf;
  border-radius: 999px;
  background: #f1ecdf;
  color: #16120a;
  font-size: 12px;
  font-weight: 680;
  box-shadow: 0 8px 28px rgba(241, 236, 223, .14);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.site-header .header-download:hover {
  transform: translateY(-2px) scale(1.015);
  background: #fffaf0;
  box-shadow: 0 12px 34px rgba(241, 236, 223, .22);
}

.site-header .header-download:focus-visible,
.site-header .menu-toggle:focus-visible {
  outline: 2px solid #f4c468;
  outline-offset: 4px;
}

.site-header .download-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .site-header .main-nav {
    gap: clamp(12px, 1.7vw, 18px);
  }

  .site-header .main-nav a {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 8px;
  }

  .site-header .menu-toggle {
    display: inline-flex;
  }

  .site-header .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(241, 236, 223, .16);
    border-radius: 16px;
    background: rgba(5, 6, 6, .96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
    backdrop-filter: blur(18px);
  }

  .site-header .main-nav.is-open {
    display: flex;
  }

  .site-header .main-nav a {
    padding: 11px 12px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    left: 12px;
    right: 12px;
    height: 56px;
    padding: 0 8px 0 14px;
  }

  .site-header .brand img {
    width: 116px;
  }

  .site-header .header-download {
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  .site-header .header-download .download-icon {
    width: 14px;
    height: 14px;
  }
}
