header.header,
header.header.shrink {
  z-index: 30;
}

.xmas-snow,
.xmas-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.xmas-decor {
  z-index: 7;
  overflow: hidden;
}

.xmas-snow {
  z-index: 8;
}

.xmas-decor svg {
  display: block;
  width: 100%;
  height: 100%;
}

.xmas-ball {
  position: absolute;
  top: -2px;
  pointer-events: auto;
  cursor: pointer;
  width: clamp(38px, 3.3vw, 58px);
  transform-origin: 50% 0;
  opacity: 0;
  will-change: transform;
}

.xmas-ready .xmas-ball {
  opacity: 1;
  animation: xmasDrop 1.2s cubic-bezier(.2, .8, .2, 1) both, xmasSway 4s ease-in-out 1.2s infinite;
}

.xmas-ball img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35));
}

.xmas-ball-1 { left: 2.5%; }
.xmas-ball-2 { left: 54%; width: clamp(34px, 2.9vw, 50px); }
.xmas-ball-3 { left: 42%; width: clamp(42px, 3.8vw, 64px); }
.xmas-ball-4 { left: 61%; width: clamp(32px, 2.7vw, 46px); }
.xmas-ball-5 { right: 3%; }
.xmas-ready .xmas-ball-1 { animation-delay: 0s, 1.2s; }
.xmas-ready .xmas-ball-2 { animation-delay: .15s, 1.6s; }
.xmas-ready .xmas-ball-3 { animation-delay: .3s, 1.9s; }
.xmas-ready .xmas-ball-4 { animation-delay: .45s, 1.4s; }
.xmas-ready .xmas-ball-5 { animation-delay: .6s, 2.1s; }

.xmas-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(80px, 6.5vw, 115px);
  background: url('../images/christmas/trees.webp') repeat-x left bottom / auto 100%;
  animation: xmasRise 1.2s ease-out .4s both;
}

.xmas-ground:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: #ffffff;
}

.xmas-gifts {
  position: absolute;
  display: none;
  z-index: 8;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3));
}

.xmas-gifts-r {
  transform: scaleX(-1);
}

.xmas-walker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
}

.xmas-music {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 999;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #b5985a;
  border-radius: 50%;
  background: #050708;
  color: #b5985a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  transition: background .3s, color .3s;
}

.xmas-music svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xmas-music:hover,
.xmas-music:focus-visible,
.xmas-music.is-on {
  background: #b5985a;
  color: #050708;
}

@keyframes xmasTwinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

@keyframes xmasSway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

@keyframes xmasDrop {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}



@keyframes xmasRise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1200px) {
  .xmas-ground {
    height: 165px;
  }

  .need_agent_section {
    position: relative;
    z-index: 8;
  }
}

@media (max-width: 991px) {
  .xmas-ball {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-ball,
  .xmas-ground {
    animation: none;
  }

  .xmas-snow {
    display: none;
  }
}

.xmas-gifts {
  pointer-events: auto;
  cursor: pointer;
}

.xmas-gifts.is-pop {
  animation: xmasGiftPop .7s ease;
}

@keyframes xmasGiftPop {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  20% { translate: -4px 0; rotate: -4deg; }
  40% { translate: 4px -6px; rotate: 4deg; }
  60% { translate: -3px -10px; rotate: -3deg; }
  80% { translate: 2px -4px; rotate: 2deg; }
}

.xmas-confetti,
.xmas-sparkle {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

.xmas-card {
  position: fixed;
  z-index: 9999;
  width: 290px;
  padding: 22px 24px 20px;
  background: #050708;
  border: 1px solid #b5985a;
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  animation: xmasCardIn .5s cubic-bezier(.2, .8, .2, 1) both;
}

.xmas-card strong {
  display: block;
  color: #b5985a;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.xmas-card span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.xmas-card button {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b5985a;
  font-size: 20px;
  line-height: 26px;
  cursor: pointer;
}

@keyframes xmasCardIn {
  from { opacity: 0; transform: translateY(16px) scale(.92); }
  to { opacity: 1; transform: none; }
}

.team_page .team_slider .team_box {
  position: relative;
}

.xmas-cap {
  display: block;
  position: absolute;
  left: -2px;
  right: -2px;
  top: -12px;
  height: 26px;
  z-index: 3;
  pointer-events: none;
  background: url('../images/christmas/snow-cap.webp') repeat-x left top / auto 100%;
}

.xmas-tree-wrap {
  position: absolute;
  right: 4%;
  bottom: 0;
  height: 92%;
  aspect-ratio: 420 / 629;
  z-index: 2;
  pointer-events: none;
  animation: xmasRise 1s ease-out .3s both;
}

.xmas-tree-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
}

.xmas-tree-wrap i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe7a8;
  box-shadow: 0 0 8px 3px rgba(255, 220, 140, .8);
  animation: xmasTwinkle 1.6s ease-in-out infinite;
}

footer.footer {
  position: relative;
}

.xmas-footer-snow {
  position: absolute;
  left: 0;
  right: 0;
  top: -48px;
  height: 66px;
  z-index: 6;
  pointer-events: none;
  background: url('../images/christmas/footer-snow.webp') repeat-x left bottom / auto 100%;
}

.xmas-snowman {
  position: absolute;
  right: 0;
  bottom: calc(100% - 12px);
  width: clamp(90px, 9vw, 150px);
  aspect-ratio: 258 / 360;
  z-index: 5;
  pointer-events: none;
  transform-origin: 100% 100%;
  animation: xmasSnowPeek 1.1s cubic-bezier(.2, .8, .2, 1) both, xmasSnowRock 3.6s ease-in-out 1.2s infinite;
}

