/* Морьтон Парад-2026 — тасалбарын сайт. Морьтон брэнд: хар номин + алт */
:root {
  --navy: #0b3a48;
  --navy-d: #072a35;
  --navy-dd: #041d25;
  --navy-l: #e2eef0;
  --gold: #c9a24a;
  --gold-l: #d4b665;
  --gold-d: #a9852f;
  --gold-bg: #f6efdc;
  --cream: #f4f2ec;
  --paper: #ffffff;
  --ink: #1b211f;
  --muted: #6b746f;
  --line: #e2ddd0;
  --red: #b23a3a;
  --red-l: #f8e4e4;
  --ok: #1f7a4d;
  --ok-l: #e1f2e8;
  --amber-l: #fdf1dd;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(7, 42, 53, .10);
  --font: 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Oswald', 'Montserrat', 'Arial Narrow', sans-serif;
  --logo: url('../img/logo-gold.png');
}
* { 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(--cream); line-height: 1.5; font-size: 15px;
  min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--navy); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
.container { width: min(1180px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.hidden { display: none !important; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- толгой ---------- */
.site-header { background: var(--navy-d); border-bottom: 2px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand .mark { width: 42px; height: 42px; background: var(--logo) center / contain no-repeat; flex: none; }
.brand b { display: block; color: var(--gold-l); font-weight: 800; font-size: 18px; letter-spacing: 1.5px; line-height: 1.1; }
.brand small { display: block; color: #e9e4d4; font-size: 11px; opacity: .9; white-space: nowrap; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.1); }
.nav a.cta { background: var(--gold); color: var(--navy-dd); font-weight: 700; }
.nav a.cta:hover { background: var(--gold-l); }
@media (max-width: 560px) {
  .brand small { font-size: 10px; }
  .brand b { font-size: 16px; letter-spacing: 1px; }
  .brand .mark { width: 36px; height: 36px; }
  .nav a { padding: 8px 9px; font-size: 13px; }
  .nav a.hide-sm { display: none; }
}
/* Утасны нарийн дэлгэц: лого + цэс давхцахгүй — брэндийн бичгийг нууж, зөвхөн тэмдэг үлдээнэ */
@media (max-width: 440px) {
  .site-header .container { gap: 6px; }
  .brand > span:not(.mark) { display: none; }
  .nav { gap: 2px; }
  .nav a { padding: 8px 8px; }
}

/* ---------- товч ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; border-radius: 11px;
  padding: 12px 20px; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy-dd); }
.btn-gold:hover { background: var(--gold-l); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-d); }
.btn-light { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-light:hover { background: var(--navy-l); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-danger { background: var(--red); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy-dd); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url('../img/hero.webp') right 30% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-dd) 0%, rgba(4,29,37,.94) 34%, rgba(4,29,37,.55) 62%, rgba(4,29,37,.25) 100%),
              linear-gradient(0deg, rgba(4,29,37,.85) 0%, rgba(4,29,37,0) 40%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; padding: 56px 0 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-l); font-weight: 700; letter-spacing: 2.5px; font-size: 13px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7vw, 86px); line-height: .95; letter-spacing: 1px; margin: 14px 0 16px; text-transform: uppercase; }
.hero h1 span { display: block; color: var(--gold-l); font-size: .5em; letter-spacing: 6px; margin-bottom: 6px; }
.hero .lead { font-size: 16.5px; max-width: 560px; opacity: .92; margin: 0 0 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 28px; font-weight: 600; font-size: 14.5px; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts .ico { color: var(--gold-l); }
.facts a { color: #fff; text-decoration: none; }

/* тоолуур */
.countdown { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.countdown .label { width: 100%; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-l); font-weight: 700; margin-bottom: 2px; }
.cd-box { background: rgba(255,255,255,.07); border: 1px solid rgba(212,182,101,.35); border-radius: 14px; min-width: 84px; padding: 10px 8px 8px; text-align: center; backdrop-filter: blur(4px); }
.cd-box b { display: block; font-family: var(--display); font-size: 44px; line-height: 1; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.cd-box small { display: block; font-size: 11.5px; color: #d9d4c4; margin-top: 4px; font-weight: 600; letter-spacing: .5px; }
.cd-live { font-family: var(--display); font-size: 30px; color: var(--gold-l); letter-spacing: 1px; }

/* тасалбар авах карт */
.buy-card { background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; }
.buy-card .top { background: var(--gold); color: var(--navy-dd); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.buy-card .top b { font-family: var(--display); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; }
.buy-card .top span { font-size: 12px; font-weight: 700; background: rgba(4,29,37,.12); padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.buy-card .body { padding: 18px 20px 20px; }
.price { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1; }
.price small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.incl { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 7px; font-size: 14px; }
.incl li { display: flex; gap: 9px; align-items: flex-start; }
.incl .ico { color: var(--gold-d); margin-top: 1px; }
.meter { margin: 14px 0 16px; }
.meter .bar { height: 8px; border-radius: 99px; background: #ece8dc; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: 99px; transition: width .6s; }
.meter .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.meter .lbl b { color: var(--ink); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 42px; height: 42px; border: none; background: #fff; font-size: 22px; font-weight: 600; color: var(--navy); cursor: pointer; }
.stepper button:hover { background: var(--navy-l); }
.stepper button[disabled] { color: #bbb; cursor: default; background: #fff; }
.stepper output { min-width: 46px; text-align: center; font-weight: 800; font-size: 18px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 12px; margin-bottom: 14px; }
.total-row b { font-size: 22px; color: var(--navy); }
.soldout { background: var(--red-l); color: var(--red); border-radius: 12px; padding: 12px 14px; font-weight: 700; text-align: center; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 28px; }
  .hero::before { background-position: 70% center; }
  .hero::after { background: linear-gradient(180deg, rgba(4,29,37,.55) 0%, rgba(4,29,37,.9) 45%, var(--navy-dd) 75%); }
  .cd-box { min-width: 0; flex: 1; }
  .cd-box b { font-size: 36px; }
}

/* ---------- хэсгүүд ---------- */
.section { padding: 54px 0; }
.section h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); text-transform: uppercase; letter-spacing: .5px; color: var(--navy); margin-bottom: 6px; }
.section .sub { color: var(--muted); margin: 0 0 26px; max-width: 640px; }
.section.dark { background: var(--navy-d); color: #fff; }
.section.dark h2 { color: #fff; }
.section.dark .sub { color: #c9d6d6; }

/* тасалбарт багтсан — тасалбарын хэрчим */
.stubs { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stub { padding: 24px 22px; position: relative; }
.stub + .stub { border-left: 2px dashed var(--line); }
.stub + .stub::before, .stub + .stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); }
.stub + .stub::before { top: -10px; } .stub + .stub::after { bottom: -10px; }
.stub .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-bg); color: var(--gold-d); display: grid; place-items: center; margin-bottom: 12px; }
.stub .ic svg { width: 26px; height: 26px; }
.stub h3 { font-family: var(--display); font-size: 22px; text-transform: uppercase; color: var(--navy); letter-spacing: .5px; margin-bottom: 6px; }
.stub p { margin: 0; color: var(--muted); font-size: 14px; }
.stub ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.stub ul li { margin: 3px 0; }
.stub ul b { color: var(--navy); }
@media (max-width: 760px) {
  .stubs { grid-template-columns: 1fr; }
  .stub + .stub { border-left: none; border-top: 2px dashed var(--line); }
  .stub + .stub::before { top: -11px; left: -10px; } .stub + .stub::after { top: -11px; bottom: auto; left: auto; right: -10px; }
}

/* алхмууд */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.step { background: rgba(255,255,255,.05); border: 1px solid rgba(212,182,101,.25); border-radius: var(--radius); padding: 20px; }
.step::before { counter-increment: st; content: counter(st); font-family: var(--display); font-size: 34px; color: var(--gold); display: block; line-height: 1; margin-bottom: 10px; }
.step b { display: block; margin-bottom: 4px; font-size: 15.5px; }
.step span { font-size: 13.5px; color: #c9d6d6; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* азарганууд */
.horses { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.horse { border-radius: 14px; overflow: hidden; background: #ddd; position: relative; aspect-ratio: 3 / 4; }
.horse img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .5s; }
.horse:hover img { transform: scale(1.05); }
.horse span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; color: #fff; font-weight: 700; font-size: 13.5px;
  background: linear-gradient(0deg, rgba(4,29,37,.9), transparent); }
@media (max-width: 900px) { .horses { grid-template-columns: repeat(6, 42%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .horse { scroll-snap-align: start; } }

/* мэдээлэл + FAQ */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; }
.kv .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--navy-l); color: var(--navy); display: grid; place-items: center; }
.kv small { display: block; color: var(--muted); font-size: 12px; }
.kv b { font-size: 15px; }
details.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
details.faq:last-child { border-bottom: none; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: "+"; color: var(--gold-d); font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* утасны доод самбар */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy-d); border-top: 2px solid var(--gold); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: 12px; color: #fff; transform: translateY(110%); transition: transform .25s; }
.mbar.show { transform: none; }
.mbar b { font-family: var(--display); font-size: 22px; color: var(--gold-l); display: block; line-height: 1.1; }
.mbar small { font-size: 12px; color: #c9d6d6; }
@media (max-width: 900px) { .mbar { display: flex; } body.has-mbar { padding-bottom: 76px; } }

/* ---------- маягт, модаль ---------- */
.form { display: grid; gap: 12px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
label .req { color: var(--red); }
.input { width: 100%; border: 1.5px solid #d6d1c4; border-radius: 11px; padding: 11px 13px; background: #fff; font-size: 15px; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.22); }
textarea.input { min-height: 80px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 11px; padding: 12px 14px; font-size: 14px; }
.alert.error { background: var(--red-l); color: var(--red); }
.alert.ok { background: var(--ok-l); color: var(--ok); }
.alert.warn { background: var(--amber-l); color: #6e4a08; }
.alert.info { background: var(--navy-l); color: var(--navy-d); }

.modal-bg { position: fixed; inset: 0; background: rgba(4,20,26,.6); z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 20px; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.modal-head { background: var(--navy-d); color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--gold); position: sticky; top: 0; z-index: 1; }
.modal-head b { font-family: var(--display); font-size: 20px; letter-spacing: .5px; text-transform: uppercase; }
.modal-head button { background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; padding: 0 4px; }
.modal-body { padding: 18px 20px 20px; }
.summary { background: var(--cream); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.summary b { color: var(--navy); font-size: 18px; }
@media (max-width: 560px) {
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 94vh; width: 100%; }
}

/* ---------- төлбөрийн хуудас ---------- */
.pay-wrap { max-width: 560px; margin: 28px auto 60px; }
.pay-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.pay-card .head { background: var(--navy-d); color: #fff; padding: 18px 22px; border-bottom: 2px solid var(--gold); }
.pay-card .head small { color: var(--gold-l); font-weight: 700; letter-spacing: 1.5px; font-size: 12px; text-transform: uppercase; }
.pay-card .head h1 { font-size: 22px; margin: 4px 0 0; }
.pay-card .body { padding: 20px 22px 22px; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--amber-l); color: #6e4a08; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.timer b { font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }
.qr-box { text-align: center; margin: 18px 0 8px; }
.qr-box img { width: 240px; height: 240px; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; padding: 8px; image-rendering: pixelated; background: #fff; }
.amount-big { text-align: center; font-family: var(--display); font-size: 34px; color: var(--navy); font-weight: 700; }
.banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.banks a { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--ink); font-size: 11.5px; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 6px; background: #fff; line-height: 1.2; }
.banks a:hover { border-color: var(--gold); background: var(--gold-bg); }
.banks img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.status-line { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--gold-d); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.order-meta span { color: var(--muted); }
.success-head { text-align: center; padding: 8px 0 4px; }
.success-head .ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-l); color: var(--ok); display: grid; place-items: center; margin: 0 auto 10px; }
.success-head .ok-ic svg { width: 34px; height: 34px; }
.success-head h2 { color: var(--navy); font-size: 22px; margin-bottom: 4px; }
.bank-box { background: var(--cream); border-radius: 12px; padding: 14px; white-space: pre-line; font-size: 14.5px; }

/* мини тасалбарууд */
.mini-list { display: grid; gap: 12px; margin-top: 16px; }
.mini { display: flex; align-items: stretch; background: var(--navy); color: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; }
.mini .l { flex: 1; padding: 14px 16px; position: relative; }
.mini .l small { color: var(--gold-l); font-size: 11px; letter-spacing: 2px; font-weight: 700; }
.mini .l b { display: block; font-family: var(--display); font-size: 30px; color: var(--gold-l); letter-spacing: 1px; line-height: 1.1; }
.mini .l span { font-size: 12.5px; opacity: .85; }
.mini .r { width: 112px; background: #fff; display: grid; place-items: center; padding: 8px; border-left: 2px dashed var(--gold); }
.mini .r svg { width: 96px; height: 96px; }

/* том QR тасалбар (төлбөрийн дараа) */
.big-list { display: grid; gap: 16px; margin-top: 16px; }
.big-tk { background: var(--navy); border-radius: 18px; overflow: hidden; color: #fff; }
.big-tk .bt-qr { background: #fff; padding: 14px; border-bottom: 3px dashed var(--gold); }
.big-tk .bt-qr svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.big-tk .bt-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 18px 16px; }
.big-tk .bt-info small { width: 100%; color: var(--gold-l); font-size: 11px; letter-spacing: 2px; font-weight: 700; }
.big-tk .bt-info b { font-family: var(--display); font-size: 36px; color: var(--gold-l); letter-spacing: 1px; line-height: 1; }
.big-tk .bt-info span { flex: 1; font-size: 14px; opacity: .9; }
.big-tk .bt-info .btn { margin-left: auto; }

/* ---------- цахим тасалбар ---------- */
body.ticket-page { background: radial-gradient(circle at 50% 0%, #0f4a5b 0%, var(--navy-dd) 60%); }
.eticket { width: min(420px, 100% - 24px); margin: 22px auto 16px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
.et-top { background: linear-gradient(160deg, #0f4a5b, var(--navy-d) 70%); color: #fff; border-radius: 22px 22px 0 0; padding: 22px 22px 18px; position: relative; overflow: hidden; }
.et-top::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: var(--logo) center / contain no-repeat; opacity: .08; }
.et-brand { display: flex; align-items: center; gap: 10px; }
.et-brand .mark { width: 34px; height: 34px; background: var(--logo) center / contain no-repeat; }
.et-brand b { color: var(--gold-l); letter-spacing: 1.5px; font-size: 15px; }
.et-brand small { display: block; font-size: 10.5px; color: #d9d4c4; }
.et-title { font-family: var(--display); text-transform: uppercase; margin: 16px 0 4px; line-height: .95; }
.et-title span { display: block; font-size: 18px; letter-spacing: 4px; color: var(--gold-l); }
.et-title b { display: block; font-size: 52px; font-weight: 700; font-style: italic; letter-spacing: 1px; }
.et-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 10px; }
.et-no small { display: block; font-size: 11px; color: var(--gold-l); letter-spacing: 2px; font-weight: 700; }
.et-no b { font-family: var(--display); font-size: 40px; color: var(--gold-l); letter-spacing: 2px; line-height: 1; }
.et-date { text-align: right; font-size: 13px; font-weight: 600; }
.et-date small { display: block; color: #c9d6d6; font-weight: 500; }
.et-mid { background: #fff; padding: 18px 22px 14px; text-align: center; position: relative; }
.et-mid::before, .et-mid::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy-dd); }
.et-mid::before { left: -11px; } .et-mid::after { right: -11px; }
.et-perf { position: absolute; top: 0; left: 18px; right: 18px; border-top: 2px dashed #cfc8b6; }
.et-qr { width: min(300px, 100%); aspect-ratio: 1; height: auto; margin: 4px auto 6px; position: relative; }
.et-qr svg { width: 100%; height: 100%; }
.et-holder { font-weight: 800; font-size: 17px; color: var(--navy); }
.et-code { font-size: 12px; color: var(--muted); }
.et-state { display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 99px; font-weight: 800; font-size: 13px; letter-spacing: .3px; }
.et-state.valid { background: var(--ok-l); color: var(--ok); }
.et-state.used { background: var(--gold-bg); color: #7a5b12; }
.et-state.void { background: var(--red-l); color: var(--red); }
.et-void { position: absolute; inset: 0; display: grid; place-items: center; }
.et-void span { transform: rotate(-14deg); border: 4px solid var(--red); color: var(--red); font-weight: 900; font-size: 30px; padding: 4px 14px; border-radius: 10px; background: rgba(255,255,255,.88); letter-spacing: 2px; }
.et-stubs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--gold); border-radius: 0 0 22px 22px; position: relative; }
.et-stubs::before { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 2px dashed rgba(4,29,37,.35); }
.et-stub { padding: 12px 6px 14px; text-align: center; color: var(--navy-dd); }
.et-stub + .et-stub { border-left: 2px dashed rgba(4,29,37,.3); }
.et-stub b { display: block; font-family: var(--display); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.et-stub small { display: block; font-size: 11px; font-weight: 700; margin-top: 2px; }
.et-stub.used { background: rgba(4,29,37,.12); }
.et-stub.used small { color: #5b4511; }
.et-actions { width: min(420px, 100% - 24px); margin: 0 auto 30px; display: grid; gap: 10px; color: #fff; text-align: center; }
.et-actions .tip { font-size: 12.5px; color: #c9d6d6; }
.et-cd { display: flex; justify-content: center; gap: 8px; margin: 4px 0; }
.et-cd .cd-box { min-width: 70px; padding: 8px 6px 6px; }
.et-cd .cd-box b { font-size: 30px; }

/* ---------- хөл ---------- */
.site-footer { background: var(--navy-dd); color: #c9d6d6; padding: 26px 0; font-size: 13px; border-top: 2px solid var(--gold); }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer b { color: var(--gold-l); }
.site-footer a { color: #fff; }
body.ticket-page .site-footer { background: transparent; border-top-color: rgba(201,162,74,.4); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 11px; font-size: 14px; z-index: 200; display: none; max-width: calc(100% - 32px); }
.toast.show { display: block; }
.cfg-warn { background: #fff3cd; color: #6e4a08; padding: 10px 16px; font-size: 13.5px; text-align: center; }

@media print {
  body, body.ticket-page { background: #fff !important; }
  .site-header, .site-footer, .et-actions, .no-print { display: none !important; }
  .eticket { filter: none; margin: 0 auto; }
  .et-mid::before, .et-mid::after { background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
