﻿.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(7, 11, 17, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header__container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 110px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.8px;
}

.site-header__logo img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
}

.site-header__logo .site-logo__text {
  overflow-wrap: anywhere;
  line-height: 1.1;
  color: var(--accent);
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.site-header__language,
.site-header__gift,
.site-header__btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.site-header__language {
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
}

.site-header__language-icon {
  display: none;
}

.site-header__gift {
  width: 42px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  transition: color var(--transition), border-color var(--transition);
}

.site-header__gift svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.site-header__btn {
  padding: 10px 12px;
  font-size: 13px;
}

.site-header__nav {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline: var(--gutter);
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.site-header__nav.is-open {
  display: block;
}

.site-header__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* Keep configured menus accessible through the existing toggle. */
.site-header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 26px;
  height: 42px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.site-header__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}

@media (min-width: 768px) {
  .site-header__container {
    gap: 20px;
  }

  .site-header__logo {
    max-width: 160px;
    font-size: 28px;
  }

  .site-header__actions {
    gap: 10px;
  }

  .site-header__language {
    min-width: 54px;
  }

  .site-header__btn {
    min-height: 44px;
    padding-inline: 22px;
    font-size: 14px;
  }
}

@media (hover: hover) {

  .site-header__gift:hover,
  .site-header__language:hover {
    color: var(--accent-2);
    border-color: rgba(255, 59, 48, .35);
  }

  .site-header__nav a:hover {
    color: var(--text);
  }
}

/* Header actions */
.site-header__actions {
  gap: 8px;
  min-width: 0;
}

.site-header__gift {
  width: auto;
  min-height: 44px;
  padding: 5px 11px 5px 6px;
  gap: 7px;
  border-radius: 11px;
  border-color: rgba(255, 59, 48, .2);
  background: rgba(255, 59, 48, .06);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.site-header__gift-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(255, 89, 69, .24), rgba(255, 59, 48, .08));
  transition: transform .2s ease;
  animation: pinup-gift-intro .6s ease .4s 1;
}

.site-header__gift-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.site-header__gift svg {
  width: 20px;
  height: 20px;
}

.site-header__btn--secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.site-header__secondary-icon {
  display: none;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.site-header__btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  box-shadow: 0 5px 18px rgba(255, 59, 48, .18);
}

.site-header__btn--primary::after {
  content: '\2192';
  transition: transform .2s ease;
}

.site-header__btn--primary::before {
  content: '';
  position: absolute;
  inset-block: -50%;
  left: -50%;
  width: 25%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

@keyframes pinup-gift-intro {
  50% {
    transform: translateY(-2px) rotate(-4deg);
  }
}

@media (hover: hover) and (pointer: fine) {
  .site-header__gift:hover {
    color: var(--text);
    transform: translateY(-2px);
    border-color: rgba(255, 59, 48, .38);
    box-shadow: 0 5px 14px rgba(255, 59, 48, .1);
  }

  .site-header__gift:hover .site-header__gift-icon {
    transform: rotate(-4deg) scale(1.06);
  }

  .site-header__btn--secondary:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: var(--surface-2);
  }

  .site-header__btn--primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, var(--accent-2), var(--accent));
  }

  .site-header__btn--primary:hover::after {
    transform: translateX(3px);
  }

  .site-header__btn--primary:hover::before {
    left: 125%;
    transition: left .45s ease;
  }
}

.site-header__gift-text,
.site-header__secondary-text {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .site-header__actions {
    gap: 5px;
    flex: 0 1 auto;
  }

  .site-header__gift {
    padding: 5px;
    min-height: 42px;
    flex: 0 0 42px;
  }

  .site-header__gift-text,
  .site-header__secondary-text {
    display: none;
  }

  .site-header__secondary-icon {
    display: block;
  }

  .site-header__btn--secondary {
    padding: 8px;
    flex: 0 0 36px;
  }

  .site-header__language {
    padding-inline: 7px;
  }

  .site-header__btn--primary {
    padding-inline: 9px;
    min-width: 0;
    gap: 4px;
  }

  .site-header__btn--primary .site-header__btn-text {
    max-width: 100px;
    overflow-wrap: anywhere;
    line-height: 1.15;
  }

  .site-header__btn--primary::after {
    display: none;
  }

  .site-header__logo {
    font-size: 19px;
    flex-shrink: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__gift-icon {
    animation: none;
  }

  .site-header__gift,
  .site-header__gift-icon,
  .site-header__btn--secondary,
  .site-header__btn--primary::after {
    transition: none;
  }

  .site-header__gift:hover,
  .site-header__gift:hover .site-header__gift-icon,
  .site-header__btn--secondary:hover,
  .site-header__btn--primary:hover,
  .site-header__btn--primary:hover::after {
    transform: none;
  }

  .site-header__btn--primary::before {
    display: none;
  }
}

/* Icon-only gift, with independently moving lid. */
.site-header__gift {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  gap: 0;
  border-radius: 13px;
  border-color: rgba(255, 59, 48, .18);
  background: linear-gradient(145deg, rgba(255, 59, 48, .09), var(--surface));
}

.site-header__gift-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: none;
  border-radius: 0;
  animation: pinup-gift-nudge 6s ease-in-out infinite;
}

