/* ════════════════════════════════
   EVENT PAGE — split layout
   ════════════════════════════════ */
/* Prevent content from spilling outside viewport on any element in this page */
.tb-ep-body, .tb-ep-info, .tb-ep-ticket,
.tb-ep-ticket__hd, .tb-ep-ticket__form,
.tb-ep-ticket__buy-wrap, .tb-ep-ticket__promo {
  box-sizing: border-box;
  max-width: 100%;
}
/* Spacer — reserves space for BOTH fixed nav AND fixed event bar */
.tb-ep-nav-spacer {
  height: calc(var(--nav-h, 72px) + 64px);  /* fallback 72px if JS hasn't run yet */
  display: block;
  width: 100%;
}

.tb-ep-bar {
  position: fixed;
  top: var(--nav-h, 72px);  /* fallback 72px for FOUC / JS-disabled */
  left: 0; right: 0;
  z-index: 150;              /* below tb-nav (200), above all content */
  height: 64px; background: var(--bar-bg);
  border-bottom: 1px solid rgba(0,103,127,.15);
  backdrop-filter: blur(16px);
  display: flex; align-items: center;
  padding: 0 40px; gap: 20px;
}
.tb-ep-bar__back {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--white-dim); text-decoration: none;
  transition: color .2s; flex-shrink: 0; display: flex; align-items: center; gap: 6px;
}
.tb-ep-bar__back:hover { color: var(--white); }
.tb-ep-bar__sep { width: 1px; height: 28px; background: var(--border-default); flex-shrink: 0; }
.tb-ep-bar__title {
  font-family: var(--font-display); font-size: 17px; letter-spacing: .06em;
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tb-ep-bar__meta {
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--white-dim); flex-shrink: 0; white-space: nowrap;
}
.tb-ep-bar__price {
  font-family: var(--font-display); font-size: 20px; color: var(--gold);
  flex-shrink: 0; letter-spacing: .04em;
}

/* Split body — below both fixed bars */
.tb-ep-body {
  display: grid; grid-template-columns: 1fr 440px;
  min-height: calc(100vh - var(--nav-h, 72px) - 64px);
}

/* Left — info */
.tb-ep-info {
  padding: 48px 52px 80px;
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
}
/* Hero grid: portrait image | event meta side by side */
.tb-ep-hero {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 40px;
}
.tb-ep-hero__info { display: flex; flex-direction: column; }

/* Portrait image pane */
.tb-ep-poster {
  width: 100%; aspect-ratio: 4/5;
  background-color: #1a0a0a;
  background-size: cover; background-position: center center;
  background-repeat: no-repeat;
  filter: none;
}
.tb-ep-datetime {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.tb-ep-title {
  font-family: var(--font-display); font-size: clamp(28px,4vw,52px);
  letter-spacing: .03em; line-height: 1; margin-bottom: 20px;
}
.tb-ep-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tb-ep-tag {
  font-size: 9px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--red); border: 1px solid rgba(0,103,127,.35); padding: 4px 10px;
}
.tb-ep-tag--gold { color: var(--gold); border-color: rgba(201,169,110,.35); }
.tb-ep-pills { display: flex; gap: 2px; margin-bottom: 32px; }
.tb-ep-pill {
  padding: 12px 16px; background: var(--black2); flex: 1; text-align: center;
}
.tb-ep-pill__label {
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 5px;
}
.tb-ep-pill__value { font-family: var(--font-display); font-size: 18px; letter-spacing: .03em; font-weight: 500; }
.tb-ep-desc {
  font-family: var(--font-serif); font-size: 18px; line-height: 1.85;
  color: var(--text-secondary); margin-bottom: 36px;
}
.tb-ep-desc p + p { margin-top: 16px; }

/* Gallery */
.tb-ep-gallery__label {
  font-size: 9px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.tb-ep-gallery__label::before { content: ''; display: block; width: 16px; height: 1px; background: var(--red); }
.tb-ep-gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.tb-ep-gallery__item {
  aspect-ratio: 4/3; background-size: cover; background-position: center;
  filter: brightness(.75); transition: filter .3s;
}
.tb-ep-gallery__item:hover { filter: brightness(1); }

/* Right — ticket */
.tb-ep-ticket {
  background: var(--black2);
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(0,103,127,.08);
  position: sticky; top: calc(var(--nav-h, 72px) + 64px);
  height: calc(100vh - var(--nav-h, 72px) - 64px);
  overflow-y: auto;
}
.tb-ep-ticket__hd {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border-subtle); flex-shrink: 0;
}
.tb-ep-ticket__label {
  font-size: 9px; letter-spacing: .35em; text-transform: uppercase; color: var(--red);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.tb-ep-ticket__label::before { content: ''; display: block; width: 16px; height: 1px; background: var(--tb-accent, var(--red)); }
.tb-ep-ticket__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border-subtle);
}
.tb-ep-ticket__name { font-family: var(--font-display); font-size: 19px; letter-spacing: .04em; }
.tb-ep-ticket__price { font-family: var(--font-mono); font-size: 21px; color: var(--gold); }

