/* huvaari.uvsdaam.com — танилцуулга хуудас, нэвтрэх цонх */
:root {
  --bg: #ffffff;
  --bg2: #f6f8fc;
  --line: #dadce0;
  --text: #202124;
  --text2: #3c4043;
  --muted: #5f6368;
  --blue: #1a73e8;
  --blue-dark: #174ea6;
  --blue-soft: #e8f0fe;
  --red: #d93025;
  --green: #188038;
  --shadow: 0 1px 3px rgba(60, 64, 67, .3), 0 4px 8px 3px rgba(60, 64, 67, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
[hidden] { display: none !important; }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }

/* ---------- Товч ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 20px; border: 1px solid transparent;
  font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background .15s, box-shadow .15s;
}
.lp-btn.lg { height: 48px; padding: 0 28px; border-radius: 24px; font-size: 16px; }
.lp-btn.block { width: 100%; height: 44px; }
.lp-btn.primary { background: var(--blue); color: #fff; }
.lp-btn.primary:hover { background: #1b66c9; box-shadow: 0 1px 3px rgba(60,64,67,.35); }
.lp-btn.primary:disabled { background: #8ab4f8; cursor: wait; }
.lp-btn.ghost { background: #fff; border-color: var(--line); color: var(--blue); }
.lp-btn.ghost:hover { background: var(--blue-soft); }
.link { border: 0; background: none; color: var(--blue); font-weight: 500; padding: 4px 0; }
.link:hover { text-decoration: underline; }
.link.sm { font-size: 13px; align-self: flex-end; margin: -4px 0 10px; }

/* ---------- Дээд мөр ---------- */
.lp-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 max(16px, calc((100vw - 1160px) / 2));
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid #eceff1;
}
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 17px; margin-right: auto; }
.lp-logo, .am-logo { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: block; flex: none; }
.lp-logo img, .am-logo img { width: 100%; height: 100%; display: block; }
.lp-nav { display: flex; gap: 22px; }
.lp-nav a { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; }
.lp-nav a:hover { color: var(--blue); }

/* ---------- Hero ---------- */
main { overflow-x: hidden; }
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  max-width: 1160px; margin: 0 auto; padding: 72px 16px 80px;
}
.pill {
  display: inline-block; padding: 5px 14px; border-radius: 16px;
  background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; font-weight: 500;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; margin: 18px 0 18px; font-weight: 700; letter-spacing: -.5px; }
