/* ================================================================
   ВЕСЕЛИУМ — единый мобильный дизайн баннеров шоу, версия 1.
   Применяется ТОЛЬКО к четырем страницам: азот, серебро, пузыри, пена.
   Десктопные баннеры и формы заявок не меняет.
   Подключать ПОСЛЕ style.css.
   ================================================================ */

@media screen and (max-width: 767px) {
  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) {
    box-sizing: border-box;
    display: block !important;
    width: 100%;
    min-height: 0 !important;
    margin-top: 0 !important; /* не прячем заголовок под sticky-шапкой */
    padding: 25px 16px 64px !important;
    overflow: hidden;
  }

  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-hero-container {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0;
    max-width: 480px;
    margin: 0 auto !important;
    gap: 12px !important;
    text-align: center;
  }

  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-hero-text {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    position: relative;
    z-index: 4;
  }

  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-hero-text h1 {
    box-sizing: border-box;
    max-width: 100%;
    font-size: clamp(30px, 8.8vw, 40px) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    margin: 0 auto 12px !important;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-hero-text p {
    max-width: 370px;
    margin: 0 auto 18px !important;
    font-size: clamp(16px, 4.25vw, 18px) !important;
    line-height: 1.38 !important;
    font-weight: 800 !important;
    text-wrap: balance;
  }

  /* Вместо высокой вертикальной плашки — компактная цена рядом с кнопкой */
  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-action {
    box-sizing: border-box;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100%;
    min-height: 55px;
    margin: 0 auto !important;
    padding: 5px 14px 5px 5px !important;
    gap: 12px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.21) !important;
    border: 1px solid rgba(255,255,255,.68) !important;
    box-shadow: 0 10px 26px rgba(24,45,80,.11) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-action .btn-main {
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 128px;
    width: auto !important;
    min-height: 46px;
    margin: 0 !important;
    padding: 11px 20px !important;
    font-size: 16px !important;
    line-height: 1.1 !important;
    border-radius: 999px !important;
    white-space: nowrap;
  }

  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-price {
    flex: 0 0 auto;
    font-size: clamp(16px, 4.3vw, 19px) !important;
    line-height: 1.15 !important;
    white-space: nowrap;
  }

  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-hero-img {
    box-sizing: border-box;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    align-self: auto !important;
    width: 100% !important; /* ранее было 50%, изображения крошечные */
    max-width: 380px;
    min-width: 0;
    height: 290px;
    margin: 6px auto -30px !important;
    padding: 0 !important;
    position: relative;
    z-index: 3;
    transform: none !important;
  }

  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-hero-img img {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    transform: none !important;
    animation: none !important;
  }

  /* Высокие вертикальные фото — им нужно больше места, чем горизонтальным */
  .character-hero:is(.theme-silver,.theme-bubbles) .character-hero-img {
    height: 345px;
    margin-top: 0 !important;
  }

  /* Декор не должен конкурировать с надписями и ценой */
  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-shapes {
    opacity: .40 !important;
    pointer-events: none !important;
  }
  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-shapes > * {
    font-size: clamp(18px, 6vw, 36px) !important;
  }

  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .cloud-divider {
    height: 62px !important;
    bottom: 0 !important;
    pointer-events: none !important;
  }

  /* Убираем старые отрицательные нахлёсты на первый информационный блок */
  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) + .program-info-section {
    margin-top: 0 !important;
    padding-top: 20px !important;
  }
}

@media screen and (max-width: 350px) {
  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-hero-text h1 {
    font-size: 29px !important;
  }
  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-action {
    gap: 7px !important;
    padding-right: 9px !important;
  }
  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-action .btn-main {
    min-width: 116px;
    padding: 10px 16px !important;
  }
  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-price {
    font-size: 15px !important;
  }
  .character-hero:is(.theme-nitrogen,.theme-foam) .character-hero-img { height: 250px; }
  .character-hero:is(.theme-silver,.theme-bubbles) .character-hero-img { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .character-hero:is(.theme-nitrogen,.theme-silver,.theme-bubbles,.theme-foam) .character-hero-img img {
    animation: none !important;
  }
}