/* Qty */
.tb-ep-ticket__qty-wrap {
  padding: 20px 32px; border-bottom: 1px solid var(--border-subtle);
}
.tb-ep-ticket__qty-label {
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--white-dim); margin-bottom: 12px;
}
.tb-ep-ticket__qty-row { display: flex; align-items: center; margin-bottom: 16px; }
.tb-ep-ticket__qty-btn {
  width: 44px; height: 44px; background: var(--black3);
  border: 1px solid var(--border-default); color: var(--white);
  font-size: 20px; cursor: none; transition: background .2s, border-color .2s; line-height: 1;
}
.tb-ep-ticket__qty-btn:hover { background: var(--red); border-color: var(--red); }
.tb-ep-ticket__qty-num {
  width: 60px; height: 44px; background: var(--black);
  border: 1px solid var(--border-default); border-left: none; border-right: none;
  color: var(--white); font-family: var(--font-display); font-size: 24px;
  text-align: center; outline: none;
}
.tb-ep-ticket__total-row { display: flex; justify-content: space-between; align-items: baseline; }
.tb-ep-ticket__total-label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--white-dim); }
.tb-ep-ticket__total-val { font-family: var(--font-mono); font-size: 32px; }

/* Quantity input (number spinner in ticket form) */
.tb-ep-ticket__qty {
  width: 72px; padding: 10px 8px;
  background: var(--black); border: 1px solid var(--border-default);
  color: var(--white); font-family: var(--font-display); font-size: 18px;
  text-align: center; outline: none; transition: border-color .2s;
}
.tb-ep-ticket__qty:focus { border-color: var(--red); }

