:root {
  --ref-bg: #F4F6F8;
  --ref-surface: #FFFFFF;
  --ref-primary: #243B53;
  --ref-ink: #1F2933;
  --ref-ink-soft: #586675;
  --ref-accent: #2D6CB5;
  --ref-accent-deep: #245A99;
  --ref-slate: #52606D;
  --ref-line: #DDE3E9;
  --ref-border: #D6DDE4;
  --ref-muted: #EAEEF2;
  --ref-shadow-sm: 0 1px 2px rgba(36, 59, 83, 0.06), 0 1px 3px rgba(36, 59, 83, 0.05);
  --ref-shadow-md: 0 4px 12px rgba(36, 59, 83, 0.08), 0 2px 6px rgba(36, 59, 83, 0.05);
  --ref-shadow-lg: 0 12px 32px rgba(36, 59, 83, 0.12);
  --ref-radius-sm: 6px;
  --ref-radius: 10px;
  --ref-radius-lg: 16px;
  --ref-maxw: 1140px;
  --ref-font-head: "Spectral", Georgia, "Times New Roman", serif;
  --ref-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ref-font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ref-ink);
  background: var(--ref-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--ref-font-head);
  color: var(--ref-primary);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.1em; }

a { color: var(--ref-accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.45em; }

.ref-container {
  width: 100%;
  max-width: var(--ref-maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.ref-narrow { max-width: 820px; }

.ref-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ref-font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ref-accent-deep);
  background: var(--ref-muted);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.ref-kicker svg { width: 15px; height: 15px; }

.ref-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ref-accent-deep);
}

.ref-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ref-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--ref-radius-sm) 0;
  z-index: 200;
}
.ref-skip:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .ref-chip:focus-visible {
  outline: 3px solid var(--ref-accent);
  outline-offset: 2px;
  border-radius: var(--ref-radius-sm);
}

.ref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--ref-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: var(--ref-radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  text-align: center;
}

.ref-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.ref-btn-primary {
  background: var(--ref-accent-deep);
  color: #FFFFFF;
  box-shadow: var(--ref-shadow-sm);
}
.ref-btn-primary:hover {
  background: var(--ref-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--ref-shadow-md);
}

.ref-btn-secondary {
  background: var(--ref-surface);
  color: var(--ref-accent-deep);
  border-color: var(--ref-border);
}
.ref-btn-secondary:hover {
  background: var(--ref-muted);
  color: var(--ref-primary);
  text-decoration: none;
  transform: translateY(-2px);
}

.ref-btn-ghost {
  background: transparent;
  color: var(--ref-accent-deep);
  border-color: transparent;
  padding: 8px 4px;
  min-height: 44px;
}
.ref-btn-ghost:hover { color: var(--ref-primary); text-decoration: none; }
.ref-btn-ghost svg { transition: transform 0.18s ease; }
.ref-btn-ghost:hover svg { transform: translateX(4px); }

.ref-btn:active { transform: translateY(0) scale(0.99); }

.ref-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--ref-line);
}

.ref-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 10px 20px;
  max-width: var(--ref-maxw);
  margin: 0 auto;
}

.ref-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
}

.ref-brand:hover { text-decoration: none; }

.ref-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--ref-primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ref-brand-mark svg { width: 22px; height: 22px; }

.ref-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.ref-brand-name {
  font-family: var(--ref-font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ref-primary);
}
.ref-brand-sub {
  font-size: 0.7rem;
  color: var(--ref-ink-soft);
  letter-spacing: 0.02em;
}

.ref-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ref-menu > li { margin: 0; position: relative; }

.ref-menu a, .ref-dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ref-slate);
  padding: 9px 13px;
  border-radius: var(--ref-radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ref-font-body);
  transition: background 0.16s ease, color 0.16s ease;
}
.ref-menu a:hover, .ref-dropbtn:hover { background: var(--ref-muted); color: var(--ref-primary); text-decoration: none; }
.ref-menu a[aria-current="page"] { color: var(--ref-accent-deep); background: var(--ref-muted); }

