:root {
  --bg: #f4f5ef;
  --surface: #ffffff;
  --primary: #ef4f2f;
  --secondary: #16352d;
  --text: #13251f;
  --button-text: #ffffff;
  --muted: #67736f;
  --line: rgba(19, 37, 31, .14);
  --shadow: 0 24px 70px rgba(12, 31, 26, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 72px; padding: 12px clamp(18px, 4vw, 58px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.event-logo { max-width: 172px; max-height: 48px; object-fit: contain; }
.home-link { text-decoration: none; color: var(--muted); font-weight: 750; }

.hero { position: relative; min-height: min(560px, 65vh); display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 93%, transparent) 0%, color-mix(in srgb, var(--bg) 76%, transparent) 52%, color-mix(in srgb, var(--bg) 15%, transparent) 100%); }
.hero-copy { position: relative; z-index: 1; width: min(760px, 92vw); padding: clamp(42px, 8vw, 105px) clamp(20px, 7vw, 92px); }
.eyebrow { margin: 0 0 12px; color: var(--primary); font-size: .82rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; max-width: 750px; font-size: clamp(2.5rem, 7vw, 5.8rem); line-height: .96; letter-spacing: -.065em; }
.hero p:not(.eyebrow) { max-width: 590px; margin: 22px 0 0; font-size: clamp(1rem, 2vw, 1.25rem); color: color-mix(in srgb, var(--text) 78%, transparent); }

.page { width: min(1180px, 92vw); margin: 0 auto; padding: 62px 0 90px; }
.search-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: stretch; }
.info-card, .search-card, .lead-card, .event-card {
  border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow);
}
.info-card { padding: clamp(26px, 5vw, 52px); background: var(--secondary); color: white; }
.number { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); font-weight: 950; }
h2 { margin: 18px 0 10px; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -.045em; }
.info-card p { color: rgba(255,255,255,.75); }
.privacy-list { display: grid; gap: 12px; margin-top: 30px; }
.privacy-item { display: flex; gap: 10px; align-items: center; font-size: .94rem; font-weight: 700; }
.search-card { padding: clamp(24px, 4vw, 42px); }
.dropzone { position: relative; min-height: 260px; display: grid; place-items: center; overflow: hidden; border: 2px dashed color-mix(in srgb, var(--primary) 45%, var(--line)); border-radius: 23px; background: color-mix(in srgb, var(--primary) 5%, var(--surface)); cursor: pointer; text-align: center; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone strong { display: block; font-size: 1.12rem; }
.dropzone span { color: var(--muted); font-size: .9rem; }
.selfie-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-icon { margin: 0 auto 10px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--surface); color: var(--primary); box-shadow: 0 12px 30px rgba(0,0,0,.1); font-size: 1.5rem; }
.consent { display: flex; gap: 10px; margin: 17px 0; color: var(--muted); font-size: .88rem; }
.consent input { width: 18px; height: 18px; accent-color: var(--primary); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { appearance: none; border: 0; border-radius: 999px; padding: 14px 23px; color: var(--button-text); background: var(--primary); font-weight: 850; cursor: pointer; text-decoration: none; text-align: center; transition: transform .2s, opacity .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.btn.secondary { color: var(--text); background: color-mix(in srgb, var(--secondary) 12%, var(--surface)); }
.btn.small { padding: 10px 16px; font-size: .88rem; }

.status { margin-top: 18px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); color: var(--text); font-weight: 700; }
.progress { height: 8px; margin-top: 12px; overflow: hidden; border-radius: 10px; background: var(--line); }
.progress::after { content: ""; display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--primary); animation: searching 1.2s ease-in-out infinite alternate; }
@keyframes searching { from { transform: translateX(-90%); } to { transform: translateX(230%); } }

.lead-card { width: min(680px, 100%); margin: 30px auto 0; padding: clamp(25px, 5vw, 46px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 850; }
.field input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px; color: var(--text); background: var(--bg); outline: none; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }

.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 58px 0 22px; }
.gallery-head h2 { margin: 0; }
.gallery { columns: 3 260px; column-gap: 18px; }
.photo-card { position: relative; break-inside: avoid; margin: 0 0 18px; overflow: hidden; border-radius: 20px; background: var(--surface); box-shadow: 0 12px 35px rgba(12,31,26,.12); }
.photo-card img { width: 100%; height: auto; min-height: 190px; object-fit: cover; }
.photo-actions { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 8px 20px rgba(0,0,0,.18); cursor: pointer; }

.index-hero { padding: 75px 0 40px; }
.index-hero h1 { max-width: 900px; }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.event-card { overflow: hidden; text-decoration: none; transition: transform .2s; }
.event-card:hover { transform: translateY(-5px); }
.event-card img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.event-card-copy { padding: 24px; }
.event-card h2 { margin: 0 0 8px; font-size: 1.65rem; }
.tag { display: inline-flex; margin-top: 8px; padding: 7px 11px; border-radius: 999px; color: #0b6b42; background: #dbf8e9; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.footer { padding: 34px 20px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .88rem; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 120px); max-width: 90vw; padding: 13px 18px; border-radius: 999px; color: white; background: #13251f; box-shadow: var(--shadow); font-weight: 750; transition: transform .25s; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .topbar { min-height: 64px; }
  .event-logo { max-width: 125px; max-height: 40px; }
  .hero { min-height: 560px; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 73%, transparent) 60%, color-mix(in srgb, var(--bg) 15%, transparent) 100%); }
  .hero-copy { align-self: end; }
  .search-shell, .event-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .gallery-head { align-items: start; flex-direction: column; }
}
