/* ==========================================================================
   Театр кукол «Друзья» — Стилевая система
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Переменные
   -------------------------------------------------------------------------- */
:root {
  --bg: #0a0610;
  --bg-card: #130d1a;
  --bg-card2: #1c1226;
  --bg-glass: rgba(20, 12, 28, 0.8);

  --velvet: #6b0d20;
  --velvet-light: #8d1028;
  --velvet-glow: rgba(107, 13, 32, 0.45);

  --gold: #d4a84b;
  --gold-light: #f0ca76;
  --gold-dark: #a87d2a;
  --gold-glow: rgba(212, 168, 75, 0.25);

  --text: #f0e8df;
  --text-muted: #b09fbd;
  --text-dim: rgba(240, 232, 223, 0.5);

  --border: rgba(255, 255, 255, 0.07);
  --border-gold: rgba(212, 168, 75, 0.3);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 9999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 0.2s;
  --normal: 0.35s;

  --shadow-sm: 0 4px 14px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.7);
  --shadow-gold: 0 0 30px rgba(212, 168, 75, 0.2);
  --shadow-velvet: 0 0 40px rgba(107, 13, 32, 0.5);

  --max-w: 1240px;

  /* Сидения */
  --seat-free: #271739;
  --seat-free-b: #5a3c72;
  --seat-sel: #d4a84b;
  --seat-vip: #6b0d20;
  --seat-taken: #2c1f35;
}

/* --------------------------------------------------------------------------
   2. Сброс
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 10% 15%, rgba(107,13,32,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 85%, rgba(212,168,75,0.07) 0%, transparent 50%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; transition: color var(--fast) var(--ease); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea {
  font-family: inherit; font-size: inherit;
  border: none; outline: none; background: none;
}
button { cursor: pointer; }

/* --------------------------------------------------------------------------
   3. Утилиты
   -------------------------------------------------------------------------- */
.container {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 1.5rem;
}
.section { padding: 6rem 0; }
.section-dark {
  background: linear-gradient(180deg, rgba(19,13,26,0.6) 0%, rgba(10,6,16,0.8) 100%);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem auto;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--gold-light); }
.section-desc { color: var(--text-muted); font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   4. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.65rem; padding: 0.85rem 2rem;
  border-radius: var(--r-full);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.03em;
  transition: all var(--normal) var(--ease);
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity var(--fast);
}
.btn:hover::after { opacity: 1; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: #0a0610;
  box-shadow: 0 4px 20px rgba(212,168,75,0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(212,168,75,0.55);
}

.btn-velvet {
  background: linear-gradient(135deg, var(--velvet-light), var(--velvet));
  color: #fff;
  border: 1px solid rgba(247,214,131,0.25);
  box-shadow: 0 4px 20px rgba(107,13,32,0.4);
}
.btn-velvet:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107,13,32,0.7);
}

.btn-outline-white {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212,168,75,0.08);
  transform: translateY(-2px);
}

.btn-nav {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0a0610;
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px rgba(212,168,75,0.3);
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(212,168,75,0.5); }

.btn-poster {
  background: transparent;
  border: 1.5px solid var(--border-gold);
  color: var(--text);
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
}
.btn-poster:hover {
  background: rgba(212,168,75,0.12);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 1.1rem 2rem;
  font-size: 1rem;
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   5. Навигация
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  padding: 1.1rem 0;
  background: rgba(10, 6, 16, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all var(--normal) var(--ease);
}
.navbar.scrolled {
  padding: 0.7rem 0;
  background: rgba(10, 6, 16, 0.96);
  border-bottom-color: var(--border-gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 0.9rem; }
.logo-emblem { width: 46px; height: 46px; flex-shrink: 0; }
.logo-emblem svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(212,168,75,0.4)); }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.1; letter-spacing: 0.04em;
}
.logo-sub {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold); opacity: 0.8;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 1.8rem;
}
.nav-link {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  position: relative; padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--fast) var(--ease);
  border-radius: 2px;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; padding: 4px;
}
.hamburger span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: all var(--fast) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 5rem; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.3) contrast(1.15) saturate(0.85);
  animation: heroZoom 25s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(10,6,16,0.3) 0%, rgba(10,6,16,0.85) 70%),
    linear-gradient(to bottom, rgba(10,6,16,0.4) 0%, rgba(10,6,16,0.2) 50%, rgba(10,6,16,0.95) 100%);
}