/* Form */
.tb-ep-ticket__form { padding: 20px 32px; display: flex; flex-direction: column; gap: 14px; }
.tb-ep-ticket__field { display: flex; flex-direction: column; gap: 6px; }
.tb-ep-ticket__field-label {
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--white-dim);
}
.tb-ep-ticket__field-optional { font-size: 9px; opacity: .4; text-transform: none; letter-spacing: 0; }
.tb-ep-ticket__input {
  background: var(--black); border: 1px solid var(--border-default);
  color: var(--white); padding: 13px 14px;
  font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color .2s; width: 100%;
}
.tb-ep-ticket__input:focus { border-color: var(--red); }
.tb-ep-ticket__input::placeholder { color: var(--text-muted); }
.tb-ep-ticket__input.error { border-color: #f87171; }
.tb-ep-ticket__field-error { font-size: 11px; color: #f87171; }
.tb-ep-ticket__email {
  background: var(--black); border: 1px solid var(--border-default);
  color: var(--white); padding: 13px 14px;
  font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color .2s; width: 100%;
}
.tb-ep-ticket__email::placeholder { color: var(--text-muted); }
.tb-ep-ticket__email:focus { border-color: var(--red); }
.tb-ep-ticket__email:invalid:not(:placeholder-shown) { border-color: #f87171; }

/* Promo */
.tb-ep-ticket__promo-row { display: flex; }
.tb-ep-ticket__promo-input {
  flex: 1; background: var(--black);
  border: 1px solid var(--border-default); border-right: none;
  color: var(--white); padding: 12px 14px;
  font-family: var(--font-body); font-size: 13px; outline: none;
  transition: border-color .2s; text-transform: uppercase; letter-spacing: .1em;
}
.tb-ep-ticket__promo-input:focus { border-color: var(--red); }
.tb-ep-ticket__promo-input::placeholder { text-transform: none; letter-spacing: 0; color: var(--text-muted); }
.tb-ep-ticket__promo-btn {
  background: var(--black3); border: 1px solid var(--border-default);
  color: var(--white); padding: 12px 18px;
  font-family: var(--font-body); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  cursor: none; white-space: nowrap; transition: background .2s;
}
.tb-ep-ticket__promo-btn:hover { background: var(--red); border-color: var(--red); }
.tb-ep-ticket__promo-msg { font-size: 11px; min-height: 16px; padding: 2px 0; }
.tb-ep-ticket__promo-msg--ok  { color: #4ade80; }
.tb-ep-ticket__promo-msg--err { color: #f87171; }

/* Discount */
.tb-ep-ticket__discount {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 4px 0; color: var(--white-dim);
}
.tb-ep-ticket__discount-val { color: #4ade80; font-family: var(--font-mono); font-size: 15px; }

/* Buy */
.tb-ep-ticket__buy-wrap { padding: 0 32px 28px; }
.tb-ep-ticket__buy {
  /* ⚠️ var(--tb-accent, var(--red)), NOT var(--red). --red is the SITE primary; the event's
     accent is per-event. Reading the site token meant the accent could never reach this button
     however correctly it was scoped — two names for one concept, consumer reading the wrong
     one. A surface that sets --tb-accent gets the event's identity, one that sets nothing gets
     the site brand. */
  width: 100%; background: var(--tb-accent, var(--red)); color: var(--white); border: none;
  padding: 17px; font-family: var(--font-body); font-size: 11px;
  letter-spacing: .25em; text-transform: uppercase; cursor: none;
  transition: background .2s; margin-bottom: 10px;
}
.tb-ep-ticket__buy:hover { background: var(--red-dark); }
.tb-ep-ticket__buy:disabled { background: var(--black3); color: var(--text-muted); cursor: not-allowed; }
.tb-ep-ticket__buy--external { display: block; text-decoration: none; text-align: center; cursor: pointer; }
.tb-ep-ticket__buy--external:hover { background: var(--red-dark); color: var(--white); }
.tb-ep-ticket__note {
  font-size: 10px; color: var(--text-muted); text-align: center;
  line-height: 1.7; letter-spacing: .06em;
}

/* Seat note */
.tb-ep-ticket__seat-note {
  margin: 0 32px 20px; padding: 16px;
  background: var(--black3); border-left: 2px solid var(--red);
}
.tb-ep-ticket__seat-note p {
  font-family: var(--font-serif); font-size: 15px; color: var(--white-dim); line-height: 1.6;
}

/* Seat map overlay */
.tb-seat-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: var(--black); display: flex; flex-direction: column;
}
.tb-seat-overlay[hidden] { display: none; }
.tb-seat-overlay__bar {
  flex-shrink: 0; height: 56px;
  background: rgba(8,8,8,.97); border-bottom: 1px solid rgba(0,103,127,.15);
  display: flex; align-items: center; padding: 0 32px; gap: 20px;
}
.tb-seat-overlay__close {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--white-dim); background: none; border: none; cursor: none;
  transition: color .2s;
}
.tb-seat-overlay__close:hover { color: var(--red); }
.tb-seat-overlay__title {
  font-family: var(--font-display); font-size: 16px; letter-spacing: .06em;
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tb-seat-overlay__iframe { flex: 1; width: 100%; border: none; }

/* Success */
.tb-ep-success {
  position: fixed; inset: 0; z-index: 500;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; text-align: center; padding: 40px;
}
.tb-ep-success[hidden] { display: none; }
.tb-ep-success__icon {
  width: 72px; height: 72px; border: 2px solid var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  animation: tb-fade-in .5s .2s both;
}
.tb-ep-success__title {
  font-family: var(--tb-font); font-size: var(--tb-text-2xl); letter-spacing: 0;
  animation: tb-fade-up .7s .3s both;
}
.tb-ep-success__msg {
  font-family: var(--font-serif); font-size: 20px; font-style: italic;
  color: var(--white-dim); max-width: 420px; line-height: 1.7;
  animation: tb-fade-up .7s .45s both;
}


/* ════════════════════════════════
   ABOUT / SERVICES / GALLERY / CONTACT
   ════════════════════════════════ */
.tb-about {
  padding: var(--tb-space-10) var(--tb-space-7);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--tb-space-9); align-items: center;
  position: relative; overflow: hidden;
}
.tb-about::before {
  content: 'ЗА НАС'; font-family: var(--tb-font); font-size: 8rem; opacity: .04;
  color: var(--white-faint); position: absolute; right: -10px; top: 50%;
  transform: translateY(-50%); pointer-events: none; line-height: 1;
}
.tb-about__body { margin-top: 28px; }
.tb-about__body p {
  font-family: var(--font-serif); font-size: 19px; line-height: 1.85;
  color: var(--text-secondary);
}
.tb-about__body p + p { margin-top: 16px; }
.tb-about__images { position: relative; height: 480px; }
.tb-about__img { position: absolute; background-size: cover; background-position: center; }
.tb-about__img--main {
  top: 0; left: 0; width: 75%; height: 83%;
  background-color: var(--black2);
}
.tb-about__img--secondary {
  bottom: 0; right: 0; width: 53%; height: 52%;
  background-color: var(--black3);
  border: 4px solid var(--black);
}
.tb-about__accent {
  position: absolute; top: 18px; right: 18px;
  width: 72px; height: 72px; background: var(--red); z-index: 3;
  display: flex; align-items: center; justify-content: center;
}

/* Services */
.tb-services {
  padding: var(--tb-space-10) var(--tb-space-7); background: var(--black2);
  position: relative; overflow: hidden;
}
.tb-services__bg-text {
  position: absolute; bottom: -30px; right: -10px;
  font-family: var(--tb-font); font-size: 12rem;
  color: var(--white-faint); pointer-events: none; line-height: 1; white-space: nowrap;
}
.tb-services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: rgba(0,103,127,.07); margin-top: var(--tb-space-7);
}
.tb-service {
  background: var(--black2); padding: var(--tb-space-8) var(--tb-space-7);
  position: relative; overflow: hidden; transition: background .3s; cursor: none;
}
.tb-service::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.tb-service:hover::after { transform: scaleX(1); }
.tb-service:hover { background: var(--black3); }
.tb-service__num {
  font-family: var(--tb-font); font-size: var(--tb-text-3xl);
  color: var(--white-faint); position: absolute; top: var(--tb-space-5); right: var(--tb-space-5); line-height: 1;
}
.tb-service__title { font-family: var(--font-display); font-size: var(--tb-text-xl); letter-spacing: .04em; margin-bottom: var(--tb-space-4); }
.tb-service__desc {
  font-family: var(--font-serif); font-size: var(--tb-text-base); line-height: var(--tb-leading-relaxed); color: var(--text-secondary);
}
.tb-service__link {
  display: inline-block; margin-top: var(--tb-space-5); font-size: var(--tb-text-xs); letter-spacing: .22em;
  text-transform: uppercase; color: var(--red); text-decoration: none;
  border-bottom: 1px solid rgba(0,103,127,.3); padding-bottom: 3px;
}

/* Gallery */
.tb-gallery { padding: var(--tb-space-10) 0; overflow: hidden; }
.tb-gallery__header { padding: 0 var(--tb-space-7); margin-bottom: var(--tb-space-7); }
.tb-gallery__track {
  display: flex; gap: 2px; width: max-content;
  animation: tb-gallery-scroll 22s linear infinite;
}
.tb-gallery__track:hover { animation-play-state: paused; }
.tb-gallery__item {
  width: 360px; height: 264px; flex-shrink: 0;
  background-size: cover; background-position: center;
  filter: grayscale(35%) brightness(.65); transition: filter .4s;
}
.tb-gallery__item:hover { filter: grayscale(0%) brightness(1); }

/* Contact */
.tb-contact {
  padding: var(--tb-space-10) var(--tb-space-7);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--tb-space-9);
  background: var(--black2);
}
.tb-contact__detail { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.tb-contact__icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--tb-red-500); flex-shrink: 0; margin-top: 3px; }
.tb-contact__detail-label {
  font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--red); margin-bottom: 5px;
}
.tb-contact__detail-text {
  font-family: var(--font-serif); font-size: 17px; line-height: 1.7; color: var(--text-secondary);
}
.tb-contact__brand-info { margin-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.tb-contact__brand-info a {
  font-family: var(--font-serif); font-size: 17px; color: var(--text-secondary);
  text-decoration: none; transition: color .2s;
}
.tb-contact__brand-info a:hover { color: var(--tb-red-500); }
.tb-contact-form { display: flex; flex-direction: column; gap: 14px; }
.tb-contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tb-contact-form__field { display: flex; flex-direction: column; gap: 7px; }
.tb-contact-form__field label {
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--white-dim);
}
.tb-contact-form__field input,
.tb-contact-form__field select,
.tb-contact-form__field textarea {
  background: var(--black); border: 1px solid var(--border-default);
  color: var(--white); padding: 13px 14px;
  font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color .2s; width: 100%;
}
.tb-contact-form__field input:focus,
.tb-contact-form__field select:focus,
.tb-contact-form__field textarea:focus { border-color: var(--red); }
.tb-contact-form__field textarea { resize: vertical; min-height: 110px; }
.tb-contact-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C8102E' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.tb-contact-form__field select option { background: var(--black2); }
.tb-contact-form__feedback {
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 12px;
}
.tb-contact-form__feedback--ok {
    color: #e8f5e9;
    background: rgba(46, 125, 50, 0.25);
    border-left: 4px solid #4ade80;
}
.tb-contact-form__feedback--err {
    color: #fde8e8;
    background: rgba(185, 28, 28, 0.2);
    border-left: 4px solid #f87171;
}

