/* The existing Divi header remains the positioning context. */
.vesta-holiday-header {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.vesta-holiday-garland {
  position: absolute;
  inset: auto 0 -18px;
  height: 36px;
}

.vesta-holiday-garland svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.vesta-holiday-bulb {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: 9px;
  height: 13px;
  border-radius: 52% 52% 58% 58%;
  transform: translateX(-50%) rotate(var(--angle));
  background: radial-gradient(ellipse at 38% 30%, #fff8cc 0 12%, var(--light) 44%, var(--dark) 94%);
  box-shadow: 0 2px 6px var(--aura), inset 0 0 0 1px var(--dark);
}

.vesta-holiday-bulb::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 2px;
  width: 5px;
  height: 4px;
  background: #315846;
  border-radius: 1px;
}

.vesta-holiday-bulb::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, var(--aura), transparent 70%);
}

.vesta-holiday-garland.is-lit .vesta-holiday-bulb {
  animation: vesta-holiday-filament .75s calc(var(--index) * 55ms) ease-out both;
}

.vesta-holiday-garland.is-lit .vesta-holiday-bulb::after {
  animation: vesta-holiday-glow .75s calc(var(--index) * 55ms) ease-out both;
}

@keyframes vesta-holiday-filament {
  34% { filter: brightness(1.35) saturate(1.14) }
}

@keyframes vesta-holiday-glow {
  30% { opacity: 1 }
}

.vesta-holiday-ornaments {
  position: absolute;
  display: block;
  top: var(--ornament-top, 0);
  left: var(--ornament-left, 0);
  width: var(--ornament-width, 0);
  height: auto;
  overflow: visible;
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
}

.vesta-holiday-ornaments[hidden] { display: none }
.vesta-holiday-ornaments.is-pushed { cursor: grabbing }
.vesta-holiday-ornaments > * { pointer-events: none }

@media (max-width: 760px) {
  .vesta-holiday-bulb { width: 7px; height: 10px }
  .vesta-holiday-bulb::before { width: 3px }
  .vesta-holiday-bulb:nth-of-type(even) { display: none }
}

@media (prefers-reduced-motion: reduce) {
  .vesta-holiday-garland.is-lit .vesta-holiday-bulb,
  .vesta-holiday-garland.is-lit .vesta-holiday-bulb::after { animation: none }
  .vesta-holiday-ornaments { cursor: default }
}

/* Preserve the whole panoramic composition inside the existing first slide. */
body.home .et_parallax_bg[style*="vesta-novogodniy-slayd-2027"] {
  height: 100% !important;
  transform: none !important;
  background-attachment: scroll !important;
  background-size: 0 !important;
  overflow: hidden;
}

body.home .et_parallax_bg[style*="vesta-novogodniy-slayd-2027"]::before,
body.home .et_parallax_bg[style*="vesta-novogodniy-slayd-2027"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-repeat: no-repeat;
}

body.home .et_parallax_bg[style*="vesta-novogodniy-slayd-2027"]::before {
  background-position: center top;
  background-size: cover;
  filter: blur(24px) brightness(.68);
  transform: scale(1.13);
}

body.home .et_parallax_bg[style*="vesta-novogodniy-slayd-2027"]::after {
  background-position: center bottom;
  background-size: contain;
}

@media (min-width: 981px) {
  body.home .et_parallax_bg[style*="vesta-novogodniy-slayd-2027"]::after {
    top: auto;
    height: min(100%, 34.140625vw);
    mask-image: linear-gradient(transparent, #000 38px);
  }
}
