/* ============================================================
   ВЕСЕЛИУМ — Мобильный главный баннер, v2
   ТОЛЬКО index.php, ширина <= 850px.
   Подключается после ранее установленного mobile hero v1.
   Не изменяет поведение Swiper, заявки, десктопные стили.
   ============================================================ */

@media screen and (max-width: 850px) {
  .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    isolation: isolate;
  }
  .hero-section > .hero-3d-bg { display: none !important; }
  .hero-section .heroSwiper {
    padding: 0 0 25px !important;
    overflow: hidden;
  }
  .hero-section .heroSwiper .swiper-wrapper { align-items: stretch; }
  .hero-section .heroSwiper .swiper-slide {
    box-sizing: border-box;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 12px !important;
    gap: 0 !important;
    align-items: stretch !important;
  }
  .hero-section .hero-slide-container {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: clamp(540px, 139vw, 603px) !important;
    width: 100%;
    max-width: 470px;
    height: 100%;
    margin: 0 auto !important;
    padding: 23px 4px 7px !important;
    text-align: center;
  }
  .hero-section .slide-content {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100% !important;
    max-width: 400px !important;
    min-width: 0;
    margin: 0 auto !important;
    padding: 0 5px !important;
    position: relative;
    z-index: 4;
  }
  /* Короткие подписи в одной стилистике с каталогами. */
  .hero-section .slide-content::before {
    content: 'ПРАЗДНИКИ · НИЖНИЙ НОВГОРОД';
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto 11px !important;
    padding: 6px 13px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: rgba(255,255,255,.58);
    color: #76543a;
    box-shadow: 0 4px 12px rgba(74,51,32,.04);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .075em;
    text-transform: uppercase;
  }
  .hero-section .heroSwiper .swiper-slide:nth-child(2) .slide-content::before {
    content: 'ШОУ · УДИВЛЕНИЕ · ЭМОЦИИ';
  }
  .hero-section .heroSwiper .swiper-slide:nth-child(3) .slide-content::before {
    content: 'ВОЛШЕБСТВО ПОД НОВЫЙ ГОД';
  }
  .hero-section .slide-content h2 {
    max-width: 350px !important;
    margin: 0 auto 11px !important;
    color: #4a3320 !important;
    font-size: clamp(29px, 7.7vw, 35px) !important;
    line-height: 1.10 !important;
    letter-spacing: -.035em;
    font-weight: 900 !important;
    text-transform: none !important;
    filter: none !important;
    text-shadow: 0 2px 9px rgba(255,255,255,.40) !important;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }
  .hero-section .slide-content h2::after {
    content: '';
    display: block;
    width: 55px;
    height: 4px;
    margin: 11px auto 0 !important;
    border-radius: 999px;
    background: linear-gradient(90deg,#ffe88c,#ebb42f);
    background-image: none !important;
    box-shadow: 0 3px 8px rgba(226,174,52,.18);
  }
  .hero-section .slide-content p {
    box-sizing: border-box;
    max-width: 345px;
    margin: 0 auto 17px !important;
    color: #5a463a !important;
    font-size: clamp(14px, 3.65vw, 15.5px) !important;
    line-height: 1.43 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    text-wrap: pretty;
  }
  .hero-section .slide-content .btn-main {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: min(100%, 276px) !important;
    min-height: 48px;
    margin: 0 auto !important;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: normal;
    box-shadow: 0 7px 18px rgba(214,165,38,.27), inset 0 2px 4px rgba(255,255,255,.60) !important;
  }
  /* Общая компоновка фото: упирается в низ слайда, не в текст. */
  .hero-section .slide-image {
    box-sizing: border-box;
    position: relative !important;
    display: flex !important;
    flex: 1 0 auto;
    align-items: flex-end !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 0 !important;
    height: clamp(260px, 79vw, 345px) !important;
    max-width: 420px;
    top: auto !important;
    bottom: auto !important;
    margin: 8px auto -11px !important;
    padding: 0;
    overflow: visible;
    transform: none !important;
    z-index: 2;
    isolation: isolate;
  }
  .hero-section .slide-image::before {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: 18% 9% 6%;
    border-radius: 50%;
    opacity: .50;
    background: radial-gradient(ellipse, rgba(255,255,255,.72), transparent 70%);
    filter: blur(20px);
  }
  .hero-section .slide-image img {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 410px !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    filter: drop-shadow(0 12px 12px rgba(90,65,70,.10));
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%) !important;
  }
  /* Широкая фотография аниматоров — чуть крупнее. */
  .hero-section .swiper-slide:nth-child(1) .slide-image {
    height: clamp(260px, 79vw, 335px) !important;
  }
  /* Вертикальные фото науки и новогодних персонажей — полный рост. */
  .hero-section .swiper-slide:nth-child(2) .slide-image,
  .hero-section .swiper-slide:nth-child(3) .slide-image {
    height: clamp(285px, 88vw, 375px) !important;
  }
  .hero-section .cloud-divider { height: 73px !important; }
  .hero-section .swiper-pagination { bottom: 4px !important; z-index: 25 !important; }
  .hero-section .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: .43;
  }
  .hero-section .swiper-pagination-bullet-active { opacity: 1; }
}
@media screen and (max-width: 360px) {
  .hero-section .heroSwiper .swiper-slide { padding: 0 9px !important; }
  .hero-section .hero-slide-container { min-height: 540px !important; padding-top: 18px !important; }
  .hero-section .slide-content h2 { font-size: 29px !important; }
  .hero-section .slide-content p { font-size: 14px !important; }
  .hero-section .slide-image { margin-bottom: -10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-section .swiper-slide-active .slide-image img { animation: none !important; }
}
