:root {
  --max: 1120px;
  --nav-height: 68px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(25, 31, 18, 0.78);
  border-bottom: 1px solid rgba(255, 248, 223, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.site-header.is-scrolled {
  background: rgba(20, 24, 14, 0.92);
  border-bottom-color: rgba(255, 248, 223, 0.17);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.nav-wrap {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
}

.nav a,
.header-company-link,
.social-link,
.menu-toggle {
  text-decoration: none;
  color: rgba(255, 248, 223, 0.88);
  font-size: 0.92rem;
  font-weight: 850;
  border-radius: 999px;
}

.nav > a {
  padding: 9px 13px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav > a:hover,
.nav > a:focus-visible {
  color: var(--cream-soft);
  background: rgba(255, 248, 223, 0.11);
  transform: translateY(-1px);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 248, 223, 0.86);
  background: rgba(255, 248, 223, 0.08);
  border: 1px solid rgba(255, 248, 223, 0.13);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  color: var(--cream-soft);
  background: rgba(255, 248, 223, 0.13);
  border-color: rgba(237, 186, 47, 0.34);
  outline: none;
}

.nav-socials {
  display: none;
}

.header-company-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  color: var(--warm-glow);
  background: rgba(255, 248, 223, 0.08);
  border: 1px solid rgba(255, 248, 223, 0.12);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.header-company-link:hover,
.header-company-link:focus-visible {
  transform: translateY(-2px);
  color: var(--cream-soft);
  background: rgba(255, 248, 223, 0.12);
  border-color: rgba(237, 186, 47, 0.30);
  outline: none;
}

.menu-toggle {
  display: none;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 248, 223, 0.16);
  background: rgba(255, 248, 223, 0.08);
  color: var(--cream-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
}

.hero {
  min-height: calc(100svh - var(--nav-height));
  padding-top: 86px;
}

@media (max-width: 760px) {
  .nav-wrap {
    padding: 0 16px;
  }

  .nav {
    position: fixed;
    top: calc(var(--nav-height) + 10px);
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(20, 24, 14, 0.96);
    border: 1px solid rgba(255, 248, 223, 0.14);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  }

  .nav.open {
    display: flex;
  }

  .nav > a {
    padding: 12px 14px;
  }

  .header-actions > .header-company-link,
  .header-socials {
    display: none;
  }

  .nav-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0 0;
  }

  .nav-socials .social-link {
    width: 46px;
    height: 46px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: 82px;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    padding: 0 12px;
  }

  .menu-toggle {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    padding-top: 62px;
  }
}
