/* ===================================================================
   Лхамрагчаа · Монгол хөөмийн багш — загвар
   Палитра: обсидиан хар, бургунд улаан, алтан шар, цаасан цагаан
   =================================================================== */

:root {
  --ink:        #100c0b;   /* гүн хар суурь */
  --ink-2:      #1a1411;   /* зөөлөн хар */
  --ink-3:      #241b16;   /* картын хар */
  --bourdon:    #7a1f2b;   /* бургунд (деелний өнгө) */
  --bourdon-2:  #5a151f;
  --gold:       #c9a24b;   /* алт */
  --gold-soft:  #e3c987;
  --cream:      #f4ece0;   /* цаасан цагаан */
  --muted:      #b9a99a;   /* бүдэг текст */
  --line:       rgba(201,162,75,.22);
  --maxw: 1180px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Хуваарьт ангиуд ---------- */
.section__eyebrow {
  font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1rem;
}
.section__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08;
  color: var(--cream); margin-bottom: 1.2rem;
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section__intro { color: var(--muted); font-size: 1.05rem; }

/* ---------- Товч ---------- */
.btn {
  display: inline-block; padding: .95rem 1.9rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #2a1d0a; box-shadow: 0 10px 30px -10px rgba(201,162,75,.6);
}
.btn--gold:hover { box-shadow: 0 16px 40px -10px rgba(201,162,75,.8); }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid rgba(244,236,224,.4); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--ghost-dark { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn--ghost-dark:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--dark { background: var(--bourdon); color: var(--cream); margin-top: 1.6rem; }
.btn--dark:hover { background: var(--bourdon-2); }
.btn--full { width: 100%; text-align: center; margin-top: .4rem; }

/* ---------- Навигаци ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background .4s ease, padding .4s ease, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(16,12,11,.85); backdrop-filter: blur(14px);
  padding-top: .7rem; padding-bottom: .7rem;
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand { display: flex; align-items: center; gap: .7rem; }
.nav__emblem {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--gold); filter: sepia(.3) saturate(.7) brightness(1.05);
}
.nav__name { font-family: var(--serif); font-weight: 700; letter-spacing: .18em; font-size: 1.05rem; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: .92rem; font-weight: 500; color: var(--cream); opacity: .85; transition: opacity .2s, color .2s; }
.nav__links a:hover { opacity: 1; color: var(--gold-soft); }
.nav__cta {
  border: 1px solid var(--gold); border-radius: 999px; padding: .5rem 1.2rem;
  color: var(--gold-soft) !important; opacity: 1 !important;
}
.nav__cta:hover { background: var(--gold); color: #2a1d0a !important; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav__burger span { width: 26px; height: 2px; background: var(--cream); transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: url("assets/landscape-altai.jpg") center 30% / cover no-repeat;
  transform: scale(1.08); animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(16,12,11,.92) 0%, rgba(16,12,11,.7) 45%, rgba(90,21,31,.45) 100%),
    linear-gradient(to top, rgba(16,12,11,.95) 0%, transparent 40%);
}
.hero__inner {
  position: relative; z-index: 2; max-width: var(--maxw); width: 100%;
  margin: 0 auto; padding: 7rem clamp(1.2rem, 4vw, 3rem) 5rem;
}
.hero__eyebrow { color: var(--gold-soft); letter-spacing: .26em; text-transform: uppercase; font-size: .82rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero__title {
  font-family: var(--serif); font-weight: 800; line-height: .98;
  font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 1.6rem; letter-spacing: -.01em;
}
.hero__title span { color: var(--gold); font-style: italic; font-weight: 600; }
.hero__lead { max-width: 560px; font-size: 1.18rem; color: #e9ddcf; margin-bottom: 1.8rem; }
.hero__lead strong { color: var(--gold-soft); font-weight: 600; }
.hero__quote {
  max-width: 560px; border-left: 3px solid var(--gold);
  padding: .2rem 0 .2rem 1.3rem; font-style: italic; color: var(--cream);
  font-size: 1.05rem; margin-bottom: 2.4rem;
}
.hero__quote em { color: var(--gold-soft); font-style: italic; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__scroll span {
  display: block; width: 24px; height: 40px; border: 2px solid rgba(244,236,224,.5); border-radius: 14px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--gold); border-radius: 2px; animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 7px; } 50% { opacity: 1; } 100% { opacity: 0; top: 20px; } }

/* ---------- Статистик ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--maxw); margin: -1px auto 0; padding: 3.5rem clamp(1.2rem, 4vw, 3rem);
  gap: 1.5rem; border-bottom: 1px solid var(--line);
}
.stats__item { text-align: center; }
.stats__item b { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--gold); font-weight: 700; }
.stats__item span { font-size: .9rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- Багшийн тухай ---------- */
.about {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 4vw, 3rem);
}
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.about__badge {
  position: absolute; bottom: -26px; right: -26px; width: 110px; height: 110px;
  border-radius: 50%; background: var(--ink-3); border: 1px solid var(--gold);
  display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(0,0,0,.7);
}
.about__badge img { width: 70%; border-radius: 50%; filter: sepia(.4) brightness(1.1); }
.about__text p { color: #ddcfbf; margin-bottom: 1.1rem; }
.about__creds { list-style: none; margin: 1.6rem 0 .4rem; display: grid; gap: .7rem; }
.about__creds li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.about__creds li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: .25rem; }
.about__creds b { color: var(--cream); }

/* ---------- Гүн ухаан ---------- */
.philosophy {
  position: relative; background: var(--ink-2); overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem); text-align: center;
}
.philosophy__watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(620px, 90%); opacity: .05; pointer-events: none;
}
.philosophy__watermark img { width: 100%; filter: brightness(2); }
.philosophy__inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.philosophy__quote {
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.25; margin-bottom: 1.6rem;
}
.philosophy__quote span { color: var(--gold); }
.philosophy__sub { max-width: 680px; margin: 0 auto 3rem; color: var(--muted); font-size: 1.05rem; }
.philosophy__pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; text-align: left; }
.pillar { background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem 1.4rem; transition: transform .3s, border-color .3s; }
.pillar:hover { transform: translateY(-6px); border-color: var(--gold); }
.pillar span { font-family: var(--serif); color: var(--gold); font-size: 1.4rem; font-weight: 700; }
.pillar h4 { margin: .5rem 0 .4rem; font-size: 1.1rem; color: var(--cream); }
.pillar p { color: var(--muted); font-size: .92rem; }

