/* Avzaga нийтийн вэбсайт (avzaga.css-ийн token-ууд дээр) */
body.site { font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; display: flex; flex-direction: column; min-height: 100vh; }
body.site > main { flex: 1; }
.site h1, .site h2, .site h3 { text-wrap: balance; letter-spacing: -0.01em; }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--brand-dark); color: #fff; }
.site-header-inner { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 20px; }
.site .brand span:last-child { display: grid; line-height: 1.05; font-size: 18px; }
.site .brand small { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.site-nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.site-nav a { color: #dbeafe; text-decoration: none; padding: 7px 11px; border-radius: 8px; font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(34, 197, 94, .22); color: #fff; }
.site-actions { display: flex; gap: 8px; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff !important; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.site-header .btn:not(.btn-ghost) { background: var(--accent); color: var(--on-accent); }
.site-header .btn:not(.btn-ghost):hover { background: var(--accent-strong); }
.site-menu { display: none; margin-left: auto; position: relative; }
.site-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; display: grid; place-content: center; gap: 5px; border: 1px solid rgba(255, 255, 255, .3); }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.site-menu-panel { position: absolute; right: 0; top: 48px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18); padding: 8px; display: grid; min-width: 220px; }
.site-menu-panel a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.site-menu-panel a:hover { background: var(--surface-2); }
@media (max-width: 1020px) { .site-nav, .site-actions { display: none; } .site-menu { display: block; } }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 48px; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-footer h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.site-footer a:not(.brand) { display: block; color: var(--text); text-decoration: none; padding: 3px 0; font-size: 14.5px; }
.site-footer a:not(.brand):hover { color: var(--brand-strong); }
.site-footer .brand { color: var(--text); }
.site-footer p a:not(.brand) { display: inline; padding: 0; font-size: inherit; text-decoration: underline; }
@media (max-width: 760px) { .site-footer-inner { grid-template-columns: 1fr 1fr; } }

/* Hero */
.hero { background: linear-gradient(160deg, #06101f 0%, #172554 55%, #1e3a8a 100%); color: #fff; }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 56px 16px 64px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.05; margin: 0 0 16px; font-weight: 800; }
.hero .btn:not(.btn-ghost) { background: var(--accent); color: var(--on-accent); }
.hero .btn:not(.btn-ghost):hover { background: var(--accent-strong); }
.hero p.lead { font-size: 18.5px; color: #dbeafe; max-width: 52ch; margin: 0 0 24px; }
.hero .eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.track-box { background: var(--surface); color: var(--text); border-radius: 16px; padding: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.track-box h2 { font-size: 18px; margin: 0 0 4px; }
.track-box form { display: flex; gap: 8px; margin-top: 12px; }
.track-box input { flex: 1; min-width: 0; font-size: 16px; text-transform: uppercase; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 8px; }
.hero-stats b { color: var(--accent); display: block; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 13px; color: #bfdbfe; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 36px; } }

/* Sections */
.section { max-width: 1180px; margin: 0 auto; padding: 48px 16px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }
.page-head { max-width: 1180px; margin: 0 auto; padding: 36px 16px 8px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; font-weight: 800; }
.page-head p { color: var(--muted); font-size: 17px; max-width: 70ch; margin: 0; }
.crumbs { font-size: 13.5px; margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .steps.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps.six, .cards.four { grid-template-columns: minmax(0, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.tile b { display: block; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile span { color: var(--muted); font-size: 13.5px; }
.tile.accent { background: var(--brand-soft); border-color: transparent; }
.tile.accent b { color: var(--brand-strong); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bcard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: grid; gap: 10px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.bcard:hover { border-color: var(--brand); transform: translateY(-2px); }
.bcard h3 { margin: 0; font-size: 18px; }
.bcard .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.bcard .figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.bcard .figures b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.bcard .figures span { font-size: 12px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.map { height: 380px; border-radius: 14px; border: 1px solid var(--border); overflow: hidden; background: var(--surface-2); }
.leaflet-container { font-family: inherit; }
.bpin { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.bpin.fr { background: #d97706; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 20px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 56px; background: var(--brand); border-radius: 8px 8px 3px 3px; min-height: 3px; }
.bar b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bar span { font-size: 12px; color: var(--muted); white-space: nowrap; }

.rank { counter-reset: r; }
.rank tbody tr td:first-child::before { counter-increment: r; content: counter(r); display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: 13px; margin-right: 10px; }
.rank tbody tr:nth-child(1) td:first-child::before { background: #fde68a; color: #78350f; }
.rank tbody tr:nth-child(2) td:first-child::before { background: #e5e7eb; color: #374151; }
.rank tbody tr:nth-child(3) td:first-child::before { background: #fed7aa; color: #7c2d12; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.cta { background: var(--brand-dark); color: #fff; border-radius: 18px; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.cta h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); }
.cta p { margin: 0; color: #bfdbfe; }
.cta .actions .btn:not(.btn-ghost) { background: var(--accent); color: var(--on-accent); }
.cta .actions .btn:not(.btn-ghost):hover { background: var(--accent-strong); }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* Legal */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.legal-toc { position: sticky; top: 84px; display: grid; gap: 2px; font-size: 14px; }
.legal-toc a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.legal-toc a:hover { background: var(--surface-2); color: var(--text); }
.legal-body section { scroll-margin-top: 84px; margin-bottom: 28px; }
.legal-body h2 { font-size: 24px; margin: 0 0 12px; }
.legal-body h3 { font-size: 17px; margin: 18px 0 8px; }
.legal-body p, .legal-body li { line-height: 1.65; }
.legal-body ul { padding-left: 20px; display: grid; gap: 4px; }
.law { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--info-soft); color: var(--info); margin: 2px 4px 2px 0; }
.compare th, .compare td { font-size: 14px; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: minmax(0, 1fr); } .legal-toc { position: static; display: flex; flex-wrap: wrap; } }

/* Apply form */
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 920px) { .apply-layout { grid-template-columns: minmax(0, 1fr); } }
.fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin: 0 0 16px; background: var(--surface); }
.fieldset legend { font-weight: 700; font-size: 16px; padding: 0 6px; }
.fieldset .hint { color: var(--muted); font-size: 13.5px; margin: -4px 0 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.choice-grid label { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-weight: 400; margin: 0; }
.choice-grid label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice-grid input { margin-top: 3px; accent-color: var(--brand); }
.choice-grid strong { font-size: 15px; }
.choice-grid small { grid-column: 2; color: var(--muted); }
.fleet { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.fleet label { font-weight: 500; font-size: 13.5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; accent-color: var(--brand); }
.side-note { position: sticky; top: 84px; }
.side-note ul { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 6px; font-size: 14px; }
.hidden-honeypot { position: absolute; left: -9999px; }