.ref-dropbtn svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.ref-drop[data-open="true"] .ref-dropbtn svg { transform: rotate(180deg); }

.ref-dropwrap { position: relative; }

.ref-dropmenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 300px;
  background: var(--ref-surface);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius);
  box-shadow: var(--ref-shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 120;
}
.ref-drop[data-open="true"] .ref-dropmenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ref-dropmenu li { margin: 0; }
.ref-dropmenu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--ref-radius-sm);
  width: 100%;
}
.ref-dropmenu a span:first-child { font-weight: 600; color: var(--ref-primary); font-size: 0.92rem; }
.ref-dropmenu a span:last-child { font-size: 0.78rem; color: var(--ref-ink-soft); font-weight: 400; }

.ref-nav-cta { justify-self: end; display: flex; align-items: center; gap: 10px; }

.ref-burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius-sm);
  background: var(--ref-surface);
  color: var(--ref-primary);
  cursor: pointer;
  place-items: center;
}
.ref-burger svg { width: 24px; height: 24px; }

.ref-hero {
  position: relative;
  background-color: var(--ref-primary);
  background-image: linear-gradient(115deg, rgba(31, 41, 51, 0.86) 0%, rgba(36, 59, 83, 0.72) 55%, rgba(45, 108, 181, 0.45) 100%), url('../img/referensi-hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.ref-hero-inner {
  max-width: var(--ref-maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 20px;
}

.ref-hero-grid { max-width: 760px; }

.ref-hero .ref-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.ref-hero .ref-kicker svg { color: #fff; }

.ref-hero h1 { color: #fff; margin-bottom: 0.4em; }
.ref-hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin-bottom: 26px;
}

.ref-hero-index {
  margin: 26px 0 30px;
}
.ref-hero-index-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 11px;
}
.ref-chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0; }
.ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 8px 14px;
  border-radius: 999px;
  min-height: 40px;
  transition: background 0.16s ease, transform 0.16s ease;
}
.ref-chip:hover { background: rgba(255, 255, 255, 0.24); text-decoration: none; color: #fff; transform: translateY(-2px); }
.ref-chip svg { width: 14px; height: 14px; opacity: 0.8; }

.ref-hero-cta { display: flex; flex-wrap: wrap; gap: 13px; }
.ref-hero .ref-btn-secondary { background: rgba(255,255,255,0.95); border-color: transparent; }

.ref-section { padding: clamp(48px, 7vw, 86px) 0; }
.ref-section-alt { background: var(--ref-surface); border-top: 1px solid var(--ref-line); border-bottom: 1px solid var(--ref-line); }

.ref-section-head { max-width: 720px; margin-bottom: 38px; }
.ref-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.ref-section-head p { color: var(--ref-ink-soft); font-size: 1.05rem; margin-bottom: 0; }

.ref-glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ref-term-card {
  background: var(--ref-surface);
  border: 1px solid var(--ref-border);
  border-left: 3px solid var(--ref-accent);
  border-radius: var(--ref-radius);
  padding: 20px 22px;
  box-shadow: var(--ref-shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.ref-term-card:hover { box-shadow: var(--ref-shadow-md); transform: translateY(-2px); border-left-color: var(--ref-accent-deep); }

.ref-term-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 7px; }
.ref-term-hash {
  font-family: var(--ref-font-head);
  font-weight: 700;
  color: var(--ref-accent);
  font-size: 1.05rem;
}
.ref-term-card h3 { margin: 0; font-size: 1.15rem; }
.ref-term-card p { margin: 0; color: var(--ref-ink-soft); font-size: 0.96rem; }
.ref-term-tag {
  display: inline-block;
  margin-top: 11px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ref-slate);
  background: var(--ref-muted);
  padding: 3px 9px;
  border-radius: 5px;
}

.ref-glossary-foot { margin-top: 30px; text-align: center; }

.ref-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ref-card {
  display: flex;
  flex-direction: column;
  background: var(--ref-surface);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius-lg);
  overflow: hidden;
  box-shadow: var(--ref-shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ref-card:hover { box-shadow: var(--ref-shadow-lg); transform: translateY(-4px); }

.ref-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ref-muted); }
.ref-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ref-card:hover .ref-card-media img { transform: scale(1.05); }

