:root {
  --bg: #050505;
  --panel: #0d0d0d;
  --text: #f3efe7;
  --muted: #aaa79f;
  --line: #2a2a2a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.topbar { position: sticky; top: 0; z-index: 10; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; background: rgba(5,5,5,.88); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: .08em; }
.mark { font-size: 25px; }
nav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.nav-cta { border: 1px solid var(--text); padding: 10px 14px; }
.menu { display: none; color: var(--text); background: none; border: 0; font-size: 24px; }
.hero { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 70px 24px; text-align: center; }
.hero-inner { max-width: 980px; width: 100%; }
.hero-logo { width: min(760px, 92vw); max-height: 320px; object-fit: cover; object-position: center 51%; margin: -52px auto -34px; display: block; }
.eyebrow, .section-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: clamp(60px, 10vw, 138px); line-height: .86; letter-spacing: -.055em; margin: 28px 0 26px; font-weight: 800; }
.hero-copy { max-width: 590px; margin: 0 auto; color: #c7c4bc; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin: 34px 0 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--text); cursor: pointer; }
.button-light { background: var(--text); color: #050505; }
.button-ghost { background: transparent; color: var(--text); }
.sub-brand { color: #77746f; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.section { max-width: 1180px; margin: 0 auto; padding: 130px 5vw; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8vw; align-items: start; margin-top: 45px; }
h2 { font-size: clamp(44px, 7vw, 86px); line-height: .96; letter-spacing: -.045em; margin: 0; }
.copy-block { font-size: 17px; line-height: 1.75; color: #c9c6be; }
.copy-block p:first-child { margin-top: 0; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); margin-top: 45px; border: 1px solid var(--line); }
.service-card { min-height: 330px; background: var(--bg); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.service-card span { color: #77746f; font-size: 12px; }
.service-card h3 { font-size: 30px; margin: auto 0 18px; letter-spacing: -.03em; }
.service-card p { color: var(--muted); line-height: 1.6; margin: 0; }
.manifesto { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 6vw; align-items: center; padding: 12vh 5vw; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.manifesto p { font-weight: 800; font-size: clamp(44px, 8.5vw, 116px); line-height: .78; letter-spacing: -.07em; margin: 0; white-space: nowrap; }
.manifesto p:nth-child(2) { text-align: center; color: #817e77; }
.manifesto p:nth-child(3) { text-align: right; }
.text-link { display: inline-block; margin-top: 16px; color: var(--text); border-bottom: 1px solid var(--text); padding-bottom: 4px; }
.contact { background: var(--text); color: #060606; }
.contact-inner { max-width: 1180px; margin: 0 auto; padding: 120px 5vw; display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.contact .section-label { color: #5d5a55; }
.contact p { color: #494742; font-size: 17px; line-height: 1.6; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
input, select, textarea { width: 100%; border: 1px solid #aaa69e; background: transparent; padding: 14px; font: inherit; color: #060606; border-radius: 0; }
textarea { resize: vertical; }
.contact .button-light { background: #060606; color: var(--text); border-color: #060606; justify-self: start; }
footer { min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px 5vw; color: #77746f; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.footer-brand { color: var(--text); font-weight: 800; }
.manifesto-art { margin: 0; }
.manifesto-art img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; border: 1px solid var(--line); }
.manifesto-words { justify-self: stretch; }
.section-head { display: grid; gap: 18px; margin-top: 45px; max-width: 760px; }
.section-intro { color: #c9c6be; font-size: 17px; line-height: 1.7; margin: 0; }
.state-note { color: var(--muted); font-size: 15px; line-height: 1.7; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-decoration: underline; cursor: pointer; }

.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1px; background: var(--line); margin-top: 50px; border: 1px solid var(--line); }
.package-card { background: var(--panel); padding: 34px 30px; display: flex; flex-direction: column; gap: 16px; }
.package-card h3 { font-size: 26px; margin: 0; letter-spacing: -.03em; }
.package-price { display: flex; flex-direction: column; gap: 6px; font-size: 40px; font-weight: 800; letter-spacing: -.04em; margin: 0; }
.package-price span { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.package-blurb { color: #c9c6be; line-height: 1.65; margin: 0; }
.package-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.package-features li { padding-left: 20px; position: relative; }
.package-features li::before { content: "→"; position: absolute; left: 0; color: #777; }
.package-buy { margin-top: auto; width: 100%; }
.package-buy:disabled { opacity: .6; cursor: progress; }
.package-error { color: #ffb4a8; font-size: 14px; line-height: 1.55; margin: 0; }

.events-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4vw; margin-top: 50px; align-items: start; }
.calendar { border: 1px solid var(--line); background: var(--panel); padding: 22px; position: sticky; top: 100px; }
.calendar-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.calendar-bar strong { font-size: 15px; letter-spacing: .04em; }
.calendar-nav { width: 34px; height: 34px; background: none; border: 1px solid var(--line); color: var(--text); font-size: 15px; cursor: pointer; }
.calendar-nav:hover { border-color: var(--text); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-head { font-size: 11px; letter-spacing: .1em; color: #6f6c66; text-align: center; padding-bottom: 8px; }
.calendar-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #8a8781; background: none; border: 1px solid transparent; padding: 0; font-family: inherit; }
.calendar-cell.is-empty { border: 0; }
.calendar-cell.is-today { color: var(--text); border-color: var(--line); }
.calendar-cell.has-events { color: #060606; background: var(--text); font-weight: 700; cursor: pointer; }
.calendar-cell.has-events:hover { background: #fff; }
.calendar-cell.is-selected { outline: 2px solid var(--text); outline-offset: 2px; }
.calendar-key { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.calendar-key .dot { width: 10px; height: 10px; background: var(--text); display: inline-block; }

.event-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.event-filter { grid-column: 1 / -1; background: var(--panel); margin: 0; padding: 16px 22px; font-size: 14px; color: var(--muted); }
.event-card { background: var(--bg); display: grid; grid-template-columns: 78px 1fr; gap: 22px; padding: 26px 22px; }
.event-date { display: grid; gap: 2px; align-content: start; justify-items: center; border: 1px solid var(--line); padding: 12px 6px; }
.event-date span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.event-date strong { font-size: 28px; letter-spacing: -.03em; line-height: 1; }
.event-body h3 { font-size: 22px; margin: 0 0 8px; letter-spacing: -.02em; }
.event-meta { margin: 0 0 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event-copy { margin: 0; color: #c9c6be; line-height: 1.65; }

.admin { max-width: 1100px; margin: 0 auto; padding: 60px 5vw 120px; }
.admin h1 { font-size: clamp(38px, 6vw, 64px); margin: 18px 0 10px; }
.admin-login { max-width: 420px; display: grid; gap: 16px; margin-top: 40px; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 40px; }
.admin-tabs { display: flex; gap: 10px; }
.admin-tab { background: none; border: 1px solid var(--line); color: var(--muted); padding: 10px 18px; font: inherit; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.admin-tab.is-active { border-color: var(--text); color: var(--text); }
.admin-panel { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 4vw; align-items: start; }
.admin-form { display: grid; gap: 14px; border: 1px solid var(--line); background: var(--panel); padding: 26px; }
.admin-form h2 { font-size: 22px; margin: 0; letter-spacing: -.02em; }
.admin-form label { display: grid; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.admin input, .admin select, .admin textarea { color: var(--text); border-color: var(--line); background: #070707; padding: 12px; }
.admin input:focus, .admin textarea:focus, .admin select:focus { outline: 1px solid var(--text); }
.admin-check { display: flex !important; align-items: center; gap: 10px; }
.admin-check input { width: auto; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-rows { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.admin-row { background: var(--bg); padding: 20px 22px; display: grid; gap: 6px; }
.admin-row strong { font-size: 17px; }
.admin-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.admin-row-actions { display: flex; gap: 14px; margin-top: 6px; }
.admin-message { margin: 0; padding: 14px 18px; border: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.admin-message.is-error { color: #ffb4a8; border-color: #6b3b34; }
.admin-message.is-ok { color: #b9e2c0; border-color: #35603d; }
.admin-note { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 640px; }
.button-small { min-height: 40px; padding: 0 16px; font-size: 12px; }

@media (max-width: 980px) {
  .events-layout, .admin-panel { grid-template-columns: 1fr; }
  .calendar { position: static; }
}
@media (max-width: 800px) {
  nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #050505; padding: 24px 5vw; flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  .menu { display: block; }
  .hero { min-height: auto; padding-top: 40px; }
  .hero-logo { margin: -20px auto -10px; max-height: 250px; }
  .split, .contact-inner { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .manifesto { grid-template-columns: 1fr; gap: 42px; padding: 9vh 5vw; }
  .manifesto-art img { max-height: 440px; }
  .package-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 62px 1fr; gap: 16px; }
  .service-card { min-height: 250px; }
  .section { padding-top: 90px; padding-bottom: 90px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 330px; margin-left: auto; margin-right: auto; }
  footer { flex-direction: column; align-items: flex-start; }
}
