:root {
  --ink: #0f1b2d;
  --ink-soft: #4a5568;
  --muted: #6b7a90;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --brand: #1b3a5f;
  --brand-dark: #12233a;
  --accent: #5b7fb0;
  --gray: #6e6e6e;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-soft);
}
.lang button {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.lang button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(15, 27, 45, 0.12); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(91, 127, 176, 0.28), transparent 60%),
    linear-gradient(180deg, #13243c, #101e33);
}
.hero::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 22%;
  width: 180px;
  height: 56%;
  background: repeating-linear-gradient(90deg, rgba(91, 127, 176, 0.22) 0 14px, transparent 14px 38px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
          mask: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-logo { height: 72px; width: auto; display: block; margin-bottom: 28px; }
.hero .eyebrow { background: rgba(255, 255, 255, 0.1); color: #c9d6ea; }
.hero h1 { color: #fff; }
.hero p.lead { color: #b9c6da; }
.hero .btn-primary { background: #fff; color: var(--brand); }
.hero .btn-primary:hover { background: #e9eef6; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.hero .wrap { padding-top: 88px; padding-bottom: 88px; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(23, 71, 166, 0.08);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 820px;
}
.hero p.lead { font-size: 19px; color: #b9c6da; max-width: 680px; margin: 0 0 30px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* Sections */
section { padding: 84px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(23, 71, 166, 0.08);
  color: var(--brand);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0 0 14px; color: var(--ink-soft); }
.card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.card li { margin: 4px 0; }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.facts { display: grid; gap: 12px; }
.fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.fact span:first-child { color: var(--muted); }
.fact span:last-child { font-weight: 700; text-align: right; }

.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact .card h3 { font-size: 16px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.contact .card p { color: var(--ink); font-weight: 700; font-size: 17px; margin: 0; }

/* Footer */
.footer { padding: 36px 0; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { color: var(--muted); }

/* Legal page */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; }

/* Language switching */
[data-lang="en"] .mn { display: none !important; }
[data-lang="mn"] .en { display: none !important; }

@media (max-width: 900px) {
  .hero::after { display: none; }
  .hero-logo { height: 56px; }
  .grid, .grid.two, .contact { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .nav a { display: none; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  section { padding: 60px 0; }
}
