
.garland-bottom-right {
  position: fixed;
  bottom: -35px;
  right: -30px;
  height: 650px;
  pointer-events: none;
  z-index: 1;
  transform: rotate(-120deg); /* угол НЕ меняем ни в одном @media */
}

.garland-bottom-right img {
  height: 100%;
  display: block;
  opacity: 0.9; /* чуть мягче на светлом фоне */
}

.garland-lights {
  position: absolute;
  inset: 0;
}

.garland-lights .light {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  filter: blur(3px);
  opacity: 0.75;
  animation: garlandGlow 1.8s infinite ease-in-out;
}

/* Цвета слегка приглушены под светлый фон */
.garland-lights .l1 {
  left: 18%;
  bottom: 88%;
  background: #f97373;      /* мягкий красный */
  animation-delay: 0s;
}
.garland-lights .l2 {
  left: 19%;
  bottom: 68%;
  background: #fb7185;      /* розово-красный */
  animation-delay: 0.25s;
}
.garland-lights .l3 {
  left: 38%;
  bottom: 78%;
  background: #4ade80;      /* мягкий зелёный */
  animation-delay: 0.5s;
}
.garland-lights .l4 {
  left: 39%;
  bottom: 59%;
  background: #22d3ee;     
  animation-delay: 0.75s;
}
.garland-lights .l5 {
  left: 30%;
  bottom: 44%;
  background: #fbbf24;  
  animation-delay: 1s;
}
.garland-lights .l6 {
  left: 56%;
  bottom: 49%;
  background: #facc15;
  animation-delay: 1.25s;
}
.garland-lights .l7 {
  left: 46%;
  bottom: 31%;
  background: #f97373;
  animation-delay: 1.5s;
}
.garland-lights .l8 {
  left: 68%;
  bottom: 36%;
  background: #22d3ee;
  animation-delay: 1.75s;
}
.garland-lights .l9 {
  left: 75%;
  bottom: 22%;
  background: #facc15;
  animation-delay: 2.0s;
}
.garland-lights .l10 {
  left: 58%;
  bottom: 13%;
  background: #22d3ee;
  animation-delay: 2.25s;
}

@keyframes garlandGlow {
  0% {
    opacity: 0.2;
    transform: scale(0.7);
    box-shadow: 0 0 4px rgba(0,0,0,0.10);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
    box-shadow: 0 0 18px rgba(0,0,0,0.18);
  }
  100% {
    opacity: 0.3;
    transform: scale(0.9);
    box-shadow: 0 0 6px rgba(0,0,0,0.12);
  }
}


.side-branch-left {
  position: fixed;
  top: 100px;
  left: -280px;
  height: 650px;
  pointer-events: none;
  z-index: 1;
  transform: rotate(-30deg);
  opacity: 0.9;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.12));
  transform-origin: top right;
  animation: branchSwingLeft 14s ease-in-out infinite;
}

.side-branch-right {
  position: fixed;
  top: 45px;
  right: -60px;
  height: 360px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.12));
  transform-origin: top left;
  animation: branchSwingRight 16s ease-in-out infinite;
}

@keyframes branchSwingLeft {
  0%   { transform: rotate(-32deg); }
  50%  { transform: rotate(-27deg); }
  100% { transform: rotate(-31deg); }
}

@keyframes branchSwingRight {
  0%   { transform: rotate(2deg); }
  50%  { transform: rotate(-2deg); }
  100% { transform: rotate(1deg); }
}

.snowflake {
  position: fixed;
  top: -24px;
  color: #cbd5f5; 
  font-size: 14px;
  animation: snowFall 7s linear forwards;
  pointer-events: none;
  z-index: 1;
}

@keyframes snowFall {
  0%   { opacity: 0; transform: translate3d(0,0,0) rotate(0deg); }
  10%  { opacity: 1; }
  50%  { transform: translate3d(-15px,50vh,0) rotate(90deg); }
  100% { opacity: 0; transform: translate3d(15px,110vh,0) rotate(180deg); }
}


/* 🔧 АДАПТИВ */

/* 1) "Средняя" ширина: убираем левую ветку, уменьшаем правую и гирлянду,
      но НЕ меняем координаты и угол */

@media (max-width: 1700px) {
  /* левая ветка прячется */
  .side-branch-left {
    display: none;
  }

  /* правая становится чуть меньше, остаётся на тех же top/right */
  .side-branch-right {
    height: 300px; /* было 360 */
  }

  /* гирлянда тоже поменьше, но в том же месте и с тем же rot */
  .garland-bottom-right {
    height: 580px; /* было 650 */
  }
}

/* 2) Планшеты / большие телефоны: ещё уменьшаем правую ветку и гирлянду */

@media (max-width: 900px) {
  .side-branch-right {
    height: 270px;
  }

  .garland-bottom-right {
    height: 460px;
  }

  .garland-lights .light {
    width: 18px;
    height: 18px;
    filter: blur(2px);
  }

  .snowflake {
    font-size: 11px;
  }
}

/* 3) Маленькие телефоны: маленькая ветка + маленькая гирлянда,
      положение и градусы те же */

@media (max-width: 600px) {
  .side-branch-right {
    height: 180px;
  }

  .garland-bottom-right {
    height: 280px;
  }

  .garland-lights .light {
    width: 14px;
    height: 14px;
  }

  .snowflake {
    font-size: 10px;
  }
}

/* если пользователь не любит анимации — уважим */
@media (prefers-reduced-motion: reduce) {
  .snowflake {
    animation: none !important;
  }
  .garland-lights .light {
    animation: none !important;
  }
  .side-branch-left,
  .side-branch-right {
    animation: none !important;
  }
}
