/* site-footer.css подключается отдельным <link> в HTML — @import на части хостингов ломает загрузку стилей */

:root {
  --bg-dark: #0a0a0a;
  --bg-velvet: #1a0a0a;
  --gold: #c5a572;
  --gold-light: #d4af37;
  --gold-dark: #8b7355;
  --text-light: #f5f5f5;
  --text-dim: #aaa;
  --border-gold: rgba(197, 165, 114, 0.3);
  --ease-slow: cubic-bezier(0.7, 0, 0.3, 1);
  --container-padding: 4vw;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.page-load-fallback,
#detail-root:empty::before {
  display: block;
  padding: clamp(3rem, 12vh, 6rem) var(--container-padding);
  text-align: center;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

#detail-root:empty::before {
  content: 'Загрузка…';
}

h1, h2, h3, h4, .logo, .footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  margin-bottom: 2.5rem;
  color: var(--gold);
}
h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

p { font-size: clamp(0.95rem, 1.1vw, 1.15rem); line-height: 1.85; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.45rem); color: var(--text-light); }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 1.5rem var(--container-padding);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
  transition: all 0.4s var(--ease-slow);
}
header.scrolled { padding: 1rem var(--container-padding); background: rgba(10, 10, 10, 0.95); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu .nav-links { flex-direction: column; align-items: center; gap: 2rem; }
.mobile-menu .nav-links a { font-size: 1.4rem; }
.menu-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
}

/* ===== Hero: partner detail + performance detail ===== */
.detail-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 130px var(--container-padding) 90px;
  isolation: isolate;
  border-bottom: 1px solid var(--border-gold);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #1a0a0a;
  transform: scale(1.02);
  transition: transform 8s var(--ease-slow);
}

.partner-hero:hover .detail-hero-bg {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .detail-hero-bg {
    transform: none;
    transition: none;
  }
  .partner-hero:hover .detail-hero-bg {
    transform: none;
  }
  .fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.partner-hero-bg {
  /* как .about-section на главной: #1A0A0A → #0F0505 */
  background-color: #1A0A0A;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(197, 165, 114, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 0, 0, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #1A0A0A 0%, #0F0505 100%);
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 35%, transparent 0%, rgba(10, 10, 10, 0.5) 100%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.2) 0%, rgba(26, 10, 10, 0.72) 78%, rgba(10, 10, 10, 0.95) 100%);
}

.partner-hero .detail-hero-overlay,
.partner-hero-overlay {
  background:
    radial-gradient(ellipse 90% 70% at 50% 35%, transparent 0%, rgba(15, 5, 5, 0.4) 100%),
    linear-gradient(to bottom, rgba(26, 10, 10, 0.12) 0%, rgba(15, 5, 5, 0.55) 78%, rgba(10, 10, 10, 0.92) 100%);
}

body.admin-mode .detail-hero-bg,
body.admin-mode .production-hero[data-image-key] {
  cursor: pointer;
}

body.admin-mode .detail-hero-bg::after {
  content: 'Нажмите, чтобы сменить фон';
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

body.admin-mode .detail-hero-bg:hover::after {
  opacity: 1;
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: min(1180px, 96vw);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.detail-hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
  font-weight: 400;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.detail-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 300;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.75);
}

/* Theater info hero: long names stay inside the hero block */
.detail-hero h1.theater-hero-title {
  text-transform: none;
  letter-spacing: 0.03em;
  line-height: 1.14;
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.75rem, 3.2vw + 0.85rem, 4.35rem);
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  box-sizing: border-box;
}

.detail-hero h1.theater-hero-title.active-edit,
.detail-hero h1.theater-hero-title.editing-active {
  padding: 1rem clamp(1rem, 3vw, 2rem);
  max-width: 100%;
}

.theater-hero-title--compact {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
}

.theater-info-hero {
  flex-direction: column;
  justify-content: center;
  padding-bottom: 120px;
}

.theater-afisha-hero {
  min-height: 62vh;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 70px;
}

.theater-meta-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 720px;
  width: calc(100% - 2rem);
  margin: 2.5rem auto 0;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.theater-meta-item {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.theater-meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 500;
}

.theater-meta-value {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--text-light);
  line-height: 1.4;
}

.theater-meta-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-gold);
  margin: 0.85rem 0;
}

.scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
  animation: scrollHintBounce 2.4s ease-in-out infinite;
}

.scroll-hint:hover {
  opacity: 1;
  color: var(--gold);
}

.scroll-hint i {
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint {
    animation: none;
  }
}

@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.theater-info-content {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  grid-template-areas:
    "about sidebar";
  column-gap: clamp(2rem, 4vw, 3.5rem);
  row-gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}

.theater-about-wrap {
  grid-area: about;
  max-width: 72ch;
}

.theater-about-wrap h2 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1.75rem;
}

.theater-about-wrap h2::after {
  bottom: -14px;
  width: 64px;
}

.theater-about-text {
  margin-top: 2rem;
  max-width: 68ch;
}

.theater-about-text .lead {
  margin-bottom: 0;
}

.theater-about-text p {
  margin: 0;
}

.theater-about-text p + p {
  margin-top: 1.35rem;
}

.theater-afisha-cta-wrap {
  margin-top: 2.5rem;
  padding-top: 0.25rem;
}

a.btn-afisha-cta,
a.btn-afisha-cta:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-afisha-cta:hover {
  background: var(--gold);
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 165, 114, 0.28);
}

.btn-afisha-cta i {
  font-size: 0.75rem;
  transition: transform 0.25s;
}

.btn-afisha-cta:hover i {
  transform: translateX(4px);
}

.theater-info-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 96px;
}

.partner-photos-section {
  grid-area: photos;
  margin-top: 0;
  min-width: 0;
}

.partner-photos-section.is-empty {
  display: none;
}

.partner-photos-section h2 {
  margin-bottom: 1.75rem;
}

.theater-about-wrap .desc-block a:not(.btn-afisha-cta) {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(197, 165, 114, 0.45);
}

.contact-list a {
  color: var(--gold-light);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--gold);
}

.contact-link-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.contact-link-edit {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-gold);
  background: rgba(197, 165, 114, 0.12);
  color: var(--gold-light);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.contact-link-edit:hover {
  background: rgba(197, 165, 114, 0.28);
  color: var(--gold);
}

body.admin-mode .contact-link-edit {
  display: inline-flex;
}

.theater-info-hero .detail-hero-content {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 4vw, 2.75rem) 0.5rem;
}

.theater-info-hero .detail-hero-lead {
  max-width: min(780px, 100%);
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
}

.theater-info-hero .theater-meta-strip {
  margin-top: 2rem;
}

.theater-info-content.page-content {
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

.theater-info-sidebar .info-card {
  padding: 1.5rem 1.65rem;
}

.theater-info-sidebar .info-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
}

.theater-info-sidebar .contact-list li:last-child {
  margin-bottom: 0;
}

.theater-afisha-content {
  max-width: 1200px;
  margin: 0 auto;
}

.theater-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  transition: color 0.25s;
}

.theater-back-link:hover {
  color: var(--gold);
}

.theater-back-link i {
  font-size: 0.7rem;
  transition: transform 0.25s;
}

.theater-back-link:hover i {
  transform: translateX(-4px);
}

.detail-hero-divider {
  width: 90px;
  height: 2px;
  margin: 0 auto 1.75rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 18px rgba(197, 165, 114, 0.35);
}

.detail-hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  color: rgba(245, 245, 245, 0.92);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 300;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.9s ease forwards;
}

.production-hero--with-slider {
  min-height: auto;
  padding: 0;
  align-items: stretch;
  background-image: none;
  background-color: transparent;
  margin-top: 0;
}

/* ===== Partner production page ===== */
.partner-production-page {
  position: relative;
  background: #0F0505;
  border-bottom: 1px solid var(--border-gold);
  overflow: hidden;
}

.partner-production-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(197, 165, 114, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
}

