body {
  padding-top: 68px;
}

.site-header,
.site-header * {
  box-sizing: border-box;
}

.site-header {
  position: fixed;
  z-index: 999999;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(15, 17, 19, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color: #f0f6fc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .shell {
  width: min(calc(100% - 40px), 1280px);
  margin-inline: auto;
}

.site-header .header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header .brand {
  display: inline-grid;
  min-height: 44px;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  flex: 0 0 auto;
  column-gap: 10px;
  row-gap: 1px;
  color: inherit;
  text-decoration: none;
  user-select: none;
}

.site-header .brand img {
  display: block;
}

.site-header .brand-logo {
  width: 38px;
  height: auto;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.site-header .brand-wordmark {
  width: 158px;
  height: auto;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.site-header .brand-market {
  display: inline-flex;
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  align-self: start;
  gap: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.site-header .brand-market-flag {
  width: 18px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.site-header .site-nav {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  margin-left: auto;
}

.site-header .nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-header .country-switcher {
  position: relative;
  flex: 0 0 auto;
}

.site-header .country-switcher__trigger {
  display: inline-flex;
  min-width: 58px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 7px 4px 5px;
  border: 1px solid #484f58;
  border-radius: 999px;
  background: transparent;
  color: #8b949e;
  cursor: pointer;
  font: inherit;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.site-header .country-switcher__trigger:hover,
.site-header .country-switcher__trigger[aria-expanded="true"] {
  border-color: rgba(28, 173, 117, 0.5);
  background: rgba(28, 173, 117, 0.1);
  color: #f0f6fc;
}

.site-header .country-switcher__trigger > i {
  font-size: 10px;
  transition: rotate 120ms ease;
}

.site-header .country-switcher__trigger[aria-expanded="true"] > i {
  rotate: 180deg;
}

.site-header .country-switcher__flag,
.site-header .country-switcher__option-flag {
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid #484f58;
  background: #21262d;
}

.site-header .country-switcher__flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.site-header .country-switcher__option-flag {
  width: 32px;
  height: 22px;
  border-radius: 4px;
}

.site-header .country-switcher__flag img,
.site-header .country-switcher__option-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header .country-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  padding: 6px;
  border: 1px solid #30363d;
  border-radius: 10px;
  background: #161b22;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.site-header .country-switcher__link {
  display: grid;
  min-height: 48px;
  grid-template-columns: 32px 1fr 16px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  color: #f0f6fc;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.site-header .country-switcher__link:hover,
.site-header .country-switcher__link:focus-visible {
  background: #21262d;
}

.site-header .country-switcher__link.is-current,
.site-header .country-switcher__link > i {
  color: #1cad75;
}

.site-header .site-nav form {
  margin: 0;
}

.site-header .header-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(28, 173, 117, 0.55);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.site-header .header-outline {
  background: transparent;
}

.site-header .header-outline:hover {
  background: rgba(28, 173, 117, 0.12);
}

.site-header .header-primary {
  border-color: #1cad75;
  background: #1cad75;
}

.site-header .header-primary:hover {
  border-color: #2ea043;
  background: #2ea043;
}

.site-header :focus-visible {
  outline: 3px solid #47d59d;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  body {
    padding-top: 64px;
  }

  .site-header .shell {
    width: min(calc(100% - 28px), 1280px);
  }

  .site-header .header-inner {
    min-height: 64px;
    gap: 8px;
  }

  .site-header .brand {
    column-gap: 8px;
  }

  .site-header .brand-logo {
    width: 34px;
  }

  .site-header .brand-wordmark {
    width: 118px;
  }

  .site-header .brand-market {
    gap: 4px;
    font-size: 10px;
  }

  .site-header .brand-market-flag {
    width: 16px;
    height: 11px;
  }

  .site-header .site-nav {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .site-header .nav-actions {
    gap: 6px;
  }

  .site-header .country-switcher__trigger {
    min-width: 54px;
  }

  .site-header .country-switcher__menu {
    position: fixed;
    top: 72px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .site-header .header-action {
    padding-inline: 10px;
    font-size: 12px;
  }

  .site-header .header-login {
    width: 44px;
    padding-inline: 0;
  }

  .site-header .header-login .action-label {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header .nav-actions .header-action {
    width: 44px;
    padding-inline: 0;
  }

  .site-header .nav-actions .action-label {
    display: none;
  }
}

@media (max-width: 360px) {
  .site-header .brand-logo {
    width: 32px;
  }

  .site-header .brand-wordmark {
    width: 104px;
  }
}
