:root {
  --navy-900: #0d1f54;
  --navy-800: #112a6b;
  --navy-700: #1a3a8f;
  --navy-600: #234aa8;
  --navy-500: #2f5bc4;
  --blue-grad-top: #2f5bc4;
  --blue-grad-bottom: #cfdcf2;
  --gold: #d4a541;
  --gold-600: #c2922f;
  --gold-100: #f6ecd3;
  --ink: #2a2f3a;
  --ink-soft: #5b6473;
  --line: #e7ebf2;
  --card: #ffffff;
  --bg: #eef2f8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(20, 40, 90, .08);
  --shadow: 0 8px 30px rgba(20, 40, 90, .14);
  --shadow-lg: 0 16px 50px rgba(13, 31, 84, .28);
  --header-h: 64px;
  --maxw: 1160px;
  --font: "Open Sans", Arial, sans-serif;
  --font-head: "Open Sans", Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ===================== HEADER ===================== */
.header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 16px;
  gap: 12px;
  padding-top: env(safe-area-inset-top);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__logo { height: 46px; width: auto; display: block; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: radial-gradient(circle at 50% 40%, #fff, #eef2fb);
  border: 2px solid var(--gold);
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__text { line-height: 1; min-width: 0; }
.brand__text .t1 { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--navy-700); }
.brand__text .t2 { font-size: 9px; font-weight: 700; color: #b32b2b; letter-spacing: .05em; }
.brand__text .t3 { font-size: 19px; font-weight: 800; color: var(--navy-700); letter-spacing: .02em; }

.menu { margin-left: auto; position: relative; }
.menu__btn {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px;
  border: none; border-radius: 999px;
  background: var(--navy-700);
  color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: background .25s var(--ease), transform .12s var(--ease);
}
.menu__btn:hover { background: var(--navy-600); }
.menu__btn:active { transform: scale(.97); }
.menu__btn.open { background: var(--gold); }
.menu__btn svg { width: 18px; height: 18px; }
.menu__btn .label { white-space: nowrap; }

.menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(360px, 86vw);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0; transform: translateY(-8px) scale(.98);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.menu.open .menu__panel { opacity: 1; transform: none; pointer-events: auto; }
.menu__panel a {
  display: block; padding: 16px 22px;
  font-size: 16px; color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.menu__panel a:last-child { border-bottom: none; }
.menu__panel a:hover, .menu__panel a.active { background: var(--gold-100); color: var(--navy-700); font-weight: 600; }
.menu__scrim {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(8,16,40,.28);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.menu__scrim.show { opacity: 1; pointer-events: auto; }

/* ===================== MAIN / PAGE BG ===================== */
.main {
  flex: 1 0 auto;
  background: linear-gradient(180deg, var(--blue-grad-top) 0%, #6c8fd8 38%, var(--blue-grad-bottom) 100%);
  position: relative;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 26px 16px 56px; }

.page-enter { animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: calc(100dvh - var(--header-h));
  min-height: 460px;
  display: grid; place-items: center;
  overflow: hidden;
  color: #fff; text-align: center;
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,60,.35), rgba(10,22,60,.55)); }
.hero__inner { position: relative; z-index: 2; padding: 20px; animation: heroIn 1s var(--ease); }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__mark { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; border: 2px solid var(--gold); }
.hero__logo { width: min(380px, 80vw); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 22px rgba(0,0,0,.45)); animation: heroIn 1s var(--ease); }
.hero__mark svg { width: 44px; height: 44px; }
.hero__t1 { font-size: clamp(22px, 6vw, 44px); font-weight: 800; letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero__t2 { font-size: clamp(12px, 3vw, 20px); font-weight: 700; color: var(--gold); letter-spacing: .22em; margin-top: 6px; }
.hero__t3 { font-size: clamp(48px, 14vw, 120px); font-weight: 900; line-height: .9; letter-spacing: .02em; text-shadow: 0 4px 24px rgba(0,0,0,.45); margin: 4px 0; }
.hero__sub { font-size: clamp(16px, 4vw, 26px); font-weight: 700; letter-spacing: .3em; }
.hero__cta { margin-top: 26px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: none;
  font-size: 15px; font-weight: 700; transition: transform .12s var(--ease), box-shadow .2s, background .2s;
}
.btn--gold { background: var(--gold); color: #2a2207; box-shadow: 0 8px 24px rgba(212,165,65,.4); }
.btn--gold:hover { background: var(--gold-600); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn:active { transform: scale(.96); }

/* ===================== SECTION TITLE ===================== */
.section-title { color: #fff; margin: 6px 0 22px; }
.section-title h1 { font-size: clamp(20px, 4.6vw, 30px); font-weight: 800; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.18); }
.section-title .rule { width: 56px; height: 4px; background: var(--gold); border-radius: 3px; margin-top: 10px; }

/* ===================== GREETING ===================== */
.greet-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr;
}
.greet-card__media { background: #0e1f4a; }
.greet-card__media img { width: 100%; height: 100%; object-fit: cover; }
.greet-card__body {
  background: linear-gradient(160deg, #0f1d44, #0a1430);
  color: #e8eefc; padding: 30px 26px 40px; text-align: center;
}
.greet-card__body .badge { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; }
.greet-card__body .badge svg { width: 36px; height: 36px; }
.greet-card__body h2 { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--gold); font-size: 30px; margin: 0 0 6px; }
.greet-card__body .divider { width: 90px; height: 1px; background: rgba(212,165,65,.6); margin: 12px auto 20px; }
.greet-card__body p { line-height: 1.7; font-size: 15px; margin: 0 0 16px; opacity: .95; }
.greet-card__sign { color: #6db3ff; font-family: Georgia, serif; font-style: italic; font-size: 26px; margin: 18px 0 10px; }
.greet-card__gov { font-size: 12px; letter-spacing: .04em; opacity: .9; margin-top: 18px; }
.greet-card__gov strong { display: block; font-size: 14px; color: #fff; margin-top: 4px; }
@media (min-width: 880px) {
  .greet-card { grid-template-columns: 0.85fr 1.15fr; }
  .greet-card__media img { min-height: 560px; }
}

/* ===================== PROGRAM ===================== */
.daytabs { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: none; }
.daytabs::-webkit-scrollbar { display: none; }
.daytab {
  flex: 0 0 auto; padding: 16px 22px; border-radius: 12px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14px;
  border: 1px solid transparent; box-shadow: var(--shadow-sm); transition: all .2s var(--ease);
}
.daytab.active { background: var(--gold); color: #2a2207; box-shadow: 0 8px 22px rgba(212,165,65,.4); }
.daytab:active { transform: scale(.97); }

.events { display: flex; flex-direction: column; gap: 16px; }
.event {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px;
  align-items: start; animation: fade .35s var(--ease) both;
  border-left: 4px solid var(--gold);
}
.event .e-date { grid-column: 1; font-size: 13px; color: var(--ink-soft); }
.event .e-loc  { grid-column: 2; font-size: 13px; color: var(--ink-soft); }
.event .e-time { grid-column: 1; font-size: 24px; font-weight: 800; color: var(--navy-700); white-space: nowrap; }
.event .e-title{ grid-column: 2; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; }
@media (max-width: 560px) {
  .event { grid-template-columns: 1fr; gap: 2px; }
  .event .e-loc { grid-column: 1; order: 3; }
  .event .e-title { grid-column: 1; order: 4; margin-top: 4px; }
}

/* ===================== MAP ===================== */
/* ===================== MAP (Beijing-Universal маягийн) ===================== */
.map-screen { display: flex; flex-direction: column; gap: 10px; }

/* --- дээд талын ангилалын мөр (icon + нэр) --- */
.cat-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-tab {
  --c: var(--navy-700);
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 66px; padding: 8px 10px; border-radius: 14px; border: none;
  background: #fff; box-shadow: var(--shadow-sm); color: var(--ink-soft);
  transition: transform .12s, box-shadow .15s; cursor: pointer;
}
.cat-tab:active { transform: scale(.94); }
.cat-tab .cat-ic {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #eef2f8; color: var(--ink-soft); transition: all .15s;
}
.cat-tab .cat-ic svg { width: 22px; height: 22px; }
.cat-tab .cat-lb { font-size: 11px; font-weight: 700; line-height: 1.1; text-align: center; white-space: nowrap; }
.cat-tab.on { color: var(--c); }
.cat-tab.on .cat-ic { background: var(--c); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 45%, transparent); }

/* --- талбай (зон) шүүлтийн мөр --- */
.zone-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.zone-bar::-webkit-scrollbar { display: none; }
.zone-pill {
  --zc: var(--navy-700);
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  white-space: nowrap; cursor: pointer; transition: all .15s;
}
.zone-pill .zdot { width: 10px; height: 10px; border-radius: 50%; background: var(--zc); flex: 0 0 auto; }
.zone-pill:active { transform: scale(.95); }
.zone-pill.on { background: var(--zc); border-color: var(--zc); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--zc) 40%, transparent); }
.zone-pill.on .zdot { background: rgba(255,255,255,.9); }

/* --- газрын зураг --- */
.mapwrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); flex: 1 1 auto; }
#map { width: 100%; height: calc(100dvh - var(--header-h) - 188px); min-height: 380px; background: #dfe6f0; }

/* --- цэгийн дүрс (pin) --- */
.mpin-wrap { background: none !important; border: none !important; }
.mpin { --c: #d4a541; position: relative; width: 34px; height: 44px; filter: drop-shadow(0 4px 5px rgba(13,31,84,.4)); }
.mpin-body { width: 34px; height: 44px; color: var(--c); fill: var(--c); }
.mpin-body path { fill: var(--c); stroke: #fff; stroke-width: 1.5; }
.mpin-ic {
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--c);
  display: grid; place-items: center;
}
.mpin-ic svg { width: 16px; height: 16px; }

/* --- талбай (polygon) дээрх icon+нэр шошго --- */
.area-label-wrap { background: none !important; border: none !important; }
.area-label {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--c);
  color: #fff; font-size: 12px; font-weight: 700;
  box-shadow: 0 3px 8px rgba(13,31,84,.35); transform: translateX(-50%);
  border: 1.5px solid rgba(255,255,255,.85); cursor: pointer;
}
.area-label .area-ic {
  width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--c);
  display: grid; place-items: center; flex: 0 0 auto;
}
.area-label .area-ic svg { width: 13px; height: 13px; }
.area-label .area-tx { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* --- доороос гарч ирэх дэлгэрэнгүй карт (bottom sheet) --- */
.sheet { position: fixed; inset: 0; z-index: 1200; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(13,31,84,.45); opacity: 0; transition: opacity .28s var(--ease); }
.sheet.show .sheet__backdrop { opacity: 1; }
.sheet__card {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 560px; margin: 0 auto; background: #fff;
  border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(100%); transition: transform .32s var(--ease);
  max-height: 86vh; overflow-y: auto;
}
.sheet.show .sheet__card { transform: none; }
.sheet__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.45); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.sheet__img { width: 100%; aspect-ratio: 16/10; background: #eef2f8; }
.sheet__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet__body { padding: 18px 20px 26px; }
.sheet__cat {
  display: inline-flex; align-items: center; gap: 6px; color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.sheet__cat svg { width: 15px; height: 15px; }
.sheet__zone { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; }
.sheet__body h3 { margin: 12px 0 6px; font-size: 21px; color: var(--navy-700); }
.sheet__body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); white-space: pre-line; }

@media (max-width: 720px) {
  #map { height: calc(100dvh - var(--header-h) - 200px); }
}

/* ===================== GROUPS ===================== */
.groups-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.group-row {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.group-row:last-child { border-bottom: none; }
.group-row .ava { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: #eef3fb; border: 2px solid #cdddf3; overflow: hidden; }
.group-row .ava svg { width: 26px; height: 26px; }
.group-row .ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.group-row .info { flex: 1; min-width: 0; }
.group-row .info .name { font-size: 16px; font-weight: 600; color: var(--ink); }
.group-row .info .phone { font-size: 14px; color: var(--ink-soft); }
.group-row .call { width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: #fff; display: grid; place-items: center; flex: 0 0 auto; transition: transform .12s; }
.group-row .call:active { transform: scale(.92); }
.group-row .call svg { width: 22px; height: 22px; }

/* ===================== NEWS ===================== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.news-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .22s var(--ease), box-shadow .22s; cursor: pointer; position: relative;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card .thumb { aspect-ratio: 3/2; background: #0e1f4a; position: relative; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px;
  background: linear-gradient(transparent, rgba(8,16,40,.86));
  color: #fff; font-size: 17px; font-weight: 700;
}
.news-detail { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-detail img { width: 100%; max-height: 420px; object-fit: cover; }
.news-detail .nd-body { padding: 26px 24px 36px; }
.news-detail h1 { margin: 0 0 8px; font-size: 24px; color: var(--navy-700); }
.news-detail .summary { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.news-detail .content { line-height: 1.8; font-size: 16px; white-space: pre-wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; margin-bottom: 16px; }

/* ===================== FOOTER ===================== */
.footer {
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(13,34,90,.86), rgba(8,22,66,.92)), url('../brand/footer-bg.jpg');
  background-size: cover; background-position: center;
  color: #eaf1ff; font-size: 13px;
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
}
.footer__row { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.footer__row .right { font-weight: 600; color: #fff; }

/* ===================== LOADER / EMPTY ===================== */
.loader { display: grid; place-items: center; padding: 60px 0; }
.spinner { width: 42px; height: 42px; border: 4px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { color: #fff; text-align: center; padding: 40px 0; opacity: .9; }

/* install banner */
.install-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 1500;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 14px 16px; display: none; align-items: center; gap: 12px;
}
.install-banner.show { display: flex; animation: fade .3s; }
.install-banner .ib-icon { width: 40px; height: 40px; border-radius: 10px; }
.install-banner .ib-text { flex: 1; font-size: 13px; }
.install-banner .ib-text b { display: block; font-size: 14px; color: var(--navy-700); }
.install-banner button { border: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 13px; }
.install-banner .ib-add { background: var(--gold); color: #2a2207; }
.install-banner .ib-x { background: transparent; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   Дэлгэцийн зургийн дизайн + NAADAM хээ (brand/pattern.jpg)
   ============================================================ */

/* Нүүрний цэс — гар утсанд hero дотор цэнхэр товчнууд */
.hero .homemenu { display: none; width: min(420px, 92%); margin: 26px auto 0; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero .homemenu a {
  display: block; padding: 15px 8px; background: rgba(6,44,140,.92); color: #fff;
  font-weight: 400; font-size: 15px; text-decoration: none; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25); box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.hero .homemenu a:active { transform: scale(.97); }
@media (max-width: 800px) { .hero .homemenu { display: grid; } }

/* Хөтөлбөрийн карт — хээтэй цэнхэр толгойн блок */
.event {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 0; display: grid; grid-template-columns: 300px 1fr; gap: 0;
  align-items: stretch; overflow: hidden; animation: fade .35s var(--ease) both;
  border-left: none;
}
.event .e-head {
  background: linear-gradient(rgba(13,42,124,.45), rgba(13,42,124,.55)), url('../brand/pattern.jpg');
  background-size: cover; background-position: center;
  color: #fff; text-align: center; padding: 16px 12px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.event .e-date { font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.event .e-time { font-size: 26px; font-weight: 900; letter-spacing: .03em; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.event .e-body { padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.event .e-loc  { font-size: 13px; color: var(--ink-soft); }
.event .e-title{ font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; }
@media (max-width: 640px) {
  .event { grid-template-columns: 1fr; }
  .event .e-head { padding: 12px; }
  .event .e-time { font-size: 22px; }
}

/* Footer — NAADAM хээтэй гүн цэнхэр */
.footer {
  background: linear-gradient(rgba(7,20,64,.55), rgba(7,20,64,.72)), url('../brand/pattern.jpg');
  background-size: cover; background-position: center;
}

/* ============================================================
   Толгойн товч, буцах, том гарчгийн фонт, мэндчилгээний лого
   ============================================================ */

/* Том гарчгуудыг LATO / Arial фонтоор */
.hero__logo { /* лого зураг тул фонт хамаарахгүй */ }
.section-title h1, .page-head h2, .greet-card__body h2,
.e-title, .e-time, h1, h2, h3 { font-family: var(--font-head); }

/* Буцах товч — зөвхөн гар утсан дээр, нүүрнээс бусад хуудсанд */
.back-btn {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 auto; margin-right: 4px;
  border: none; border-radius: 10px; background: #eef2f8; color: var(--navy-700);
}
.back-btn svg { width: 22px; height: 22px; }
.back-btn:active { transform: scale(.94); }

@media (max-width: 800px) {
  /* Толгой: буцах | лого+нэр (голд) | меню (баруун дээд) */
  .header { padding: 0 12px; }
  .brand { margin: 0 auto; }               /* лого нэрээ голлуулах */
  .brand__logo { height: 40px; }
  /* Меню товчийг зөвхөн icon болгож баруун дээд буланд */
  .menu__btn { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .menu__btn .label { display: none; }
  .menu__panel { position: fixed; right: 10px; top: calc(var(--header-h) + 6px); }
  /* Дотор хуудсанд буцах товч гарна (нүүрэнд нуух) */
  body:not(.is-home) .back-btn { display: flex; }
}
.greet-logo { max-width: 260px; max-height: 120px; width: auto; height: auto; margin-bottom: 14px; display: block; }

/* ============================================================
   Авто зогсоол — дүүргэлт, өнгө, маршрут
   ============================================================ */
.pk-legend { display:flex; gap:18px; flex-wrap:wrap; justify-content:center; margin:6px 0 16px; color:#eaf1ff; font-size:13px; font-weight:600; }
.pk-legend i.d { display:inline-block; width:12px; height:12px; border-radius:3px; margin-right:6px; vertical-align:middle; }
.d--free{background:#2e9b57} .d--mid{background:#1e78d8} .d--full{background:#e23b3b}

.pk-list { display:flex; flex-direction:column; gap:12px; }
.pk {
  display:flex; align-items:stretch; gap:0; background:#fff; border-radius:14px; overflow:hidden;
  box-shadow:0 6px 18px rgba(9,26,84,.15); animation:fade .3s var(--ease) both;
}
.pk__bar { width:8px; flex:0 0 auto; }
.pk--free .pk__bar{background:#2e9b57} .pk--mid .pk__bar{background:#1e78d8} .pk--full .pk__bar{background:#e23b3b}
.pk__main { flex:1 1 auto; padding:14px 16px; min-width:0; }
.pk__top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
.pk__name { font-weight:800; color:var(--ink); font-size:16px; }
.pk__tag { font-size:12px; font-weight:800; padding:3px 10px; border-radius:999px; color:#fff; flex:0 0 auto; }
.pk--free .pk__tag{background:#2e9b57} .pk--mid .pk__tag{background:#1e78d8} .pk--full .pk__tag{background:#e23b3b}
.pk__nums { display:flex; align-items:baseline; gap:14px; margin-bottom:8px; }
.pk__count { font-size:26px; font-weight:900; color:var(--ink); }
.pk__count span { font-size:16px; font-weight:700; color:var(--soft,#8894a7); }
.pk__free { font-size:13px; color:var(--soft,#6b7789); }
.pk__free b { color:var(--ink); font-size:15px; }
.pk__meter { height:8px; border-radius:999px; background:#eef2f8; overflow:hidden; }
.pk__fill { height:100%; border-radius:999px; transition:width .5s ease; }
.pk--free .pk__fill{background:#2e9b57} .pk--mid .pk__fill{background:#1e78d8} .pk--full .pk__fill{background:#e23b3b}
.pk__go {
  flex:0 0 auto; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  width:88px; text-decoration:none; background:linear-gradient(180deg,#2f62c8,#204a9e); color:#fff; font-weight:700; font-size:12px;
}
.pk__go svg { width:24px; height:24px; }
.pk__go:active { filter:brightness(.92); }
@media (max-width:480px){ .pk__go{width:72px} .pk__count{font-size:22px} }

/* ---- Авто зогсоол: газрын зураг + ойрыг олох ---- */
.pk-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pk-hint { color: #eaf1ff; font-size: 13px; }
#pkMapView { height: 340px; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(9,26,84,.25); margin-bottom: 12px; }
@media (max-width: 640px) { #pkMapView { height: 280px; } }

/* P тэмдэг — өнгө нь төлөвөөс, дотор нь сул зайн тоо */
.pkpin-wrap { background: none !important; border: none !important; }
.pkpin {
  position: relative; width: 38px; height: 38px; border-radius: 50% 50% 50% 4px;
  background: var(--c); transform: rotate(-45deg); border: 2.5px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.35); display: grid; place-items: center;
}
.pkpin span { transform: rotate(45deg); color: #fff; font-weight: 900; font-size: 16px; }
.pkpin i {
  position: absolute; top: -8px; right: -10px; transform: rotate(45deg);
  background: #fff; color: var(--c); font-style: normal; font-weight: 800; font-size: 11px;
  min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center;
  border: 1.5px solid var(--c);
}
.youpin {
  width: 18px; height: 18px; border-radius: 50%; background: #1c6fd6;
  border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(28,111,214,.35), 0 3px 8px rgba(0,0,0,.3);
}

/* зайн badge + тодруулга */
.pk__dist { font-size: 12px; font-weight: 800; color: #0d2a7c; background: #e7efff; padding: 2px 9px; border-radius: 999px; }
.pk__dist:empty { display: none; }
.pk--hl { outline: 3px solid var(--gold); outline-offset: 2px; transition: outline .2s; }