.site-header__gift-box {
  position: absolute;
  left: 4px;
  bottom: 2px;
  width: 20px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(140deg, var(--accent-2), #bb2b25);
  box-shadow: inset 0 1px rgba(255, 255, 255, .14);
}

.site-header__gift-box::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 2px;
  right: 2px;
  height: 5px;
  background: #ffac72;
  filter: blur(3px);
  opacity: 0;
  transition: opacity .24s ease;
}

.site-header__gift-ribbon {
  position: absolute;
  left: 12px;
  bottom: 2px;
  width: 4px;
  height: 16px;
  background: #ffd0a9;
  opacity: .9;
}

.site-header__gift-lid {
  position: absolute;
  left: 2px;
  top: 7px;
  width: 24px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(120deg, #ff8064, var(--accent-2));
  border-top: 1px solid rgba(255, 255, 255, .3);
  transform-origin: left bottom;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1);
}

.site-header__gift-lid::before,
.site-header__gift-lid::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 8px;
  height: 6px;
  border: 2px solid #ffc39c;
}

.site-header__gift-lid::before {
  left: 4px;
  border-radius: 6px 6px 0 6px;
  transform: rotate(12deg);
}

.site-header__gift-lid::after {
  right: 4px;
  border-radius: 6px 6px 6px 0;
  transform: rotate(-12deg);
}

@keyframes pinup-gift-nudge {

  0%,
  86%,
  92%,
  100% {
    transform: translateY(0);
  }

  89% {
    transform: translateY(-3px);
  }

  95% {
    transform: translateY(-1px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .site-header__gift:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 59, 48, .38);
    box-shadow: 0 5px 14px rgba(255, 59, 48, .12);
  }

  .site-header__gift:hover .site-header__gift-icon {
    animation: none;
    transform: none;
  }

  .site-header__gift:hover .site-header__gift-lid {
    transform: translateY(-4px) rotate(-8deg);
  }

  .site-header__gift:hover .site-header__gift-box::after {
    opacity: .5;
  }
}

.site-header__gift:active {
  transform: translateY(0) scale(.97);
}

