.holiday-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  /* Обновленный весенний градиент: от насыщенного малинового к нежно-розовому */
  background: linear-gradient(135deg, #be185d 0%, #db2777 50%, #f472b6 100%);
  color: white;
  padding: 12px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.holiday-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 50px 50px, 60px 60px;
  /* Легкое весеннее мерцание */
  animation: spring-sparkle 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes spring-sparkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.holiday-bar.hidden {
  display: none;
}

.holiday-bar-content {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  user-select: none;
  padding-right: 50px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.holiday-bar-close {
  position: absolute;
  right: 20px;
  top: 0;
  bottom: 0;
  background: none;
  border: none;
  color: #ffffff !important;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  font-weight: bold;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  z-index: 10001;
}

.holiday-bar-close:hover {
  opacity: 1;
}

.holiday-bar-close:active {
  transform: scale(0.9);
}

/* Отступ для контента страницы, чтобы он не был под плашкой */
body.has-holiday-bar {
  padding-top: 50px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .holiday-bar {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .holiday-bar-content {
    font-size: 14px;
    padding-right: 40px;
  }
  
  .holiday-bar-close {
    right: 10px;
    font-size: 24px;
    width: 26px;
    color: #ffffff !important;
  }
  
  body.has-holiday-bar {
    padding-top: 45px;
  }
}

/* Весенние лепестки или цветы */
.holiday-bar-petal {
  position: absolute;
  top: -15px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
  user-select: none;
  pointer-events: none;
  z-index: 1;
  /* Анимация плавного падения с легким покачиванием */
  animation: petal-fall linear infinite;
}

@keyframes petal-fall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  50% {
    transform: translate(15px, 30px) rotate(180deg);
    opacity: 1;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-10px, 65px) rotate(360deg);
    opacity: 0;
  }
}

/* Разные размеры лепестков/цветов */
.holiday-bar-petal:nth-child(3n) {
  font-size: 0.9em;
  animation-duration: 2.5s;
}

.holiday-bar-petal:nth-child(3n+1) {
  font-size: 1.2em;
  animation-duration: 3.5s;
}

.holiday-bar-petal:nth-child(3n+2) {
  font-size: 1.1em;
  animation-duration: 3s;
}

/* Разная скорость падения (если используется JS для установки атрибутов) */
.holiday-bar-petal[data-speed="slow"] {
  animation-duration: 4.5s;
}

.holiday-bar-petal[data-speed="medium"] {
  animation-duration: 3.5s;
}

.holiday-bar-petal[data-speed="fast"] {
  animation-duration: 2.5s;
}