.hero-layout {
  position: relative; z-index: 1;
  padding: 2rem 0;
}
.hero-content { max-width: 680px; }

.hero-label {
  display: inline-block;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--gold); font-weight: 600;
  padding: 0.5rem 1.25rem;
  background: rgba(212,168,75,0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-full);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
  animation: fadeUp 0.8s 0.1s var(--ease) both;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.1rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s var(--ease) both;
}

.hero-btns {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.8s 0.3s var(--ease) both;
}

.hero-counters {
  display: flex; align-items: center; gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fadeUp 0.8s 0.4s var(--ease) both;
}
.counter { display: flex; flex-direction: column; }
.counter-num {
  font-family: var(--serif); font-size: 2rem; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.counter-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.counter-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.15);
}

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em;
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

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

/* --------------------------------------------------------------------------
   7. О театре
   -------------------------------------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.about-lead {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.about-body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.about-persons {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.person-mini {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--normal) var(--ease);
}
.person-mini:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateX(4px);
}
.person-mini-photo {
  width: 70px; height: 70px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--border-gold);
  flex-shrink: 0;
}
.person-mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-mini-info { display: flex; flex-direction: column; gap: 0.2rem; }
.person-mini-role {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gold); font-weight: 600;
}
.person-mini-name {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
}
.person-mini-desc { font-size: 0.82rem; color: var(--text-muted); }

.about-quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  padding: 2rem;
  margin-bottom: 1.75rem;
  position: relative;
}
.about-quote--second { border-left-color: var(--velvet-light); }
.quote-mark {
  font-family: var(--serif); font-size: 4rem; line-height: 0.5;
  color: var(--gold); opacity: 0.3; margin-bottom: 1rem;
  font-style: italic;
}
.about-quote p {
  font-family: var(--serif);
  font-size: 1.15rem; font-style: italic; line-height: 1.7;
  color: var(--text); margin-bottom: 1rem;
}
.about-quote cite {
  font-size: 0.85rem; color: var(--gold); font-style: normal; font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. Галерея сцен
   -------------------------------------------------------------------------- */
.gallery-filter {
  display: flex; justify-content: center; gap: 0.75rem;
  flex-wrap: wrap; margin-bottom: 2.5rem;
}
.gal-btn {
  padding: 0.55rem 1.3rem;
  border-radius: var(--r-full);
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 500;
  transition: all var(--fast) var(--ease);
}
.gal-btn.active, .gal-btn:hover {
  background: var(--velvet);
  color: var(--text);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-velvet);
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 380px;
  gap: 1.25rem;
}
.gal-item--large { grid-column: span 2; grid-row: span 2; }
.gal-item--wide { grid-column: span 2; }

.gal-item {
  position: relative; 
  border-radius: var(--r-md);
  overflow: hidden; 
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  
  /* Базовый слой для всех карточек */
  z-index: 1; 
  
  /* Фиксы для Safari/Chrome, чтобы overflow: hidden не ломался */
  isolation: isolate;
  transform: translateZ(0);
}

/* ФИКС: Карточка при наведении становится выше всех соседей в сетке */
.gal-item:hover {
  z-index: 10;
}

.gal-item img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.7s var(--ease);
  will-change: transform;
  
  /* Картинка сидит на самом нижнем слое внутри карточки */
  position: relative;
  z-index: -1; 
}

.gal-item:hover img { 
  transform: scale(1.08); 
}

.gal-overlay {
  position: absolute; 
  inset: 0;
  background: linear-gradient(to top, rgba(10,6,16,0.92) 0%, transparent 55%);
  display: flex; 
  flex-direction: column; 
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0; 
  transition: opacity var(--normal) var(--ease);
  
  /* Оверлей и текст гарантированно перекрывают картинку */
  z-index: 2; 
}

.gal-item:hover .gal-overlay { 
  opacity: 1; 
}
.gal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,6,16,0.92) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0; transition: opacity var(--normal) var(--ease);z-index: 2;
}
.gal-item:hover .gal-overlay { opacity: 1; }

