:root {
  --red: #e93333;
  --red-dark: #c62828;
  --yellow: #f9dc15;
  --ink: #1b1b1b;
  --text: #2c2f36;
  --muted: #6b7280;
  --bg: #f7f5f2;
  --card: #ffffff;
  --line: #e8e4de;
  --shadow: 0 12px 30px rgba(27, 27, 27, 0.12);
  --radius: 18px;
  --topbar: 60px;
  --tabbar: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 220, 21, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(233, 51, 51, 0.12), transparent 24%),
    linear-gradient(180deg, #fffdf8 0%, var(--bg) 40%, #efeae3 100%);
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar) + 20px);
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
h1, h2, h3, .brand, .btn, .hero-title {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.01em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(27, 27, 27, 0.94);
  backdrop-filter: blur(10px);
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
}
.brand img { border-radius: 50%; background: #fff; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  border-radius: 12px;
  font-size: 20px;
}

.drawer {
  position: fixed;
  top: var(--topbar);
  right: 0;
  width: min(320px, 88vw);
  height: calc(100vh - var(--topbar));
  background: #151515;
  z-index: 50;
  padding: 18px;
}
.drawer-inner { display: grid; gap: 10px; }
.drawer-link {
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}
.drawer-link.is-active { background: var(--red); }
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 45;
}

.page { padding: 0 0 24px; }
.section {
  margin: 18px 14px;
  padding: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 10px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 4px;
  background: var(--red);
  border-radius: 999px;
}
.lead { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.empty { color: var(--muted); font-style: italic; }

.hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.72));
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 28px 16px;
  animation: fadeUp 0.8s ease both;
}
.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 12vw, 4.4rem);
  font-weight: 800;
  text-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.hero-tagline {
  margin: 8px 0 0;
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.05rem;
}

.promo-card {
  margin: -28px 14px 0;
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #d81b60, var(--red) 55%, #ff7043);
  color: #fff;
  box-shadow: var(--shadow);
  animation: fadeUp 0.9s ease both;
}
.promo-text h2 { margin: 0 0 12px; font-size: 1.3rem; }
.promo-posters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.promo-posters img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 0.9rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.city-filter {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.city-filter select,
.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.events { display: grid; gap: 14px; }
.event-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.event-card img {
  width: 110px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
}
.event-card h3 { margin: 0 0 6px; font-size: 1.05rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.photo-grid.wide { grid-template-columns: repeat(2, 1fr); }
.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.quiz-banner {
  background:
    linear-gradient(135deg, rgba(27,27,27,0.88), rgba(233,51,51,0.75)),
    url("/media/2023/03/cirk_quiz1_1-768x450.webp") center/cover;
  color: #fff;
}
.quiz-banner .section-head h2,
.quiz-banner h3,
.quiz-banner p { color: #fff; }
.quiz-banner .section-head h2::after { background: var(--yellow); }

.reviews { display: grid; gap: 12px; margin-bottom: 14px; }
.review-card {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.review-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.review-head img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.review-head strong, .review-head span { display: block; }

.faq { display: grid; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 12px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}
.faq-body {
  padding: 0 0 12px;
  color: var(--text);
  white-space: pre-wrap;
}

.form { display: grid; gap: 12px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.contact-block {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.notice {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #fff8dc;
  border: 1px solid #f0e0a0;
}
.notice.success {
  background: #e8f8ee;
  border-color: #b7e4c7;
}

.quiz-form { display: grid; gap: 16px; }
.quiz-q {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.quiz-q legend { font-weight: 700; padding: 0 4px; }
.quiz-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
}
.quiz-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7c2, #ffe0e0);
  border: 1px solid #f0c8c8;
}

.footer {
  margin: 8px 14px 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: #151515;
  color: #fff;
}
.footer-brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
}
.footer .muted { color: #a7a7a7; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0;
}
.footer-links a { color: var(--yellow); }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: var(--tabbar);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(27, 27, 27, 0.96);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  color: #cfcfcf;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.tabbar a.is-active { color: var(--yellow); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@media (min-width: 760px) {
  .page { max-width: 920px; margin: 0 auto; }
  .promo-card { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .photo-grid, .photo-grid.wide { grid-template-columns: repeat(3, 1fr); }
  .events { grid-template-columns: 1fr 1fr; }
}
