/* IIA Mongolia — Сургалт
   Өнгө: navy #002060 · deep #021338 · lime #99CA3C · blue #006299
------------------------------------------------------------------ */
:root {
    --navy: #002060;
    --deep: #021338;
    --lime: #99CA3C;
    --blue: #006299;
    --ink: #0E1B33;
    --ink2: #2A3850;
    --muted: #4A5A73;
    --line: #DDE5EF;
    --line2: #EEF2F7;
    --bg: #F3F6FA;
    --soft: #E3EBF5;
    --green-bg: #E9F4D6;
    --green: #2E4A07;
    --red: #B42318;
    --fh: 'Montserrat', system-ui, sans-serif;
    --fb: 'Onest', system-ui, sans-serif;
    --r: 20px;
    --shadow: 0 30px 60px -36px rgba(2, 19, 56, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--fb); }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--fh); color: var(--navy); line-height: 1.2; }
button { font: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.sm { font-size: 14px; }
.green { color: var(--green); }
.blue { color: var(--blue); }
.center { text-align: center; justify-content: center; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(153, 202, 60, .7); outline-offset: 2px; }

/* Товч, шошго
------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; font: 700 15px/1 var(--fh); text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-lg { min-height: 56px; font-size: 16px; font-weight: 800; }
.btn-block { display: flex; width: 100%; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0a2f80; }
.btn-lime { background: var(--lime); color: var(--deep); font-weight: 800; }
.btn-lime:hover { background: #a8d651; }
.btn-line { background: #fff; border: 1.5px solid #B9C7DA; color: var(--navy); }
.btn-line:hover { border-color: var(--navy); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 4px 11px; border-radius: 999px; line-height: 1.5; }
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-blue { background: var(--soft); color: var(--navy); }
.tag-lime { background: var(--lime); color: var(--deep); }
.tag-grey { background: var(--line2); color: var(--muted); }
.tag-glass { background: rgba(255, 255, 255, .14); color: #fff; }
.price { font: 800 18px var(--fh); color: var(--navy); }
.price.lg { font-size: 20px; }
.link { font: 700 14px var(--fh); color: var(--blue); }
.eyebrow { font: 700 13px var(--fh); letter-spacing: .14em; color: var(--lime); }
.eyebrow-sm { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .06em; }
.empty { background: #fff; border: 1px dashed #B9C7DA; border-radius: 18px; padding: 48px 24px; text-align: center; color: var(--muted); }

.note { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 16px; }
.note svg { flex: 0 0 auto; margin-top: 2px; }
.note-warn { background: #FFF7E6; border: 1px solid #F2C46D; color: #6B4A06; }
.note-err { background: #FEF3F2; border: 1px solid #F4B8B2; color: var(--red); }
.note-ok { background: var(--green-bg); border: 1px solid #C5E39A; color: var(--green); font-weight: 600; }
.note-info { background: var(--soft); border: 1px solid #C7D3E3; color: var(--navy); }
.note-grey { background: var(--line2); color: var(--muted); }

/* Толгой
------------------------------------------------------------------ */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px -12px rgba(2, 19, 56, .3); }
.hd-top { background: var(--deep); color: #C9D6EA; font-size: 13px; }
.hd-top .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 7px; padding-bottom: 7px; }
.hd-top-r { display: flex; gap: 18px; }
.hd-top a { color: #fff; text-decoration: none; }
.hd-main { display: flex; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.hd-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.hd-logo img { height: 42px; width: auto; }
.hd-logo span { font: 800 14px var(--fh); color: #fff; background: var(--navy); padding: 6px 12px; border-radius: 8px; letter-spacing: .04em; }
.hd-nav { flex: 1 1 auto; display: flex; align-items: center; gap: 12px 28px; }
.snav { display: flex; flex-wrap: wrap; gap: 4px 22px; font: 600 14px var(--fh); }
.snav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.snav a:hover { color: var(--blue); }
.snav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--lime); }
.hd-user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--deep); display: inline-flex; align-items: center; justify-content: center; font: 800 14px var(--fh); flex: 0 0 auto; }
.av-lg { width: 84px; height: 84px; font-size: 26px; }
.sdd { position: relative; }
.sdd-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px 0 4px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px; }
.sdd-menu { display: none; position: absolute; right: 0; top: 100%; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(2, 19, 56, .35); z-index: 60; }
.sdd:hover .sdd-menu, .sdd:focus-within .sdd-menu { display: block; }
.sdd-menu a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.sdd-menu a:hover { background: #EEF3FA; }
.sdd-menu .out, .prof-nav .out { color: var(--red); border-top: 1px solid var(--line2); }
.hd-burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hd-burger span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
    .hd-burger { display: flex; }
    .hd-main { flex-wrap: wrap; }
    .hd-nav { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; padding: 8px 0 12px; }
    .hd-nav.is-open { display: flex; }
    .snav { flex-direction: column; gap: 0; }
    .snav a { padding: 12px 4px; border-bottom: 1px solid var(--line2); }
    .snav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--lime); padding-left: 12px; }
    .hd-user { margin: 8px 0 0; flex-wrap: wrap; }
    .hd-user .btn { flex: 1 1 auto; }
    .sdd { width: 100%; }
    .sdd-btn { display: none; }
    .sdd-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; }
    .sdd-menu a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line2); }
    .hd-top .wrap > span { display: none; }
    .hd-top .wrap { justify-content: flex-end; }
}