.ref-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.ref-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ref-accent-deep);
  margin-bottom: 11px;
}
.ref-card-meta svg { width: 14px; height: 14px; }
.ref-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.ref-card h3 a { color: var(--ref-primary); }
.ref-card h3 a:hover { color: var(--ref-accent-deep); text-decoration: none; }
.ref-card p { color: var(--ref-ink-soft); font-size: 0.96rem; flex: 1; }
.ref-card .ref-btn-ghost { align-self: flex-start; margin-top: 8px; }

.ref-about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.ref-about-media {
  border-radius: var(--ref-radius-lg);
  overflow: hidden;
  box-shadow: var(--ref-shadow-md);
  border: 1px solid var(--ref-border);
}
.ref-about-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ref-about-list { list-style: none; padding: 0; margin: 20px 0 26px; }
.ref-about-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.ref-about-list svg { width: 22px; height: 22px; color: var(--ref-accent); flex-shrink: 0; margin-top: 2px; }
.ref-about-list strong { color: var(--ref-primary); display: block; }
.ref-about-list span { color: var(--ref-ink-soft); font-size: 0.95rem; }

.ref-note-card {
  background: var(--ref-surface);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius-lg);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--ref-shadow-sm);
}
.ref-note-card .ref-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--ref-muted);
  color: var(--ref-accent-deep);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.ref-note-card .ref-icon-badge svg { width: 27px; height: 27px; }

.ref-event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.ref-event-item {
  background: var(--ref-bg);
  border: 1px solid var(--ref-line);
  border-radius: var(--ref-radius);
  padding: 20px;
}
.ref-event-item h4 { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.ref-event-item h4 svg { width: 19px; height: 19px; color: var(--ref-accent); }
.ref-event-item p { font-size: 0.93rem; color: var(--ref-ink-soft); margin: 0; }

.ref-disclaim {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--ref-muted);
  border-radius: var(--ref-radius);
  border: 1px solid var(--ref-border);
  font-size: 0.92rem;
  color: var(--ref-slate);
}
.ref-disclaim svg { width: 22px; height: 22px; color: var(--ref-accent-deep); flex-shrink: 0; margin-top: 1px; }

.ref-source-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ref-source-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--ref-bg);
  border: 1px solid var(--ref-line);
  border-radius: var(--ref-radius);
  padding: 16px 18px;
}
.ref-source-list svg { width: 22px; height: 22px; color: var(--ref-accent); flex-shrink: 0; margin-top: 2px; }
.ref-source-list strong { color: var(--ref-primary); }

.ref-cta-band {
  background: linear-gradient(135deg, var(--ref-primary) 0%, var(--ref-accent-deep) 100%);
  color: #fff;
  border-radius: var(--ref-radius-lg);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
}
.ref-cta-band h2 { color: #fff; }
.ref-cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 540px; margin: 0 auto 26px; }
.ref-cta-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.ref-cta-band .ref-btn-primary { background: #fff; color: var(--ref-accent-deep); }
.ref-cta-band .ref-btn-primary:hover { background: var(--ref-muted); color: var(--ref-primary); }
.ref-cta-band .ref-btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.ref-cta-band .ref-btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.ref-page-hero {
  background: linear-gradient(160deg, var(--ref-muted) 0%, var(--ref-bg) 100%);
  border-bottom: 1px solid var(--ref-line);
  padding: clamp(44px, 6vw, 76px) 0 clamp(36px, 5vw, 56px);
}
.ref-page-hero .ref-container { max-width: 820px; }
.ref-page-hero h1 { margin-bottom: 0.35em; }
.ref-page-hero p { color: var(--ref-ink-soft); font-size: 1.1rem; margin-bottom: 0; }

.ref-breadcrumb { font-size: 0.85rem; color: var(--ref-ink-soft); margin-bottom: 16px; display: flex; gap: 7px; flex-wrap: wrap; }
.ref-breadcrumb a { color: var(--ref-accent-deep); }
.ref-breadcrumb svg { width: 14px; height: 14px; opacity: 0.6; }

.ref-article { padding: clamp(40px, 6vw, 70px) 0; }
.ref-article-wrap { max-width: 760px; margin: 0 auto; }
.ref-article-figure { border-radius: var(--ref-radius-lg); overflow: hidden; margin: 0 0 30px; box-shadow: var(--ref-shadow-md); border: 1px solid var(--ref-border); }
.ref-article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ref-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.9rem;
  color: var(--ref-ink-soft);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ref-line);
}
.ref-article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ref-article-meta svg { width: 16px; height: 16px; color: var(--ref-accent); }