.partner-production-hero {
  min-height: clamp(520px, 82vh, 880px);
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.partner-production-hero:hover .partner-production-hero-bg {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .partner-production-hero:hover .partner-production-hero-bg {
    transform: none;
  }
}

.partner-production-hero-bg {
  background-color: #1A0A0A;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(197, 165, 114, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 0, 0, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #1A0A0A 0%, #0F0505 100%);
}

body.admin-mode .partner-production-hero-bg {
  pointer-events: auto;
  cursor: pointer;
}

.partner-production-hero-overlay {
  background:
    radial-gradient(ellipse 85% 60% at 50% 28%, rgba(197, 165, 114, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(15, 5, 5, 0.45) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(26, 10, 10, 0.08) 0%, rgba(15, 5, 5, 0.45) 72%, rgba(10, 10, 10, 0.9) 100%);
}

.partner-production-hero-content {
  max-width: min(780px, 96vw);
}

.partner-production-hero-content .theater-back-link {
  margin-bottom: clamp(1rem, 2.5vw, 1.35rem);
}

.partner-production-hero-content .detail-hero-kicker {
  margin-bottom: 0.85rem;
  color: var(--gold-light);
}

.partner-production-title {
  margin: 0 0 1rem;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.partner-production-hero-content .detail-hero-divider {
  width: 110px;
  margin: 0 auto 1.15rem;
}

.partner-production-tagline {
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(232, 213, 183, 0.92);
  margin: 0 auto 1rem;
  font-weight: 500;
}

.partner-production-lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(1.02rem, 1.9vw, 1.28rem);
  line-height: 1.72;
  color: rgba(245, 245, 245, 0.92);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
}

.partner-production-body.theater-info-content {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  grid-template-areas:
    "main sidebar";
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
  background: transparent;
}

.partner-production-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
  min-width: 0;
}

.partner-production-block h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.12em;
}

.partner-production-block .desc-block {
  max-width: 680px;
  margin: 0 auto;
}

.partner-production-block .desc-block p {
  color: rgba(235, 235, 235, 0.88);
  line-height: 1.85;
  font-size: clamp(1rem, 1.6vw, 1.08rem);
}

.partner-production-block .desc-block p.lead {
  font-size: clamp(1.08rem, 1.85vw, 1.22rem);
  color: rgba(245, 245, 245, 0.94);
  line-height: 1.78;
  margin-bottom: 1.35rem;
}

.partner-production-sidebar {
  grid-area: sidebar;
}

.partner-production-sidebar .info-card {
  border-color: rgba(197, 165, 114, 0.28);
  background: rgba(12, 12, 12, 0.65);
}

.partner-production-cast-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1.5rem;
}

.partner-production-cast-grid .team-card-image {
  height: 200px;
}

.partner-production-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.partner-production-block.partner-production-cast h2,
.partner-production-block.partner-production-gallery h2 {
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .partner-production-cast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .partner-production-cast-grid .team-card-image {
    height: 168px;
  }
  .partner-production-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .partner-production-body.theater-info-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sidebar";
  }
}

.production-hero {
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  background-color: #1a0808;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: linear-gradient(rgba(35, 8, 8, 0.35), rgba(12, 4, 4, 0.92)),
    url('https://images.unsplash.com/photo-1514306191717-452ec28c7814?auto=format&fit=crop&w=1280&q=75');
  padding: 120px var(--container-padding) 70px;
  margin-top: 0;
}

.production-hero-content { max-width: 1200px; margin: 0 auto; width: 100%; }

.theatre-badge {
  display: inline-block;
  background: rgba(26, 10, 10, 0.85);
  border-left: 3px solid var(--gold);
  padding: 0.8rem 1.5rem;
  margin-bottom: 1.5rem;
}

.theatre-badge h4 {
  font-size: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.production-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 300;
}

.production-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  margin-bottom: 2rem;
  max-width: 800px;
}

.production-meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.meta-item { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; }
.meta-item i { color: var(--gold); font-size: 1.1rem; }

.partner-brand-card {
  text-align: center;
}

