:root {
  --bg: #F5F1E8;
  --card: #FBF8F2;
  --ink: #171717;
  --muted: #6B655D;
  --accent: #9E2B25;
  --line: #D8D1C7;
  --light: #FFF8F2;
  --danger: #b42318;
  --success: #1d7a46;
  --info: #375f95;
  --warning: #8c5e12;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, Helvetica, sans-serif; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.header { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(10px); background: rgba(245,241,232,0.92); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-circle { width: 44px; height: 44px; border-radius: 999px; overflow: hidden; border: 1px solid var(--accent); background: white; flex-shrink: 0; padding: 2px; }
.logo-circle img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.brand-title { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.18em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav a:hover { opacity: 0.7; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 14px 24px; font-size: 0.95rem; font-weight: 600; transition: .2s ease; cursor: pointer; border: 1px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--light); }
.btn-secondary { border-color: rgba(255,248,242,0.35); color: var(--light); background: transparent; }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-light-outline { border-color: rgba(245,241,232,0.25); color: var(--bg); background: transparent; }
.join-btn { padding: 10px 18px; font-size: .9rem; }
.section { padding: 42px 0; }
.eyebrow { display: inline-flex; width: fit-content; border-radius: 999px; padding: 8px 12px; font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; }
.eyebrow-light { border: 1px solid rgba(255,248,242,.22); color: #EDE2D6; background: rgba(251,248,242,.08); }
.glass-card { border-radius: 18px; border: 1px solid rgba(255,248,242,.16); background: rgba(251,248,242,.08); backdrop-filter: blur(6px); padding: 16px; }
.glass-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: #E6DACE; }
.glass-value { margin-top: 8px; font-size: 1rem; font-weight: 600; color: var(--light); }
.section-label, .cta-kicker { color: var(--muted); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; }
.section-title { margin: 10px 0 0; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.15; }
.section-text { margin-top: 16px; color: var(--muted); line-height: 1.8; font-size: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 30px; background: var(--card); padding: 28px; }
.card-soft { background: var(--bg); }
.card h3 { margin: 0; font-size: 1.35rem; }
.card p { margin: 14px 0 0; color: var(--muted); line-height: 1.8; }
.accent-line { width: 58px; height: 6px; border-radius: 999px; background: var(--accent); margin-bottom: 18px; }
.list-stack { display: grid; gap: 14px; margin-top: 24px; }
.pill-item { border: 1px solid var(--line); border-radius: 18px; background: var(--bg); padding: 16px 18px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); padding: 10px 16px; font-size: .95rem; }
.cta-kicker { color: #D9C9B5; }
.cta-text { color: #DDD4C9; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 480px); border: 1px solid var(--line); border-radius: 28px; background: var(--card); padding: 28px; }
.field { display: grid; gap: 8px; margin-top: 16px; }
.checkbox-field { display: flex; align-items: center; gap: 10px; }
.input, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fff; font: inherit; }
.textarea { min-height: 120px; resize: vertical; }
.file-input { padding: 10px; }
.full-width { width: 100%; margin-top: 16px; }
.flash-wrap { padding-top: 16px; }
.flash { border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid transparent; }
.flash-success { background: #edf7ef; color: var(--success); border-color: #cbe7d2; }
.flash-danger { background: #fff1f1; color: var(--danger); border-color: #f0c7c7; }
.flash-info { background: #eef4fb; color: var(--info); border-color: #cad8eb; }
.flash-warning { background: #fdf6e8; color: var(--warning); border-color: #f1ddad; }
.admin-shell { padding: 40px 0 60px; }
.admin-top { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 24px; }
.admin-action { margin-top: 20px; }
.asset-preview { border: 1px solid var(--line); border-radius: 24px; background: var(--bg); padding: 16px; margin-top: 16px; }
.asset-preview img { width: 100%; border-radius: 18px; max-height: 300px; object-fit: contain; }
@media (max-width: 900px) {
  .nav { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; display: grid; }
  .admin-top { grid-template-columns: 1fr; display: grid; align-items: start; }
}
@media (max-width: 640px) {
  .container { width: min(1120px, calc(100% - 20px)); }
  .header-inner { min-height: 72px; gap: 12px; }
  .join-btn { padding: 9px 14px; font-size: .82rem; }
  .card, .auth-card { padding: 22px; }
  .btn { width: 100%; }
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--ink);
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.hero-media,
.hero-media-item,
.hero-video,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  background: var(--ink);
}

.hero-media-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms ease;
  z-index: 1;
}

.hero-media-item.active {
  opacity: 1;
}

.hero-overlay {
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(23,23,23,0.82) 0%,
    rgba(23,23,23,0.62) 36%,
    rgba(23,23,23,0.28) 68%,
    rgba(23,23,23,0.14) 100%
  );
}

.hero-grid {
  position: relative;
  z-index: 3;
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
}

.hero-left {
  padding: 48px;
}

.hero-title {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.04;
  font-weight: 700;
  color: var(--light);
}

.hero-text {
  max-width: 640px;
  margin-top: 18px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #E8DDD2;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 430px;
  margin-top: 28px;
}

.hero-right {
  display: flex;
  justify-content: end;
  align-items: end;
  padding: 40px;
}

.cover-note {
  width: min(100%, 360px);
  border-radius: 32px;
  border: 1px solid rgba(255,248,242,.18);
  background: rgba(251,248,242,.10);
  backdrop-filter: blur(10px);
  padding: 22px;
}

.cover-note h3 {
  margin: 12px 0 0;
  color: var(--light);
  font-size: 1.8rem;
  line-height: 1.2;
}

.cover-note p {
  margin-top: 14px;
  color: #E8DDD2;
  line-height: 1.7;
  font-size: .98rem;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.prose-narrow {
  max-width: 780px;
}

.program-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.program-top .section-text {
  max-width: 520px;
  margin: 0;
}

.card-action {
  margin-top: 20px;
}

.section-flush-top {
  padding-top: 0;
}

.list-stack-flush {
  margin-top: 0;
}

.schedule-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.schedule-left,
.schedule-right {
  padding: 34px;
}

.schedule-right {
  border-left: 1px solid var(--line);
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  padding: 16px 18px;
}

.schedule-meta {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
}

.schedule-name {
  margin-top: 6px;
  font-weight: 600;
}

.schedule-time {
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.section-contact {
  padding-bottom: 60px;
}

.cta-shell {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--ink);
  color: var(--bg);
  padding: 34px;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.cta-title {
  color: var(--light);
  margin-top: 10px;
}

.cta-actions {
  display: flex;
  justify-content: end;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-panel {
  border: 1px solid rgba(245,241,232,0.16);
  border-radius: 24px;
  background: rgba(251,248,242,0.08);
  padding: 20px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-group label {
  color: #EFE4D8;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(245,241,232,0.22);
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(158,43,37,0.45);
  outline-offset: 2px;
}

.form-error {
  color: #FFD5D0;
  line-height: 1.5;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--light);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 13px 22px;
  transition: .2s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
}

.flash-messages {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.flash-message {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.5;
}

.flash-success {
  background: #edf7ef;
  border-color: #cbe7d2;
  color: var(--success);
}

.flash-danger,
.flash-error {
  background: #fff1f1;
  border-color: #f0c7c7;
  color: var(--danger);
}

@media (max-width: 900px) {
  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(23,23,23,0.86) 0%,
      rgba(23,23,23,0.66) 52%,
      rgba(23,23,23,0.34) 100%
    );
  }

  .hero-right {
    display: none;
  }

  .hero-grid,
  .schedule-grid,
  .cta-grid,
  .program-top {
    grid-template-columns: 1fr;
    display: grid;
  }

  .program-top {
    gap: 12px;
  }

  .schedule-right {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .cta-actions {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .schedule-left,
  .schedule-right,
  .cta-shell {
    padding: 22px;
  }

  .hero-shell {
    border-radius: 28px;
  }

  .hero-media {
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(23,23,23,0.04) 0%,
      rgba(23,23,23,0.18) 58%,
      rgba(23,23,23,0.72) 100%
    );
  }

  .hero-media-item {
    object-position: center top;
  }

  .hero-grid {
    min-height: 0;
    display: block;
    background: var(--ink);
  }

  .hero-left {
    padding: 24px 22px 26px;
  }

  .hero-title {
    max-width: none;
    margin-top: 14px;
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.08;
  }

  .hero-text {
    max-width: none;
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-top: 22px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .schedule-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

.faq-grid {
  margin-top: 32px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.social-links a {
  border: 1px solid rgba(245,241,232,0.25);
  border-radius: 999px;
  color: var(--bg);
  display: inline-flex;
  font-size: .95rem;
  font-weight: 700;
  padding: 10px 16px;
}
