/* ============================================================
   theom.show — мобильные правки
   1. Плашка cookie: кнопки в ряд, меньше отступов
   2. Бургер: зона нажатия 44x44 без смещения иконки
   ============================================================ */

/* ---------- 1. Плашка cookie ---------- */
@media screen and (max-width: 560px) {

  #rec4465000601 .t972__banner {
    padding: 14px 16px 16px !important;
  }

  #rec4465000601 .t972__text {
    line-height: 1.4 !important;
  }

  #rec4465000601 .t972__buttons {
    margin-top: 14px !important;
  }

  /* обе кнопки лежат в одной обёртке стопкой — кладём их в ряд */
  #rec4465000601 .t972__buttons-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  #rec4465000601 .t972__buttons-wrap > * {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  #rec4465000601 .t972__buttons-wrap .t-btn {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    white-space: normal !important;
  }
}

/* ---------- 2. Зона нажатия бургера ---------- */
/* Псевдоэлемент на самой иконке: клик по нему попадает в неё же
   и всплывает к обработчику выше по дереву. */
.t-menuburger {
  position: relative;
}

.t-menuburger::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

/* чтобы увеличенная зона не обрезалась контейнерами бургера */
.t3112__menu__content,
.t3112__burger_container,
.t3112__burger_bg {
  overflow: visible !important;
}

/* ---------- 3. Хлебные крошки: контейнер не перехватывает мышь ---------- */
/* HTML-элемент с кодом крошек в шапке занимает 412x242 px и ложился поверх
   плиток «Артисты» и «Мероприятия» на главной и карточки The OM на /artists:
   там не срабатывал ховер. Сама плашка крошек остаётся кликабельной. */
.tn-elem[data-elem-id="1786042328650"] {
  pointer-events: none;
}

.breadcrumbs-wrapper {
  pointer-events: auto;
}

/* ---------- 4. iPhone: сплошная плашка внизу экрана ---------- */
/* Safari на iOS 26 закрашивает область под нижней панелью браузера цветом
   фона элемента, закреплённого у нижнего края экрана. Псевдоэлементы
   (::before/::after) Safari при этом не учитывает, поэтому полосой служит
   настоящий элемент, который есть на каждой странице и уже закреплён внизу, —
   контейнер плашки cookie. Пока плашка cookie или её настройки на экране,
   правило не действует. После «Принять» контейнер становится полосой цвета
   фона высотой 12px. Правило только для iPhone. */
@supports (-webkit-touch-callout: none) {
  html {
    background-color: #121212;
  }

  @media screen and (max-width: 500px) {
    .t972:not(:has(.t972__banner_show)):not(:has(.t972__settings_show)) {
      display: block !important;
      position: fixed !important;
      top: auto !important;
      bottom: 0 !important;
      left: 0 !important;
      right: 0 !important;
      height: 12px !important;
      overflow: hidden !important;
      background-color: #121212 !important;
      pointer-events: none !important;
    }
  }
}

/* ---------- 5. Телефон: шапка-комната на внутренних страницах ---------- */
/* Разметка — блок HTML-код первым на страницах events, artists, works,
   contacts, merch (класс .rh). Здесь только оформление. */
.rh { display: none; }
@media screen and (max-width: 639px) {
  .rh {
    display: block; position: relative; z-index: 5;
    box-sizing: border-box; width: calc(100% - 20px); max-width: 540px;
    margin: 0 auto; padding-top: 70px;
    font-family: 'Helvetica', Arial, sans-serif;
  }
  .rh *, .rh *::before, .rh *::after { box-sizing: border-box; }
  .rh-room { position: relative; display: block; aspect-ratio: 2.9; overflow: hidden; background: #000; border: 6px solid #0b0c10; -webkit-tap-highlight-color: transparent; }
  .rh-room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .rh-sign { animation: rh-light 4.5s ease-in-out 0.6s 1 both; }
  @keyframes rh-light { 0%, 100% { opacity: 1; } 25%, 70% { opacity: 0; } }
  .rh-home { position: absolute; left: 8px; top: 8px; padding: 4px 8px 3px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,245,245,.85); background: rgba(10,10,12,.6); }
  .rh-tabs { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 12px 4px 4px; overflow-x: auto; scrollbar-width: none; }
  .rh-tabs::-webkit-scrollbar { display: none; }
  .rh-tabs a { flex: none; padding: 4px 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,245,245,.5); text-decoration: none; border-bottom: 1px solid transparent; }
  .rh-tabs a.is-here { color: #f5f5f5; border-bottom-color: #f5f5f5; }
  /* контент страниц больше не отодвигаем под шапку — это делает комната */
  #rec2824063201, #rec2824302601, #rec3686124001, #rec2803247501 { padding-top: 14px !important; }
  .tc { padding-top: 18px !important; }
}
@media screen and (max-width: 639px) and (prefers-reduced-motion: reduce) { .rh-sign { animation: none; } }

