:root {
  --ink: #0E0F12;
  --coal: #17191E;
  --bg: #F6F5F2;
  --card: #FFFFFF;
  --text: #15171C;
  --mute: #5C616C;
  --rule: #E2E0DA;
  --gold: #E6B63C;
  --red: #E3262E;
  --red-dark: #BE1820;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font: 400 17px/1.55 var(--font); color: var(--text); background: var(--bg); }
h1, h2, h3, p { margin: 0; }
h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-weight: 800; font-size: 19px; line-height: 1.25; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: 17px; padding: 15px 28px; border-radius: 10px; border: 2px solid transparent; text-decoration: none; line-height: 1.2; }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-dark); }
.btn.outline { border-color: rgba(255, 255, 255, .45); color: #fff; background: none; }
.btn.outline:hover { border-color: #fff; }
.btn.outline.dark-text { border-color: var(--text); color: var(--text); }
.btn.ghost { background: none; border-color: var(--rule); color: var(--mute); }
.btn.sm { padding: 10px 18px; font-size: 15px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .4; pointer-events: none; }

/* ---------- Хар хэсэг: толгой ба нүүр ---------- */
.dark { background: radial-gradient(900px 500px at 85% 0%, #2A2110 0%, transparent 60%), var(--ink); color: #fff; }
.top { max-width: var(--wrap); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; flex-direction: column; align-items: center; color: #fff; text-decoration: none; }
.brand img { width: 110px; height: 110px; margin: -30px 0 -20px; }
.brand-text { font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: .02em; color: var(--gold); white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 24px; }
.top-nav a { color: #C9CCD3; text-decoration: none; font-weight: 700; font-size: 15px; }
.top-nav a:hover { color: var(--gold); }

.hero { max-width: var(--wrap); margin: 0 auto; padding: 40px 20px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: center; }
h1 { font-weight: 900; font-size: clamp(30px, calc((100vw - 630px) / 10.6), 56px); line-height: 1.06; letter-spacing: -.03em; white-space: nowrap; }
h1 span { display: block; color: var(--gold); font-size: .46em; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; margin-top: 1.1em; }
.hero-lead { color: #C9CCD3; font-size: 18px; max-width: 50ch; margin-top: 22px; }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; max-width: 520px; }
.hero-cta .btn { padding: 17px 12px; font-size: 20px; text-shadow: 0 2px 4px rgba(0, 0, 0, .65); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.hero-cta .wide { grid-column: 1 / -1; }
.btn.soft { --h: 40; color: #fff; border: 1.5px solid hsl(var(--h) 55% 55% / .7); background: linear-gradient(140deg, hsl(var(--h) 50% 34% / .7), hsl(var(--h) 40% 18% / .55)); transition: border-color .12s, transform .12s; }
.btn.soft:hover { border-color: hsl(var(--h) 75% 70%); transform: translateY(-2px); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid #2C2F36; }
.facts dt { font-weight: 800; font-size: 19px; }
.facts dd { margin: 2px 0 0; color: #9A9FA9; font-size: 14.5px; }

.board { background: #1B1D23; border: 1px solid #30333B; border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); scroll-margin-top: 16px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.board-head b { font-weight: 800; font-size: 19px; }
.board-head span { color: #9A9FA9; font-size: 13.5px; }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { --h: 40; text-align: left; border-radius: 14px; padding: 12px 12px 13px; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; color: #fff; border: 1px solid hsl(var(--h) 60% 52% / .65); background: linear-gradient(140deg, hsl(var(--h) 55% 34% / .75), hsl(var(--h) 40% 16% / .5)); transition: transform .12s, border-color .12s; }
.tile:hover { transform: translateY(-2px); border-color: hsl(var(--h) 80% 68%); }
.tile-sym { font-size: 28px; font-weight: 900; line-height: 1; color: hsl(var(--h) 85% 76%); }
.tile-name { font-weight: 800; font-size: 13.5px; line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; }
.tile.hot { background: var(--red); border-color: var(--red); }
.tile.hot .tile-sym { color: #fff; }

/* ---------- Цайвар хэсгүүд ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 64px 20px 0; scroll-margin-top: 8px; }
.wrap.narrow .faq { max-width: 860px; }
.lead { color: var(--mute); max-width: 62ch; margin-top: 10px; }

/* 2. Ангилал */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.cat-tile { background: linear-gradient(160deg, #24262C, var(--ink) 70%); color: #fff; border: 0; border-radius: 10px; padding: 30px 16px 22px; min-height: 250px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform .12s; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile svg { width: 54px; height: 54px; stroke: var(--gold); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cat-tile i { display: block; width: 30px; height: 3px; background: var(--gold); margin: 14px 0 16px; border-radius: 2px; }
.cat-tile b { font-weight: 900; font-size: 22px; line-height: 1.12; text-transform: uppercase; }
.cat-tile span { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 13.5px; color: var(--gold); text-transform: uppercase; }

/* 3. Зурхайн картууд */
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.rail-note { color: var(--red-dark); font-weight: 700; font-size: 15px; margin-top: 8px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 270px; gap: 16px; overflow-x: auto; padding: 22px 20px 18px; margin: 0 -20px; scroll-snap-type: x proximity; scroll-padding-left: 20px; }
.card { --h: 40; scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; }
.card-art { border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, hsl(var(--h) 70% 93%), hsl(var(--h) 55% 86%)); display: flex; flex-direction: column; height: 330px; transition: transform .12s, box-shadow .12s; }
.card:hover .card-art { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .16); }
.card-ban { margin: 12px 12px 0; padding: 12px 10px; border-radius: 12px; background: hsl(var(--h) 62% 38%); color: #fff; font-weight: 900; font-size: 16.5px; line-height: 1.12; text-transform: uppercase; text-align: center; min-height: 80px; display: grid; place-items: center; box-shadow: 0 4px 0 hsl(var(--h) 62% 28%); }
.card-sym { flex: 1; display: grid; place-items: center; font-size: 104px; font-weight: 900; line-height: 1; color: hsl(var(--h) 62% 34%); }
.card-bar { background: var(--ink); color: #fff; display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; font-size: 12.5px; font-weight: 800; }
.card-bar span:first-child { color: var(--gold); letter-spacing: .06em; }
.card-bar span:last-child { font-weight: 500; color: #C9CCD3; text-align: right; }
.card-short { margin-top: 12px; font-size: 15px; color: var(--mute); line-height: 1.4; }
.card-foot { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.card-price { color: var(--red); font-weight: 800; font-size: 18px; }
.card-go { font-weight: 800; font-size: 14.5px; border: 2px solid var(--text); border-radius: 8px; padding: 5px 14px; }
.card:hover .card-go { background: var(--text); color: #fff; }

/* Зориулалтаар */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.goal { --h: 40; text-align: left; background: var(--card); border: 1px solid var(--rule); border-top: 5px solid hsl(var(--h) 65% 48%); border-radius: 14px; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 8px; transition: transform .12s, box-shadow .12s; }
.goal:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .1); }
.goal-sym { font-size: 40px; font-weight: 900; line-height: 1; color: hsl(var(--h) 65% 40%); }
.goal b { font-weight: 800; font-size: 21px; }
.goal p { color: var(--mute); font-size: 15.5px; }
.goal-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); }
.goal-foot strong { display: block; color: var(--text); font-size: 17px; font-weight: 800; }
.goal-foot i { font-style: normal; font-weight: 800; color: #fff; background: hsl(var(--h) 65% 42%); border-radius: 9px; padding: 8px 14px; white-space: nowrap; }

/* Үнэ */
.promo { margin-top: 20px; max-width: 760px; background: #FBEBDD; border-left: 5px solid var(--red); border-radius: 10px; padding: 14px 18px; font-weight: 500; }
.promo b { font-weight: 800; }
.price { margin-top: 24px; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: var(--card); max-width: 980px; }
.price-row { width: 100%; display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; }
.price-row:nth-child(odd) { background: #FAFAF8; }
.price-row:last-child { border-bottom: 0; }
.price-row.head { background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 20px; }
button.price-row:hover { background: #FFF3D6; }
.price-row b { font-weight: 800; font-size: 18px; }
.price-row .each { color: var(--mute); font-size: 15px; }
.price-row .gift { font-size: 13.5px; font-weight: 800; color: var(--red-dark); }
.price-row .amt { font-weight: 900; font-size: 20px; text-align: right; white-space: nowrap; }

/* Нийтлэл */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.post-card { --h: 270; position: relative; text-align: left; border: 0; border-radius: 14px; overflow: hidden; min-height: 300px; padding: 14px; display: flex; flex-direction: column; background: linear-gradient(180deg, hsl(var(--h) 60% 90%) 0%, hsl(var(--h) 45% 72%) 55%, var(--ink) 100%); transition: transform .12s; }
.post-card:hover { transform: translateY(-3px); }
.post-card .ban { background: hsl(var(--h) 55% 40%); color: #fff; font-weight: 900; font-size: 22px; text-transform: uppercase; text-align: center; border-radius: 10px; padding: 10px; box-shadow: 0 4px 0 hsl(var(--h) 55% 28%); }
.post-card b { margin-top: auto; color: #fff; font-weight: 800; font-size: 20px; line-height: 1.22; }
.post-card span { color: #D8DAE0; font-size: 14px; font-weight: 700; margin-top: 6px; }

/* Нөхцөл */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.terms > div { background: #EFEEEA; border: 1px solid var(--rule); border-radius: 14px; padding: 20px; }
.terms p { color: var(--mute); font-size: 15.5px; margin-top: 8px; }

/* Асуулт */
.faq { margin-top: 22px; border-top: 2px solid var(--text); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-weight: 800; font-size: 18.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 500; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--mute); padding: 0 44px 20px 0; max-width: 68ch; }

.last { margin-top: 80px; background: var(--ink); color: #fff; text-align: center; padding: 64px 20px; }
.last h2 { margin-bottom: 24px; }
.foot { background: var(--ink); color: #9A9FA9; border-top: 1px solid #2C2F36; text-align: center; padding: 28px 20px 110px; font-size: 14.5px; }
.foot p { max-width: 56ch; margin: 8px auto; }
.foot a { color: var(--gold); margin: 0 10px; font-weight: 700; }

.sticky { position: fixed; z-index: 5; left: 50%; bottom: 16px; transform: translate(-50%, 100px); box-shadow: 0 12px 34px rgba(0, 0, 0, .4); transition: transform .25s; white-space: nowrap; border-radius: 999px; }
.sticky.on { transform: translate(-50%, 0); }

/* ---------- Цонхнууд ---------- */
dialog { width: min(660px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); border: 0; border-radius: 18px; padding: 26px; background: var(--card); color: var(--text); overflow-y: auto; }
dialog::backdrop { background: rgba(8, 9, 12, .78); }
.o-close { position: absolute; right: 10px; top: 8px; margin: 0; }
.o-close button { background: none; border: 0; font-size: 32px; line-height: 1; color: var(--mute); padding: 6px 12px; }
dialog h2 { font-size: 28px; padding-right: 40px; }
.o-prog { list-style: none; display: flex; gap: 6px; padding: 0; margin: 16px 0 18px; }
.o-prog li { flex: 1; font-size: 13px; font-weight: 700; color: #A3A7B0; border-top: 4px solid var(--rule); padding-top: 6px; }
.o-prog li.on { color: var(--text); border-top-color: var(--red); }
.o-q { font-weight: 800; margin: 16px 0 10px; }
.o-note { color: var(--red-dark); font-size: 14.5px; font-weight: 500; margin-top: 10px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg button { border: 2px solid var(--rule); background: none; border-radius: 10px; padding: 10px 6px; font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.seg button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.pick li { --h: 40; border-bottom: 1px solid var(--rule); }
.pick-row { display: grid; grid-template-columns: auto 44px 1fr auto; align-items: center; gap: 10px; padding: 9px 2px; }
.pick input { width: 24px; height: 24px; accent-color: var(--red); margin: 0; }
.pick-sym { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 20px; background: hsl(var(--h) 65% 90%); color: hsl(var(--h) 62% 32%); }
.pick-name { background: none; border: 0; padding: 0; text-align: left; font-weight: 800; font-size: 16px; line-height: 1.25; }
.pick-name small { display: block; font-weight: 500; font-size: 13px; color: var(--mute); }
.pick-more { font-size: 22px; color: var(--red); font-weight: 500; padding: 0 6px; }
.pick-desc { padding: 0 6px 12px 80px; color: var(--mute); font-size: 15px; }
.pick li.sel { background: #FFF6E0; }
.sum { position: sticky; bottom: -26px; margin: 0 -26px -26px; padding: 14px 26px; background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.sum b { display: block; font-weight: 900; font-size: 20px; }
.sum span { font-size: 13.5px; color: var(--gold); font-weight: 700; }

#oForm { display: grid; gap: 20px; }
fieldset { border: 1px solid var(--rule); border-radius: 12px; padding: 16px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
legend { font-weight: 800; font-size: 18px; padding: 0 8px; }
.f { display: grid; gap: 5px; min-width: 0; align-content: start; }
.f.wide { grid-column: 1 / -1; }
.f label { font-size: 14.5px; font-weight: 700; color: var(--mute); }
input[type=text], input[type=tel], input[type=date], input[type=time], select, textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 2px solid #CFCDC6; border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; }
.date3 { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; }
.time2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; font-weight: 800; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14.5px; color: var(--mute); font-weight: 500 !important; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.err { color: var(--red-dark); font-weight: 700; font-size: 14.5px; }
.bad { border-color: var(--red) !important; }
.o-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.pay { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
.pay img { width: 220px; height: 220px; border-radius: 12px; border: 1px solid var(--rule); background: #fff; object-fit: contain; }
.pay dl { margin: 0; display: grid; gap: 14px; }
.pay dt { font-size: 14px; font-weight: 700; color: var(--mute); }
.pay dd { margin: 0; font-weight: 900; font-size: 26px; line-height: 1.2; word-break: break-word; }
#pPrice { color: var(--red); }
.o-hint { color: var(--mute); font-size: 15px; margin-top: 14px; }
.o-hint.strong { color: var(--text); font-weight: 700; margin-top: 0; }
#oText { margin-top: 14px; font-size: 14.5px; line-height: 1.5; resize: vertical; background: #FAFAF8; }
.o-send { display: grid; gap: 10px; margin-top: 14px; }
.o-status { color: var(--red-dark); font-weight: 700; font-size: 15px; min-height: 1.4em; margin-top: 10px; }
.post-tag { font-weight: 800; color: var(--red); font-size: 14px; text-transform: uppercase; margin-bottom: 6px; }
#postBody p { margin-top: 14px; }
#postCta { margin-top: 22px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 20px; }
  h1 { font-size: clamp(26px, 8.2vw, 56px); }
  .cats { grid-template-columns: 1fr 1fr; }
  .goals, .posts, .terms { grid-template-columns: 1fr 1fr; }
  .top-nav a { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand img { width: 96px; height: 96px; margin: -26px 0 -17px; }
  .board { padding: 14px; border-radius: 18px; }
  .board-head span { display: none; }
  .board-grid { gap: 8px; }
  .tile { min-height: 96px; padding: 10px; }
  .tile-name { font-size: 12px; }
  .cats { gap: 10px; }
  .cat-tile { min-height: 200px; padding: 22px 10px 16px; }
  .cat-tile b { font-size: 17px; }
  .goals, .posts, .terms { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 232px; }
  .card-art { height: 290px; }
  .card-sym { font-size: 88px; }
  .price-row { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px; }
  .price-row .each { grid-column: 1; }
  .price-row .gift { grid-column: 1; }
  .price-row .amt { grid-column: 2; grid-row: 1 / span 3; }
  .price-row.head span:nth-child(2), .price-row.head span:nth-child(3) { display: none; }
  dialog { padding: 20px 14px; }
  .sum { bottom: -20px; margin: 0 -14px -20px; padding: 12px 14px; }
  .sum .btn { padding: 13px 16px; font-size: 15.5px; }
  .seg { grid-template-columns: 1fr 1fr; }
  .pick-desc { padding-left: 6px; }
  fieldset { grid-template-columns: 1fr; }
  .pay { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .o-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