.gal-category {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gold); font-weight: 600; margin-bottom: 0.4rem;
}
.gal-caption {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   9. Афиша спектаклей
   -------------------------------------------------------------------------- */
.shows-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.show-poster {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--normal) var(--ease);
  position: relative;
}
.show-poster:hover {
  border-color: var(--border-gold);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-velvet);
}

.show-poster--featured {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.poster-featured-label {
  position: absolute; top: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--velvet);
  color: var(--gold-light);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border-gold);
  z-index: 5;
  white-space: nowrap;
}

.poster-img-wrap {
  position: relative; height: 300px; overflow: hidden;
}
.poster-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.show-poster:hover .poster-img-wrap img { transform: scale(1.06); }

.poster-ribbon {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--velvet);
  color: #fff;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.15);
}

.poster-age {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(10,6,16,0.7);
  border: 1.5px solid var(--border-gold);
  color: var(--gold);
  font-size: 0.85rem; font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
  backdrop-filter: blur(8px);
}

.poster-dates {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,6,16,0.95) 0%, transparent 100%);
  padding: 1.25rem 1.25rem 0.75rem;
  display: flex; gap: 1rem;
}
.poster-date-item {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(212,168,75,0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.8rem;
  min-width: 70px;
}
.poster-date-day {
  font-size: 0.7rem; text-transform: uppercase;
  color: var(--text-muted); letter-spacing: 0.1em;
}
.poster-date-num { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.poster-date-time { font-size: 1rem; font-weight: 700; color: var(--gold); }

.poster-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }

.poster-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--gold);
  margin-bottom: 0.9rem;
}
.poster-meta-item { display: flex; align-items: center; gap: 0.35rem; }

.poster-title {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  line-height: 1.2; margin-bottom: 0.9rem;
}

.poster-synopsis {
  color: var(--text-muted); font-size: 0.92rem;
  line-height: 1.65; flex: 1; margin-bottom: 1.5rem;
}

.poster-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.poster-price { display: flex; flex-direction: column; }
.price-from { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }
.price-amount {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   10. Форма заказа билетов
   -------------------------------------------------------------------------- */
.booking-section {
  background: linear-gradient(180deg, #0a0610 0%, #100815 100%);
}

.booking-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.step {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--normal);
}
.step.active {
  border-color: var(--gold);
  background: rgba(212,168,75,0.08);
}
.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
}
.step.active .step-num {
  background: var(--gold);
  color: #0a0610;
  border-color: var(--gold);
}
.step-txt { font-size: 0.88rem; font-weight: 600; }
.step-arrow { color: var(--text-dim); font-size: 1.5rem; }

.booking-wrap {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2.5rem;
  align-items: start;
}