.xmas-snowman img {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes xmasSnowPeek {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes xmasSnowRock {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-4deg); }
}

@media (max-width: 991px) {
  .xmas-tree-wrap {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-gifts.is-pop,
  .xmas-tree-wrap,
  .xmas-tree-wrap i,
  .xmas-snowman {
    animation: none;
  }
}

.xmas-gift-open {
  position: fixed;
  z-index: 9997;
  width: 110px;
  aspect-ratio: 292 / 360;
  pointer-events: none;
  background: url('../images/christmas/gift-open.webp') no-repeat center / contain;
  filter: drop-shadow(0 0 18px rgba(255, 210, 120, .75));
  animation: xmasGiftOpen 3.2s ease both;
}

@keyframes xmasGiftOpen {
  0% { opacity: 0; transform: translateY(30px) scale(.4); }
  15% { opacity: 1; transform: translateY(-10px) scale(1.05); }
  25% { transform: translateY(0) scale(1); }
  80% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-20px) scale(.95); }
}

.xmas-sleigh {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 767px) {
  .xmas-footer-snow {
    top: -22px;
    height: 32px;
  }

  .xmas-snowman {
    width: 72px;
    bottom: calc(100% - 6px);
  }
}

.xmas-globe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.xmas-shake {
  animation: xmasGlobeShake .55s ease;
}

@keyframes xmasGlobeShake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-2deg); }
  40% { transform: rotate(2deg); }
  60% { transform: rotate(-1.2deg); }
  80% { transform: rotate(1deg); }
}

.xmas-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .85) 50%, transparent 58%) no-repeat;
  background-size: 300% 100%;
  background-position: 150% 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  animation: xmasShine 6s ease-in-out 2s infinite;
}

@keyframes xmasShine {
  0%, 78% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

.xmas-ready .xmas-ball.xmas-hit img {
  transform-origin: 50% 0;
  animation: xmasHit 1.2s ease-out;
}

.xmas-ready .xmas-ball.xmas-spin img {
  animation: xmasSpinY .9s ease-in-out;
}

@keyframes xmasHit {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(16deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}

@keyframes xmasSpinY {
  from { transform: perspective(300px) rotateY(0deg); }
  to { transform: perspective(300px) rotateY(360deg); }
}

.xmas-burst {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

@media (max-width: 991px) {
  .xmas-decor .xmas-ball-2,
  .xmas-decor .xmas-ball-4 {
    display: block;
    top: var(--xmas-m-top, 52%);
    width: 40px;
  }

  .xmas-decor .xmas-ball-2 {
    left: 8%;
  }

  .xmas-decor .xmas-ball-4 {
    left: auto;
    right: 8%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-shine,
  .xmas-ready .xmas-ball.xmas-hit img,
  .xmas-ready .xmas-ball.xmas-spin img {
    animation: none;
  }
}

.xmas-card-lights {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle, #ffe7a8 0 2px, rgba(255, 220, 140, .45) 3px, transparent 6px) 0 4px / 26px 12px repeat-x,
    radial-gradient(circle, #ffe7a8 0 2px, rgba(255, 220, 140, .45) 3px, transparent 6px) 13px calc(100% - 4px) / 26px 12px repeat-x;
  animation: xmasTwinkle 1.8s ease-in-out infinite;
}

.xmas-card-lights:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, #fff6d8 0 2px, rgba(255, 220, 140, .45) 3px, transparent 6px) 13px 4px / 26px 12px repeat-x,
    radial-gradient(circle, #fff6d8 0 2px, rgba(255, 220, 140, .45) 3px, transparent 6px) 0 calc(100% - 4px) / 26px 12px repeat-x;
  animation: xmasTwinkle 1.8s ease-in-out .9s infinite;
}

.xmas-card-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  overflow: hidden;
  z-index: 4;
  pointer-events: none;
}

.xmas-card-ribbon i {
  position: absolute;
  top: 26px;
  right: -34px;
  width: 150px;
  height: 16px;
  background: linear-gradient(180deg, #e9d29a, #b5985a 55%, #8a6a2c);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transform: rotate(45deg);
}

.xmas-card-ribbon img {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 52px;
  height: auto;
  transform: rotate(45deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}

.xmas-card-orn {
  position: absolute;
  top: -6px;
  left: 18px;
  width: 30px;
  z-index: 5;
  pointer-events: none;
  transform-origin: 50% 0;
  animation: xmasSway 3.6s ease-in-out infinite;
}

.xmas-card-orn img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3));
}

.xmas-hat {
  position: absolute;
  top: -16px;
  right: -12px;
  width: 34px;
  pointer-events: none;
  transform: rotate(18deg);
  z-index: 2;
}

.xmas-hat svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .xmas-card-lights,
  .xmas-card-lights:after,
  .xmas-card-orn {
    animation: none;
  }
}

.xmas-fsnow {
  position: absolute;
  left: 0;
  top: -70px;
  width: 100%;
  height: 120px;
  z-index: 7;
  pointer-events: none;
}

.xmas-ftree {
  position: absolute;
  right: 4%;
  bottom: 52px;
  height: min(78%, 300px);
  aspect-ratio: 420 / 629;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.xmas-ftree.is-in {
  opacity: 1;
  transform: none;
}

.xmas-ftree img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
}

.xmas-ftree i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffe7a8;
  box-shadow: 0 0 8px 3px rgba(255, 220, 140, .8);
  animation: xmasTwinkle 1.6s ease-in-out infinite;
}

@media (max-width: 1199px) {
  .xmas-ftree {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xmas-ftree i {
    animation: none;
  }
}


.xmas-hang {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 25;
  pointer-events: none;
}

.xmas-hang-hit {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 26;
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