.partner-logo-wrap {
  width: 100%;
  max-width: 220px;
  height: 130px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.partner-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.buy-tickets-bar {
  text-align: center;
  padding: 2.5rem var(--container-padding);
  background: linear-gradient(180deg, var(--bg-velvet), var(--bg-dark));
  border-bottom: 1px solid var(--border-gold);
}
.btn-buy-tickets {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: #111;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.35s ease;
  box-shadow: 0 4px 15px rgba(197, 165, 114, 0.3);
}
.btn-buy-tickets:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(197, 165, 114, 0.45);
}
.btn-download-rider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--gold);
  color: #0A0A0A;
  text-decoration: none;
  padding: 1rem 2.25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: all 0.3s;
  border: 1px solid transparent;
}
.btn-download-rider:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 165, 114, 0.3);
  color: #0A0A0A;
}
.rider-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem var(--container-padding) 2.5rem;
}
.rider-bar-hint {
  margin: 0;
  max-width: 34rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.theater-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.theater-actions-row .btn-afisha-cta,
.theater-actions-row .btn-download-rider {
  margin: 0;
}

.theater-rider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.theater-rider-wrap .btn-download-rider {
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-sizing: border-box;
}

/* Без файла — золотая обводка; гость не кликает */
.theater-rider-wrap:not(.has-rider-file) .btn-download-rider {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  cursor: default;
  opacity: 1;
}

body:not(.admin-mode) .theater-rider-wrap:not(.has-rider-file) .btn-download-rider {
  pointer-events: none;
}

body.admin-mode .theater-rider-wrap:not(.has-rider-file) .btn-download-rider {
  pointer-events: auto;
  cursor: pointer;
}

body.admin-mode .theater-rider-wrap:not(.has-rider-file) .btn-download-rider:hover {
  background: var(--gold);
  color: #0A0A0A;
  box-shadow: 0 8px 24px rgba(197, 165, 114, 0.22);
}

.theater-rider-wrap.has-rider-file .btn-download-rider {
  background: var(--gold);
  color: #0A0A0A;
  border-color: transparent;
  cursor: pointer;
  pointer-events: auto;
}

/* Content */
.page-content { padding: 5rem var(--container-padding); background: var(--bg-velvet); }
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}
.main-content { display: flex; flex-direction: column; gap: 4rem; }
.content-section { animation: fadeUp 0.8s ease both; }
.content-section p + p { margin-top: 1.25rem; }

.desc-block {
  border-left: 2px solid var(--border-gold);
  padding-left: 1.5rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.75rem;
}
.team-card {
  background: rgba(26, 10, 10, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.team-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.team-card-image { height: 220px; overflow: hidden; cursor: pointer; }
.team-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.team-card:hover .team-card-image img { transform: scale(1.06); }
.team-card-content { padding: 1.25rem; }
.team-card h4 { font-size: 1.15rem; color: var(--gold); margin-bottom: 0.35rem; }
.team-card p { font-size: 0.9rem; color: var(--text-dim); margin: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }

.partner-slider {
  position: relative;
  max-width: 100%;
  padding: 0 3rem;
}

.partner-slider-viewport {
  overflow: hidden;
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  background: #0a0a0a;
  aspect-ratio: 16 / 9;
}

.partner-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.3, 1);
}

.partner-slider-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  aspect-ratio: auto;
  border: none;
  border-radius: 0;
}

.partner-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-slider-slide:hover img {
  transform: none;
}

.partner-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.75);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s;
}

.partner-slider-nav:hover {
  background: var(--gold);
  color: #111;
}

.partner-slider-prev { left: 0; }
.partner-slider-next { right: 0; }

.partner-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.partner-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.partner-slider-dot.active,
.partner-slider-dot:hover {
  background: var(--gold);
  transform: scale(1.1);
}

body.admin-mode .partner-slider-slide {
  cursor: pointer;
}

/* Theater performances grid (partner detail pages) */
.theater-performances-section {
  margin-top: 0.5rem;
}

.theater-performances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.theater-performance-card {
  position: relative;
  background: rgba(26, 10, 10, 0.75);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, opacity 0.3s;
}

.theater-performance-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.theater-performance-card.card-hidden {
  opacity: 0.45;
  border-style: dashed;
}

.theater-performance-card.card-hidden:hover {
  opacity: 0.75;
}

.theater-performance-card.dragging {
  opacity: 0.5;
  border-color: var(--gold);
}

.theater-performance-card.drag-over {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(197, 165, 114, 0.55);
}

.theater-performance-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.theater-performance-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
}

.theater-performance-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.theater-performance-card:hover .theater-performance-image img {
  transform: scale(1.05);
}

.theater-performance-body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.theater-performance-body h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.theater-performance-date,
.theater-performance-note {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0 0 0.85rem;
  line-height: 1.4;
}

.theater-performance-date i,
.theater-performance-note i {
  color: var(--gold);
  margin-right: 0.4rem;
}

.theater-performance-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.theater-performance-cta i {
  font-size: 0.7rem;
  transition: transform 0.25s;
}

.theater-performance-card:hover .theater-performance-cta i {
  transform: translateX(4px);
}

.theater-performances-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-dim);
  font-size: 1rem;
}