.booking-form-col {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.form-section { margin-bottom: 2.25rem; }
.form-section-title {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 700;
  color: var(--gold-light); margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-label {
  font-size: 0.85rem; font-weight: 600; color: var(--gold-light);
}
.form-select, .form-input {
  width: 100%; padding: 0.85rem 1.1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  transition: border-color var(--fast);
  appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a84b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-select:focus, .form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,75,0.12);
}
.form-select option { background: var(--bg-card); }
.form-textarea { resize: vertical; min-height: 100px; }

/* Схема зала */
.stage-label {
  text-align: center;
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--gold);
  padding: 0.6rem 2rem;
  background: linear-gradient(180deg, var(--velvet) 0%, transparent 100%);
  border-top: 2.5px solid var(--gold);
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  width: 75%; margin: 0 auto 2rem auto;
  box-shadow: 0 -8px 20px rgba(212,168,75,0.15);
}
.seats-grid {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.7rem;
  margin-bottom: 1.75rem;
}
.seat-row-wrap { display: flex; align-items: center; gap: 0.5rem; }
.row-label {
  font-size: 0.7rem; color: var(--text-dim);
  width: 20px; text-align: center; flex-shrink: 0;
}
.seat-row { display: flex; gap: 0.5rem; }
.seat {
  width: 34px; height: 34px;
  border-radius: 6px 6px 4px 4px;
  background: var(--seat-free);
  border: 1px solid var(--seat-free-b);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: var(--text-dim);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  position: relative;
}
.seat::before {
  content: '';
  position: absolute; top: 2px; left: 3px; right: 3px; height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.seat:hover:not(.taken) {
  background: rgba(212,168,75,0.3);
  border-color: var(--gold);
  transform: scale(1.15) translateY(-2px);
  z-index: 2;
}
.seat.selected {
  background: var(--gold);
  border-color: var(--gold-light);
  color: #0a0610;
  font-weight: 700;
  box-shadow: 0 0 12px var(--gold);
}
.seat.taken {
  background: var(--seat-taken);
  border-color: transparent;
  color: rgba(255,255,255,0.12);
  cursor: not-allowed;
}
.seat.vip {
  background: rgba(107,13,32,0.5);
  border-color: rgba(140,20,45,0.8);
}
.seat.vip.selected {
  background: var(--gold);
  border-color: var(--gold-light);
}

.seat-legend {
  display: flex; justify-content: center; gap: 1.5rem;
  flex-wrap: wrap; font-size: 0.8rem; color: var(--text-muted);
}
.legend-item { display: flex; align-items: center; gap: 0.5rem; }
.seat-dot {
  width: 14px; height: 14px; border-radius: 3px;
}
.seat-dot--free { background: var(--seat-free); border: 1px solid var(--seat-free-b); }
.seat-dot--selected { background: var(--gold); }
.seat-dot--vip { background: rgba(107,13,32,0.6); border: 1px solid rgba(140,20,45,0.8); }
.seat-dot--taken { background: var(--seat-taken); }

/* Чек */
.booking-check {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: sticky; top: 6rem;
}
.check-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}
.check-header h3 {
  font-family: var(--serif); font-size: 1.3rem;
  color: var(--gold-light);
}
.check-rows { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.check-row {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; line-height: 1.5;
}
.check-key { color: var(--text-muted); }
.check-val { text-align: right; max-width: 55%; font-weight: 500; }
.check-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.3rem; font-weight: 700;
  color: var(--gold); padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.check-note {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.78rem; color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. Отзывы
   -------------------------------------------------------------------------- */
.reviews-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
}

.reviews-feed {
  display: flex; flex-direction: column; gap: 1.5rem;
  max-height: 650px; overflow-y: auto;
  padding-right: 0.5rem;
}
.reviews-feed::-webkit-scrollbar { width: 5px; }
.reviews-feed::-webkit-scrollbar-track { background: transparent; }
.reviews-feed::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: var(--r-full);
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  transition: all var(--fast) var(--ease);
}
.review-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}
.review-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.85rem;
}
.review-author { font-weight: 700; font-size: 1rem; }
.review-show-tag { font-size: 0.78rem; color: var(--gold); margin-top: 0.15rem; }
.review-stars { color: var(--gold); font-size: 1rem; letter-spacing: 1px; }
.review-text {
  color: var(--text-muted); font-size: 0.93rem;
  line-height: 1.65; margin-bottom: 0.75rem;
  font-style: italic;
}
.review-date { font-size: 0.75rem; color: var(--text-dim); }

.review-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-velvet);
  position: sticky; top: 6rem;
}
.review-form-head { margin-bottom: 1.75rem; }
.review-form-head h3 {
  font-family: var(--serif); font-size: 1.5rem;
  font-weight: 700; margin-bottom: 0.4rem;
}
.review-form-head p { color: var(--text-muted); font-size: 0.9rem; }

.star-row { margin-bottom: 1.5rem; }
.stars-select { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.star-btn {
  font-size: 1.8rem; color: rgba(255,255,255,0.2);
  transition: all var(--fast);
  line-height: 1;
}
.star-btn.selected { color: var(--gold); }
.star-btn:hover { transform: scale(1.2); }

/* --------------------------------------------------------------------------
   12. Контакты
   -------------------------------------------------------------------------- */
.contacts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.contact-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--normal) var(--ease);
}
.contact-tile:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.contact-icon {
  font-size: 2rem; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: rgba(212,168,75,0.08);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
}
.contact-tile h4 {
  font-family: var(--serif); font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.contact-tile p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }
