.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vv-line);
  padding-top: var(--safe-top);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  padding: 0 max(var(--vv-pad-x), var(--safe-right)) 0 max(var(--vv-pad-x), var(--safe-left));
}

.site-header__logo {
  font-family: var(--ff-serif);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.32em;
  white-space: nowrap;
  padding: 0 0.32em 0 0.32em;
  text-transform: uppercase;
}

.site-header__burger,
.site-drawer__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--vv-ink);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a:hover,
.site-header__utils a:hover,
.site-drawer__group a:hover {
  color: var(--vv-mute);
}

.site-header__utils {
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header__cart [data-qa="cart-count"]:not(:empty),
[data-qa="favorites"] [data-wishlist-count]:not(:empty) {
  margin-left: 0.35em;
}

.site-drawer-backdrop,
.site-drawer {
  display: none;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .site-nav {
    gap: 14px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .site-header__utils {
    gap: 14px;
  }
}

@media (max-width: 991px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 0 max(20px, var(--safe-right)) 0 max(20px, var(--safe-left));
  }

  .site-nav {
    display: none;
  }

  .site-header__burger {
    display: flex;
  }

  .site-header__utils {
    gap: 8px;
  }

  .site-header__utils a:not(.site-header__cart) {
    display: none;
  }

  .site-header__cart {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .site-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 48;
    background: rgba(34, 34, 34, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-modal) var(--ease-drawer);
  }

  .site-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--vv-pearl);
    padding: var(--safe-top) max(20px, var(--safe-right)) 0 max(20px, var(--safe-left));
    overflow: hidden;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--duration-modal) var(--ease-drawer), visibility var(--duration-modal);
  }

  body.is-nav-open .site-drawer-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  body.is-nav-open .site-drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
    min-height: var(--header-h);
  }

  .site-drawer__top .site-header__logo {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-drawer__close {
    display: flex;
  }

  .site-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 20px 24px 0;
    scrollbar-gutter: stable;
  }

  .site-drawer__group {
    margin-bottom: 28px;
  }

  .site-drawer__eyebrow {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: #a9812f;
  }

  .site-drawer__group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    border-bottom: 1px solid var(--vv-hair);
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: normal;
    color: var(--vv-ink);
  }

  .site-drawer__lead {
    font-family: var(--ff-serif);
    font-size: clamp(26px, 7.2vw, 34px);
    letter-spacing: 0.02em;
    text-transform: none;
    min-height: 64px;
    color: #2f2924;
  }

  .site-drawer__count:not(:empty) {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border: 1px solid var(--vv-ink);
    font-family: var(--ff-sans);
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1;
  }

  .site-drawer__foot {
    flex-shrink: 0;
    padding: 20px 0 calc(20px + var(--safe-bottom));
    border-top: 1px solid var(--vv-hair);
  }

  .site-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }

  .site-drawer__place {
    margin: 14px 0 0;
    font-size: 12px;
    letter-spacing: 0.04em;
    line-height: 1.5;
    color: var(--vv-mute);
  }

  .site-drawer__tel {
    display: inline;
    margin-left: 0.4em;
    color: var(--vv-ink);
    letter-spacing: 0.04em;
    text-transform: none;
  }

  body.is-nav-open .site-drawer__group,
  body.is-nav-open .site-drawer__foot {
    animation: vv-hero-rise var(--motion-reveal) var(--ease-reveal) both;
  }

  body.is-nav-open .site-drawer__group:nth-child(2) {
    animation-delay: 120ms;
  }

  body.is-nav-open .site-drawer__group:nth-child(3) {
    animation-delay: 220ms;
  }

  body.is-nav-open .site-drawer__foot {
    animation-delay: 300ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-drawer,
  .site-drawer-backdrop {
    transition: none;
  }

  body.is-nav-open .site-drawer__group,
  body.is-nav-open .site-drawer__foot {
    animation: none;
  }
}