/* ---------- Хичээлүүд ---------- */
.courses { max-width: var(--maxw); margin: 0 auto; padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem); }
.courses__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.course {
  position: relative; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 2rem 1.8rem; display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.course:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 30px 60px -25px rgba(0,0,0,.7); }
.course--featured { background: linear-gradient(165deg, var(--bourdon-2), var(--ink-3)); border-color: rgba(201,162,75,.4); }
.course__flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #2a1d0a; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: .35rem 1rem; border-radius: 999px;
  white-space: nowrap;
}
.course__flag--soon { background: var(--bourdon); color: var(--cream); }
.course__level { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.course__top h3 { font-family: var(--serif); font-size: 1.6rem; margin: .4rem 0 .6rem; }
.course__price { font-size: 1.5rem; font-weight: 700; color: var(--cream); margin-bottom: 1.4rem; }
.course__price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.course__list { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.8rem; flex: 1; }
.course__list li { padding-left: 1.5rem; position: relative; color: #d8cabb; font-size: .95rem; }
.course__list li::before { content: "♪"; position: absolute; left: 0; color: var(--gold); }
.courses__modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.mode { border-top: 2px solid var(--gold); padding-top: 1.1rem; }
.mode h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .4rem; }
.mode p { color: var(--muted); font-size: .92rem; }

/* ---------- Тоглолт ---------- */
.stage {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 4vw, 3rem);
}
.stage__media img { width: 100%; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.timeline { display: grid; gap: 1.6rem; margin-top: .5rem; }
.tl { position: relative; padding-left: 1.8rem; }
.tl::before { content: ""; position: absolute; left: 0; top: .45rem; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,.15); }
.tl b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--cream); margin-bottom: .2rem; }
.tl span { color: var(--muted); font-size: .95rem; }

/* ---------- Шагнал ---------- */
.awards { background: var(--ink-2); padding: clamp(4.5rem, 9vw, 7rem) clamp(1.2rem, 4vw, 3rem); }
.awards__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.award {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.6rem 1.4rem; transition: transform .3s, border-color .3s;
}
.award:hover { transform: translateY(-6px); border-color: var(--gold); }
.award__year { font-family: var(--serif); color: var(--gold); font-size: 1.5rem; font-weight: 700; display: block; margin-bottom: .5rem; }
.award b { color: var(--cream); font-weight: 500; font-size: .98rem; line-height: 1.4; }