.ref-article-body { font-size: 1.06rem; }
.ref-article-body h2 { margin-top: 1.7em; padding-top: 0.2em; }
.ref-article-body h3 { margin-top: 1.4em; }
.ref-article-body ul, .ref-article-body ol { margin-bottom: 1.3em; }
.ref-article-body strong { color: var(--ref-primary); }

.ref-lead { font-size: 1.18rem; color: var(--ref-ink); line-height: 1.65; }

.ref-callout {
  background: var(--ref-muted);
  border-left: 4px solid var(--ref-accent);
  border-radius: 0 var(--ref-radius) var(--ref-radius) 0;
  padding: 18px 22px;
  margin: 26px 0;
}
.ref-callout h4 { margin-top: 0; display: flex; align-items: center; gap: 9px; }
.ref-callout h4 svg { width: 20px; height: 20px; color: var(--ref-accent-deep); }
.ref-callout p:last-child { margin-bottom: 0; }

.ref-defs { display: grid; gap: 14px; margin: 24px 0; }
.ref-def {
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius);
  background: var(--ref-surface);
  overflow: hidden;
}
.ref-def-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--ref-font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ref-primary);
  min-height: 48px;
}
.ref-def-btn:hover { background: var(--ref-muted); }
.ref-def-btn svg { width: 20px; height: 20px; color: var(--ref-accent); transition: transform 0.22s ease; flex-shrink: 0; }
.ref-def[data-open="true"] .ref-def-btn svg { transform: rotate(180deg); }
.ref-def-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.ref-def-panel-inner { padding: 0 20px 18px; color: var(--ref-ink-soft); font-size: 0.98rem; }

.ref-article-cta {
  background: var(--ref-muted);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius-lg);
  padding: 28px;
  margin: 40px 0 0;
  text-align: center;
}
.ref-article-cta h3 { margin-bottom: 8px; }
.ref-article-cta p { color: var(--ref-ink-soft); margin-bottom: 18px; }

.ref-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--ref-line);
}
.ref-prevnext a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius);
  background: var(--ref-surface);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ref-prevnext a:hover { border-color: var(--ref-accent); box-shadow: var(--ref-shadow-sm); text-decoration: none; }
.ref-pn-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ref-ink-soft); display: flex; align-items: center; gap: 6px; }
.ref-pn-label svg { width: 15px; height: 15px; }
.ref-pn-next { text-align: right; align-items: flex-end; }
.ref-pn-title { font-family: var(--ref-font-head); font-weight: 600; color: var(--ref-primary); }