@media (max-width: 767px) {
  .site-header__gift {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__gift-icon {
    animation: none;
  }

  .site-header__gift,
  .site-header__gift-lid,
  .site-header__gift-box::after {
    transition: none;
  }

  .site-header__gift:hover,
  .site-header__gift:active,
  .site-header__gift:hover .site-header__gift-lid {
    transform: none;
  }

  .site-header__gift:hover .site-header__gift-box::after {
    opacity: 0;
  }
}

/* Responsive navigation uses the existing menu and toggle. */
.site-header__nav a {
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.site-header__nav .current-menu-item>a,
.site-header__nav .current_page_item>a {
  color: var(--text);
  background: rgba(255, 59, 48, .06);
}

.site-header__mobile-secondary {
  display: none !important;
}

.site-header__burger {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.site-header__burger span {
  position: absolute;
  left: 11px;
  top: 19px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.site-header__burger span:first-child {
  transform: translateY(-6px);
}

.site-header__burger span:last-child {
  transform: translateY(6px);
}

.site-header__burger.is-active {
  background: rgba(255, 59, 48, .08);
  border-color: rgba(255, 59, 48, .24);
}

.site-header__burger.is-active span:first-child {
  transform: rotate(45deg);
}

.site-header__burger.is-active span:nth-child(2) {
  opacity: 0;
}

.site-header__burger.is-active span:last-child {
  transform: rotate(-45deg);
}

@media (min-width: 1024px) {

  .site-header__nav,
  .site-header__nav.is-open {
    display: block;
    position: static;
    margin-left: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .site-header__nav-list {
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
  }

  .site-header__actions {
    margin-left: 0;
  }

  .site-header__container:not(:has(.site-header__nav)) .site-header__actions {
    margin-left: auto;
  }

  .site-header__burger {
    display: none;
  }
}

@media (max-width: 1023px) {
  .site-header__burger {
    display: block;
  }

  .site-header__nav {
    top: calc(100% + 6px);
    padding: 12px;
    border-radius: 14px;
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
  }

  .site-header__nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-header__nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 14px;
  }

  .site-header__nav a:active {
    background: rgba(255, 255, 255, .04);
  }
}

@media (max-width: 767px) {
  .site-header__container:has(.site-header__nav) .site-header__btn--secondary {
    display: none;
  }

  .site-header__nav .site-header__mobile-secondary {
    display: flex !important;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    color: var(--text);
  }

  .site-header__logo {
    flex-shrink: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .site-header__nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .04);
    transform: translateY(-1px);
  }

  .site-header__burger:hover {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .16);
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .site-header__nav a,
  .site-header__burger,
  .site-header__burger span {
    transition: none;
  }

  .site-header__nav a:hover,
  .site-header__burger:hover {
    transform: none;
  }
}

@media (max-width: 430px) {
  .site-header__container:has(.site-header__nav) {
    gap: 6px;
  }

  .site-header__container:has(.site-header__nav) .site-header__actions {
    gap: 4px;
  }

  .site-header__container:has(.site-header__nav) .site-header__btn--primary {
    flex-shrink: 0;
  }
}

/* Quiet navigation accents and secondary-control interactions. */
.site-header__nav a {
  position: relative;
  background: transparent;
  transition: color .2s ease;
}

.site-header__nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: translateX(-50%);
  transition: width .22s ease;
}

.site-header__nav .current-menu-item>a,
.site-header__nav .current_page_item>a {
  background: transparent;
}


.site-header__btn--secondary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.site-header__burger {
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.site-header__burger span {
  left: 50%;
  top: 50%;
  margin-left: -9px;
  margin-top: -1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  transform-origin: center;
  transition: transform .24s cubic-bezier(.2, .7, .3, 1), opacity .24s ease, background-color .22s ease;
}

.site-header__burger span:nth-child(2) {
  transform: scaleX(.7778);
}

.site-header__burger.is-active {
  background: rgba(255, 59, 48, .07);
  border-color: rgba(255, 70, 60, .3);
  box-shadow: inset 0 1px 0 rgba(255, 100, 80, .07);
}

.site-header__burger.is-active span {
  background: #fff;
}

.site-header__burger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

@media (hover: hover) and (pointer: fine) {
  .site-header__nav a:hover {
    color: #fff;
    background: transparent;
    transform: none;
  }

  .site-header__nav a:hover::after {
    width: 70%;
  }

  .site-header__btn--secondary:hover {
    transform: none;
    color: #fff;
    border-color: rgba(255, 70, 60, .35);
    background: rgba(255, 70, 60, .06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 6px 18px rgba(255, 40, 40, .08);
  }

  .site-header__burger:hover {
    transform: none;
    border-color: rgba(255, 70, 60, .28);
    background: rgba(255, 70, 60, .05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 4px 12px rgba(255, 40, 40, .06);
  }

  .site-header__burger:hover span {
    background: #fff;
  }

  .site-header__burger:not(.is-active):hover span:nth-child(2) {
    transform: scaleX(1);
  }
}

.site-header__btn--secondary:active {
  transform: scale(.98);
}

.site-header__nav a:focus-visible,
.site-header__btn--secondary:focus-visible,
.site-header__burger:focus-visible {
  outline: 2px solid rgba(255, 80, 70, .45);
  outline-offset: 2px;
}

.site-header__nav a:focus-visible::after {
  width: 70%;
}

@media (hover: none) {
  .site-header__nav a:active {
    background: rgba(255, 255, 255, .025);
  }
}

/* Burger-panel links use quiet surfaces instead of desktop underlines. */
@media (max-width: 1023px) {
  .site-header__nav a {
    background: transparent;
    transform: none;
  }

  .site-header__nav a::after {
    content: none;
    display: none;
  }

  .site-header__nav a:hover,
  .site-header__nav a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .03);
    transform: none;
  }

  .site-header__nav a.site-header__mobile-secondary {
    color: #fff;
  }

  .site-header__nav a.site-header__mobile-secondary:hover,
  .site-header__nav a.site-header__mobile-secondary:focus-visible {
    background: rgba(255, 59, 48, .04);
  }

  .site-header__nav a:active,
  .site-header__nav a.site-header__mobile-secondary:active {
    background: rgba(255, 59, 48, .05);
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .site-header__nav a::after,
  .site-header__btn--secondary,
  .site-header__burger,
  .site-header__burger span {
    transition: none;
  }

  .site-header__btn--secondary:active {
    transform: none;
  }
}

/* Keep the language control compact without changing desktop spacing. */
@media (max-width: 767px) {
  .site-header__language {
    flex: 0 0 auto;
    width: 40px;
    min-width: 40px;
    height: 42px;
    padding: 0;
    white-space: nowrap;
  }
}