/* ---------- Уран бүтээл / Видео ---------- */
.works { max-width: var(--maxw); margin: 0 auto; padding: clamp(4.5rem, 9vw, 7rem) clamp(1.2rem, 4vw, 3rem); }
.video__featured {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  margin-bottom: 1.5rem; border: 1px solid var(--line); box-shadow: 0 30px 60px -25px rgba(0,0,0,.7);
}
.video__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.video { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.video__featured iframe, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.works__split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 3.5rem; }
.works__sub { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); margin-bottom: 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.comp__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.5rem; }
.comp__list--single { grid-template-columns: 1fr; }
.comp__list li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; border-bottom: 1px dotted rgba(201,162,75,.2); padding-bottom: .35rem; }
.comp__list span { color: #ddcfbf; font-size: .95rem; }
.comp__list i { color: var(--gold); font-style: normal; font-size: .85rem; font-weight: 600; flex-shrink: 0; }
.album { display: flex; align-items: center; gap: 1rem; background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.album__art { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--gold); }
.album__art img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.3) brightness(1.05); }
.album b { display: block; color: var(--cream); font-size: .98rem; }
.album span { color: var(--muted); font-size: .85rem; }

/* ---------- Цомог ---------- */
.gallery { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 4vw, 3rem); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.g { overflow: hidden; border-radius: 12px; margin: 0; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g:hover img { transform: scale(1.07); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; grid-row: span 2; }

/* ---------- Сэтгэгдэл ---------- */
.quotes { background: var(--ink-2); padding: clamp(4rem, 8vw, 6rem) clamp(1.2rem, 4vw, 3rem); }
.quotes__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quotes blockquote { background: var(--ink-3); border: 1px solid var(--line); border-radius: 14px; padding: 2rem 1.8rem; }
.quotes blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--cream); margin-bottom: 1rem; line-height: 1.5; }
.quotes cite { color: var(--gold-soft); font-style: normal; font-size: .9rem; font-weight: 600; }

/* ---------- Холбоо барих ---------- */
.contact { position: relative; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; background: url("assets/landscape-altai.jpg") center / cover; opacity: .18; }
.contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--ink), rgba(16,12,11,.85)); }
.contact__inner {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1.2rem, 4vw, 3rem); align-items: center;
}
.contact__text p { color: #ddcfbf; margin-bottom: 1.6rem; }
.contact__info { list-style: none; display: grid; gap: 1rem; }
.contact__info li { display: flex; flex-direction: column; gap: .15rem; }
.contact__info b { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.contact__info a { color: var(--cream); transition: color .2s; }
.contact__info a:hover { color: var(--gold-soft); }
.contact__form { background: rgba(26,20,17,.85); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 18px; padding: 2.2rem; display: grid; gap: 1.1rem; }
.contact__form label { display: grid; gap: .4rem; font-size: .85rem; color: var(--muted); font-weight: 500; }
.contact__form input, .contact__form select, .contact__form textarea {
  background: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: .8rem 1rem; color: var(--cream); font-family: inherit; font-size: .95rem; transition: border-color .2s;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { outline: none; border-color: var(--gold); }
.contact__form textarea { resize: vertical; }
.contact__note { font-size: .9rem; color: var(--gold-soft); min-height: 1rem; text-align: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line); padding: 3rem clamp(1.2rem, 4vw, 3rem) 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center;
}
.footer__brand { display: flex; align-items: center; gap: .7rem; }
.footer__brand img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); filter: sepia(.3) brightness(1.05); }
.footer__brand span { font-family: var(--serif); letter-spacing: .14em; font-size: .95rem; }
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer__links a:hover { color: var(--gold-soft); }
.footer__copy { color: rgba(185,169,154,.6); font-size: .82rem; }

/* ---------- Reveal анимаци ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78%, 320px); flex-direction: column;
    background: rgba(16,12,11,.97); backdrop-filter: blur(16px); padding: 6rem 2rem 2rem;
    gap: 1.6rem; transform: translateX(100%); transition: transform .35s ease; align-items: flex-start;
  }
  .nav__links.open { transform: none; }
  .nav__burger { display: flex; z-index: 101; }
  .nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about, .stage { grid-template-columns: 1fr; }
  .stage__media { order: -1; }
  .contact__inner { grid-template-columns: 1fr; }
  .philosophy__pillars { grid-template-columns: repeat(2, 1fr); }
  .courses__grid, .courses__modes, .quotes__grid { grid-template-columns: 1fr; }
  .awards__grid { grid-template-columns: repeat(2, 1fr); }
  .video__grid { grid-template-columns: repeat(2, 1fr); }
  .works__split { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .philosophy__pillars { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .about__badge { width: 80px; height: 80px; right: 12px; bottom: -18px; }
  .awards__grid, .video__grid, .comp__list { grid-template-columns: 1fr; }
}
