/* ===== Зимнее оформление: снежинки + ёлка ===== */

/* Контейнер для снежинок — поверх всего сайта, но не мешает кликам */
.winter-snow {
  position: fixed;
  inset: 0;
  pointer-events: none;   /* клики проходят сквозь */
  z-index: 9998;
  overflow: hidden;
}

/* Сама снежинка */
.winter-snow__flake {
  position: absolute;
  top: -5vh;
  color: #9fd6c8;          /* голубовато-зелёный, в цвет сайта */
  opacity: 0.8;
  will-change: transform;
  animation-name: winter-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  user-select: none;
}

/* Голубые снежинки — второй цвет */
.winter-snow__flake--blue {
  color: #8cc6e0;
}

@keyframes winter-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(var(--drift, 40px), 110vh, 0) rotate(360deg);
  }
}

/* ===== Ёлка ===== */
.winter-tree {
  position: fixed;
  right: 24px;
  bottom: 50%;
  width: 90px;
  height: auto;
  z-index: 9997;
  pointer-events: none;
  transform-origin: 50% 100%;
  animation: winter-tree-sway 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(0, 80, 60, 0.15));
}

@keyframes winter-tree-sway {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}

/* Лампочки на ёлке — мигают по очереди */
.winter-tree .bulb {
  animation: winter-bulb 1.6s ease-in-out infinite;
}

.winter-tree .bulb:nth-child(2n)  { animation-delay: 0.4s; }
.winter-tree .bulb:nth-child(3n)  { animation-delay: 0.8s; }
.winter-tree .bulb:nth-child(5n)  { animation-delay: 1.2s; }

@keyframes winter-bulb {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 1; }
}

/* На мобильных ёлку делаем меньше, снежинки не трогаем */
@media (max-width: 768px) {
  .winter-tree {
    width: 60px;
    right: 12px;
    bottom: 12px;
  }
}