/* Зимнее оформление (20 ноября — 28 февраля): гирлянды */
html.winter-season main.content {
  position: relative;
  padding-top: 52px;
}

.winter-garland {
  position: absolute;
  top: 6px;
  left: 20px;
  right: 20px;
  height: 36px;
  pointer-events: none;
  z-index: 12;
}

.winter-garland-wire {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 20px;
  border: 2px solid #3f4f2a;
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  opacity: 0.85;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.winter-garland-bulbs {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  padding: 0 4px;
}

.winter-garland-bulb {
  --bulb: #ffd166;
  position: relative;
  top: calc(14px + var(--sag, 0px));
  width: 9px;
  height: 13px;
  border-radius: 45% 45% 50% 50% / 35% 35% 65% 65%;
  background: radial-gradient(circle at 35% 28%, #fff 0%, var(--bulb) 42%, color-mix(in srgb, var(--bulb) 70%, #000) 100%);
  box-shadow:
    0 0 6px color-mix(in srgb, var(--bulb) 55%, transparent),
    0 0 12px color-mix(in srgb, var(--bulb) 35%, transparent);
  transform-origin: top center;
  animation: winter-bulb-twinkle 2.4s ease-in-out infinite;
  animation-delay: var(--twinkle, 0s);
}

.winter-garland-bulb::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 4px;
  margin-left: -2.5px;
  background: #5c4a32;
  border-radius: 1px 1px 0 0;
}

@keyframes winter-bulb-twinkle {
  0%, 100% { opacity: 0.72; filter: brightness(0.92); }
  50% { opacity: 1; filter: brightness(1.18); }
}

.winter-garland--visitka {
  top: 4px;
  left: 12px;
  right: 12px;
  height: 30px;
}

html.winter-season main.card {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  html.winter-season main.content {
    padding-top: 46px;
  }
  .winter-garland {
    left: 10px;
    right: 10px;
    height: 32px;
  }
  .winter-garland-bulb {
    width: 7px;
    height: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .winter-garland-bulb {
    animation: none;
    opacity: 0.9;
  }
}
