/* =====================================================================
   ТЕАТР «РЕЗОНАНС» — ЄДИНА ДИЗАЙН-СИСТЕМА
   Одна тема для всіх сторінок: тепле золото на глибокому темному фоні.
   ===================================================================== */

:root {
  /* Палітра */
  --gold:       #d89a4a;
  --gold-soft:  #f1c27d;
  --gold-deep:  #8a5d25;
  --ink:        #0a0805;   /* основний фон */
  --ink-2:      #14100b;   /* картки/панелі */
  --ink-3:      #1c160f;   /* поля вводу */
  --cream:      #f6e6cf;   /* основний текст */
  --cream-dim:  #d9c3a3;   /* приглушений текст */
  --line:       rgba(216, 154, 74, .18);
  --line-soft:  rgba(216, 154, 74, .10);

  /* Типографіка */
  --font: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Радіуси / тіні */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 50px;
  --shadow: 0 20px 45px rgba(0, 0, 0, .55);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, .4);

  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--cream);
  background-color: var(--ink);
  /* Спільний «театральний» фон: тепле світло згори + віньєтка */
  background-image:
    radial-gradient(1100px 520px at 50% -8%, rgba(216, 154, 74, .16), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(216, 154, 74, .06), transparent 60%),
    linear-gradient(180deg, #0c0906 0%, var(--ink) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }

img { max-width: 100%; display: block; }

/* Доступність: видимий фокус */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   КОНТЕЙНЕР
   --------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.wrap--narrow { max-width: 820px; }

.section { padding: 56px 0; }

/* ---------------------------------------------------------------------
   ТИПОГРАФІКА
   --------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 14px;
}

.page-title {
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 20px rgba(216, 154, 74, .25);
}

.lead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--cream-dim);
  max-width: 60ch;
}

/* ---------------------------------------------------------------------
   ШАПКА / НАВІГАЦІЯ (однакова на всіх сторінках)
   --------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  flex-wrap: wrap;
}

.brand {
  font-size: 20px;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--gold); }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  transition: color .25s, background .25s;
}
.nav a:hover { color: #fff; background: rgba(216, 154, 74, .08); }
.nav a[aria-current="page"] { color: var(--gold); }

.nav .nav-cta {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  color: #1a0f08;
  font-weight: 700;
}
.nav .nav-cta:hover { color: #1a0f08; box-shadow: 0 6px 18px rgba(216, 154, 74, .35); }

/* Тонка золота лінія під шапкою */
.topbar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin-bottom: 8px;
}

.back-link {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.back-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   КНОПКИ
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .25s, color .25s;
}
.btn--primary {
  background: var(--gold);
  color: #1a0f08;
  border-color: var(--gold);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(216, 154, 74, .4);
}
.btn--ghost {
  background: rgba(216, 154, 74, .08);
  color: var(--gold);
  border-color: var(--gold);
}
.btn--ghost:hover { background: var(--gold); color: #1a0f08; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------------
   КАРТКИ
   --------------------------------------------------------------------- */
.panel {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.25,1,.5,1), border-color .3s, background .3s, box-shadow .3s;
  backdrop-filter: blur(12px);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(216, 154, 74, .5);
  background: rgba(255, 255, 255, .06);
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------------
   ПОЛЯ ВВОДУ
   --------------------------------------------------------------------- */
.field {
  width: 100%;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field::placeholder { color: #8b8175; }
.field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 154, 74, .12);
}
.field-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------------
   ПІДВАЛ
   --------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
  padding: 34px 0 44px;
  text-align: center;
  color: var(--cream-dim);
  font-size: 13px;
}
.site-footer .brand { font-size: 16px; letter-spacing: 5px; }
.site-footer__row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 14px 0;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer small { opacity: .55; display: block; margin-top: 10px; }

/* ---------------------------------------------------------------------
   ЗАВІСА (перехід між сторінками) — розмітка вже є в HTML
   --------------------------------------------------------------------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
}
.page-transition__curtain {
  flex: 1;
  background: linear-gradient(180deg, #1a0f08, #0a0805);
  transform: scaleX(0);
  transition: transform .5s ease;
}
.page-transition__curtain--left { transform-origin: left; }
.page-transition__curtain--right { transform-origin: right; }
.page-transition.is-entering .page-transition__curtain { transform: scaleX(0); }
.page-transition__glow { display: none; }

/* ---------------------------------------------------------------------
   АДАПТИВ
   --------------------------------------------------------------------- */