.contact-tile small { font-size: 0.78rem; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #060309;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1.25rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.footer-brand strong { color: var(--text); }

.footer-links-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-col h5 {
  font-family: var(--serif); font-size: 1rem;
  color: var(--gold-light); margin-bottom: 0.85rem;
}
.footer-links-col a {
  color: var(--text-muted); font-size: 0.88rem;
  padding: 0.2rem 0;
  transition: color var(--fast);
}
.footer-links-col a:hover { color: var(--gold); }

.footer-newsletter h5 {
  font-family: var(--serif); font-size: 1rem;
  color: var(--gold-light); margin-bottom: 0.75rem;
}
.footer-newsletter p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form .form-input { flex: 1; padding: 0.65rem 1rem; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-dim); font-size: 0.82rem;
  flex-wrap: wrap; gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   14. Модальное окно билета
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,6,16,0.92);
  backdrop-filter: blur(14px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity var(--normal) var(--ease);
}
.modal-overlay.active {
  opacity: 1; pointer-events: all;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-xl);
  max-width: 520px; width: 100%;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transform: translateY(24px) scale(0.97);
  transition: transform var(--normal) var(--ease);
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-size: 1.75rem; color: var(--text-muted);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all var(--fast);
}
.modal-close:hover { color: var(--gold); background: rgba(212,168,75,0.1); }

.ticket-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.ticket-modal-title {
  font-family: var(--serif); font-size: 1.8rem;
  color: var(--gold-light); margin-bottom: 0.5rem;
}
.ticket-modal-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }

.e-ticket {
  background: linear-gradient(135deg, #1f0a18, #0e0617);
  border: 1.5px solid var(--gold);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.e-ticket-top { padding: 1.75rem; }
.e-ticket-theater {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--gold); margin-bottom: 0.5rem;
}
.e-ticket-show {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  margin-bottom: 0.4rem;
}
.e-ticket-date { color: var(--gold-light); font-size: 0.9rem; margin-bottom: 0.5rem; }
.e-ticket-seats { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; }
.e-ticket-name { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.e-ticket-price {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
  color: var(--gold);
}
.e-ticket-tear {
  height: 1px; margin: 0 1.5rem;
  background: repeating-linear-gradient(90deg, transparent, transparent 6px, var(--border-gold) 6px, var(--border-gold) 12px);
}
.e-ticket-bottom {
  padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.e-ticket-qr {
  width: 100px; height: 100px;
  background: #fff;
  padding: 6px; border-radius: 6px;
}
.e-ticket-qr svg { width: 100%; height: 100%; }
.e-ticket-qr-hint { font-size: 0.75rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   15. Адаптивность
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .shows-row { 
    grid-template-columns: 1fr 1fr; 
  }
  .show-poster:last-child { 
    grid-column: span 2; 
    max-width: 480px; 
    justify-self: center; /* Исправлено: центрирование в Grid */
    width: 100%;
  }
  .footer-top { 
    grid-template-columns: 1fr 1fr; 
  }
  .booking-wrap { 
    grid-template-columns: 1fr; 
  }
  .booking-check { 
    position: static; 
  }
  .about-layout { 
    grid-template-columns: 1fr; 
    gap: 2.5rem; 
  }
}
@media (max-width: 900px) {
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(200px, auto); /* Исправлено: строки подстроятся под контент */
  }
  .gal-item--large { 
    grid-column: span 2; 
  }
  .gal-item--wide { 
    grid-column: span 2; 
  }
  .reviews-layout { 
    grid-template-columns: 1fr; 
  }
  .review-form-card { 
    position: static; 
  }
  .contacts-row { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

/* ДОБАВЛЕНО: Смартфоны (экраны меньше 600px) */
@media (max-width: 600px) {
  .shows-row,
  .footer-top,
  .contacts-row,
  .gallery-mosaic {
    grid-template-columns: 1fr; /* Все двухколоночные сетки перестраиваются в одну линию */
  }
  
  .show-poster:last-child,
  .gal-item--large,
  .gal-item--wide {
    grid-column: span 1; /* Сброс растягивания на 2 колонки */
    max-width: 100%;
  }
}




