:root {
  --site-header-max-width: 1536px;
  --site-header-bg: rgba(10, 10, 10, 0.92);
  --site-header-border: rgba(82, 82, 82, 0.38);
  --site-header-text: #f5f5f5;
  --site-header-muted: #a3a3a3;
  --site-header-pill-bg: rgba(23, 23, 23, 0.76);
  --site-header-pill-border: rgba(82, 82, 82, 0.9);
  --site-header-pill-hover: rgba(163, 163, 163, 0.5);
  --site-header-cta-bg: #e7e5e4;
  --site-header-cta-hover: #d6b091;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: var(--site-header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--site-header-border);
}

.site-header,
.site-header * {
  font-family: Inter, Arial, sans-serif;
}

.site-header-inner {
  max-width: var(--site-header-max-width);
  min-height: 96px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo {
  flex: 0 0 auto;
  color: var(--site-header-text);
  text-decoration: none;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.site-nav-link {
  color: var(--site-header-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav-link:hover {
  color: var(--site-header-text);
}

.site-nav-link.active {
  color: var(--site-header-text);
  border-bottom-color: rgba(245, 245, 245, 0.38);
}

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

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--site-header-pill-border);
  background: var(--site-header-pill-bg);
}

.language-link {
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--site-header-pill-border);
  color: var(--site-header-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.language-link:hover {
  color: var(--site-header-text);
  border-color: var(--site-header-pill-hover);
}

.language-link.active {
  color: #111111;
  background: #f5f5f5;
  border-color: rgba(245, 245, 245, 0.52);
}

.header-cta {
  height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--site-header-cta-bg);
  color: #111111;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}

.header-cta:hover {
  background: var(--site-header-cta-hover);
  color: #111111;
}

@media (max-width: 1240px) {
  .site-header-inner {
    padding: 0 24px;
    gap: 22px;
  }

  .site-nav {
    gap: 22px;
  }
}

@media (max-width: 980px) {
  .site-header-inner {
    min-height: 96px;
    padding: 14px 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .site-logo {
    font-size: 26px;
  }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
    gap: 14px 18px;
  }

  .site-actions {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    padding: 12px 16px 14px;
    gap: 12px;
  }

  .site-logo {
    font-size: 24px;
  }

  .site-nav {
    gap: 12px 16px;
  }

  .site-nav-link {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .language-switcher {
    gap: 6px;
    padding: 5px;
  }

  .language-link {
    min-width: 36px;
    height: 30px;
    padding: 0 8px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .header-cta {
    height: 40px;
    padding: 0 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 480px) {
  .site-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .header-cta {
    width: 100%;
  }
}
