/* ============================================================
   education-program.css — Боловсролын хөтөлбөрийн дэлгэрэнгүй (ep-)
   Загвар: Солонгосын Үндэсний музейн боловсролын платформ —
   зүүн постер + баруун мэдээллийн хүснэгт, доор агуулга + sticky хажуу самбар.
   Brandbook: navy #031F3E · red #E91518 · gold #C9A24A · cream #faf6ee
   ============================================================ */
.ep-body {
  --ep-navy: #031f3e; --ep-red: #e91518; --ep-gold: #c9a24a; --ep-gold-deep: #9a7a2a;
  --ep-cream: #faf6ee; --ep-line: #e6dfcf; --ep-text: #222; --ep-muted: #6b6f78;
  background: var(--ep-cream);
  color: var(--ep-text);
}
.ep-prose a, .ep-note a, .ep-steps a, .ep-exh-past a, .ep-mat-note a { color: var(--ep-navy); }
.ep-body .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── Замчлал ─── */
.ep-crumb { background: #fff; border-bottom: 1px solid var(--ep-line); }
.ep-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; font-size: .8rem; }
.ep-breadcrumb a { color: var(--ep-muted); text-decoration: none; }
.ep-breadcrumb a:hover { color: var(--ep-navy); }
.ep-breadcrumb i { font-size: .5rem; color: #c2bdb0; }
.ep-breadcrumb [aria-current] { color: var(--ep-navy); font-weight: 600; }

/* ─── Толгой: постер + мэдээлэл ─── */
.ep-top { background: #fff; padding: 40px 0 44px; }
.ep-top-grid { display: grid; grid-template-columns: 440px 1fr; gap: 40px; align-items: start; }

.ep-poster { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.ep-poster.has-rail { grid-template-columns: 80px 1fr; }
.ep-rail { display: flex; flex-direction: column; gap: 10px; }
.ep-rail-item { position: relative; display: block; width: 80px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #e6dfcf; cursor: zoom-in; text-decoration: none; transition: border-color .2s, transform .2s; }
.ep-rail-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-rail-item:hover { border-color: var(--ep-red); transform: translateX(3px); }
.ep-rail-item.is-video { cursor: pointer; }
.ep-rail-item.is-video img { filter: brightness(.7); }
.ep-rail-item.is-video i { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--ep-red); color: #fff; display: grid; place-items: center; font-size: .7rem; padding-left: 2px; box-shadow: 0 6px 14px rgba(233,21,24,.4); }
.ep-rail-item.is-more img { filter: brightness(.45) blur(1px); }
.ep-rail-item.is-more span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem; }
.ep-cover { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #efe9da; aspect-ratio: 4 / 5; box-shadow: 0 18px 44px rgba(3,31,62,.16); }
.ep-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.ep-cover:hover img { transform: scale(1.03); }
.ep-cover-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ep-cover-num { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 6px; background: var(--ep-red); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .06em; }
.ep-cover-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 48px 16px 16px; background: linear-gradient(to top, rgba(3,31,62,.88) 0%, rgba(3,31,62,.45) 55%, rgba(3,31,62,0) 100%); pointer-events: none; }
.ep-cover-chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: .78rem; font-weight: 700; text-decoration: none; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.ep-cover-chip:hover { background: rgba(255,255,255,.26); border-color: #fff; color: #fff; }
.ep-cover-chip.is-play { background: var(--ep-red); border-color: var(--ep-red); box-shadow: 0 8px 20px rgba(233,21,24,.35); }
.ep-cover-chip.is-play:hover { background: #c8100f; border-color: #c8100f; }
.ep-cover-chip.is-play i { font-size: .7rem; }

.ep-head { min-width: 0; }
.ep-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ep-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ep-line); background: var(--ep-cream); color: var(--ep-navy); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.ep-tag i { color: var(--ep-red); font-size: .72rem; }
.ep-tag-status { border-color: transparent; color: #fff; background: var(--ep-navy); }
.ep-tag-status.is-open { background: #1f8a4c; }
.ep-tag-status.is-upcoming { background: #b7791f; }
.ep-tag-status.is-ended { background: #8a8a8a; }
.ep-tag-status.is-permanent { background: var(--ep-navy); }
.ep-tag-exh { background: #f1ecfa; border-color: #dcd1f0; color: #4b2a8a; }
.ep-tag-exh i { color: var(--ep-navy); }
.ep-tag-exh:hover { background: #4b2a8a; color: #fff; }
.ep-tag-exh:hover i { color: #fff; }

.ep-title { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; line-height: 1.2; color: var(--ep-navy); letter-spacing: -.01em; }
.ep-lead { margin: 0 0 22px; font-size: 1.02rem; line-height: 1.65; color: #444; }

/* Товч мэдээллийн самбар (icon + шошго + утга, 2 багана) */
.ep-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ep-line); border: 1px solid var(--ep-line); border-radius: 10px; overflow: hidden; }
.ep-fact { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: #fff; min-width: 0; }
.ep-fact > i { width: 36px; height: 36px; border-radius: 8px; background: #fdeced; color: var(--ep-red); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.ep-fact span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ep-muted); margin-bottom: 3px; }
.ep-fact strong { display: block; font-size: .9rem; font-weight: 600; color: var(--ep-navy); line-height: 1.4; }
.ep-fact:only-child { grid-column: 1 / -1; }
.ep-tag-plain { background: #fff; }

.ep-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ep-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 6px; font-weight: 700; font-size: .9rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: all .2s; }
.ep-btn em { font-style: normal; font-size: .72rem; padding: 2px 7px; border-radius: 999px; background: rgba(3,31,62,.08); }
.ep-btn-red { background: var(--ep-red); color: #fff; }
.ep-btn-red:hover { background: #c81e21; }
.ep-btn-red i { color: #fff; }
.ep-btn-navy { background: var(--ep-navy); color: #fff; }
.ep-btn-navy:hover { background: #0a3466; }
.ep-btn-navy i { color: rgba(255,255,255,.85); }
.ep-btn-ghost { background: #fff; border-color: #d9d2c0; color: var(--ep-navy); }
.ep-btn-ghost:hover { border-color: var(--ep-navy); }
.ep-btn-ghost i { color: var(--ep-red); }
.ep-btn-text { background: transparent; border-color: transparent; color: var(--ep-navy); padding-left: 8px; padding-right: 8px; }
.ep-btn-text:hover { background: var(--ep-cream); }
.ep-btn-text i { color: var(--ep-red); }
.ep-btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.ep-btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.ep-btn-ghost-light i { color: rgba(255,255,255,.85); }
.ep-btn-block { width: 100%; justify-content: center; }
.ep-body .qr-audio-btn { background: #fff; border-color: #d9d2c0; color: var(--ep-navy); border-radius: 6px; padding: 13px 22px; font-size: .9rem; }
.ep-body .qr-audio-btn:hover { background: #fff; border-color: var(--ep-navy); color: var(--ep-navy); }

/* ─── Хэсгийн цэс (sticky) ─── */
.ep-nav { position: sticky; top: var(--ep-head, 0px); z-index: 30; background: #fff; border-top: 1px solid var(--ep-line); border-bottom: 1px solid var(--ep-line); }
.ep-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ep-nav ul::-webkit-scrollbar { display: none; }
.ep-anchor { display: block; padding: 14px 16px; font-size: .84rem; font-weight: 700; color: var(--ep-muted); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.ep-anchor:hover { color: var(--ep-navy); }
.ep-anchor.active { color: var(--ep-navy); border-bottom-color: var(--ep-red); }

/* ─── Үндсэн агуулга + хажуу самбар ─── */
.ep-main-wrap { padding: 44px 0 60px; }
.ep-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.ep-main { min-width: 0; }
.ep-sec { background: #fff; border: 1px solid var(--ep-line); border-radius: 12px; padding: 30px 34px; margin-bottom: 22px; scroll-margin-top: calc(var(--ep-head, 0px) + 70px); }
.ep-h2 { margin: 0 0 18px; padding-left: 14px; border-left: 4px solid var(--ep-red); font-size: 1.3rem; font-weight: 700; color: var(--ep-navy); line-height: 1.25; }
.ep-sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.ep-sec-head .ep-h2 { margin-bottom: 4px; }
.ep-sub { margin: 0 0 0 18px; font-size: .88rem; color: var(--ep-muted); line-height: 1.5; }
.ep-more { white-space: nowrap; font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--ep-navy); padding: 8px 14px; border: 1px solid var(--ep-line); border-radius: 999px; transition: all .2s; }
.ep-more:hover { background: var(--ep-navy); color: #fff; border-color: var(--ep-navy); }
.ep-more i { font-size: .72rem; margin-left: 4px; }
.ep-link { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: var(--ep-navy); text-decoration: none; }
.ep-link i { transition: transform .2s; font-size: .76rem; }
.ep-link:hover i { transform: translateX(4px); }
.ep-link:hover { color: var(--ep-red); }
.ep-muted { color: var(--ep-muted); font-style: italic; }

.ep-prose { font-size: .98rem; line-height: 1.75; color: #333; }
.ep-prose p { margin: 0 0 14px; }
.ep-prose p:last-child { margin-bottom: 0; }
.ep-prose h2, .ep-prose h3, .ep-prose h4 { color: var(--ep-navy); margin: 22px 0 8px; }
.ep-prose ul, .ep-prose ol { margin: 0 0 14px; padding-left: 22px; }
.ep-prose img { max-width: 100%; height: auto; border-radius: 8px; }

.ep-outcomes { margin-top: 22px; padding: 20px 22px; background: var(--ep-cream); border-radius: 10px; }
.ep-outcomes h3 { margin: 0 0 12px; font-size: .95rem; color: var(--ep-navy); display: flex; align-items: center; gap: 8px; }
.ep-outcomes h3 i { color: var(--ep-red); }
.ep-outcomes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.ep-outcomes li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.ep-outcomes li i { width: 18px; height: 18px; border-radius: 50%; background: var(--ep-navy); color: #fff; font-size: .58rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 3px; }

.ep-note { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--ep-gold); background: var(--ep-cream); border-radius: 0 8px 8px 0; font-size: .9rem; line-height: 1.6; }
.ep-note-warn { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; background: #fff8e6; border-left-color: #e0b24a; border-radius: 8px; padding: 14px 16px; }
.ep-note-warn > i { color: var(--ep-red); margin-top: 3px; }
.ep-note-warn strong { display: block; color: var(--ep-navy); margin-bottom: 3px; font-size: .9rem; }
.ep-note-warn p { margin: 0; }

/* Үзмэрүүд */
/* Үзмэрүүд: хэвтээ нягт картууд. 1 → бүтэн өргөн, 2+ → 2 багана */
.ep-objects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ep-objects.is-1 { grid-template-columns: 1fr; }
.ep-obj { display: flex; text-decoration: none; color: inherit; border: 1px solid var(--ep-line); border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #fff 0%, var(--ep-cream) 100%); transition: all .2s; }
.ep-obj:hover { border-color: var(--ep-gold); box-shadow: 0 8px 22px rgba(3,31,62,.09); transform: translateY(-2px); }
.ep-obj-img { position: relative; flex: 0 0 110px; min-height: 110px; background: #efe9da; overflow: hidden; }
.ep-objects.is-2 .ep-obj-img { flex-basis: 130px; min-height: 120px; }
.ep-objects.is-1 .ep-obj-img { flex-basis: 180px; min-height: 150px; }
.ep-obj-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ep-obj:hover .ep-obj-img img { transform: scale(1.05); }
.ep-obj-zoom { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(3,31,62,.75); color: #fff; display: grid; place-items: center; font-size: .62rem; opacity: 0; transition: opacity .2s; }
.ep-obj:hover .ep-obj-zoom { opacity: 1; }
.ep-obj-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 14px; }
.ep-objects.is-1 .ep-obj-body { padding: 14px 20px; gap: 4px; }
.ep-obj-body small { font-size: .66rem; font-weight: 700; letter-spacing: .08em; color: var(--ep-red); }
.ep-obj-body strong { font-size: .88rem; line-height: 1.3; color: var(--ep-navy); }
.ep-objects.is-1 .ep-obj-body strong { font-size: 1.05rem; }
.ep-obj-meta { display: flex; flex-wrap: wrap; gap: 3px 10px; }
.ep-obj-meta em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: .7rem; color: #5a5955; }
.ep-obj-meta em i { color: var(--ep-navy); opacity: .75; font-size: .66rem; }
.ep-obj-text { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.5; color: #3f3e3a; }
.ep-obj-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: .72rem; font-weight: 700; color: var(--ep-navy); }
.ep-obj-link i { font-size: .66rem; transition: transform .2s; }
.ep-obj:hover .ep-obj-link i { transform: translateX(3px); }

/* Үзэсгэлэн */
.ep-exh { display: grid; grid-template-columns: 220px 1fr; gap: 24px; border: 1px solid var(--ep-line); border-radius: 10px; overflow: hidden; background: var(--ep-cream); }
.ep-exh + .ep-exh { margin-top: 16px; }
.ep-exh-img { display: block; background: #e5dcc5; }
.ep-exh-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 200px; }
.ep-exh-body { padding: 20px 22px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.ep-exh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-exh-tags span { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--ep-line); color: var(--ep-navy); }
.ep-exh-status { background: #eef2f7 !important; border-color: transparent !important; }
.ep-exh.is-current .ep-exh-status, .ep-exh.is-virtual .ep-exh-status { background: #e3f5ea !important; color: #1f8a4c !important; }
.ep-exh.is-upcoming .ep-exh-status { background: #fdf3df !important; color: #9a6410 !important; }
.ep-exh.is-past .ep-exh-status { background: #ececec !important; color: #777 !important; }
.ep-exh h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.ep-exh h3 a { text-decoration: none; color: var(--ep-navy); }
.ep-exh h3 a:hover { color: var(--ep-red); }
.ep-exh-body > p { margin: 0; font-size: .9rem; color: #444; line-height: 1.55; }
.ep-exh-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .82rem; color: var(--ep-muted); }
.ep-exh-meta i { color: var(--ep-navy); opacity: .75; margin-right: 6px; }
.ep-exh-past { font-size: .8rem !important; color: #8a6d1c !important; }
.ep-exh-past i { margin-right: 6px; }

/* Зураг, видео */
.ep-media-tabs { display: inline-flex; gap: 4px; background: var(--ep-cream); border-radius: 999px; padding: 4px; }
.ep-media-tab { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .82rem; font-weight: 700; color: var(--ep-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.ep-media-tab em { font-style: normal; font-size: .7rem; padding: 1px 7px; border-radius: 999px; background: rgba(3,31,62,.08); }
.ep-media-tab.active { background: var(--ep-navy); color: #fff; }
.ep-media-tab.active em { background: rgba(255,255,255,.2); }
.ep-media-panel { display: none; }
.ep-media-panel.active { display: block; }
.ep-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ep-gal { position: relative; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: #efe9da; cursor: zoom-in; }
.ep-gal img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ep-gal:hover img { transform: scale(1.05); }
.ep-gal:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ep-gal-more { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: rgba(3,31,62,.62); color: #fff; backdrop-filter: blur(2px); transition: background .2s; }
.ep-gal-more b { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.ep-gal-more small { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.ep-gal:hover .ep-gal-more { background: rgba(3,31,62,.72); }
.ep-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ep-videos.is-single { grid-template-columns: 1fr; }
.ep-video { margin: 0; }
.ep-video button, .ep-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #000 center / cover no-repeat; position: relative; cursor: pointer; }
.ep-video button span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: var(--ep-red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 10px 26px rgba(0,0,0,.35); transition: transform .2s; }
.ep-video button:hover span { transform: translate(-50%, -50%) scale(1.08); }
.ep-video figcaption { margin-top: 8px; font-size: .86rem; font-weight: 600; color: var(--ep-navy); }

/* Хичээлийн явц */
.ep-flow { list-style: none; margin: 0; padding: 0; }
.ep-flow li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--ep-line); }
.ep-flow li:last-child { border-bottom: 0; }
.ep-flow-min { font-size: .78rem; font-weight: 700; color: var(--ep-red); padding-top: 3px; }
.ep-flow strong { display: block; color: var(--ep-navy); font-size: .98rem; }
.ep-flow p { margin: 4px 0 0; font-size: .9rem; line-height: 1.6; color: #444; }
/* Хэрэглэгдэхүүн */
.ep-mat { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--ep-line); }
.ep-sec.ep-mat { margin-top: 0; padding-top: 28px; border-top: 0; }
.ep-mat-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ep-mat-ico { width: 38px; height: 38px; border-radius: 10px; background: #fdeced; color: var(--ep-red); display: grid; place-items: center; font-size: 1.1rem; flex: 0 0 auto; }
.ep-mat-title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--ep-navy); }
h2.ep-mat-title { font-size: 1.45rem; }
.ep-mat-sub { margin: 2px 0 0; font-size: .82rem; color: #6b6a66; }
.ep-mat-legend { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 14px; font-size: .76rem; color: #5a5955; }
.ep-mat-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ep-mat-legend i, .ep-mat-src i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ep-mat-legend .is-museum, .ep-mat-item.is-museum .ep-mat-src i { background: var(--ep-navy); }
.ep-mat-legend .is-participant, .ep-mat-item.is-participant .ep-mat-src i { background: var(--ep-red); }
.ep-mat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 12px; }
.ep-mat-item { display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 7px; background: #fff; border: 1px solid var(--ep-line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.ep-mat-item:hover { border-color: #d9cfb5; box-shadow: 0 4px 14px rgba(3,31,62,.06); }
.ep-mat-img { position: relative; flex: 0 0 auto; display: block; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 8px; background: var(--ep-cream); cursor: zoom-in; overflow: hidden; }
.ep-mat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ep-mat-img:hover img { transform: scale(1.08); }
.ep-mat-zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(3,31,62,.45); color: #fff; font-size: .8rem; opacity: 0; transition: opacity .2s; }
.ep-mat-img:hover .ep-mat-zoom, .ep-mat-img:focus-visible .ep-mat-zoom { opacity: 1; }
.ep-mat-img.is-empty { display: grid; place-items: center; color: #c9bfa6; font-size: 1.1rem; cursor: default; }
.ep-mat-body { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 1px; font-size: .8rem; line-height: 1.3; }
.ep-mat-body strong { color: var(--ep-navy); font-size: .86rem; }
.ep-mat-qty { color: var(--ep-red); font-weight: 700; font-size: .76rem; white-space: nowrap; }
.ep-mat-body small { flex-basis: 100%; color: #6b6a66; font-size: .74rem; }
.ep-mat-src { flex-basis: 100%; margin-top: 2px; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: .7rem; color: #5a5955; }
.ep-mat-note { margin-top: 12px; display: flex; gap: 10px; padding: 10px 14px; background: var(--ep-cream); border-radius: 10px; font-size: .88rem; line-height: 1.6; }
.ep-mat-note i { color: var(--ep-red); margin-top: 4px; }
.ep-mat-note p { margin: 0; }
@media (max-width: 640px) { .ep-mat-grid { grid-template-columns: 1fr; gap: 8px; } .ep-mat-legend { margin-left: 0; flex-basis: 100%; } }

/* Хэрхэн оролцох */
.ep-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ep-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; background: var(--ep-cream); border-radius: 10px; }
.ep-steps li > span { width: 30px; height: 30px; border-radius: 50%; background: var(--ep-navy); color: #fff; font-weight: 800; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ep-steps strong { display: block; color: var(--ep-navy); font-size: .92rem; margin-bottom: 4px; }
.ep-steps p { margin: 0; font-size: .84rem; line-height: 1.55; color: #444; }

/* Хажуу самбар */
.ep-side { position: sticky; top: calc(var(--ep-head, 0px) + var(--ep-nav-h, 50px) + 16px); display: flex; flex-direction: column; gap: 18px; }
.ep-book { background: var(--ep-navy); color: #fff; border-radius: 12px; padding: 22px 22px 20px; box-shadow: 0 16px 40px rgba(3,31,62,.22); }
.ep-book-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.ep-book-price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.ep-book .ep-tag-status { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font-size: .68rem; }
.ep-book .ep-tag-status.is-open { background: #1f8a4c; border-color: #1f8a4c; }
.ep-book .ep-tag-status.is-upcoming { background: #b7791f; border-color: #b7791f; }
.ep-book-facts { list-style: none; margin: 0 0 16px; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 8px; font-size: .86rem; color: rgba(255,255,255,.9); }
.ep-book-facts i { width: 18px; color: rgba(255,255,255,.75); margin-right: 6px; text-align: center; }
.ep-book .ep-btn + .ep-btn { margin-top: 8px; }
.ep-book-contact { margin: 14px 0 0; font-size: .8rem; line-height: 1.5; color: rgba(255,255,255,.75); }
.ep-book-contact a { color: #fff; }

.ep-card { background: #fff; border: 1px solid var(--ep-line); border-radius: 12px; padding: 18px 20px; }
.ep-card h4 { margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ep-muted); }
.ep-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-chips span, .ep-chips a { font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--ep-cream); border: 1px solid var(--ep-line); color: var(--ep-navy); text-decoration: none; }
.ep-chips a:hover { background: var(--ep-navy); color: #fff; }
.ep-rel { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; }
.ep-rel li + li { border-top: 1px solid var(--ep-line); }
.ep-rel a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; text-decoration: none; color: inherit; }
.ep-rel img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: #efe9da; }
.ep-rel strong { display: block; font-size: .86rem; color: var(--ep-navy); line-height: 1.3; }
.ep-rel small { display: block; font-size: .74rem; color: var(--ep-muted); margin-top: 2px; }
.ep-rel a:hover strong { color: var(--ep-red); }

/* Өмнөх / дараах */
.ep-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.ep-pn a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff; border: 1px solid var(--ep-line); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .2s; }
.ep-pn a:hover { border-color: var(--ep-navy); }
.ep-pn-next { justify-content: flex-end; text-align: right; }
.ep-pn small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ep-muted); }
.ep-pn strong { display: block; font-size: .92rem; color: var(--ep-navy); }
.ep-pn i { color: var(--ep-red); }

/* Lightbox */
.ep-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 50px; }
.ep-lb[hidden] { display: none; }
.ep-lb figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.ep-lb img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.ep-lb figcaption { color: rgba(255,255,255,.8); font-size: .85rem; margin-top: 12px; }
.ep-lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ep-lb-btn:hover { background: rgba(255,255,255,.25); }
.ep-lb-close { top: 18px; right: 18px; }
.ep-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.ep-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.ep-lb-counter { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .85rem; font-weight: 600; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .ep-top-grid { grid-template-columns: 380px 1fr; gap: 32px; }
  .ep-poster.has-rail { grid-template-columns: 64px 1fr; }
  .ep-rail-item { width: 64px; }
  .ep-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
  .ep-sec { padding: 24px; }
  .ep-objects.is-1 .ep-obj-img { flex-basis: 160px; }
  .ep-steps { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ep-top { padding: 24px 0 30px; }
  .ep-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .ep-cover { aspect-ratio: 16 / 10; max-width: 100%; }
  .ep-poster.has-rail { grid-template-columns: 1fr; }
  .ep-rail { order: 2; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .ep-rail-item { width: 64px; }
  .ep-rail-item:hover { transform: translateY(-2px); }
  .ep-layout { grid-template-columns: 1fr; gap: 20px; }
  .ep-side { position: static; }
  .ep-outcomes ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ep-body .container { padding: 0 16px; }
  .ep-title { font-size: 1.55rem; }
  .ep-facts { grid-template-columns: 1fr; }
  .ep-fact { padding: 12px 14px; }
  .ep-actions .ep-btn { flex: 1 1 calc(50% - 10px); justify-content: center; padding: 12px 14px; font-size: .84rem; }
  .ep-anchor { padding: 12px 12px; font-size: .8rem; }
  .ep-sec { padding: 20px 16px; border-radius: 10px; }
  .ep-h2 { font-size: 1.12rem; }
  .ep-sec-head { flex-wrap: wrap; }
  .ep-more { order: 3; }
  .ep-objects { grid-template-columns: 1fr; gap: 8px; }
  .ep-obj-img, .ep-objects.is-2 .ep-obj-img, .ep-objects.is-1 .ep-obj-img { flex-basis: 96px; min-height: 96px; }
  .ep-obj-body, .ep-objects.is-1 .ep-obj-body { padding: 10px 12px; }
  .ep-objects.is-1 .ep-obj-body strong { font-size: .95rem; }
  .ep-obj-text { display: none; }
  .ep-exh { grid-template-columns: 1fr; gap: 0; }
  .ep-exh-img img { min-height: 0; aspect-ratio: 16 / 9; }
  .ep-exh-body { padding: 16px; }
  .ep-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ep-gal:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .ep-videos { grid-template-columns: 1fr; }
  .ep-flow li { grid-template-columns: 1fr; gap: 4px; }
  .ep-pn { grid-template-columns: 1fr; }
  .ep-pn-next { justify-content: space-between; }
  .ep-lb { padding: 16px; }
  .ep-lb-prev { left: 8px; } .ep-lb-next { right: 8px; }
  .ep-rail-item { width: calc((100% - 32px) / 5); }
  .ep-cover-chip { padding: 8px 11px; font-size: .72rem; }
}