/* ════════════════════════════════
   FAQ
   ════════════════════════════════ */
.tb-faq {
  padding: var(--tb-space-10) var(--tb-space-7);
  background: var(--bg-primary);
}
.tb-faq__container {
  max-width: 760px;
  margin: 0 auto;
}
.tb-faq__header {
  text-align: center;
  margin-bottom: var(--tb-space-8);
}
.tb-faq__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tb-faq__item {
  background: var(--black2);
  border: 1px solid var(--border-default);
}
.tb-faq__item + .tb-faq__item { border-top: none; }
.tb-faq__question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}
.tb-faq__question::-webkit-details-marker { display: none; }
.tb-faq__toggle {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.tb-faq__toggle::before,
.tb-faq__toggle::after {
  content: '';
  position: absolute;
  background: var(--tb-red-500);
  transition: transform .2s;
}
.tb-faq__toggle::before { top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.tb-faq__toggle::after  { left: 50%; top: 0; height: 100%; width: 2px; margin-left: -1px; }
.tb-faq__item[open] .tb-faq__toggle::after { transform: rotate(90deg); opacity: 0; }
.tb-faq__answer {
  margin: 0;
  padding: 0 24px 22px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
.tb-footer {
  background: var(--tb-red-700);
  color: rgba(255,255,255,.85);
  padding: var(--tb-space-9) var(--tb-space-7) var(--tb-space-6);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--tb-space-5);
}
.tb-footer__logo {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--tb-space-3);
}
.tb-footer__logo-text {
  font-family: var(--tb-heading-font, var(--tb-font)); font-weight: 700;
  font-size: 22px; letter-spacing: .1em;
  color: #FFFFFF;
}
.tb-footer__tagline { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: rgba(255,255,255,.65); }
.tb-footer__nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--tb-space-6); align-items: center; justify-content: center; }
.tb-footer__nav a {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s;
}
.tb-footer__nav a:hover { color: #FFFFFF; }
.tb-footer__social { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--tb-space-5); align-items: center; justify-content: center; }
.tb-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s;
}
.tb-footer__social a:hover { color: #FFFFFF; }
.tb-footer__social .tb-icon { display: block; }
.tb-footer__right { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tb-footer__copy { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .08em; text-align: center; line-height: 1.7; }
.tb-footer__copy a { color: rgba(255,255,255,.75); text-decoration: none; }
.tb-footer__copy a:hover { color: #FFFFFF; }
.tb-footer__powered-link { color: rgba(255,255,255,.45) !important; }
.tb-footer__powered-link:hover { color: rgba(255,255,255,.75) !important; }
.tb-footer__powered { font-size: 11px; color: rgba(255,255,255,.55); }
.tb-footer__powered a { color: rgba(255,255,255,.75); text-decoration: none; }


/* ════════════════════════════════
   RESPONSIVE — 960px
   Event page + homepage sections
   ════════════════════════════════ */
@media (max-width: 960px) {

  /* ── Event topbar (fixed) ────────────────────── */
  .tb-ep-bar {
    height: 56px; padding: 0 16px; gap: 8px;
  }
  .tb-ep-nav-spacer { height: calc(var(--nav-h, 72px) + 56px); }
  .tb-ep-bar__title { font-size: 14px; }
  .tb-ep-bar__meta  { display: none; }          /* date shown in content below */
  .tb-ep-bar__sep   { display: none; }
  .tb-ep-bar__price { font-size: 16px; }
  .tb-ep-bar__back  { font-size: 0; }           /* hide label, keep arrow icon */
  .tb-ep-bar__back::before { content: '←'; font-size: 16px; }

  /* ── Event body — stack columns ─────────────── */
  .tb-ep-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .tb-ep-info {
    padding: 28px 20px 48px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    overflow-y: visible;
  }
  .tb-ep-hero { grid-template-columns: 1fr; gap: 20px; }
  .tb-ep-poster { max-width: 320px; margin: 0 auto; }
  .tb-ep-gallery__grid { grid-template-columns: 1fr 1fr; }

  .tb-ep-ticket {
    position: static;
    height: auto;
    overflow-y: visible;
    border-left: none;
    border-top: 1px solid rgba(0,103,127,.08);
  }
  .tb-ep-ticket__qty-num { font-size: 20px; }

  /* ── Input font-size ≥ 16px (prevent iOS auto-zoom) ── */
  .tb-ep-ticket__input,
  .tb-ep-ticket__promo-input,
  .tb-ep-ticket__qty-num { font-size: 16px; }

  /* ── Seat overlay ───────────────────────────── */
  .tb-seat-overlay__bar { padding: 0 16px; gap: 12px; }

  /* ── About — stack ──────────────────────────── */
  .tb-about {
    grid-template-columns: 1fr;
    gap: var(--tb-space-7);
    padding: var(--tb-space-8) var(--tb-space-5);
  }
  .tb-about::before { font-size: 5rem; }
  .tb-about__images { height: 280px; }
  .tb-about__img--main  { width: 82%; height: 80%; }
  .tb-about__img--secondary { width: 55%; height: 50%; }

  /* ── Services — stack ───────────────────────── */
  .tb-services { padding: var(--tb-space-8) var(--tb-space-5); }
  .tb-services__grid { grid-template-columns: 1fr; }
  .tb-service { padding: var(--tb-space-6) var(--tb-space-5); }

  /* ── Gallery strip — tighten ────────────────── */
  .tb-gallery { padding: var(--tb-space-8) 0; }
  .tb-gallery__header { padding: 0 var(--tb-space-5); }
  .tb-gallery__item { width: 260px; height: 192px; }

  /* ── Contact — stack ────────────────────────── */
  .tb-contact {
    grid-template-columns: 1fr;
    gap: var(--tb-space-7);
    padding: var(--tb-space-8) var(--tb-space-5);
  }
  .tb-contact-form__row { grid-template-columns: 1fr; }

  /* ── Events section (homepage) ──────────────── */
  .tb-events { padding: 72px 24px; }
  .tb-events__grid {
    grid-template-columns: 1fr;
  }
  .tb-events__strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .tb-events__strip { grid-template-columns: 1fr; }

  /* Contact form single column already at 960px */
}

/* ── iOS zoom prevention — all form inputs site-wide ── */
/* Status messages */
.tb-ep-ticket__status { min-height: 20px; padding: 0 32px 4px; font-size: 13px; line-height: 1.4; }
.tb-ep-ticket__status--ok    { color: #4ade80; }
.tb-ep-ticket__status--error {
  color: #f87171;
  padding: 8px 32px;
  background: rgba(248, 113, 113, 0.08);
  border-left: 2px solid rgba(248, 113, 113, 0.5);
}

/* Manual availability refresh */
.tb-ep-ticket__refresh {
  display: block; width: calc(100% - 64px); margin: 0 32px 20px;
  padding: 8px 12px; background: transparent;
  border: 1px solid var(--border-default); color: var(--text-muted);
  font-size: 11px; letter-spacing: .1em; text-align: center;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.tb-ep-ticket__refresh:hover { border-color: var(--red); color: var(--white); }
.tb-ep-ticket__refresh.is-loading { opacity: .55; pointer-events: none; }

@media (max-width: 540px) {
  /* Pills: 2×2 grid so labels don't truncate on narrow viewports */
  .tb-ep-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .tb-ep-pill  { text-align: left; }
  /* Time value (e.g. "08:00 ч.") — keep on one line */
  .tb-ep-pill__value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Hero: stack image above meta at very small sizes */
  .tb-ep-hero { grid-template-columns: 1fr; }
  .tb-ep-poster { max-width: 260px; }
  /* Info + ticket: reduce padding to give content more room */
  .tb-ep-info    { padding-left: 16px; padding-right: 16px; }
  .tb-ep-ticket__hd,
  .tb-ep-ticket__form,
  .tb-ep-ticket__buy-wrap { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
}
