.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: background 0.25s ease;
}

.site-header__inner {
  width: 100%;
  max-width: 1024px;
  min-height: 96px;
  margin: 0 auto;
  padding: 1rem 1rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__home {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-header__home:hover {
  opacity: 0.8;
}

.site-header__home:focus-visible {
  outline: 2px solid #aa7fe8;
  outline-offset: 4px;
}

.site-header__logo {
  display: block;
  width: auto;
  height: 64px;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(1);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.contact-btn {
  font-family: sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 1rem 2rem;
  margin-top: 1rem;
  align-self: center;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #6c46a3, #8951c2, #7b56b9, #aa7fe8);
  background-size: 400% 400%;
  animation: contactBtnGradient 15s ease infinite;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.contact-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
  text-decoration: none;
  color: #fff;
}

.contact-btn:active {
  transform: scale(0.97);
  opacity: 0.85;
}

.site-header__cta {
  margin-top: 0;
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.site-header__cta:focus-visible {
  outline: 2px solid #aa7fe8;
  outline-offset: 4px;
}

.site-header__cta--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.96);
}

.site-header--scrolled {
  background: rgba(17, 17, 17, 0.72);
}

.site-header--scrolled .site-header__logo {
  transform: scale(0.56);
}

@keyframes contactBtnGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
  .site-header__inner {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    min-height: 80px;
    padding: 0.85rem 0.5rem;
  }

  .site-header__logo {
    height: 52px;
  }

  .site-header--scrolled .site-header__logo {
    transform: scale(0.62);
  }

  .site-header__cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }
}
