/* ============================================================
   PULSUN — Header (v2 — ближе к макету)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 244, 235, 0.96);
  border-bottom: 1px solid rgba(58, 37, 25, 0.07);
  box-shadow: 0 2px 12px rgba(58, 37, 25, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-scrolled {
  box-shadow: 0 5px 24px rgba(58, 37, 25, 0.1);
}
.theme-pulsun.is-home .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  height: 64px;
}
.header__logo {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}
.header__logo-leaf { font-size: 13px; opacity: 0.75; }
.header__logo-image { display:block; width:auto; max-width:190px; max-height:42px; object-fit:contain; }

.header__nav {
  display: flex;
  gap: var(--sp-8);
  flex: 1 1 auto;
  justify-content: center;
}
@media (max-width: 600px) { .header__logo-image { max-width:135px; max-height:34px; } }
.header__nav-link {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: var(--fw-reg);
  color: var(--text-secondary);
  padding: 4px 0;
  position: relative;
  letter-spacing: 0;
}
.header__nav-link:hover { color: var(--text-primary); }
.header__nav-link::after {
  content: "";
  position: absolute; left: 50%; right: 50%; bottom: 0;
  height: 1px; background: var(--accent);
  transition: left var(--tr-fast), right var(--tr-fast);
}
.header__nav-link:hover::after { left: 0; right: 0; }

.header__cta {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: var(--fw-bold);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--text-inverse);
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
}
.header__cta:hover { background: var(--accent-hover); color: var(--text-inverse); }

.header__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header__icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; color: var(--text-primary);
  border-radius: 50%; transition: background var(--tr-fast), color var(--tr-fast);
}
.header__icon:hover { background: rgba(184, 147, 90, .16); color: var(--accent-hover); }
.header__icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.header__count {
  position: absolute; top: -3px; right: -5px; min-width: 19px; height: 19px;
  display: grid; place-items: center; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: white;
  font: 700 11px/1 var(--font-body);
}
.header__count[hidden] { display: none; }

.header__burger {
  display: none;
  width: 36px; height: 36px;
  border: 0; background: transparent;
  cursor: pointer; padding: 0;
  flex-direction: column; justify-content: center;
  gap: 5px; align-items: center;
}
.header__burger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform var(--tr-fast), opacity var(--tr-fast);
}
.header__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.header__mobile {
  display: none; flex-direction: column;
  position: absolute;
  top: 100%; left: 0; right: 0;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-4) var(--sp-6);
  background: var(--bg-cream);
  border-bottom: 1px solid rgba(58, 37, 25, 0.09);
  box-shadow: 0 16px 30px rgba(58, 37, 25, 0.1);
}
.header__mobile a {
  padding: 12px var(--sp-3); font-weight: var(--fw-medium);
  border-radius: var(--r-sm); font-size: 15px;
}
.header__mobile a:hover { background: var(--bg-cream-2); }
.header__mobile .btn { justify-content: center; margin-top: var(--sp-3); }

@media (max-width: 900px) {
  .header__inner { height: 56px; gap: var(--sp-3); }
  .header__nav, .header__cta { display: none; }
  .header__actions { margin-left: auto; }
  .header__burger { display: flex; }
  .header__mobile.is-open { display: flex; }
  .header__logo { font-size: 18px; }
}
@media (max-width: 380px) {
  .header__inner { gap: 5px; }
  .header__actions { gap: 1px; }
  .header__icon { width: 34px; height: 36px; }
}
