:root {
  --crimson: #b11226;
  --crimson-deep: #7a0c1a;
  --ink: #161311;
  --ink-soft: #3a342e;
  --paper: #f7f2eb;
  --cream: #fffaf4;
  --gold: #c4a35a;
  --line: rgba(22, 19, 17, 0.12);
  --shadow: 0 24px 60px rgba(22, 19, 17, 0.14);
  --max: 1180px;
  --nav-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 0.72rem; font-weight: 600; color: var(--crimson);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--crimson); }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: 1.08; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; }
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
}
.site-header.scrolled { border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 650; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand small { font-weight: 500; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; font-size: 0.92rem; color: var(--ink-soft); border-radius: 999px; }
.nav a:hover, .nav a.active { color: var(--ink); background: rgba(177, 18, 38, 0.08); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--cream); border-radius: 12px; cursor: pointer; }
.menu-btn::before { content: "☰"; font-size: 1.2rem; }
.hero {
  position: relative; min-height: min(88vh, 860px);
  display: grid; place-items: end start; overflow: hidden; color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,19,17,.18), rgba(22,19,17,.7) 75%),
    linear-gradient(90deg, rgba(122,12,26,.32), transparent 55%);
}
.hero-content { position: relative; padding: 0 0 84px; z-index: 1; }
.hero .kicker, .hero .kicker::before { color: #f3d27a; background: #f3d27a; }
.hero .kicker { background: transparent; }
.hero p { max-width: 52ch; color: rgba(255,255,255,.88); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600;
}
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-deep); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost.dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost.dark:hover { background: var(--ink); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: -48px; position: relative; z-index: 2; }
.stat { background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: "Cormorant Garamond", serif; font-size: 2rem; }
section { padding: 88px 0; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.frame img { width: 100%; height: 480px; object-fit: cover; border-radius: 28px; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card { background: var(--cream); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 22px; }
.card a { color: var(--crimson); font-weight: 600; }
.band { background: var(--ink); color: #f7f2eb; }
.band .kicker, .band .kicker::before { color: var(--gold); background: var(--gold); }
.band .kicker { background: transparent; }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.poster { background: #efe4cf; border-radius: 28px; overflow: hidden; }
.poster img { width: 100%; height: auto; object-fit: contain; display: block; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.meta div { border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.meta small { display: block; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.gallery-grid a { display: block; overflow: hidden; border-radius: 16px; height: 210px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid a:nth-child(1) { grid-column: span 2; height: 320px; }
.page-hero { padding: 72px 0 36px; }
.schedule { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.day { background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.day ul { margin: 0; padding: 0; list-style: none; }
.day li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.day time { color: var(--crimson); white-space: nowrap; }
.disciplines { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .9rem; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rule { background: var(--cream); border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
.entry-card {
  padding: 26px; border-radius: 24px; background: var(--cream);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.results-sheet, .doc-sheet {
  display: block; background: #fff; border-radius: 24px; padding: 16px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.results-sheet img, .doc-sheet img { width: 100%; height: auto; object-fit: contain; }
.sponsor-row {
  display: grid !important;
  grid-template-columns: 210px 1fr 210px !important;
  gap: 24px; margin: 0 0 28px; align-items: start;
}
.sponsor-row .mocboj-title { flex: 1 1 280px; text-align: center; min-width: 240px; }
.sponsor {
  flex: 0 0 200px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: #fff3d1; border: 3px solid #f5a623; border-radius: 12px; padding: 12px;
}
.sponsor img {
  width: 180px; height: 150px; object-fit: contain; background: #fff;
  display: block !important; visibility: visible !important;
}
.sponsor .ad-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 12px; border-radius: 6px;
  background: #f5a623; color: #1a1a1a; font-size: .85rem; font-weight: 800;
}
.sponsor:hover .ad-link { background: #d4890a; }
.pdf-frame {
  width: 100%; height: min(78vh, 920px); border: 1px solid var(--line);
  border-radius: 16px; background: #fff; margin-top: 20px;
}
.photo-feed {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; margin: 24px 0;
}
.photo-feed a { display: block; overflow: hidden; border-radius: 16px; height: 280px; }
.photo-feed img { width: 100%; height: 100%; object-fit: cover; }
.narrow-sheet { max-width: 520px; margin-inline: auto; }
.accordion { display: grid; gap: 10px; }
.accordion article { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.accordion button { width: 100%; text-align: left; background: transparent; border: 0; padding: 16px 18px; font-weight: 600; cursor: pointer; }
.accordion .panel { display: none; padding: 0 18px 16px; color: var(--ink-soft); }
.accordion article.open .panel { display: block; }
.table-like { width: 100%; border-collapse: collapse; }
.table-like th, .table-like td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 36px; max-width: 720px; }
.contact-card { background: var(--cream); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.map { margin-top: 28px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 360px; border: 0; }
.site-footer { background: #110e0c; color: #efe6d8; padding: 48px 0 28px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.legal { padding-top: 18px; font-size: .85rem; color: rgba(239,230,216,.65); }
.lightbox { position: fixed; inset: 0; background: rgba(10,8,7,.92); display: none; place-items: center; z-index: 80; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 12px; }
.lightbox button { position: absolute; top: 18px; right: 18px; background: transparent; color: #fff; border: 0; font-size: 2rem; cursor: pointer; }
.timeline { display: grid; gap: 8px; }
.t-item { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.t-item strong { color: var(--crimson); font-family: "Cormorant Garamond", serif; font-size: 1.3rem; }
@media (max-width: 980px) {
  .stats, .cards, .split, .band-grid, .schedule, .rules, .contact-grid, .gallery-grid, .photo-feed { grid-template-columns: 1fr; }
  .sponsor-row { grid-template-columns: 1fr !important; }
  .sponsor { max-width: 220px; margin-inline: auto; }
  .photo-feed a { height: 240px; }
  .gallery-grid a, .gallery-grid a:nth-child(1) { height: 240px; grid-column: auto; }
  .nav { position: fixed; inset: var(--nav-h) 16px auto; display: none; flex-direction: column; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
  .nav.open { display: flex; }
  .menu-btn { display: grid; }
  .frame img { height: 320px; }
  .t-item { grid-template-columns: 1fr; }
}