body.admin-mode .theater-performance-image {
  cursor: pointer;
}

body.admin-mode .theater-performance-link {
  pointer-events: auto;
}

.add-card-btn + .add-card-btn + .add-card-btn {
  bottom: 180px;
}

@media (max-width: 768px) {
  .theater-performances-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .partner-slider { padding: 0 2.5rem; }
  .partner-slider-nav { width: 36px; height: 36px; font-size: 0.85rem; }
  .partner-slider-viewport { aspect-ratio: 4 / 3; }
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.info-card {
  background: rgba(26, 10, 10, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 2rem;
}
.info-card h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-gold);
}
.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.contact-list i { color: var(--gold); margin-top: 0.2rem; min-width: 18px; }
.contact-list a { color: var(--gold-light); text-decoration: none; }
.contact-list a:hover { color: var(--gold); }

.advantages-list { list-style: none; }
.advantages-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.advantages-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 0.45rem;
}

.card-delete-btn,
.card-hide-btn {
  position: absolute;
  top: 10px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.75);
  color: #ff6b6b;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.card-delete-btn { right: 10px; }
.card-hide-btn {
  right: 48px;
  color: var(--gold);
}
body.admin-mode .card-delete-btn,
body.admin-mode .card-hide-btn { display: flex; }
.card-delete-btn:hover {
  background: #ff6b6b;
  color: #fff;
  transform: scale(1.05);
}
.card-hide-btn:hover {
  background: var(--gold);
  color: #111;
  transform: scale(1.05);
}

.add-card-btn {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 9999;
  display: none;
  background: var(--gold);
  color: #111;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
body.admin-mode .add-card-btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.add-card-btn + .add-card-btn { bottom: 130px; }

/* Admin */
#admin-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
#admin-login-box {
  background: var(--bg-velvet);
  border: 1px solid var(--gold);
  padding: 2.5rem;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
}
#admin-login-box h3 { color: var(--gold); margin-bottom: 1.5rem; text-align: center; }
#admin-login-box input {
  width: 100%;
  padding: 0.85rem;
  background: #2a1a1a;
  border: 1px solid var(--gold);
  color: #fff;
  margin-bottom: 1rem;
  border-radius: 4px;
}
#admin-login-box button {
  width: 100%;
  background: var(--gold);
  color: #111;
  border: none;
  padding: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}
#admin-login-error { color: #ff6b6b; margin-top: 0.75rem; text-align: center; font-size: 0.9rem; }

#admin-save-bottom {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  display: none;
  background: var(--gold);
  color: #111;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
body.admin-mode #admin-save-bottom { display: block; }

.inline-editor {
  position: absolute;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-velvet);
  border: 1px solid var(--gold);
  padding: 1rem;
  border-radius: 6px;
  z-index: 10001;
  min-width: 200px;
}
.editor-row { display: flex; align-items: center; gap: 0.5rem; }
.editor-row label { font-size: 0.85rem; color: var(--gold); min-width: 70px; }
#apply-inline {
  background: var(--gold);
  color: #111;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
}

[data-editable].editing-active { outline: 1px dashed rgba(197, 165, 114, 0.5); }
[data-editable].active-edit { outline: 2px solid var(--gold); background: rgba(197, 165, 114, 0.08); }

.toast,
#toast {
  display: none !important;
}
.toast-close { background: none; border: none; color: var(--gold); cursor: pointer; margin-left: 1rem; font-size: 1.2rem; }

.seo-block {
  display: none;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-gold);
  font-size: 0.85rem;
  color: var(--text-dim);
}
body.admin-mode .seo-block {
  display: block;
}
.seo-block p { font-size: 0.85rem; margin-top: 0.5rem; }