.ref-index-list { display: grid; gap: 20px; }
.ref-index-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  background: var(--ref-surface);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius-lg);
  overflow: hidden;
  box-shadow: var(--ref-shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ref-index-item:hover { box-shadow: var(--ref-shadow-md); transform: translateY(-2px); }
.ref-index-media { overflow: hidden; background: var(--ref-muted); }
.ref-index-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.ref-index-content { padding: 24px 26px 24px 0; display: flex; flex-direction: column; }
.ref-index-content h3 { margin-bottom: 9px; }
.ref-index-content h3 a { color: var(--ref-primary); }
.ref-index-content h3 a:hover { color: var(--ref-accent-deep); text-decoration: none; }
.ref-index-content p { color: var(--ref-ink-soft); font-size: 0.97rem; flex: 1; }

.ref-contact-grid { display: grid; gap: 34px; max-width: 760px; margin: 0 auto; }
.ref-info-stack { display: grid; gap: 14px; }
.ref-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--ref-surface);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius);
  padding: 18px 20px;
}
.ref-info-item .ref-info-ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--ref-muted);
  color: var(--ref-accent-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ref-info-item .ref-info-ic svg { width: 22px; height: 22px; }
.ref-info-item strong { display: block; color: var(--ref-primary); font-family: var(--ref-font-head); margin-bottom: 2px; }
.ref-info-item a, .ref-info-item span { color: var(--ref-ink-soft); }

.ref-form {
  background: var(--ref-surface);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--ref-shadow-sm);
}
.ref-field { margin-bottom: 18px; }
.ref-field label { display: block; font-weight: 600; color: var(--ref-primary); margin-bottom: 7px; font-size: 0.95rem; }
.ref-field input, .ref-field textarea {
  width: 100%;
  font-family: var(--ref-font-body);
  font-size: 1rem;
  color: var(--ref-ink);
  background: var(--ref-bg);
  border: 1.5px solid var(--ref-border);
  border-radius: var(--ref-radius-sm);
  padding: 12px 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ref-field input:focus, .ref-field textarea:focus {
  outline: none;
  border-color: var(--ref-accent);
  box-shadow: 0 0 0 3px rgba(45, 108, 181, 0.16);
}
.ref-field textarea { resize: vertical; min-height: 130px; }
.ref-field-note { font-size: 0.83rem; color: var(--ref-ink-soft); margin-top: 5px; }

.ref-map { margin-top: 6px; }
.ref-map-frame {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--ref-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ref-border);
  box-shadow: var(--ref-shadow-sm);
}
.ref-map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ref-map-link { margin-top: 14px; }

.ref-legal { padding: clamp(36px, 5vw, 60px) 0; }
.ref-legal-wrap { max-width: 800px; margin: 0 auto; }
.ref-legal-wrap h2 { margin-top: 1.8em; }
.ref-legal-wrap h2:first-of-type { margin-top: 0.6em; }
.ref-legal-toc {
  background: var(--ref-surface);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.ref-legal-toc strong { color: var(--ref-primary); display: block; margin-bottom: 10px; }
.ref-legal-toc ol { margin: 0; color: var(--ref-ink-soft); }
.ref-legal-toc a { color: var(--ref-accent-deep); }
.ref-legal-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; }
.ref-legal-table th, .ref-legal-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--ref-border); vertical-align: top; }
.ref-legal-table th { background: var(--ref-muted); color: var(--ref-primary); font-family: var(--ref-font-head); }
.ref-legal-table caption { text-align: left; color: var(--ref-ink-soft); font-size: 0.88rem; margin-bottom: 8px; }

.ref-footer {
  background: var(--ref-primary);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 0;
  margin-top: 0;
}
.ref-footer a { color: rgba(255, 255, 255, 0.82); }
.ref-footer a:hover { color: #fff; }
.ref-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.ref-footer-brand .ref-brand-name { color: #fff; }
.ref-footer-brand .ref-brand-sub { color: rgba(255, 255, 255, 0.7); }
.ref-footer-brand p { margin-top: 14px; font-size: 0.93rem; color: rgba(255, 255, 255, 0.72); max-width: 280px; }
.ref-footer-col h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--ref-font-body); font-weight: 600; }
.ref-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ref-footer-col li { margin-bottom: 10px; }
.ref-footer-col a { font-size: 0.93rem; }
.ref-footer-cookie-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-family: var(--ref-font-body);
  font-size: 0.93rem;
  padding: 0;
  text-align: left;
}
.ref-footer-cookie-btn:hover { color: #fff; text-decoration: underline; }
.ref-footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; margin-bottom: 13px; }
.ref-footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--ref-accent); }
.ref-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
}
.ref-footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

