/* Layout (mlmongolia.com загвараар, ногоон өнгө): contact top bar + CTA, white sticky header with logo + nav + language,
   full-width dark hero with centered serif title, "Бид хэн бэ" two-column with offset image block,
   services cards, stats row, dark CTA band, dark footer. 1140px container. */
:root {
  --bg: #F8FAF8;
  --soft: #EEF7F1;
  --card: #ffffff;
  --ink: #1f2d27;
  --text: #55645c;
  --line: #D1E7D9;
  --green: #2E7D5B;       /* үндсэн ногоон (Primary Dark) */
  --green-deep: #24654A;
  --gold: #2E7D5B;        /* товч, тодруулга */
  --gold-ink: #ffffff;
  --icon: #4CAF7A;        /* Primary: дүрс, хүрээ */
  --hover: #E2F1E8;
  --accent-light: #AEE3C1; /* бараан дэвсгэр дээрх тодруулга */
  --photo-back: #CFF2DB;
  --dark: #1A2332;
  --dark-deep: #0F172A;
  --on-dark: #ffffff;
  --on-dark-muted: #b4c0cc;
  --hero-img: none; /* жинхэнэ зураг: linear-gradient(rgba(10,40,28,.3), rgba(10,40,28,.3)), url("../assets/images/hero.jpg") */
  --hero-bg: radial-gradient(circle at 85% 15%, rgba(127, 207, 159, .55), transparent 50%), radial-gradient(circle at 10% 90%, rgba(174, 227, 193, .6), transparent 45%), linear-gradient(135deg, #E6F3EA 0%, #CFF2DB 55%, #AEE3C1 100%);
  --hero-title: #2E7D5B;
  --shadow: 0 10px 30px rgba(46, 125, 91, .10);
  --ph: #fff4d6;
  --ph-ink: #7a5a12;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F172A; --soft: #1A2332; --card: #1F2D3D; --ink: #eef4f1; --text: #a9b6c2; --line: #2E3B4A;
    --green: #34D399; --green-deep: #059669; --gold: #34D399; --gold-ink: #0F172A; --icon: #34D399; --hover: #243544;
    --accent-light: #A7F3D0; --photo-back: #243544;
    --dark: #1A2332; --dark-deep: #0b1120; --shadow: 0 10px 30px rgba(0,0,0,.35);
    --hero-bg: radial-gradient(circle at 85% 15%, rgba(52, 211, 153, .32), transparent 50%), radial-gradient(circle at 10% 90%, rgba(16, 185, 129, .22), transparent 45%), linear-gradient(135deg, #0F172A 0%, #10303A 55%, #0B4A3A 100%);
    --hero-title: #eef4f1;
    --ph: #3a2f12; --ph-ink: #f1d48a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F172A; --soft: #1A2332; --card: #1F2D3D; --ink: #eef4f1; --text: #a9b6c2; --line: #2E3B4A;
  --green: #34D399; --green-deep: #059669; --gold: #34D399; --gold-ink: #0F172A; --icon: #34D399; --hover: #243544;
  --accent-light: #A7F3D0; --photo-back: #243544;
  --dark: #1A2332; --dark-deep: #0b1120; --shadow: 0 10px 30px rgba(0,0,0,.35);
  --hero-bg: radial-gradient(circle at 85% 15%, rgba(52, 211, 153, .32), transparent 50%), radial-gradient(circle at 10% 90%, rgba(16, 185, 129, .22), transparent 45%), linear-gradient(135deg, #0F172A 0%, #10303A 55%, #0B4A3A 100%);
    --hero-title: #eef4f1;
  --ph: #3a2f12; --ph-ink: #f1d48a; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
svg { flex: none; }
.ph { background: var(--ph); color: var(--ph-ink); border-radius: 4px; padding: 0 .3em; }

/* Top bar: contact info left, socials + gold CTA right */
.topbar { border-bottom: 1px solid var(--line); font-size: .85rem; padding-top: env(safe-area-inset-top, 0px); }
.topbar .wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; }
.topbar ul { display: flex; flex-wrap: wrap; gap: 6px 28px; list-style: none; margin: 0; padding: 12px 0; color: var(--ink); }
.topbar li { display: flex; align-items: center; gap: 8px; }
.topbar li svg { width: 15px; height: 15px; color: var(--icon); }
.topbar .right { display: flex; align-items: stretch; gap: 20px; }
.social { display: flex; align-items: center; gap: 14px; }
.social a { display: grid; place-items: center; color: var(--ink); }
.social svg { width: 20px; height: 20px; }
.social a:hover { color: var(--green); }
.cta-top { display: flex; align-items: center; padding: 0 28px; background: var(--gold); color: var(--gold-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; font-size: .8rem; }
@media (max-width: 900px) { .topbar .hide-sm { display: none; } }
@media (max-width: 600px) { .topbar .right { display: none; } .topbar ul { justify-content: center; width: 100%; } }

/* Header: white, sticky, logo + nav + language */
header.nav { position: sticky; top: 0; z-index: 5; background: var(--bg); transition: box-shadow .2s; }
header.nav.solid { box-shadow: 0 2px 18px rgba(0,0,0,.08); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; position: relative; }
.logo { display: block; line-height: 0; }
.logo img { width: auto; max-width: 62vw; }
.logo picture img { height: 54px; }
@media (max-width: 600px) { .logo picture img { height: 40px; } }
html[lang="mn"] .logo-en, html[lang="en"] .logo-mn { display: none; }
.nav .menu { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav ul a { white-space: nowrap; text-decoration: none; font-weight: 500; color: var(--ink); font-size: .95rem; }
.nav ul a:hover { color: var(--gold); }
.lang { display: flex; gap: 8px; font-size: .9rem; }
.lang a { text-decoration: none; color: var(--gold); opacity: .7; }
.lang a[aria-current] { opacity: 1; font-weight: 700; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 6px 12px; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 12px 20px rgba(0,0,0,.08); }
  .nav .menu.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a, .lang { display: block; padding: 12px max(16px, env(safe-area-inset-left, 0px)); }
  .lang { display: flex; }
}

/* Hero: full width dark image with overlay, centered serif title */
.hero { background: var(--hero-img), var(--hero-bg); background-size: cover; background-position: center; color: var(--text); text-align: center; border-bottom: 1px solid var(--line); }
.hero .wrap { min-height: 560px; padding-block: 110px; display: grid; align-content: center; justify-items: center; gap: 18px; }
@media (max-width: 860px) { .hero .wrap { min-height: 400px; padding-block: 72px; } }
@media (max-width: 600px) { .hero .wrap { min-height: 0; padding-block: 56px; } }
.hero h1 { color: var(--hero-title); font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700; letter-spacing: .01em; max-width: 20ch; }
.hero .sub { font-family: var(--serif); color: var(--accent-light); font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 500; }
.hero .lead { max-width: 56ch; color: rgba(255,255,255,.85); }
.btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 15px 44px; border-radius: 3px; background: var(--gold); color: var(--gold-ink); font-weight: 700; text-decoration: none; }
.btn:hover { filter: brightness(1.05); }

section.block .wrap { padding-block: 64px; display: grid; gap: 40px; }
@media (max-width: 600px) { section.block .wrap { padding-block: 48px; } }
.title { text-align: center; font-size: clamp(1.9rem, 4vw, 2.8rem); font-style: italic; font-weight: 600; }
.eyebrow { display: block; font-family: var(--sans); font-style: normal; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 10px; }
.soft { background: var(--soft); }

/* About: text left, image right with offset gold block */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 48px; } }
.about h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-style: italic; font-weight: 600; margin-bottom: 20px; }
.about .text > * + * { margin-top: 14px; }
.about { align-items: start; }
.about .photo { position: sticky; top: 120px; }
@media (max-width: 860px) { .about .photo { position: relative; top: auto; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.photo { position: relative; padding: 0 0 6px 30px; }
.photo::before { content: ""; position: absolute; left: 0; top: 56px; bottom: 0; right: 30px; background: var(--photo-back); }
.photo .img { position: relative; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #2E7D5B, #7FCF9F); display: grid; place-items: center; color: rgba(255,255,255,.75); font-size: .9rem; overflow: hidden; }
.photo .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .logo-panel { background: var(--card); border: 1px solid var(--line); }
.photo .logo-panel img { width: 62%; height: auto; object-fit: contain; }
.photo .video-panel { aspect-ratio: 16 / 9; background: #fff; border: 1px solid var(--line); }
.photo .video-panel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sound-btn { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border: 0; padding: 0; background: transparent; color: #2E7D5B; display: grid; place-items: center; cursor: pointer; }
.sound-btn svg { width: 18px; height: 18px; }
.sound-btn:hover { color: #24654A; }
.sound-btn .ic-on, .sound-btn[aria-pressed="true"] .ic-off { display: none; }
.sound-btn[aria-pressed="true"] .ic-on { display: block; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--icon); padding: 32px 26px; display: grid; gap: 14px; align-content: start; transition: box-shadow .2s, transform .2s; }
.card:hover { background: var(--hover); box-shadow: var(--shadow); transform: translateY(-3px); }
.icon { width: 52px; height: 52px; border-radius: 50%; background: var(--icon); color: var(--gold-ink); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; font-weight: 600; }
.intro { text-align: center; max-width: 60ch; margin: -28px auto 0; }
.link-card { text-decoration: none; color: inherit; }
.link-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--green); font-weight: 700; font-size: .9rem; }
.link-card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.link-card:hover .more svg { transform: translateX(4px); }
.link-card { grid-template-rows: auto auto 1fr auto; }


/* Stats row */
.stats { display: flex; justify-content: center; gap: 24px; text-align: center; max-width: 900px; margin: 0 auto; width: 100%; }
.stats > div { flex: 1 1 0; }
@media (max-width: 420px) { .stats { gap: 12px; } .stats span { font-size: .85rem; } }
.stats strong { display: block; font-family: var(--serif); color: var(--green); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.1; }
:root[data-theme="dark"] .stats strong { color: var(--accent-light); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stats strong { color: var(--accent-light); } }
.stats .ph { font-size: .6em; vertical-align: middle; }

/* Dark CTA band + footer */
footer { background: var(--dark); color: var(--on-dark-muted); }
.cta-band { padding-block: 64px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cta-band li { display: flex; align-items: center; gap: 12px; color: #fff; }
.cta-band li svg { width: 18px; height: 18px; color: var(--accent-light); }
.cta-band .ask { text-align: right; }
@media (max-width: 860px) { .cta-band .ask { text-align: left; } }
.cta-band .ask span { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--accent-light); font-weight: 700; }
.cta-band .ask h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-style: italic; font-weight: 600; margin: 6px 0 4px; }
.cta-band .ask .btn { margin-top: 16px; }
footer .bottom { background: var(--dark-deep); }
footer .bottom .wrap { padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .9rem; }
footer .bottom img { height: 36px; width: auto; max-width: 100%; }
footer .bottom a { text-decoration: none; }
footer .bottom a:hover { color: #fff; }
footer .bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