/* ---------- 6. Телефон: страницы компактнее ---------- */

/* Мероприятия на телефоне: карточки в строку — афиша слева, текст справа */
@media screen and (max-width: 639px) {
  #rec2824063201 .t2823__items { gap: 0 !important; }
  #rec2824063201 li.t-cms__card {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 4px !important;
    border-bottom: 1px solid rgba(245,245,245,.12);
  }
  #rec2824063201 .t-cms__card__cell_media {
    flex: 0 0 96px !important;
    width: 96px !important;
    height: 96px !important;
  }
  #rec2824063201 .t-cms__card__cell_media .t-cms__card__molecule,
  #rec2824063201 .t-cms__card__image { width: 96px !important; height: 96px !important; padding: 0 !important; }
  #rec2824063201 .t-cms__card__cell_txt { flex: 1 1 auto; min-width: 0; padding: 0 !important; margin: 0 !important; }
  #rec2824063201 .t-cms__card__cell_txt .t-name { font-size: 16px !important; line-height: 1.25 !important; }
  #rec2824063201 .t-cms__card__cell_txt .t-uptitle { margin-top: 4px; font-size: 12px !important; }
  #rec2824063201 .t-cms__card__cell_txt .t-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    font-size: 13px !important;
    line-height: 1.4 !important;
    opacity: .75;
  }
  #rec2824063201 .t-cms__card__cell_txt .t-text br { display: none; }
}

/* Магазин на телефоне: товары в две колонки, без пустых промежутков */
@media screen and (max-width: 639px) {
  #rec2803247501 .t754__parent { flex-wrap: wrap !important; justify-content: space-between; gap: 0 !important; row-gap: 0 !important; padding: 0 10px !important; }
  #rec2803247501 .t754__parent > :not(.t754__col) { display: none !important; }   /* разделители рядов */
  #rec2803247501 .t754__parent .t754__col {
    width: calc(50% - 5px) !important;
    max-width: none !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
  }
  #rec2803247501 .t754__col .t754__imgwrapper { margin: 0 !important; }
  #rec2803247501 .t754__col .t754__textwrapper { margin: 0 !important; padding: 10px 10px 12px !important; }
  #rec2803247501 .t754__col .t754__title { font-size: 14px !important; line-height: 1.3 !important; }
  #rec2803247501 .t754__col .t754__price-wrapper { margin-top: 6px !important; }
  #rec2803247501 .t754__col .t754__price { font-size: 13px !important; }
}

/* Работы на телефоне: плотнее, вертикальное видео не во весь экран */
@media screen and (max-width: 639px) {
  #rec3686124001 { padding-top: 6px !important; padding-bottom: 6px !important; }
  #rec3686124001 .t1281__select {
    padding-top: 10px !important; padding-bottom: 10px !important;
    border: 1px solid rgba(245,245,245,.25) !important;
    color: #f5f5f5 !important;
    background-color: rgba(10,10,12,.6) !important;
    font-size: 14px !important;
  }
  .t-rec[data-record-type="1061"] .t-col_6 { padding-top: 16px !important; padding-bottom: 20px !important; }
  .t-rec[data-record-type="1061"] .t1061__wrap-video,
  .t-rec[data-record-type="1061"] .t-video-lazyload { max-height: 340px !important; overflow: hidden; }
  .t-rec[data-record-type="1061"] .t1061__wrap-video video { max-height: 340px !important; width: auto !important; margin: 0 auto !important; display: block; }
  .t-rec[data-record-type="1061"] .t1061__blockname { margin-top: 12px !important; }
}

/* Артисты на телефоне: две карточки рядом */
@media screen and (max-width: 639px) {
  #rec2824302601 .t2823__items { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  #rec2824302601 li.t-cms__card { padding: 0 !important; }
  #rec2824302601 .t-cms__card__cell_media { width: 100% !important; height: auto !important; aspect-ratio: 3 / 4; }
  #rec2824302601 .t-cms__card__cell_media .t-cms__card__molecule,
  #rec2824302601 .t-cms__card__cell_media .t-cms__card__atom,
  #rec2824302601 .t-cms__card__image { width: 100% !important; height: 100% !important; padding: 0 !important; }
  #rec2824302601 .t-cms__card__cell_txt { width: 100% !important; padding: 10px 2px 0 !important; }
  #rec2824302601 .t-cms__card__cell_txt .t-name { font-size: 15px !important; }
  #rec2824302601 .t-cms__card__cell_txt .t-text, #rec2824302601 .t-cms__card__cell_txt .t-descr {
    display: -webkit-box !important; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 12px !important; line-height: 1.4 !important;
  }
}
