.frontend-maintenance-bar {
  background: #fff7ed;
  color: #c2410c;
  border-bottom: 1px solid #fed7aa;
  text-align: center;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

:root {
  --site-top-categories-h: 44px;
  --site-header-row-h: 82px;
  --hero-gap-after-header: 100px;
  --hero-top-offset: calc(var(--site-top-categories-h) + var(--site-header-row-h) + var(--hero-gap-after-header));
}

/* =========================
   Header Wrapper
========================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

/* =========================
   Top Categories Bar
========================= */
.site-top-categories {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(12px);
  overflow: visible;
}

.site-top-categories::before,
.site-top-categories::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
}

.site-top-categories::before {
  left: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0));
}

.site-top-categories::after {
  right: 0;
  background: linear-gradient(to left, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0));
}

.site-top-categories-bar {
  min-height: var(--site-top-categories-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.site-top-categories-inner {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 16px;

}

.site-top-categories-inner::-webkit-scrollbar {
  display: none;
}

.site-top-categories-inner.is-dragging {
  cursor: grabbing;
}


.top-category-link {
  flex: 0 0 auto;
  padding: 0 8px;
}

.top-category-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--site-top-categories-h);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.top-category-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.top-category-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.top-category-link:hover::after,
.top-category-link[aria-current="page"]::after {
  transform: scaleX(1);
}
/* =========================
   Top Auth
========================= */
.site-top-auth {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-auth-link,
.top-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.top-auth-link {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.top-auth-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.top-auth-btn {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.top-auth-btn:hover {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.16));
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.top-auth-link:focus-visible,
.top-auth-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.18),
    0 0 0 6px rgba(15, 23, 42, 0.20);
}

/* =========================
   Main Header Row
========================= */
.site-header-inner {
  min-height: var(--site-header-row-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* =========================
   Brand
========================= */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-brand-logo {
  width: auto;
  min-width: 54px;
  max-width: 220px;
  height: 54px;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.site-brand-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.site-brand-text strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.2;
}

.site-brand-text small {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.2;
}

/* =========================
   Main Navigation
========================= */
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-nav a:hover {
  color: #ffffff;
  opacity: 1;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header.site-header-solid {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #163b73 0%, #0f2f5f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.site-header.site-header-solid .site-header-inner {
  min-height: 78px;
}

.site-header.site-header-solid .site-nav a::after {
  bottom: -10px;
}

/* =========================
   Tablet
========================= */
@media (max-width: 991px) {
  :root {
    --site-header-row-h: 76px;
    --hero-gap-after-header: 22px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-top-categories-inner {
    gap: 14px;
  }

  .top-category-link {
    font-size: 0.9rem;
  }

  .top-auth-link,
  .top-auth-btn {
    min-height: 30px;
    padding: 0 13px;
    font-size: 12px;
  }
}



/* =========================
   Mobile
========================= */
@media (max-width: 767px) {
  :root {
    --site-top-categories-h: 40px;
    --site-header-row-h: 72px;
    --hero-gap-after-header: 24px;
  }

  .site-top-categories-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-top-categories-inner {
    width: 100%;
    justify-content: center;
  }

  .top-category-link {
    font-size: 0.84rem;
  }

  .site-top-auth {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .top-auth-link,
  .top-auth-btn {
    min-height: 30px;
    padding: 0 13px;
    font-size: 12px;
  }

  .site-header-inner {
    justify-content: center;
    min-height: 72px;
  }

  .site-brand {
    margin: 0 auto;
    justify-content: center;
    text-align: center;
  }

  .site-brand-logo {
    min-width: 48px;
    max-width: 170px;
    height: 48px;
    padding: 0;
    border-radius: 0;
  }

  .site-brand-text {
    align-items: center;
  }

  .site-brand-text small {
    display: none;
  }

  .site-nav {
    display: none;
  }
}