/* ВЕСЕЛИУМ — мобильный баннер главной страницы.
   Подключается только на index.php, не меняет десктоп и Новый год. */
.hero-title-mobile, .hero-subtitle-mobile, .hero-cta-mobile { display: none; }

@media screen and (max-width: 850px) {
  .hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: hidden;
  }

  /* Убираем слишком крупные декоративные звезду, корону и другие иконки. */
  .hero-section > .hero-3d-bg { display: none !important; }

  .hero-section .heroSwiper {
    width: 100%;
    padding: 14px 0 32px !important;
    overflow: hidden;
  }

  .hero-section .heroSwiper .swiper-slide {
    display: flex !important;
    align-items: stretch !important;
    min-height: 0 !important;
    height: auto;
    padding: 0 14px !important;
    gap: 0 !important;
  }

  .hero-section .hero-slide-container {
    width: 100%;
    min-height: 0 !important;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 8px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .hero-section .slide-content {
    width: 100% !important;
    max-width: 390px !important;
    margin: 0 auto !important;
    padding: 0;
    position: relative;
    z-index: 2;
  }

  .hero-section .slide-content::before {
    content: 'ВЕСЕЛИУМ · НИЖНИЙ НОВГОРОД';
    display: inline-block;
    margin: 0 auto 13px;
    padding: 7px 12px;
    border: 1px solid rgba(118, 88, 57, .20);
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    color: #765637;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.3;
  }

  .hero-section .slide-content h2 {
    max-width: 340px;
    margin: 0 auto 12px !important;
    color: #4a3320;
    font-size: clamp(27px, 7.4vw, 34px) !important;
    font-weight: 900;
    line-height: 1.13 !important;
    letter-spacing: -.035em;
    text-transform: none;
    filter: none !important;
    text-shadow: none !important;
  }

  .hero-section .hero-title-desktop,
  .hero-section .hero-subtitle-desktop,
  .hero-section .hero-cta-desktop { display: none !important; }
  .hero-section .hero-title-mobile,
  .hero-section .hero-subtitle-mobile,
  .hero-section .hero-cta-mobile { display: inline !important; }

  .hero-section .slide-content h2::after {
    content: '';
    display: block;
    width: 74px;
    height: 5px;
    margin: 13px auto 0 !important;
    border-radius: 8px;
    background: linear-gradient(90deg, #f5d771, #e8b943);
    background-image: none !important;
  }

  .hero-section .slide-content p {
    max-width: 328px;
    margin: 0 auto 20px !important;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.45 !important;
    opacity: .9;
  }

  .hero-section .slide-content .btn-main {
    display: block;
    width: min(100%, 294px) !important;
    min-height: 52px;
    margin: 0 auto !important;
    padding: 13px 18px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none !important;
    white-space: normal;
    box-shadow: 0 4px 0 rgba(164, 113, 31, .40), 0 12px 24px rgba(208, 151, 32, .22) !important;
  }

  /* Персонажи теперь ближе к кнопке, без пустого пространства. */
  .hero-section .slide-image {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    position: relative;
    top: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: clamp(290px, 84vw, 395px) !important;
    min-height: 0 !important;
    margin: 6px auto -28px !important;
    transform: none !important;
    overflow: visible;
  }

  .hero-section .slide-image::before {
    inset: 10% 1% 0;
    opacity: .55;
    filter: blur(28px);
  }

  .hero-section .slide-image img {
    display: block;
    width: 100% !important;
    max-width: 400px !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: bottom center !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%) !important;
  }

  .hero-section .cloud-divider {
    height: 85px !important;
    z-index: 15 !important;
  }

  .hero-section .swiper-pagination {
    bottom: 3px !important;
    z-index: 25 !important;
  }
}

@media screen and (max-width: 360px) {
  .hero-section .heroSwiper .swiper-slide { padding: 0 10px !important; }
  .hero-section .slide-content h2 { font-size: 27px !important; }
  .hero-section .slide-content p { font-size: 14px !important; }
  .hero-section .slide-image { height: 290px !important; }
}
