:root {
  --winter-night: #0e1119;
  --winter-forest: #122013;
  --winter-accent: #e63946;
  --winter-gold: #ffd166;
  --winter-ice: #e9f4ff;
}

.winter-hero {
  position: relative;
  background: linear-gradient(180deg, #11131d 0%, #0d0f17 42%, #0b0d13 100%);
  color: #f7f7fb;
  box-shadow: 0 10px 26px rgba(6, 8, 14, 0.55);
  overflow: hidden;
}

.winter-hero__garland {
  position: absolute;
  inset: 0;
  height: 190px;
  background:
    radial-gradient(circle at 8% 68%, rgba(255, 255, 255, 0.08) 0 10px, transparent 16px),
    radial-gradient(circle at 12% 72%, var(--winter-accent) 0 14px, transparent 18px),
    radial-gradient(circle at 21% 62%, var(--winter-gold) 0 12px, transparent 16px),
    radial-gradient(circle at 32% 74%, var(--winter-accent) 0 14px, transparent 18px),
    radial-gradient(circle at 44% 64%, var(--winter-gold) 0 12px, transparent 16px),
    radial-gradient(circle at 55% 74%, var(--winter-accent) 0 14px, transparent 18px),
    radial-gradient(circle at 66% 60%, var(--winter-gold) 0 12px, transparent 16px),
    radial-gradient(circle at 78% 72%, var(--winter-accent) 0 14px, transparent 18px),
    radial-gradient(circle at 90% 64%, var(--winter-gold) 0 12px, transparent 16px),
    radial-gradient(60% 140% at 50% -10%, rgba(24, 52, 21, 0.92), rgba(12, 28, 12, 0.9)),
    radial-gradient(120% 60% at 50% 40%, rgba(27, 59, 24, 0.75), rgba(15, 36, 17, 0.7)),
    repeating-linear-gradient(90deg, rgba(40, 78, 35, 0.3) 0 18px, rgba(12, 28, 12, 0.4) 18px 32px);
  background-size: 120% 190px, 120% 190px, 120% 190px, 120% 190px, 120% 190px, 120% 190px, 120% 190px, 120% 190px, 120% 190px, 120% 210px, 120% 210px, 120% 190px;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.97;
  box-shadow: 0 16px 36px rgba(4, 6, 10, 0.65);
  pointer-events: none;
  transform: translateY(-2px);
}

.winter-hero__frost {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 110vw;
  height: 110px;
  transform: translateX(-50%);
  background:
    radial-gradient(90px 46px at 6% 40%, rgba(255, 255, 255, 0.98) 0 70px, transparent 74px),
    radial-gradient(120px 52px at 22% 60%, rgba(255, 255, 255, 0.95) 0 72px, transparent 76px),
    radial-gradient(100px 48px at 40% 42%, rgba(255, 255, 255, 0.96) 0 70px, transparent 74px),
    radial-gradient(110px 46px at 60% 64%, rgba(255, 255, 255, 0.94) 0 68px, transparent 74px),
    radial-gradient(130px 52px at 78% 42%, rgba(255, 255, 255, 0.96) 0 76px, transparent 80px),
    radial-gradient(90px 42px at 94% 60%, rgba(255, 255, 255, 0.95) 0 68px, transparent 72px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  background-repeat: repeat-x;
  background-size: 320px 120px;
  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(12, 14, 20, 0.45));
}

.winter-hero nav.navbar,
.winter-hero .header {
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: 0;
}

.winter-hero .header {
  padding-top: 14px;
}

.winter-hero .navbar {
  padding-top: 18px;
  padding-bottom: 12px;
}

.winter-hero .navbar-dark .navbar-nav .nav-link,
.winter-hero .navbar-dark .navbar-brand,
.winter-hero .navbar-dark .navbar-text {
  color: #f7f9ff;
}

.winter-hero .navbar-dark .navbar-nav .nav-link:hover,
.winter-hero .navbar-dark .navbar-nav .nav-link:focus {
  color: #ffe9a8;
  text-decoration: none;
}

.winter-hero__main .page_inner {
  position: relative;
  z-index: 2;
}

.winter-hero__main::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 0;
  bottom: -18px;
  width: 100vw;
  max-width: none;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 40%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.6;
}

.winter-hero .mini-basket,
.winter-hero .navbar-nav .dropdown-menu {
  z-index: 3;
}

.winter-hero .navbar-dark.bg-dark {
  background-color: rgba(16, 19, 28, 0.35) !important;
  backdrop-filter: blur(6px);
}

.winter-hero .navbar-dark.bg-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.winter-hero .navbar-dark.bg-dark .navbar-toggler-icon {
  background-image: none;
  position: relative;
}

.winter-hero .navbar-dark.bg-dark .navbar-toggler-icon::before,
.winter-hero .navbar-dark.bg-dark .navbar-toggler-icon::after,
.winter-hero .navbar-dark.bg-dark .navbar-toggler-icon {
  display: block;
  width: 100%;
  height: 2px;
  background: #f7f9ff;
  box-shadow: 0 6px 0 #f7f9ff, 0 -6px 0 #f7f9ff;
  content: "";
}

.winter-hero .navbar-dark.bg-dark .navbar-toggler-icon::before,
.winter-hero .navbar-dark.bg-dark .navbar-toggler-icon::after {
  display: none;
}

.winter-hero .navbar-dark.bg-dark .navbar-nav .show > .nav-link,
.winter-hero .navbar-dark.bg-dark .navbar-nav .nav-link.active {
  color: #ffe9a8;
}

.winter-hero .navbar-nav .dropdown-menu {
  background: #121521;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(5, 6, 10, 0.45);
}

.winter-hero .navbar-nav .dropdown-item {
  color: #f1f3ff;
}

.winter-hero .navbar-nav .dropdown-item:hover,
.winter-hero .navbar-nav .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.06);
  color: #ffe9a8;
}

.winter-hero .header .row {
  align-items: center;
}

/* Falling snow overlay */
.winter-snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.winter-snow__flake {
  position: absolute;
  top: -12vh;
  left: 0;
  width: 8px;
  height: 8px;
  background: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23cfe7ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'%3E%3Cpath d='M12 2v20M4 8l16 8M4 16l16-8M8 4l8 16M16 4L8 20'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(200, 220, 255, 0.45));
  animation-name: winter-snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes winter-snow-fall {
  0% {
    transform: translate3d(0, -12vh, 0) scale(var(--scale, 1)) rotate(0deg);
  }
  100% {
    transform: translate3d(var(--drift, 0), 110vh, 0) scale(var(--scale, 1)) rotate(540deg);
  }
}

@media (max-width: 768px) {
  .winter-hero__garland {
    height: 160px;
    background-size: 140% 160px;
  }

  .winter-hero .navbar {
    padding-top: 12px;
  }

  .winter-hero__frost {
    height: 90px;
    background-size: 260px 100px;
  }
}