/* Нүүр
------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 32, 96, .97) 0%, rgba(0, 32, 96, .8) 55%, rgba(0, 32, 96, .5) 100%); }
.hero-in { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.hero-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; margin: 0; }
.hero p { margin: 0; font-size: 19px; color: #D6E1F0; max-width: 560px; }
.hero-cards { flex: 1 1 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hcard { grid-column: span 2; border-radius: 20px; padding: 26px; text-decoration: none; display: flex; gap: 18px; align-items: center; background: #fff; color: var(--navy); }
.hcard-lime { background: var(--lime); color: var(--deep); }
.hcard-ic { flex: 0 0 60px; height: 60px; border-radius: 16px; background: var(--navy); color: var(--lime); display: flex; align-items: center; justify-content: center; }
.hcard-lime .hcard-ic { background: var(--deep); }
.hcard-t { display: flex; flex-direction: column; }
.hcard-t b { font: 800 20px var(--fh); }
.hcard-t span { font-size: 14px; color: var(--muted); }
.hcard-lime .hcard-t span { color: var(--deep); }
.hcard-arr { margin-left: auto; font-size: 22px; }
.hstat { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; padding: 18px; }
.hstat b { display: block; font: 800 32px/1 var(--fh); }
.hstat span { font-size: 13px; color: #C9D6EA; }

.sec { padding-top: 88px; padding-bottom: 40px; }
.sec + .sec { padding-top: 40px; padding-bottom: 88px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.sec-head h2, .how h2 { font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); margin: 0; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; height: 100%; }
.ccard-img { position: relative; overflow: hidden; }
.ccard-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.ccard-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(2, 19, 56, .75); color: #fff; display: flex; align-items: center; justify-content: center; }
.ccard-kind { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--navy); }
.ccard-kind.is-zoom { background: var(--lime); color: var(--deep); }
.ccard-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.ccard-title, .tcard-title, .crow-title, .mcard-title { font: 700 18px/1.3 var(--fh); color: var(--navy); }
.ccard-foot, .tcard-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; height: 100%; }
.tcard-top { display: flex; justify-content: space-between; gap: 10px; }
.tcard-title { font-size: 19px; }

.how { background: var(--soft); padding: 88px max(24px, calc((100% - 1192px) / 2)); }
.how h2 { margin-bottom: 32px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.step { background: #fff; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; border-bottom: 3px solid var(--lime); }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 16px var(--fh); }
.step-t { font: 700 17px var(--fh); color: var(--navy); }

@media (prefers-reduced-motion: no-preference) {
    .hero-text > * { animation: heroIn .8s ease-out both; }
    .hero-text > :nth-child(2) { animation-delay: .1s; }
    .hero-text > :nth-child(3) { animation-delay: .2s; }
    .hero-text > :nth-child(4) { animation-delay: .3s; }
    .card { transition: transform .3s ease, box-shadow .3s ease; }
    a.card:hover, .mcard:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -20px rgba(2, 19, 56, .45); }
    .ccard:hover img { transform: scale(1.05); }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Хуудасны толгой
------------------------------------------------------------------ */
.phero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.phero-ring { position: absolute; right: -90px; top: -120px; width: 340px; height: 340px; border-radius: 50%; border: 46px solid var(--lime); opacity: .9; }
.phero-in { position: relative; padding-top: 52px; padding-bottom: 60px; }
.phero h1 { color: #fff; font-weight: 800; font-size: clamp(30px, 4vw, 48px); margin: 0 0 12px; }
.phero p { margin: 0; color: #D6E1F0; max-width: 620px; font-size: 18px; }
.crumbs { font-size: 14px; color: #C9D6EA; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.crumbs a { color: #fff; text-decoration: none; }
.sec-list { padding-top: 40px; padding-bottom: 96px; }
.list-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.list-bar .tabs { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tabs button { height: 44px; padding: 0 20px; border-radius: 999px; font: 700 14px var(--fh); cursor: pointer; background: #fff; color: var(--navy); border: 1.5px solid #B9C7DA; }
.tabs button span { opacity: .7; }
.tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.rows { display: flex; flex-direction: column; gap: 14px; }
.crow { display: flex; flex-wrap: wrap; align-items: stretch; background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.crow.is-open { border: 2px solid var(--lime); }
.crow-date { flex: 0 0 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 10px; text-align: center; background: var(--navy); color: #fff; }
.crow.is-open .crow-date { background: var(--lime); color: var(--deep); }
.crow-date span { font: 700 12px var(--fh); letter-spacing: .1em; }
.crow-date b { font: 800 30px/1.05 var(--fh); }
.crow-body { flex: 1 1 380px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.crow-title { font-size: 19px; }
.crow-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; padding: 20px 24px; margin-left: auto; }
@media (max-width: 640px) {
    .crow-date { flex: 0 0 88px; }
    .crow-body { flex: 1 1 200px; padding: 16px; }
    .crow-side { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; padding: 0 16px 16px; }
}

/* Сургалтын дэлгэрэнгүй
------------------------------------------------------------------ */
.chero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.chero .hero-bg { opacity: .2; }
.chero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 32, 96, .97), rgba(0, 32, 96, .75)); }
.chero-in { position: relative; padding-top: 52px; padding-bottom: 64px; }
.chero .tags { margin-bottom: 14px; }
.chero h1 { color: #fff; font-weight: 800; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.12; margin: 0 0 14px; max-width: 820px; }
.chero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: #D6E1F0; font-size: 15px; }
.cbody { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 48px; padding-bottom: 96px; }
.cmain { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3.5vw, 40px); }
.box h2 { font-weight: 700; font-size: 22px; margin: 0 0 14px; }
.box h3 { font-weight: 700; font-size: 17px; margin: 22px 0 10px; }
.box-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.box-head h1 { font-size: 26px; font-weight: 800; margin: 0; }
.prose { color: var(--ink2); font-size: 17px; line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.learn { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.learn li { display: flex; gap: 10px; align-items: flex-start; }
.learn svg { color: #5E8A12; flex: 0 0 auto; margin-top: 3px; }
.mods { display: flex; flex-direction: column; gap: 10px; }
.mod { border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.mod summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; }
.mod summary::-webkit-details-marker { display: none; }
.mod summary b { color: var(--blue); font: 800 15px var(--fh); margin-right: 10px; }
.mod summary svg { transition: transform .2s; flex: 0 0 auto; }
.mod[open] summary svg { transform: rotate(180deg); }
.mod p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.teacher { display: flex; gap: 18px; align-items: center; padding: 24px; }
.teacher-av { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; background: var(--soft); color: var(--navy); display: flex; align-items: center; justify-content: center; font: 800 20px var(--fh); object-fit: cover; }
.teacher-n { font: 700 18px var(--fh); color: var(--navy); }

.buy { flex: 1 1 320px; position: sticky; top: 140px; background: #fff; border: 2px solid var(--lime); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.buy-price { font: 800 36px/1.1 var(--fh); color: var(--navy); }
.buy-member { font-size: 14px; color: var(--green); font-weight: 600; }
.buy-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.buy-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.buy-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.buy-list span { color: var(--muted); }
.buy-list strong { text-align: right; }
.buy .note { margin: 0; }
.buy-link { text-align: center; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 14px; }
.buy-link u { color: var(--blue); }
.buy-qpay { text-align: center; font-size: 13px; color: var(--muted); }
.buy-qpay b { font-family: var(--fh); color: var(--navy); }
.buy-ok { display: flex; gap: 14px; align-items: center; }
.buy-ok-ic { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--lime); color: var(--deep); display: flex; align-items: center; justify-content: center; }
.buy-ok b { display: block; font: 800 20px var(--fh); color: var(--navy); }
@media (max-width: 960px) { .buy { position: static; } }

.lesson { border: 2px solid var(--lime); }
.lesson .buy-list { max-width: 520px; margin-bottom: 18px; }
.lesson-note { margin-top: 18px; font-size: 16px; }
.player-screen { position: relative; aspect-ratio: 16 / 9; background: var(--deep); border-radius: 16px; overflow: hidden; }
.player-screen iframe, .player-screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: #9FB2CC; }
.playlist { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.playlist button { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; color: var(--ink); }
.playlist button:hover { border-color: var(--lime); background: #F7FBEF; }
.playlist button.is-active { border-color: var(--navy); background: #EEF3FA; }
.pl-n { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--navy); display: flex; align-items: center; justify-content: center; font: 800 13px var(--fh); }
.is-seen .pl-n { background: var(--lime); color: var(--deep); }
.pl-t { flex: 1 1 auto; font-weight: 600; }
.pl-l { color: var(--muted); font-size: 13px; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.files a { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--navy); font-weight: 600; }
.files a:hover { border-color: var(--lime); }

/* Нэвтрэх, бүртгүүлэх
------------------------------------------------------------------ */
.auth { max-width: 1100px; padding-top: 56px; padding-bottom: 88px; }
.auth-wide { max-width: 860px; }
.auth-card { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.auth-solo { display: block; padding: clamp(24px, 5vw, 48px); }
.auth-side { flex: 1 1 380px; position: relative; background: var(--navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; overflow: hidden; }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.auth-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 32, 96, .2), rgba(0, 32, 96, .95)); }
.auth-side-in { position: relative; display: flex; flex-direction: column; gap: 12px; }
.auth-side-t { font: 800 30px/1.2 var(--fh); }
.auth-side-d { color: #D6E1F0; }
.auth-side-d strong { color: #fff; }
.auth-main { flex: 1 1 420px; padding: clamp(28px, 5vw, 56px); }
.auth h1 { font-weight: 800; font-size: 30px; margin: 0 0 6px; }
.auth-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.auth-main > .muted, .auth-solo > .muted { margin: 0 0 24px; }
@media (max-width: 640px) { .auth-side { min-height: 220px; padding: 28px; } .auth-side-t { font-size: 24px; } .auth { padding-top: 24px; } }

.form { display: flex; flex-direction: column; gap: 18px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f label, .f-row label { font-weight: 600; font-size: 14px; }
.f-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.f input { width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; font: inherit; background: #F7F9FC; border: 1.5px solid #C7D3E3; color: var(--ink); }
.f input:focus { outline: 3px solid rgba(153, 202, 60, .55); outline-offset: 1px; background: #fff; }
.f input[aria-invalid="true"] { border-color: var(--red); }
.f-err { font-size: 13px; color: var(--red); }
.req { color: var(--red); }
.f-pass { position: relative; }
.f-pass input { padding-right: 56px; }
.f-pass button { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.f-check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #3B4A63; cursor: pointer; }
.f-check input { width: 20px; height: 20px; accent-color: var(--navy); flex: 0 0 auto; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.f-hp { position: absolute; left: -9999px; }

.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 24px 0; }
.done-left { align-items: flex-start; text-align: left; padding: 0; }
.done h1 { margin: 0; }
.done p { margin: 0; color: var(--muted); max-width: 460px; }
.done-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--lime); color: var(--deep); display: flex; align-items: center; justify-content: center; }
.done-warn { background: #FFF7E6; color: #6B4A06; }

/* Миний хичээлүүд
------------------------------------------------------------------ */
.mhero { background: var(--navy); color: #fff; }
.mhero-in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; padding-top: 44px; padding-bottom: 48px; }
.mhero-hi { font-size: 14px; color: #C9D6EA; }
.mhero h1 { color: #fff; font-weight: 800; font-size: clamp(30px, 3.6vw, 42px); margin: 4px 0 0; }
.mstats { display: flex; flex-wrap: wrap; gap: 12px; }
.mstat { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 14px 20px; min-width: 140px; }
.mstat b { display: block; font: 800 28px/1 var(--fh); }
.mstat span { font-size: 13px; color: #C9D6EA; }
.mstat-lime { background: var(--lime); border-color: var(--lime); color: var(--deep); }
.mstat-lime span { color: var(--deep); }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.js-item { display: flex; flex-direction: column; }
.js-item > .card { flex: 1 1 auto; }
.mcard-img { position: relative; }
.mcard-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.mcard-badge { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; }
.mcard-badge.is-upcoming { background: var(--lime); color: var(--deep); }
.mcard-badge.is-active { background: #fff; color: var(--navy); }
.mcard-badge.is-done { background: var(--deep); color: #fff; }
.mcard-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.mcard-title { text-decoration: none; }
.mcard-btns { margin-top: auto; }
.prog { display: flex; flex-direction: column; gap: 6px; }
.prog-h { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.prog-h b { color: var(--navy); }
.prog-bar { height: 8px; border-radius: 999px; background: var(--line2); overflow: hidden; }
.prog-bar div { height: 100%; border-radius: 999px; background: var(--navy); animation: grow 1s ease-out both; }
.prog-bar div.is-full { background: #5E8A12; }
@keyframes grow { from { width: 0; } }

/* Профайл
------------------------------------------------------------------ */
.prof { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 40px; padding-bottom: 88px; }
.prof-side { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.prof-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.prof-n { font: 700 18px var(--fh); color: var(--navy); }
.prof-nav { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px; display: flex; flex-direction: column; }
.prof-nav a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.prof-nav a:hover { background: #EEF3FA; }
.prof-nav a[aria-current="page"] { background: var(--soft); color: var(--navy); }
.prof-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 860px) { .prof-side { max-width: none; } }
.toast { background: var(--green-bg); color: var(--green); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; animation: toastIn .3s ease-out both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pw summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.pw summary::-webkit-details-marker { display: none; }
.pw summary h2 { margin: 0; }
.pw[open] summary { margin-bottom: 18px; }
.pw[open] summary svg { transform: rotate(180deg); }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tbl th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line2); }
.tbl a { color: var(--navy); text-decoration: none; font-weight: 600; }

/* Төлбөр
------------------------------------------------------------------ */
.pay { max-width: 1140px; padding-top: 40px; padding-bottom: 88px; }
.paysteps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 600; color: var(--muted); }
.paysteps li { display: flex; align-items: center; gap: 8px; }
.paysteps span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #B9C7DA; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.paysteps .is-done { color: var(--green); }
.paysteps .is-done span { background: var(--lime); border-color: var(--lime); color: var(--deep); }
.paysteps [aria-current] { color: var(--navy); }
.paysteps [aria-current] span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pay-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.pay-sum { flex: 1 1 320px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.pay-sum h2 { font-size: 18px; margin: 0; }
.pay-item { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line2); }
.pay-item img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.pay-item-t { font: 700 16px/1.3 var(--fh); color: var(--navy); }
.pay-lines { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.pay-lines div { display: flex; justify-content: space-between; gap: 10px; }
.pay-total { padding-top: 12px; border-top: 1px dashed #C7D3E3; font: 800 20px var(--fh); color: var(--navy); }
.pay-inv { font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.pay-box { flex: 999 1 520px; min-width: 0; border: 2px solid var(--lime); box-shadow: var(--shadow); }
.pay-box h1 { font-weight: 800; font-size: 26px; margin: 0 0 16px; }
.pay-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.pay-head h1 { margin: 0; }
.pay-timer { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #6B4A06; background: #FFF7E6; border-radius: 999px; padding: 8px 14px; }
.pay-qr { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-bottom: 24px; }
.pay-qr-img { flex: 0 0 auto; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.pay-qr-img img { width: 220px; height: 220px; image-rendering: pixelated; }
.pay-qr-t { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; }
.pay-qr-t p { margin: 0; color: var(--navy); }
.pay-qr-t ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.pay-amount { font: 800 26px var(--fh); color: var(--navy); }
.pay-banks-wrap h2 { font-size: 15px; margin: 0 0 12px; }
.pay-banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 24px; }
.bank { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.25; }
.bank img { width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto; }
.bank:hover { border-color: var(--lime); background: #F7FBEF; }
/* Утсан дээр банкны аппын холбоос QR-ээс дээр, компьютер дээр доор */
.js-pending { display: flex; flex-direction: column; }
.pay-head { order: 0; }
.pay-qr { order: 1; }
.pay-mobile-first { order: 2; }
.js-pending > .note, .js-pending > .btn, .js-pending > p { order: 3; }
@media (pointer: coarse), (max-width: 640px) {
    .pay-mobile-first { order: 1; }
    .pay-qr { order: 2; }
}
.spin { width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; display: block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pop { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Хөл
------------------------------------------------------------------ */
.ft { background: var(--deep); color: #C9D6EA; }
.ft-main { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-top: 48px; padding-bottom: 32px; }
.ft-about { flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.ft-title { font: 800 18px var(--fh); color: #fff; }
.ft-links { flex: 1 1 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; font-size: 14px; }
.ft-links > * { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px 16px; }
.ft-links a:hover { background: rgba(255, 255, 255, .12); }
.ft-copy { border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; padding: 18px 24px; font-size: 13px; color: #9FB2CC; }

@media (max-width: 640px) {
    .wrap { padding-left: 16px; padding-right: 16px; }
    .hero-in { padding-top: 48px; padding-bottom: 56px; gap: 32px; }
    .hero-cards, .hero-text { flex-basis: 100%; }
    .hcard { padding: 18px; }
    .hcard-ic { flex-basis: 48px; height: 48px; }
    .sec { padding-top: 56px; }
    .how { padding-top: 56px; padding-bottom: 56px; }
    .grid3 { grid-template-columns: 1fr; }
    .phero-ring { width: 200px; height: 200px; border-width: 28px; right: -70px; top: -80px; }
}
@media print { .hd, .ft { display: none; } }