/* Responsive */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; gap: 3rem; }
  .theater-info-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "about"
      "sidebar";
    row-gap: 2.5rem;
  }
  .theater-info-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
  }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .detail-hero {
    min-height: 78vh;
    padding: 110px var(--container-padding) 70px;
  }
  .detail-hero-kicker {
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    margin-bottom: 1.25rem;
  }
  .detail-hero h1 {
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
  }
  .detail-hero h1.theater-hero-title {
    letter-spacing: 0.02em;
    font-size: clamp(1.5rem, 6.5vw + 0.35rem, 2.65rem);
    line-height: 1.18;
  }
  .theater-meta-strip {
    margin-top: 1.75rem;
  }
  .theater-meta-divider {
    width: 80%;
    height: 1px;
    margin: 0 auto;
  }
  .theater-meta-item {
    flex: 1 1 100%;
  }
  .scroll-hint {
    bottom: 1.25rem;
    letter-spacing: 0.2em;
  }
  .detail-hero-divider {
    margin-bottom: 1.25rem;
  }
  .partner-hero-content {
    padding: 1.75rem 1.25rem;
    background: rgba(10, 10, 10, 0.42);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
  }
  .partner-hero:hover .detail-hero-bg {
    transform: scale(1.02);
  }
  .production-hero { min-height: 70vh; padding-top: 100px; }
  .row-2col { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Постановка: слайдер + билеты (legacy afisha2) ===== */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 620px;
  margin-top: 46px;
  overflow: hidden;
  background-color: #1a0808;
}
.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}
.modern-slider {
  position: relative;
  width: 100%;
  height: min(750px, 85vh);
  overflow: hidden;
  z-index: 2;
}
.modern-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease-slow), visibility 1s;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.modern-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.slide-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: min(920px, 92vw);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.9s var(--ease-slow) 0.35s;
}
.modern-slide.active .slide-content-wrapper {
  opacity: 1;
  transform: translateY(0);
}
.slide-content-wrapper img {
  max-width: 100%;
  max-height: min(65vh, 520px);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--gold);
  object-fit: cover;
}
.modern-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(197, 165, 114, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 56px;
  height: 56px;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 20;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modern-prev-btn { left: 24px; }
.modern-next-btn { right: 24px; }
.modern-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 20;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid var(--border-gold);
}
.modern-indicator {
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
}
.modern-indicator.active {
  background: var(--gold);
}
.slide-delete-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  display: none;
  background: rgba(0,0,0,0.7);
  color: #ff6b6b;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}
body.admin-mode .slide-delete-btn { display: flex; align-items: center; justify-content: center; }

.play-description-section {
  padding: clamp(3rem, 8vw, 5rem) var(--container-padding);
  background: var(--bg-velvet);
}
.play-description-section.performance-page-body {
  background: var(--bg-dark);
  border: none;
  padding-bottom: clamp(3.5rem, 10vw, 6rem);
}
.performance-page-cta.buy-tickets-wrapper {
  margin-top: 2.5rem;
  padding: 0;
  background: transparent;
  border: none;
}

/* Страница спектакля: герой со слайдером на фоне занавеса */
.performance-hero.detail-hero {
  min-height: clamp(420px, 58vh, 720px);
  align-items: center;
  justify-content: flex-start;
  padding:
    clamp(1.35rem, 3.2vw, 2.25rem)
    var(--container-padding)
    clamp(1rem, 2vw, 1.5rem);
}

.performance-hero {
  position: relative;
  min-height: clamp(420px, 58vh, 720px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  margin-top: 46px;
  isolation: isolate;
  padding-bottom: clamp(0.5rem, 2vw, 1rem);
  background: transparent;
  border-bottom: 1px solid rgba(197, 165, 114, 0.18);
}

/* Полноэкранное фото занавеса (не только CSS background) */
.performance-curtain-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  transform: scale(1.02);
}

.performance-hero-bg {
  z-index: 1;
  background-color: transparent;
  transform: none;
  background-image: linear-gradient(rgba(35, 8, 8, 0.35), rgba(12, 4, 4, 0.92)),
    url('https://images.unsplash.com/photo-1514306191717-452ec28c7814?auto=format&fit=crop&w=1280&q=75');
}
body.admin-mode .performance-hero-bg {
  pointer-events: auto;
  cursor: pointer;
}
.performance-hero-overlay {
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 62%,
    rgba(10, 10, 10, 0.28) 100%
  );
}

.performance-slider-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(1220px, 97vw);
  margin: 0 auto;
  padding:
    clamp(1.35rem, 3.2vw, 2.25rem)
    var(--container-padding)
    clamp(1.25rem, 2.8vw, 2rem);
}

.performance-slider-section::before,
.performance-slider-section::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 3;
  border: 1px solid rgba(197, 165, 114, 0.45);
}