@media (max-width: 640px) {
  .topbar { justify-content: center; text-align: center; }
  .nav { justify-content: center; }
  .section { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =====================================================================
   ДОДАТКОВІ БЛОКИ (за мотивами ft.org.ua)
   ===================================================================== */

/* --- 1. СЛАЙДЕР-БАНЕР НОВИН --- */
.slider {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
  background: var(--ink-2);
}
.slider__track { position: relative; min-height: 280px; }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 34px;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease;
  background-size: cover; background-position: center;
}
.slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,8,5,.92) 0%, rgba(10,8,5,.55) 55%, rgba(10,8,5,.25) 100%);
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide__inner { position: relative; z-index: 2; max-width: 560px; }
.slide__tag {
  display: inline-block; background: var(--gold); color: #1a0f08;
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 4px; margin-bottom: 12px;
}
.slide__title { font-size: clamp(22px, 3.5vw, 30px); color: #fff; margin: 0 0 10px; font-weight: 500; line-height: 1.2; }
.slide__text { color: var(--cream-dim); font-size: 15px; margin: 0 0 8px; }
.slide__date { color: var(--gold); font-size: 13px; letter-spacing: 1px; margin-bottom: 16px; }
.slider__nav {
  position: absolute; bottom: 20px; right: 24px; z-index: 3;
  display: flex; gap: 8px;
}
.slider__dot {
  width: 10px; height: 10px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--gold); background: transparent; transition: .25s; padding: 0;
}
.slider__dot.is-active { background: var(--gold); }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: rgba(10,8,5,.6); border: 1px solid var(--line); color: var(--gold);
  font-size: 20px; display: grid; place-items: center; transition: .25s;
}
.slider__arrow:hover { background: var(--gold); color: #1a0f08; }
.slider__arrow--prev { left: 18px; }
.slider__arrow--next { right: 18px; }

/* --- 2. СТРІЧКА НАЙБЛИЖЧИХ ВИСТАВ --- */
.shows-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 20px; flex-wrap: wrap; }
.shows-head h2 { font-size: 22px; color: #fff; font-weight: 400; letter-spacing: 1px; margin: 0; }
.shows-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.show-card { flex: 0 0 240px; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.show-card__poster { height: 320px; background: #000; background-size: cover; background-position: center; border-radius: var(--r-md) var(--r-md) 0 0; }
.show-card__body { padding: 16px 18px; }
.show-card__date { color: var(--gold); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.show-card__title { color: #fff; font-size: 16px; margin: 6px 0 4px; line-height: 1.3; }
.show-card__genre { color: var(--cream-dim); font-size: 13px; margin-bottom: 12px; }
.show-card__btn {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #1a0f08; background: var(--gold); padding: 8px 16px; border-radius: var(--r-sm);
}
.show-card:hover .show-card__poster { filter: brightness(1.08); }

/* --- 3. ПЛАШКА «КАСА / ПРАВИЛА» В ПІДВАЛІ --- */
.boxoffice {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 10px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px;
  text-align: left;
}
.boxoffice h4 { color: var(--gold); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 10px; }
.boxoffice p { color: var(--cream-dim); font-size: 14px; margin: 0 0 6px; line-height: 1.6; }
.boxoffice a { color: var(--gold); text-decoration: none; }

/* --- 4. МОДАЛКА «ЗАЛИШИТИ ВІДГУК» --- */
.feedback-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft)); color: #1a0f08;
  border: none; cursor: pointer; font-weight: 700; letter-spacing: .5px;
  padding: 14px 20px; border-radius: var(--r-pill); box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: transform .2s, box-shadow .2s;
}
.feedback-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(216,154,74,.4); }

.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,4,2,.75); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  width: 100%; max-width: 460px; padding: 34px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); position: relative;
}
.modal h3 { color: #fff; font-weight: 500; margin: 0 0 6px; }
.modal p.hint { color: var(--cream-dim); font-size: 14px; margin: 0 0 20px; }
.modal .field { margin-bottom: 14px; }
.modal textarea.field { min-height: 110px; resize: vertical; font-family: inherit; }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--cream-dim);
  cursor: pointer; font-size: 16px; line-height: 1; transition: .25s;
}
.modal__close:hover { color: #fff; border-color: var(--gold); }
#feedbackMsg { font-size: 14px; margin-top: 12px; text-align: center; display: none; }
