/* Bonus Family — üst menü */
.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  --header-stack-height: 72px;
}

.page-shell.is-fixed {
  padding-top: var(--header-stack-height);
}

.site-header-stack {
  width: 100%;
}

.page-shell.is-fixed .site-header-stack {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.preview-header-stack.site-header-stack {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(193, 124, 25, 0.2);
}

.page-shell.is-fixed .site-top-header {
  position: static;
  left: auto;
  top: auto;
  z-index: auto;
  min-height: 64px;
  background:
    linear-gradient(180deg, rgba(193, 124, 25, 0.1) 0%, transparent 100%),
    rgba(3, 3, 3, 0.86);
  border-bottom-color: rgba(193, 124, 25, 0.2);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.48);
}

.site-top-header {
  width: 100%;
  min-height: 72px;
  background:
    linear-gradient(180deg, var(--bg-particle-glow-strong) 0%, transparent 52%),
    linear-gradient(180deg, rgba(139, 105, 20, 0.04) 0%, transparent 100%),
    rgba(3, 3, 3, 0.52);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(193, 124, 25, 0.16);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  transition:
    min-height 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.page-shell.is-fixed .site-top-header__container {
  position: relative;
  justify-content: center;
}

.site-top-header__container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-top-header__logo {
  width: 108px;
  flex-shrink: 0;
  transition: transform 0.4s ease, width 0.35s ease, opacity 0.35s ease;
}

.site-top-header__logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(193, 124, 25, 0.18));
}

.site-top-header__logo-text {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #d4922a 0%, var(--theme-gold) 48%, #8B6914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-shell.is-fixed .site-top-header__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.page-shell.is-fixed .site-top-header__social,
.page-shell.is-fixed .site-top-header__links {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-top-header__social {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-top-header__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(193, 124, 25, 0.92) 0%, rgba(139, 105, 20, 0.98) 100%);
  border: 1px solid rgba(232, 168, 64, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 18px rgba(193, 124, 25, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-top-header__social-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px rgba(193, 124, 25, 0.34);
}

.site-top-header__social-btn svg {
  width: 17px;
  height: 17px;
  fill: #fff;
  flex-shrink: 0;
}

.site-top-header__links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-top-header__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-top-header__link--channel-1 {
  border-color: rgba(193, 124, 25, 0.28);
  background: linear-gradient(135deg, rgba(193, 124, 25, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.site-top-header__link--promo {
  border-color: rgba(193, 124, 25, 0.26);
  background: linear-gradient(135deg, rgba(193, 124, 25, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.site-top-header__link--channel-2 {
  border-color: rgba(154, 115, 24, 0.3);
  background: linear-gradient(135deg, rgba(139, 105, 20, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.site-top-header__link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.site-top-header__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.site-top-header__link-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-top-header__link-icon--dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-gold);
  box-shadow: 0 0 10px rgba(193, 124, 25, 0.55);
}

.site-top-header__link-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.site-top-header__link-text strong {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.site-top-header__link-text small {
  font-size: 0.62rem;
  text-transform: uppercase;
  opacity: 0.72;
  font-weight: 600;
}

.site-top-header img[loading="lazy"] {
  filter: blur(4px);
  transition: filter 0.3s ease;
}

.site-top-header img[loading="lazy"].loaded {
  filter: none;
}

.preview-header.site-top-header {
  border-radius: 0;
  overflow: visible;
  margin-bottom: 0;
}

@keyframes site-header-logo-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 6px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@media (max-width: 996px) {
  .site-top-header {
    min-height: auto;
    padding: 8px 0;
  }

  .site-top-header__container {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 12px;
  }

  .site-top-header__container::-webkit-scrollbar {
    display: none;
  }

  .site-top-header__logo {
    display: none;
    width: 86px;
  }

  .site-top-header__social {
    order: 0;
    flex: 0 0 auto;
  }

  .site-top-header__social-btn {
    padding: 7px 10px;
    font-size: 9px;
    gap: 5px;
    white-space: nowrap;
  }

  .site-top-header__social-btn svg {
    width: 15px;
    height: 15px;
  }

  .site-top-header__links {
    order: 1;
    display: flex;
    flex: 0 0 auto;
    width: auto;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 0;
  }

  .site-top-header__link {
    width: auto;
    flex: 0 0 auto;
    padding: 6px 8px;
    gap: 6px;
  }

  .site-top-header__link-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .site-top-header__link-icon img {
    width: 20px;
    height: 20px;
  }

  .site-top-header__link-text strong {
    font-size: 0.58rem;
    white-space: nowrap;
  }

  .site-top-header__link-text small {
    display: none;
  }

  .page-shell.is-fixed .site-top-header {
    min-height: 58px;
    padding: 6px 0;
  }

  .page-shell.is-fixed .site-top-header__container {
    flex-direction: row;
    justify-content: center;
    position: relative;
    min-height: 46px;
    overflow-x: visible;
  }

  .page-shell.is-fixed .site-top-header__logo {
    display: block;
    animation: site-header-logo-in 0.4s ease forwards;
  }

  .page-shell.is-fixed .site-top-header__social,
  .page-shell.is-fixed .site-top-header__links {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-top-header__container {
    gap: 6px;
    padding: 8px 10px;
  }

  .site-top-header__links {
    gap: 6px;
  }

  .site-top-header__link {
    padding: 5px 7px;
  }

  .site-top-header__link-text strong {
    font-size: 0.54rem;
  }
}