.performance-slider-section::before {
  inset: clamp(0.85rem, 2vw, 1.35rem) clamp(0.65rem, 2vw, 1.25rem) auto;
  height: 12px;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(197, 165, 114, 0.14) 0%, transparent 100%);
  box-shadow: 0 0 28px rgba(197, 165, 114, 0.12);
}

.performance-slider-section::after {
  inset: auto clamp(0.65rem, 2vw, 1.25rem) clamp(0.5rem, 1.5vw, 0.85rem);
  height: 10px;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(0deg, rgba(197, 165, 114, 0.1) 0%, transparent 100%);
}

.performance-hero-slider.hero-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(1180px, 96vw);
  min-height: 0;
  margin: 0 auto;
  margin-top: 0;
  overflow: visible;
  background: transparent;
  background-color: transparent;
}

.performance-hero-slider.hero-slider::before {
  display: none;
}

.performance-hero-slider .modern-slider {
  height: clamp(340px, 56vh, 640px);
  border-radius: 14px;
  background: transparent;
  background-color: transparent;
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(197, 165, 114, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.performance-hero-slider .slide-content-wrapper {
  max-width: min(1080px, 93vw);
  opacity: 1;
  transform: none;
}

.performance-hero-slider .modern-slide.active .slide-content-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.performance-hero-slider .slide-content-wrapper img {
  max-height: clamp(300px, 52vh, 600px);
  min-height: 240px;
  min-width: min(300px, 86vw);
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.7),
    0 0 0 2px rgba(197, 165, 114, 0.85),
    0 0 24px rgba(197, 165, 114, 0.15);
}

body.admin-mode .performance-hero-slider .modern-slide img {
  cursor: pointer;
}

.performance-hero-slider .modern-slider-btn {
  width: 58px;
  height: 58px;
  font-size: 1.45rem;
  backdrop-filter: blur(8px);
  background: rgba(10, 8, 6, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.performance-hero-slider .modern-indicators {
  bottom: 18px;
  padding: 8px 16px;
  background: rgba(8, 6, 5, 0.82);
  border-color: rgba(197, 165, 114, 0.55);
  backdrop-filter: blur(10px);
}

@media (max-width: 640px) {
  .performance-hero-slider .modern-slider {
    height: clamp(260px, 48vh, 420px);
  }
  .performance-hero-slider .slide-content-wrapper img {
    max-height: clamp(240px, 46vh, 400px);
    min-height: 200px;
  }
  .performance-hero-slider .modern-prev-btn { left: 12px; }
  .performance-hero-slider .modern-next-btn { right: 12px; }
}

.description-container { max-width: 900px; margin: 0 auto; }
.description-container h2 {
  text-align: center;
  color: var(--gold);
  margin-bottom: 2rem;
}
.description-text { font-size: 1.05rem; line-height: 1.85; color: var(--text-light); }
.description-text p { margin-bottom: 1.25rem; }

.performance-showcase {
  display: none;
}
.performance-gallery-block {
  display: none !important;
}

.buy-tickets-wrapper {
  text-align: center;
  padding: 2.5rem var(--container-padding);
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}
.btn-buy-tickets {
  display: inline-block;
  padding: 1.15rem 3.5rem;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--bg-dark);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.35s var(--ease-slow);
}
.btn-buy-tickets:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
}
body.admin-mode .performance-tickets-cta .btn-buy-tickets {
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(197, 165, 114, 0.45);
}
body.admin-mode .performance-tickets-cta .btn-buy-tickets::after {
  content: ' — нажмите, чтобы изменить ссылку';
  display: block;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--gold-light);
}
.tickets-back { margin-top: 1.25rem; font-size: 0.9rem; }
.tickets-back a { color: var(--gold-light); }

.tickets-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--container-padding) 60px;
}
.tickets-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.tickets-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.tickets-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold);
  margin: 1rem 0;
}
.tickets-kicker {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--gold-light);
}
.tickets-meta, .tickets-price { color: var(--text-light); margin: 0.35rem 0; }
.tickets-empty { text-align: center; padding: 4rem; color: var(--gold); }
.tickets-muted { color: var(--text-dim); font-size: 0.95rem; }

.tickets-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  padding: 1.25rem var(--container-padding);
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--border-gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tickets-breadcrumb-link {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.25s;
}
.tickets-breadcrumb-link:hover { color: var(--gold); }
.tickets-breadcrumb-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-dark);
  opacity: 0.85;
}
.tickets-breadcrumb-current {
  color: rgba(245, 245, 245, 0.75);
}