.lead { font-size: 17px; color: var(--text2); margin: 0 0 28px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

.hero-art { position: relative; }
.mock {
  background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(60,64,67,.18), 0 2px 6px rgba(60,64,67,.12);
  overflow: hidden; transform: rotate(-1deg);
}
.mock-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #eceff1; font-size: 14px; }
.mock-top b { margin-left: 10px; font-weight: 500; color: var(--text2); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.mock-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: auto 280px; }
.mock-dow { text-align: center; font-size: 11px; color: var(--muted); font-weight: 500; padding: 8px 0; border-left: 1px solid #f1f3f4; }
.mock-col {
  position: relative; border-left: 1px solid #f1f3f4;
  background-image: linear-gradient(to bottom, #f1f3f4 1px, transparent 1px); background-size: 100% 35px;
}
.mock-col i {
  position: absolute; left: 3px; right: 3px; border-radius: 5px; background: var(--c); color: #fff;
  font-style: normal; font-size: 10px; line-height: 1.25; padding: 3px 4px; overflow: hidden; font-weight: 500;
}
.mock-col i small { font-weight: 400; opacity: .9; }
.mock-col i.on { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--text); border-left: 3px solid var(--c); }
.mock-qr {
  position: absolute; right: -8px; bottom: -28px; display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 12px 16px 12px 12px; border-radius: 14px; box-shadow: var(--shadow); font-size: 13px;
}
.mock-qr b { display: block; font-weight: 500; }
.mock-qr small { color: var(--muted); }
.qr-box { width: 52px; height: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.qr-box span { background: var(--text); border-radius: 2px; }
.qr-box span:nth-child(2), .qr-box span:nth-child(4), .qr-box span:nth-child(8) { background: #fff; outline: 2px solid var(--text); outline-offset: -5px; }

/* ---------- Алхмууд ---------- */
.how { background: var(--bg2); padding: 80px 16px; }
.how h2, .share h2 { font-size: 30px; margin: 0 0 12px; font-weight: 700; }
.how h2 { text-align: center; margin-bottom: 36px; }
.steps { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border-radius: 16px; padding: 26px 24px; border: 1px solid #e8eaed; }
.step .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark);
  display: grid; place-items: center; font-weight: 700;
}
.step h3 { font-size: 18px; margin: 16px 0 6px; font-weight: 500; }
.step p { margin: 0; color: var(--text2); font-size: 14.5px; }

.share { padding: 80px 16px; }
.share-card {
  max-width: 1160px; margin: 0 auto; padding: 40px;
  border-radius: 20px; background: linear-gradient(135deg, #e8f0fe, #f3e8fd);
  display: flex; gap: 32px; align-items: center; justify-content: space-between;
}
.share-card p { color: var(--text2); max-width: 680px; margin: 0 0 14px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--text2); font-size: 14.5px; }
.ticks li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 8px; }

.lp-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 16px 36px; border-top: 1px solid #eceff1; }

/* ---------- Нэвтрэх цонх ---------- */
.am {
  position: fixed; inset: 0; z-index: 50; background: rgba(32,33,36,.5);
  display: grid; place-items: center; padding: 16px; overflow-y: auto;
  animation: fade .15s ease;
}
.am-card {
  position: relative; width: 420px; max-width: 100%;
  background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.25);
  padding: 32px 32px 26px; display: flex; flex-direction: column;
  animation: pop .18s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.am-x {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: transparent; display: grid; place-items: center; color: var(--muted);
}
.am-x:hover { background: #f1f3f4; }
.am-x svg { width: 22px; height: 22px; fill: currentColor; }
.am-logo { width: 72px; height: 72px; margin: 0 auto 10px; }
.am-card h2 { text-align: center; margin: 0; font-size: 22px; font-weight: 500; }
.am-sub { text-align: center; margin: 4px 0 20px; color: var(--muted); font-size: 14px; }

.g-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 48px; border-radius: 24px; border: 1px solid var(--line); background: #fff;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: background .15s, box-shadow .15s;
}
.g-btn:hover { background: #f8fafd; box-shadow: 0 1px 3px rgba(60,64,67,.25); }
.g-btn svg { width: 22px; height: 22px; }
.g-btn.off { opacity: .55; }

.or { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: #e8eaed; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f3f4; border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.tabs button { border: 0; background: transparent; height: 36px; border-radius: 9px; font-weight: 500; color: var(--muted); font-size: 14px; }
.tabs button.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(60,64,67,.25); }

.am-form { display: flex; flex-direction: column; }
.fl { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.fl > span { font-size: 12.5px; font-weight: 500; color: var(--text2); }
.fl small { color: var(--muted); font-size: 12px; }
.fl input {
  height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; outline: none;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.fl input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.am-form .lp-btn { margin-top: 4px; }
.am-form .link:not(.sm) { margin-top: 12px; align-self: center; }
[data-view="reset-bad"] { margin-top: 4px; }

.am-msg { border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px; line-height: 1.45; }
.am-msg.err { background: #fce8e6; color: #a50e0e; }
.am-msg.ok { background: #e6f4ea; color: #0d652d; }
.am-msg.info { background: var(--blue-soft); color: var(--blue-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 16px 72px; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .share-card { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .mock-qr { right: 8px; }
}
@media (max-width: 600px) {
  .lp-nav { display: none; }
  .lp-top { gap: 12px; }
  .hero h1 br { display: none; }
  .lead { font-size: 16px; }
  .how, .share { padding: 56px 16px; }
  .mock-grid { grid-template-rows: auto 220px; }
  .mock-col i { font-size: 8.5px; padding: 2px; }
  .am { padding: 0; place-items: end stretch; }
  .am-card { border-radius: 20px 20px 0 0; padding: 28px 20px 22px; width: 100%; }
}
