:root {
  --of-navy: #0d3b8c;
  --of-navy-2: #0a2f73;
  --of-orange: #e85d04;
  --of-bg: #f3f5f8;
  --of-card: #ffffff;
  --of-text: #1a2332;
  --of-muted: #5b6b7c;
  --of-line: #e4e9ef;
  --of-ok: #157347;
  --of-ok-bg: #e8f6ee;
  --of-bad: #c62828;
  --of-bad-bg: #fde8e8;
  --of-radius: 12px;
  --of-shadow: 0 4px 20px rgba(13, 59, 140, .06);
  --of-pad: clamp(16px, 4vw, 28px);
  --of-max: 1080px;
  --of-read: 760px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body.of {
  font-family: "Plus Jakarta Sans", "Noto Sans Devanagari", "Segoe UI", system-ui, sans-serif;
  background: var(--of-bg);
  color: var(--of-text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.of a { color: var(--of-navy); }
.of-nav {
  background: #fff;
  border-bottom: 1px solid var(--of-line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.of-nav-inner {
  max-width: var(--of-max);
  margin: 0 auto;
  padding: 10px var(--of-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.of-home {
  font-weight: 800;
  font-size: 15px;
  color: var(--of-navy) !important;
  text-decoration: none;
}
.of-nav-links { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.of-nav-links span { color: var(--of-muted); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-login {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--of-navy) !important; color: #fff !important;
  text-decoration: none !important;
  border-radius: 10px; padding: 10px 18px; font-weight: 700; font-size: 14px;
  min-height: 42px; min-width: 88px;
}
.of-login:hover { background: var(--of-navy-2) !important; }
.of-login.ghost {
  background: #fff !important; color: var(--of-navy) !important;
  border: 1px solid var(--of-navy);
}
.of-shell { width: 100%; max-width: var(--of-max); margin: 0 auto; padding: 0 var(--of-pad); flex: 1; }
.of-event-shell { max-width: var(--of-read); }
.of-banner { padding: 22px 0 14px; }
.of-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  color: var(--of-navy);
  letter-spacing: -.02em;
  line-height: 1.35;
  font-weight: 800;
}
.of-banner p { margin: 0; color: var(--of-muted); font-size: 15px; line-height: 1.55; max-width: 40em; }
.of-hero {
  background: #fff;
  border: 1px solid var(--of-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--of-shadow);
  margin: 4px 0 16px;
}
.of-hero-photo {
  display: block; width: 100%; padding: 0; border: 0; background: var(--of-navy);
  cursor: zoom-in; aspect-ratio: 16 / 9; overflow: hidden;
}
.of-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-hero-photo.empty {
  display: grid; place-items: center; color: #fff; font-size: 3rem; font-weight: 800; cursor: default;
  min-height: 140px; aspect-ratio: 16 / 7;
}
.of-hero-body { padding: 16px 16px 18px; }
.of-hero-body h1 {
  margin: 0 0 8px; font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  color: var(--of-navy); line-height: 1.35; font-weight: 800;
}
.of-lead { margin: 0 0 12px; color: var(--of-muted); font-size: 15px; line-height: 1.55; }
.of-ref { margin: 0 0 10px; font-size: 13px; color: var(--of-navy); font-weight: 700; }
.of-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px;
  margin: 0 0 12px; padding: 12px; background: #f4f7fb; border-radius: 12px;
}
.of-facts div { min-width: 0; }
.of-facts dt {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--of-orange); font-weight: 800; margin: 0 0 2px;
}
.of-facts dd { margin: 0; color: var(--of-navy); font-weight: 700; font-size: 14px; line-height: 1.4; }
.of-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.of-hero-actions .of-btn { flex: 1; min-width: 140px; }
.of-wrap { padding: 4px 0 32px; flex: 1; width: 100%; }
.of-wrap { padding: 4px 0 32px; flex: 1; width: 100%; }
.of-wrap.narrow, .of-shell.narrow { max-width: 520px; }
.of-card {
  background: var(--of-card);
  border-radius: var(--of-radius);
  box-shadow: var(--of-shadow);
  border: 1px solid var(--of-line);
  padding: 20px 18px;
}
.of-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.of-event {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border-radius: var(--of-radius); overflow: hidden;
  border: 1px solid var(--of-line); box-shadow: var(--of-shadow);
}
.of-event:hover { box-shadow: 0 10px 28px rgba(13,59,140,.1); }
.of-thumb { aspect-ratio: 16/10; background: var(--of-navy); }
.of-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-thumb.empty { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px; }
.of-event-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.of-event-body h2 { margin: 0; font-size: 1.05rem; color: var(--of-navy); line-height: 1.4; font-weight: 700; }
.of-meta { font-size: 13px; color: var(--of-muted); line-height: 1.5; }
.of-event-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.of-fee { font-weight: 800; color: var(--of-navy); }
.of-chip {
  font-size: 12px; font-weight: 700; color: #fff; background: var(--of-navy);
  padding: 7px 12px; border-radius: 8px; white-space: nowrap;
}
.of-empty { text-align: center; padding: 40px 16px; color: var(--of-muted); }
.of-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--of-navy); color: #fff !important; text-decoration: none;
  border: 0; border-radius: 10px; padding: 14px 16px; font-weight: 700; cursor: pointer;
  font-size: 15px; font-family: inherit; min-height: 48px;
}
.of-btn:hover { background: var(--of-navy-2); }
.of-btn.block { display: flex; width: 100%; margin-top: 16px; }
.top-gap { margin-top: 14px; }
.of-btn.ghost { background: #fff; color: var(--of-navy) !important; border: 1px solid var(--of-navy); }
.of-btn.wa { background: #fff; color: #128c7e !important; border: 1.5px solid #128c7e; flex: 0 0 auto; min-width: 112px; }
.of-label { display: block; font-weight: 700; font-size: 13px; margin: 14px 0 6px; }
.of-req { color: var(--of-bad); }
.of input[type="text"], .of input[type="tel"], .of input[type="email"], .of input[type="number"],
.of input[type="date"], .of input[type="password"], .of textarea, .of select, .of .input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--of-line); border-radius: 10px;
  font-size: 16px; background: #fff; font-family: inherit;
}
.of input:focus, .of textarea:focus, .of select:focus, .of .input:focus {
  outline: none; border-color: var(--of-navy); box-shadow: 0 0 0 3px rgba(13,59,140,.12);
}
.of textarea { min-height: 90px; }
.of-msg { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.of-msg.err, .of .msg.error { background: var(--of-bad-bg); color: var(--of-bad); }
.of-msg.ok, .of .msg.info { background: #eef3fb; color: var(--of-navy); }
.of-badge { display: inline-flex; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.of-badge.paid { background: var(--of-ok-bg); color: var(--of-ok); }
.of-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--of-line); font-size: 14px; }
.of-kv b { color: var(--of-navy); text-align: right; word-break: break-word; }
.of-meta-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 14px; }
.of-mini { background: #fff; border-radius: var(--of-radius); padding: 14px 16px; box-shadow: var(--of-shadow); border: 1px solid var(--of-line); }
.of-mini span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--of-orange); font-weight: 800; margin-bottom: 4px; }
.of-mini b { color: var(--of-navy); font-size: 15px; line-height: 1.45; font-weight: 700; }
.of-section { margin-bottom: 12px; }
.of-section h2 { margin: 0 0 12px; font-size: 1.05rem; color: var(--of-navy); font-weight: 800; }
.of-section p, .of-section li { color: var(--of-muted); line-height: 1.65; margin: 0 0 8px; }
.of-gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.of-gift { background: #f4f7fb; border: 1px solid var(--of-line); border-radius: 10px; padding: 12px 8px; text-align: center; font-weight: 700; font-size: 13px; color: var(--of-navy); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.of-gift span { font-size: 20px; line-height: 1; }
.of-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.of-tag { background: #eef2f8; color: var(--of-navy); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.of-people { display: grid; gap: 10px; margin-bottom: 12px; }
.of-person { background: #fff; border: 1px solid var(--of-line); border-radius: 12px; padding: 16px; box-shadow: var(--of-shadow); }
.of-person small { display: block; color: var(--of-orange); font-weight: 800; letter-spacing: .08em; font-size: 11px; margin-bottom: 6px; }
.of-person b { color: var(--of-navy); }
.of-steps { display: grid; gap: 8px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.of-steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; background: #f4f7fb; border-radius: 10px; padding: 12px 14px; color: var(--of-muted); }
.of-steps li::before {
  content: counter(step); flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--of-navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px;
}
.of-fee-hero { text-align: center; background: var(--of-navy); color: #fff; border: 0; }
.of-fee-hero h2 { color: #ffb089; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.of-amt { font-size: clamp(1.8rem, 7vw, 2.6rem); margin: 4px 0 0; font-weight: 800; letter-spacing: -.02em; }
.of-poster { margin: 0 0 16px; }
.of-poster button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; box-shadow: var(--of-shadow); }
.of-poster img { width: 100%; height: auto; max-height: min(70vh, 640px); object-fit: contain; display: block; background: #0a2558; }
.of-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--of-line);
  padding: 10px var(--of-pad) calc(12px + env(safe-area-inset-bottom));
}
.of-cta-inner { max-width: var(--of-read); margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.of-cta .of-btn { flex: 1; }
.of-cta-fee {
  flex: 0 0 auto; font-weight: 800; color: var(--of-navy); font-size: 15px;
  padding: 0 4px; white-space: nowrap;
}
body.of.has-cta { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.of-back { display: inline-block; color: var(--of-navy); text-decoration: none; font-weight: 700; font-size: 13px; margin: 0 0 10px; }
.of-check {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--of-ok); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800;
}
.of-center { text-align: center; }
.of-lightbox { display: none; position: fixed; inset: 0; background: rgba(10,37,88,.94); z-index: 50; padding: 12px; align-items: center; justify-content: center; }
.of-lightbox.open { display: flex; }
.of-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.of-lightbox button { position: absolute; top: 12px; right: 12px; background: #fff; border: 0; border-radius: 999px; width: 42px; height: 42px; font-size: 22px; cursor: pointer; }
.of-site-foot {
  margin-top: auto;
  background: var(--of-navy-2);
  color: #c5d4ea;
  padding: 20px var(--of-pad);
  text-align: center;
  font-size: 13px;
}
.of-site-foot-inner { max-width: var(--of-max); margin: 0 auto; }
.of-site-foot p { margin: 0 0 6px; }
.of-site-foot a { color: #fff; font-weight: 700; text-decoration: none; }
.of-copy { opacity: .7; font-size: 12px; }
.of-phone-group { position: relative; }
.of-phone-prefix {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  background: #f1f5f9; border: 1px solid var(--of-line); padding: 7px 10px; border-radius: 8px; font-weight: 700; font-size: 13px;
}
.of-phone-input { padding-left: 84px !important; }
.of-tabs { display: flex; gap: 6px; margin: 14px 0 8px; background: #eef2f6; padding: 4px; border-radius: 10px; }
.of-tabs a { flex: 1; text-align: center; text-decoration: none; font-weight: 700; font-size: 13px; padding: 10px 8px; border-radius: 8px; color: var(--of-muted); }
.of-tabs a.active { background: var(--of-navy); color: #fff; }
.of-note { font-size: 13px; color: var(--of-muted); text-align: center; margin-top: 12px; }
.of-assist { font-size: 13px; color: var(--of-muted); text-align: center; margin-top: 8px; }
.of-linkbtn { background: none; border: 0; color: var(--of-navy); font-weight: 700; cursor: pointer; font-size: 13px; font-family: inherit; }
.of-phone-display { display: flex; align-items: center; justify-content: space-between; background: #f8fafc; border: 1px dashed var(--of-line); border-radius: 10px; padding: 10px 12px; }

@media (min-width: 640px) {
  .of-grid { grid-template-columns: repeat(2, 1fr); }
  .of-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .of-gifts { grid-template-columns: repeat(3, 1fr); }
  .of-people { grid-template-columns: 1fr 1fr; }
  .of-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .of-grid { grid-template-columns: repeat(3, 1fr); }
  .of-meta-grid { grid-template-columns: repeat(3, 1fr); }
  .of-gifts { grid-template-columns: repeat(5, 1fr); }
  .of-card { padding: 24px 22px; }
  .of-banner h1 { font-size: 1.9rem; }
}
@media (max-width: 479px) {
  .of-cta-inner { flex-wrap: wrap; }
  .of-cta-fee { width: 100%; text-align: center; padding-bottom: 2px; }
  .of-btn.wa { min-width: 0; flex: 1; }
  body.of.has-cta { padding-bottom: calc(128px + env(safe-area-inset-bottom)); }
  .of-nav-links span { display: none; }
  .of-facts { grid-template-columns: 1fr; }
}