.ref-cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--ref-surface);
  border-top: 2px solid var(--ref-accent);
  box-shadow: 0 -8px 28px rgba(36, 59, 83, 0.16);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.ref-cookie-bar[data-show="true"] { transform: translateY(0); }
.ref-cookie-inner {
  max-width: var(--ref-maxw);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  justify-content: space-between;
}
.ref-cookie-text { flex: 1; min-width: 260px; font-size: 0.93rem; color: var(--ref-slate); margin: 0; }
.ref-cookie-text a { color: var(--ref-accent-deep); font-weight: 600; }
.ref-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-cookie-actions .ref-btn { padding: 11px 18px; min-height: 44px; font-size: 0.93rem; }
.ref-cookie-btn-text {
  background: none;
  border: none;
  color: var(--ref-accent-deep);
  font-weight: 600;
  font-family: var(--ref-font-body);
  cursor: pointer;
  padding: 11px 14px;
  min-height: 44px;
  border-radius: var(--ref-radius-sm);
  font-size: 0.93rem;
}
.ref-cookie-btn-text:hover { background: var(--ref-muted); }

.ref-cookie-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  background: var(--ref-surface);
  border-top: 2px solid var(--ref-accent);
  box-shadow: 0 -12px 40px rgba(36, 59, 83, 0.22);
  max-height: 86vh;
  overflow-y: auto;
  transform: translateY(110%);
  transition: transform 0.32s ease;
}
.ref-cookie-panel[data-show="true"] { transform: translateY(0); }
.ref-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(31, 41, 51, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.ref-cookie-overlay[data-show="true"] { opacity: 1; visibility: visible; }
.ref-cookie-panel-inner { max-width: 880px; margin: 0 auto; padding: 28px 24px 32px; }
.ref-cookie-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.ref-cookie-panel-head h2 { margin: 0; font-size: 1.5rem; }
.ref-cookie-close {
  width: 42px; height: 42px;
  border: 1px solid var(--ref-border);
  background: var(--ref-surface);
  border-radius: var(--ref-radius-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ref-slate);
  flex-shrink: 0;
}
.ref-cookie-close svg { width: 22px; height: 22px; }
.ref-cookie-panel > .ref-cookie-panel-inner > p { color: var(--ref-ink-soft); font-size: 0.96rem; }

.ref-cookie-row { border: 1px solid var(--ref-border); border-radius: var(--ref-radius); margin-bottom: 14px; overflow: hidden; }
.ref-cookie-row-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; }
.ref-cookie-row-info { flex: 1; }
.ref-cookie-row-info strong { color: var(--ref-primary); font-family: var(--ref-font-head); font-size: 1.05rem; }
.ref-cookie-row-info p { margin: 3px 0 0; font-size: 0.88rem; color: var(--ref-ink-soft); }
.ref-cookie-row-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ref-cookie-detail-btn {
  background: none; border: none; color: var(--ref-accent-deep); cursor: pointer;
  font-size: 0.82rem; font-weight: 600; font-family: var(--ref-font-body);
  display: inline-flex; align-items: center; gap: 4px; padding: 6px;
}
.ref-cookie-detail-btn svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.ref-cookie-row[data-detail="true"] .ref-cookie-detail-btn svg { transform: rotate(180deg); }
.ref-cookie-detail {
  max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
  background: var(--ref-bg); border-top: 1px solid transparent;
}
.ref-cookie-row[data-detail="true"] .ref-cookie-detail { border-top-color: var(--ref-line); }
.ref-cookie-detail-inner { padding: 14px 18px; font-size: 0.88rem; color: var(--ref-ink-soft); }
.ref-cookie-detail-inner dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.ref-cookie-detail-inner dt { font-weight: 600; color: var(--ref-slate); }
.ref-cookie-detail-inner dd { margin: 0; }

