/* Веселиум: мобильный баннер v7 — без пустого пространства над персонажами.
   Заменяет v6. Только главная, экраны не шире 850px.
   Высоту задают текст и само изображение, а не растянутый flex-контейнер. */
@media screen and (max-width: 850px) {
  .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: hidden !important;
  }
  .hero-section .heroSwiper {
    box-sizing: border-box;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 0 27px !important;
    overflow: hidden;
  }
  .hero-section .heroSwiper .swiper-wrapper {
    align-items: stretch;
  }
  .hero-section .heroSwiper .swiper-slide,
  .hero-section .heroSwiper .hero-slide-container {
    box-sizing: border-box;
    min-height: 0 !important;
    height: auto !important;
  }
  .hero-section .heroSwiper .hero-slide-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-bottom: 8px !important;
  }
  .hero-section .heroSwiper .slide-content {
    flex: 0 0 auto !important;
    position: relative;
    z-index: 8;
  }
  /* Без flex:1 и заданной высоты — картинка начинается сразу под текстом. */
  .hero-section .heroSwiper .slide-image,
  .hero-section .heroSwiper .hero-slide--animators .slide-image,
  .hero-section .heroSwiper .hero-slide--nitrogen .slide-image,
  .hero-section .heroSwiper .hero-slide--newyear .slide-image {
    position: relative !important;
    display: flex !important;
    flex: 0 0 auto !important;
    box-sizing: border-box;
    align-items: flex-end !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 12px auto -11px !important;
    padding: 0 !important;
    isolation: isolate;
  }
  .hero-section .heroSwiper .slide-image img {
    display: block !important;
    flex: 0 1 auto !important;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: min(66svh, 500px) !important;
    object-fit: contain !important;
    object-position: center bottom !important;
  }
  /* Пчёлка остаётся на изображении, ниже зоны заголовка. */
  .hero-section .heroSwiper .slide-image::after {
    content: '';
    display: block;
    position: absolute;
    z-index: 5;
    top: clamp(10px, 4vw, 22px);
    right: clamp(4px, 2.5vw, 15px);
    width: clamp(38px, 10vw, 52px);
    height: clamp(38px, 10vw, 52px);
    background: url('/img/bee-mascot.png') center / contain no-repeat;
    opacity: .96;
    pointer-events: none;
    filter: drop-shadow(0 4px 7px rgba(73, 48, 32, .18));
    animation: veseliumMobileBeeV7 4s ease-in-out infinite;
  }
  .flying-bee { display: none !important; }
  .hero-section .swiper-pagination { bottom: 4px !important; }
}
@keyframes veseliumMobileBeeV7 {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}
@media screen and (max-width: 360px) {
  .hero-section .heroSwiper .slide-image { margin-top: 9px !important; }
  .hero-section .heroSwiper .slide-image::after {
    top: 10px;
    right: 3px;
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-section .heroSwiper .slide-image::after { animation: none !important; }
}
