:root {
  --green: #1f6b45;
  --green-dark: #134a2f;
  --green-soft: #e6f1ea;
  --yellow: #f4c542;
  --ink: #15201a;
  --muted: #5d6b63;
  --line: #dfe6e1;
  --bg: #fbfaf6;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(20 50 35 / .07);
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); margin: 0; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.3em; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: #f8d25e; }
.btn--ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn--small { padding: .55em 1em; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--locked { background: #ecefed; color: #8a958f; border-color: transparent; }
.btn.btn--locked:disabled { opacity: 1; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgb(251 250 246 / .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: .6em; font: 600 1.15rem var(--head); text-decoration: none; }
.logo b { color: var(--green); font-weight: 800; }
.nav { display: flex; gap: 1.8em; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--green); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { background: linear-gradient(90deg, rgb(19 74 47 / .96) 0%, rgb(31 107 69 / .86) 45%, rgb(31 107 69 / .45) 100%), url(../img/hero.jpg) center 40% / cover, var(--green); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--yellow) 0 40px, transparent 40px 60px); opacity: .7; }
.hero__in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding: 88px 0 96px; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 800; }
.hero h1 span { color: var(--yellow); }
.lead { font-size: 1.15rem; max-width: 34em; color: rgb(255 255 255 / .85); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.next { background: #fff; color: var(--ink); border-radius: 24px; padding: 26px; box-shadow: 0 20px 50px rgb(0 0 0 / .2); transform: rotate(1.2deg); }
.next__label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin: 0 0 .6em; }
.next h3 { font-size: 1.55rem; font-weight: 800; }
.next__meta { color: var(--muted); margin-bottom: 1.1em; }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.countdown div { background: var(--green-soft); border-radius: 12px; padding: 10px 4px; text-align: center; }
.countdown b { display: block; font: 800 1.7rem/1 var(--head); color: var(--green-dark); }
.countdown small { font-size: .75rem; color: var(--muted); }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--green-soft); }
.section--dark { background: var(--ink); color: #fff; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.section__head h2 { margin: 0; }

.onsite { margin: -16px 0 24px; padding: 12px 16px; background: #fdf3d1; color: #5c4400; border-radius: 12px; font-size: .94rem; }
.onsite b { color: #3d2d00; }
.reg__hint { margin: -4px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); padding: .45em 1em; border-radius: 999px; font: 500 .9rem var(--body); cursor: pointer; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

/* Events */
.events { display: grid; gap: 16px; }
.event { display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.event__date { text-align: center; background: var(--green-soft); border-radius: 14px; padding: 10px 0; }
.event__date b { display: block; font: 800 2.1rem/1 var(--head); color: var(--green); }
.event__date b.sm { font-size: 1.25rem; padding: .25em 0 .1em; }
.event__date span { font-size: .82rem; font-weight: 600; text-transform: uppercase; color: var(--green-dark); }
.event__date small { display: block; font-size: .75rem; color: var(--muted); }
.event h3 { margin-bottom: .25em; }
.event__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .92rem; color: var(--muted); margin-bottom: .5em; }
.event__desc { margin: 0; font-size: .96rem; }
.event__desc[hidden] { display: none; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; background: #fdf3d1; color: #7a5a00; border-radius: 6px; padding: .1em .55em; margin-bottom: .5em; }
.event__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.event__note { font-size: .8rem; color: var(--muted); text-align: right; }
.linkbtn { background: none; border: 0; padding: 0; font: 500 .88rem var(--body); color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }

/* Albums */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.album { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.album__grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 16/10; }
.album__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album__grid img:first-child { grid-row: span 2; }
.album:hover img { transform: scale(1.04); }
.album__grid > * { overflow: hidden; }
.album__body { padding: 16px 20px 18px; }
.album__body h3 { margin: 0 0 .15em; font-size: 1.15rem; }
.album__body p { margin: 0; color: var(--muted); font-size: .9rem; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about p { color: var(--muted); font-size: 1.08rem; max-width: 36em; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stats b { display: block; font: 800 2.4rem/1 var(--head); color: var(--green); }
.stats span { color: var(--muted); font-size: .92rem; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: center; }
.contact p { color: rgb(255 255 255 / .7); margin: 0; }
.contact__links { display: flex; flex-wrap: wrap; gap: 14px; }
.contact__item { display: block; text-decoration: none; padding: 16px 22px; border: 1px solid rgb(255 255 255 / .2); border-radius: 14px; font-weight: 600; }
.contact__item:hover { border-color: var(--yellow); }
.contact__item small { display: block; font-weight: 400; color: rgb(255 255 255 / .55); font-size: .8rem; }
.footer { background: var(--ink); color: rgb(255 255 255 / .5); font-size: .85rem; padding: 20px 0 28px; border-top: 1px solid rgb(255 255 255 / .1); }

/* Modal */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgb(10 25 17 / .6); backdrop-filter: blur(3px); }
.modal { width: min(540px, 100% - 24px); border-radius: 22px; background: var(--card); color: var(--ink); max-height: calc(100dvh - 24px); }
.reg { padding: 30px 28px 26px; position: relative; display: grid; gap: 14px; }
.reg h3 { font-size: 1.6rem; font-weight: 800; margin: 0 0 .2em; padding-right: 30px; }
.reg__eyebrow { margin: 0; font-size: .85rem; font-weight: 600; color: var(--green); }
.modal__close { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--green-soft); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.field { display: grid; gap: 5px; font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea { font: 400 1rem var(--body); padding: .7em .85em; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; font-size: .86rem; color: var(--muted); align-items: flex-start; }
.check input { margin-top: 4px; accent-color: var(--green); width: 17px; height: 17px; flex: none; }
.reg__err { color: #b3261e; font-size: .9rem; margin: 0; }
.reg--done { text-align: center; justify-items: center; padding: 44px 28px 36px; }
.reg--done p { color: var(--muted); }
.done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; display: grid; place-items: center; }

/* Lightbox */
.lightbox { background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(5 10 8 / .92); }
.lightbox img { max-width: min(1100px, 92vw); max-height: 80dvh; border-radius: 10px; }
.lightbox__btn { position: fixed; border: 0; background: rgb(255 255 255 / .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.lightbox__btn:hover { background: rgb(255 255 255 / .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__cap { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: rgb(255 255 255 / .8); margin: 0; font-size: .9rem; }

/* Responsive */
@media (max-width: 860px) {
  .hero { background: linear-gradient(180deg, rgb(19 74 47 / .92), rgb(31 107 69 / .8)), url(../img/hero.jpg) center / cover, var(--green); }
  .hero__in { grid-template-columns: 1fr; padding: 56px 0 72px; gap: 36px; }
  .next { transform: none; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .event { grid-template-columns: 72px 1fr; gap: 16px; padding: 18px; }
  .event__date b { font-size: 1.7rem; }
  .event__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .event__note { text-align: left; }
  .menu-btn { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .reg { padding: 26px 18px 20px; }
  .albums { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 50px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