.ref-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.ref-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.ref-switch-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #C2CCD6; border-radius: 999px; transition: background 0.2s ease;
}
.ref-switch-slider::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 22px; height: 22px; background: #fff; border-radius: 50%;
  transition: transform 0.2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ref-switch input:checked + .ref-switch-slider { background: var(--ref-accent); }
.ref-switch input:checked + .ref-switch-slider::before { transform: translateX(22px); }
.ref-switch input:disabled + .ref-switch-slider { background: var(--ref-accent-deep); cursor: not-allowed; opacity: 0.7; }
.ref-switch input:focus-visible + .ref-switch-slider { outline: 3px solid var(--ref-accent); outline-offset: 2px; }
.ref-cookie-panel-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }

.ref-modal-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(31, 41, 51, 0.55);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.ref-modal-overlay[data-show="true"] { opacity: 1; visibility: visible; }
.ref-modal {
  background: var(--ref-surface); border-radius: var(--ref-radius-lg);
  max-width: 420px; width: 100%; padding: 34px 30px; text-align: center;
  box-shadow: var(--ref-shadow-lg); transform: scale(0.95); transition: transform 0.25s ease;
}
.ref-modal-overlay[data-show="true"] .ref-modal { transform: scale(1); }
.ref-modal-ic { width: 58px; height: 58px; border-radius: 50%; background: var(--ref-muted); color: var(--ref-accent-deep); display: grid; place-items: center; margin: 0 auto 18px; }
.ref-modal-ic svg { width: 30px; height: 30px; }
.ref-modal h3 { margin-bottom: 10px; }
.ref-modal p { color: var(--ref-ink-soft); margin-bottom: 22px; }

.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .ref-footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ref-cards { grid-template-columns: repeat(2, 1fr); }
  .ref-event-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .ref-menu, .ref-nav-cta .ref-btn { display: none; }
  .ref-burger { display: grid; }
  .ref-nav { grid-template-columns: 1fr auto; min-height: 64px; }
  .ref-nav-cta { justify-self: end; }
  .ref-nav-cta .ref-burger { display: grid; }
  .ref-menu-mobile {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--ref-line);
    background: var(--ref-surface);
  }
  .ref-menu-mobile[data-open="true"] { display: flex; }
  .ref-menu-mobile a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 12px; border-radius: var(--ref-radius-sm);
    color: var(--ref-slate); font-weight: 500; min-height: 48px;
  }
  .ref-menu-mobile a:hover { background: var(--ref-muted); text-decoration: none; color: var(--ref-primary); }
  .ref-menu-mobile .ref-mob-group-label {
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--ref-ink-soft); padding: 16px 12px 6px;
  }
  .ref-menu-mobile .ref-mob-sub { padding-left: 24px; font-size: 0.94rem; }
  .ref-menu-mobile .ref-btn { margin-top: 14px; }
  .ref-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .ref-about-media { order: -1; }
  .ref-index-item { grid-template-columns: 1fr; }
  .ref-index-media img { aspect-ratio: 16 / 9; }
  .ref-index-content { padding: 22px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .ref-cards { grid-template-columns: 1fr; }
  .ref-glossary-grid { grid-template-columns: 1fr; }
  .ref-footer-top { grid-template-columns: 1fr; gap: 26px; }
  .ref-prevnext { grid-template-columns: 1fr; }
  .ref-pn-next { text-align: left; align-items: flex-start; }
  .ref-map-frame { height: 320px; }
  .ref-cookie-inner { flex-direction: column; align-items: stretch; }
  .ref-cookie-actions { flex-direction: column; }
  .ref-cookie-actions .ref-btn, .ref-cookie-btn-text { width: 100%; }
  .ref-cta-actions { flex-direction: column; }
  .ref-cta-actions .ref-btn { width: 100%; }
  .ref-hero-cta { flex-direction: column; align-items: stretch; }
  .ref-hero-cta .ref-btn { width: 100%; }
}

@media (max-width: 400px) {
  .ref-container { padding: 0 16px; }
  .ref-cookie-panel-inner { padding: 22px 18px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}