.tickets-page-content {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.tickets-sidebar .tickets-info-card {
  position: sticky;
  top: 100px;
}
.tickets-fact-price span {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 1.05rem;
}
.tickets-sidebar-buy {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  text-align: center;
  box-sizing: border-box;
}
.tickets-poster-card {
  margin-top: 1.25rem;
  padding: 0;
  overflow: hidden;
}
.tickets-poster-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.tickets-team-grid .tickets-team-card .card-delete-btn {
  display: none !important;
}
.tickets-hero-theatre {
  color: rgba(245, 245, 245, 0.88);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  margin-top: 0.75rem;
  line-height: 1.6;
}
.tickets-bottom-cta { margin-bottom: 0; }
.tickets-breadcrumb-fallback {
  text-align: center;
  margin-top: 1rem;
}
.tickets-breadcrumb-fallback a {
  color: var(--gold-light);
  text-decoration: none;
}
.tickets-breadcrumb-fallback a:hover { color: var(--gold); }

/* ===== Ветка партнёров = палитра «О нас» с главной ===== */
body[data-page-type="theater-info"],
body[data-page-type="theater-afisha"],
body[data-page-type="partner-production"] {
  --bg-dark: #0A0A0A;
  --bg-velvet: #1A0A0A;
  --gold: #C5A572;
  --gold-light: #D4AF37;
  --gold-dark: #8B7355;
  --text-light: #F5F5F5;
  --text-dim: #AAAAAA;
  --border-gold: rgba(197, 165, 114, 0.3);
  /* сплошной тёмный фон как у «О нас», без светлой «простыни» по краям */
  background: #0F0505;
  background-color: #0F0505;
  color: var(--text-light);
}

body[data-page-type="theater-info"] header,
body[data-page-type="theater-afisha"] header,
body[data-page-type="partner-production"] header {
  background: rgba(10, 10, 10, 0.9);
  border-bottom-color: var(--border-gold);
}

body[data-page-type="theater-info"] header.scrolled,
body[data-page-type="theater-afisha"] header.scrolled,
body[data-page-type="partner-production"] header.scrolled {
  background: rgba(10, 10, 10, 0.95);
}

body[data-page-type="theater-info"] .mobile-menu,
body[data-page-type="theater-afisha"] .mobile-menu,
body[data-page-type="partner-production"] .mobile-menu {
  background: rgba(10, 10, 10, 0.98);
}

body[data-page-type="theater-info"] .page-content,
body[data-page-type="theater-afisha"] .page-content,
body[data-page-type="partner-production"] .page-content,
body[data-page-type="partner-production"] .partner-production-page {
  background: #0F0505;
  background-color: #0F0505;
}

/* full-bleed фон секции: max-width больше не обрезает цвет по краям */
body[data-page-type="theater-info"] .theater-info-content.page-content,
body[data-page-type="partner-production"] .partner-production-body.page-content {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding-left: max(var(--container-padding), calc((100% - 1180px) / 2 + var(--container-padding)));
  padding-right: max(var(--container-padding), calc((100% - 1180px) / 2 + var(--container-padding)));
}

body[data-page-type="theater-info"] .info-card,
body[data-page-type="theater-afisha"] .info-card,
body[data-page-type="partner-production"] .info-card {
  background: rgba(26, 10, 10, 0.7);
  border-color: var(--border-gold);
  box-shadow: none;
  backdrop-filter: blur(5px);
}

body[data-page-type="theater-info"] .theater-performance-card,
body[data-page-type="theater-afisha"] .theater-performance-card {
  background: rgba(26, 10, 10, 0.7);
  border-color: var(--border-gold);
}

body[data-page-type="theater-info"] .detail-hero,
body[data-page-type="theater-afisha"] .detail-hero,
body[data-page-type="partner-production"] .detail-hero {
  border-bottom-color: var(--border-gold);
}

body[data-page-type="theater-info"] .theater-meta-strip {
  background: rgba(10, 10, 10, 0.72);
  border-color: var(--border-gold);
  backdrop-filter: blur(8px);
}

body[data-page-type="theater-info"] footer,
body[data-page-type="theater-afisha"] footer,
body[data-page-type="partner-production"] footer {
  background: #0F0505;
}
