/* =============================================
   TABTABUS CUSTOM STYLES
   ============================================= */

/* --- HEADER --- */
.tb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
.tb-header--scrolled {
  background: rgba(18, 17, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}

.tb-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.tb-header__logo { flex-shrink: 0; line-height: 0; }
.tb-header__logo img { display: block; }

/* Desktop nav */
.tb-header__nav { flex: 1; }
.tb-header__links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 32px;
}
.tb-header__links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.tb-header__links a:hover { color: #fff; }

/* Tagline */
.tb-header__tagline {
  flex: 1;
  color: rgba(255,255,255,0.75);
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.4;
  white-space: nowrap;
}

/* Dates */
.tb-header__dates {
  flex-shrink: 0;
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* CTA button */
.tb-header__cta {
  flex-shrink: 0;
  background: #fff;
  color: #000 !important;
  text-decoration: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 100px;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.tb-header__cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Hamburger — hidden on desktop */
.tb-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.tb-header__burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s, width 0.25s;
  transform-origin: center;
}
.tb-header__burger span:nth-child(3) { width: 65%; }

/* Burger → X */
.tb-header--open .tb-header__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.tb-header--open .tb-header__burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.tb-header--open .tb-header__burger span:nth-child(3) {
  width: 100%;
  transform: translateY(-7px) rotate(-45deg);
}

/* Скрываем из hero то, что перенесли в шапку + лишние элементы */
#rec1614188161 .tn-elem[data-elem-id="1764169193099"],
#rec1614188161 .tn-elem[data-elem-id="1764169207659"],
#rec1614188161 .tn-elem[data-elem-id="1764251360870"],
#rec1614188161 .tn-elem[data-elem-id="1764169477084"],
#rec1614188161 .tn-elem[data-elem-id="1764169498790000001"],
#rec1614188161 .tn-elem[data-elem-id="1764241945200"] {
  display: none !important;
}

/* Скрываем overlay-кнопку в hero */
.tb-ticket-hero-btn { display: none !important; }

/* Мобильная дата в hero */
.tb-hero-dates-mobile {
  display: none;
  position: absolute;
  top: 72px;
  right: 20px;
  z-index: 10;
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

/* --- КНОПКА «КУПИТЬ БИЛЕТ» В HERO (desktop overlay) --- */
.tb-ticket-hero-btn {
  position: absolute;
  top: 44px;
  left: calc(50% + 280px);
  transform: translateX(-50%);
  z-index: 10;
  display: inline-block;
  background: #fff;
  color: #000 !important;
  text-decoration: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 100px;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  letter-spacing: 0.3px;
}
.tb-ticket-hero-btn:hover {
  opacity: 0.9;
  transform: translateX(-50%) translateY(-2px);
}

/* --- FOOTER --- */
.tb-footer {
  background: #1d1c1f;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 24px;
}
.tb-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.tb-footer__copy {
  color: rgba(255,255,255,0.45);
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 300;
}
.tb-footer__contacts {
  display: flex;
  gap: 20px;
}
.tb-footer__contacts a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 300;
  transition: color 0.2s;
}
.tb-footer__contacts a:hover { color: #fff; }
.tb-footer__policy a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 300;
  transition: color 0.2s;
}
.tb-footer__policy a:hover { color: rgba(255,255,255,0.6); }

/* --- MOBILE (≤768px) --- */
@media (max-width: 768px) {
  .tb-header__inner {
    padding: 0 20px;
    height: 60px;
    gap: 12px;
  }

  /* Nav, tagline, dates скрыты на мобиле */
  .tb-header__nav,
  .tb-header__tagline,
  .tb-header__dates { display: none; }

  /* CTA — компактная, всегда видна */
  .tb-header__cta {
    font-size: 10px;
    padding: 8px 16px;
    margin-left: auto;
  }

  /* Показываем бургер */
  .tb-header__burger { display: flex; }

  /* Мобильное меню */
  .tb-header--open .tb-header__nav {
    display: block;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(18, 17, 20, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0 20px;
    animation: tb-menu-in 0.22s ease;
  }
  .tb-header--open .tb-header__links {
    flex-direction: column;
    gap: 0;
  }
  .tb-header--open .tb-header__links a {
    display: block;
    padding: 15px 24px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* Блокировка скролла */
  body.tb-no-scroll { overflow: hidden; }

  /* Скрыть overlay-кнопку в hero на мобиле (есть в шапке) */
  .tb-ticket-hero-btn { display: none; }

  /* Показываем мобильную дату */
  .tb-hero-dates-mobile { display: block; }

  /* "Смоленское поозерье" — опускаем ниже шапки */
  #rec1614188161 .tn-elem[data-elem-id="1764241945200"] {
    top: 68px !important;
  }

  .tb-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .tb-footer__contacts {
    flex-direction: column;
    gap: 8px;
  }
}

@keyframes tb-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   TILDA OVERRIDES
   ============================================= */
#rec611019748 .t-popup__container { padding: 0 20px; }
.t868__code-wrap { padding: 20px; height: 100%; overflow: auto; }
.uc-popup-timepad .t-popup__container { overflow-y: auto; max-height: 100%; }
