/* ===== Үндсэн тохиргоо ===== */
:root {
  --blue:    #c01f2b;   /* улаан — gradient голд */
  --blue-d:  #6b1019;   /* гүн улаан — gradient эхэнд */
  --teal:    #e23744;   /* тод улаан өнгөлгөө */
  --green:   #9e1620;
  --sand:    #ffdada;   /* цайвар өнгөлгөө (тоо, линк) */
  --terra:   #e11d2a;   /* үндсэн улаан (товч) */
  --ink:     #f3eaec;   /* үндсэн текст (цайвар) */
  --muted:   #b29a9d;   /* бүдэг текст */
  --bg:      #0c0809;   /* хуудасны дэвсгэр (хар) */
  --card:    #181113;   /* карт дэвсгэр */
  --line:    #2c2023;   /* зураас, хүрээ */
  --radius:  18px;
  --shadow:  0 18px 40px -22px rgba(0, 0, 0, .75);
  --shadow-sm: 0 8px 22px -14px rgba(0, 0, 0, .7);
  --max:     1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Montserrat", sans-serif; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--sand); }

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
}
.section__title--light { color: #fff; }

.section__lead { color: var(--muted); max-width: 560px; font-size: 1.05rem; }

/* ===== Товч ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--primary {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(225, 29, 42, .85);
  animation: btnPulse 3s ease-in-out infinite;
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -10px rgba(225, 29, 42, 1); animation: none; }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--blue-d); transform: translateY(-3px); }

/* ===== Навигаци ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.nav--scrolled {
  background: rgba(12,8,9,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -14px rgba(0,0,0,.7);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: "Montserrat"; font-weight: 800; font-size: 1.25rem; color: #fff; transition: color .3s; }
.nav__logo-mark { font-size: 1.4rem; }
.nav--scrolled .nav__logo { color: #fff; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  position: relative; font-weight: 500; font-size: .95rem; color: #fff; transition: color .3s;
}
.nav--scrolled .nav__links a { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--terra); transition: width .3s;
}
.nav__links a:hover::after { width: 100%; }
.nav__links a:hover { color: var(--terra); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 3px; border-radius: 3px; background: #fff; transition: .3s; }
.nav--scrolled .nav__toggle span { background: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #1b4965 0%, #2a6f97 38%, #468faf 66%, #61a5c2 100%);
}
.hero__sun {
  position: absolute; top: 16%; right: 16%;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #ffe7a8, #ffcf6b 60%, rgba(255,207,107,0) 72%);
  box-shadow: 0 0 90px 30px rgba(255, 213, 128, .45);
  animation: floaty 9s ease-in-out infinite;
}
/* ===== Үүлс ===== */
.hero__clouds { position: absolute; inset: 0; overflow: hidden; }
.cloud { position: absolute; left: 100vw; animation: drift linear infinite; will-change: transform; }
.cloud__shape {
  display: block; position: relative; width: 120px; height: 40px; border-radius: 40px;
  background: rgba(223,229,236,.85); filter: blur(.4px);
}
.cloud__shape::before, .cloud__shape::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud__shape::before { width: 58px; height: 58px; top: -26px; left: 16px; }
.cloud__shape::after  { width: 42px; height: 42px; top: -18px; left: 62px; }
.cloud--1 { top: 12%; animation-duration: 46s; }
.cloud--1 .cloud__shape { transform: scale(1.1); }
.cloud--2 { top: 24%; animation-duration: 62s; animation-delay: -22s; }
.cloud--2 .cloud__shape { transform: scale(.7); opacity: .85; }
.cloud--3 { top: 7%;  animation-duration: 54s; animation-delay: -38s; }
.cloud--3 .cloud__shape { transform: scale(1.4); }
.cloud--4 { top: 30%; animation-duration: 70s; animation-delay: -50s; }
.cloud--4 .cloud__shape { transform: scale(.55); opacity: .8; }

.hero__content { position: relative; z-index: 2; max-width: 720px; }
.hero__eyebrow { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--sand); margin-bottom: 16px; }
.hero__title {
  font-size: clamp(3.2rem, 11vw, 7rem); font-weight: 900; letter-spacing: -.02em;
  text-shadow: 0 14px 40px rgba(0,0,0,.3);
  margin-bottom: 18px;
}
.hero__subtitle { font-size: clamp(1.05rem, 2.4vw, 1.4rem); max-width: 560px; color: rgba(255,255,255,.92); margin-bottom: 34px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 18px;
  color: rgba(255,255,255,.9); font-weight: 600; letter-spacing: .03em; white-space: nowrap;
}
.hero__scroll-text { font-size: .92rem; }
.hero__scroll-mouse {
  position: relative; flex: none; width: 26px; height: 44px;
  border: 2px solid rgba(255,255,255,.7); border-radius: 14px;
}
.hero__scroll-mouse > span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: #fff; animation: scrolldot 1.6s infinite;
}

@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 24px; } 100% { opacity: 0; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===== Бага зэргийн хөдөлгөөнүүд ===== */
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes btnPulse { 0%,100% { box-shadow: 0 12px 30px -12px rgba(225,29,42,.7); } 50% { box-shadow: 0 14px 36px -10px rgba(225,29,42,1); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-128vw); } }
.hero__eyebrow { animation: heroIn .8s ease both; }
.hero__title    { animation: heroIn .8s ease .12s both; }
.hero__subtitle { animation: heroIn .8s ease .24s both; }
.hero__cta      { animation: heroIn .8s ease .36s both; }

/* ===== Танилцуулга ===== */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 16px; }
.about__list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.about__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.about__list li span { font-size: 1.3rem; }

.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.info-card:hover { transform: translateY(-6px); box-shadow: 0 20px 42px -20px rgba(225,29,42,.55); border-color: rgba(225,29,42,.45); }
.info-card__icon { font-size: 2rem; margin-bottom: 10px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p { color: var(--muted); font-size: .95rem; }

/* ===== Тоо баримт ===== */
.stats {
  background: linear-gradient(135deg, #14425f, #1e6091 45%, #2a9d8f 72%, #14425f);
  background-size: 220% 220%;
  animation: gradientShift 16s ease infinite;
  color: #fff; position: relative; overflow: hidden;
}
.stats .eyebrow--light, .stats .stat__num { color: #e9c46a; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px; opacity: .6;
}
.stats__head { text-align: center; position: relative; margin-bottom: 50px; }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 24px 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); }
.stat__num { font-family: "Montserrat"; font-weight: 900; font-size: clamp(2rem, 5vw, 3rem); color: var(--sand); line-height: 1; }
.stat__label { margin-top: 10px; font-weight: 500; color: rgba(255,255,255,.9); }

/* ===== Газрууд ===== */
.places__head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.places__head .section__lead { margin: 0 auto; }
.places__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.place {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; box-shadow: var(--shadow-sm); cursor: default;
  transition: transform .35s ease, box-shadow .35s ease;
}
.place:hover { transform: translateY(-8px); box-shadow: 0 24px 50px -20px rgba(225,29,42,.6); }
.place__art { position: absolute; inset: 0; z-index: 0; }
.place__emoji { position: absolute; top: 22px; right: 24px; font-size: 2.4rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); z-index: 2; }
.place__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); }
.place__body { position: relative; z-index: 2; padding: 26px; }
.place__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.22); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.place__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.place__desc { font-size: .92rem; color: rgba(255,255,255,.88); }

/* ===== Цомог ===== */
.gallery__head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.gallery__head .section__lead { margin: 0 auto; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 16px; }
.tile { border-radius: 16px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; color: #fff; box-shadow: var(--shadow-sm); transition: transform .35s ease; }
.tile:hover { transform: scale(1.02); }
.tile span { position: relative; z-index: 2; font-weight: 700; font-size: .95rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }

/* ===== Footer ===== */
.footer { background: #100a0b; color: rgba(255,255,255,.7); padding: 30px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: "Montserrat"; font-weight: 700; color: #fff; }
.footer__copy { font-size: .85rem; }
.footer__top { font-weight: 600; color: var(--sand); }

/* ===== Reveal анимаци ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .places__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .tile--big { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .nav__links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 72%; max-width: 320px;
    flex-direction: column; gap: 6px; padding: 90px 30px; background: var(--blue-d);
    box-shadow: -10px 0 40px rgba(0,0,0,.3); transition: right .35s ease;
  }
  .nav__links.open { right: 0; }
  .nav__links a { color: #fff; font-size: 1.1rem; padding: 10px 0; }
  .nav--scrolled .nav__links a { color: #fff; }
  .nav__toggle { display: flex; z-index: 60; }
  .about__cards { grid-template-columns: 1fr 1fr; }
  .places__grid { grid-template-columns: 1fr; }
}

/* Хөдөлгөөн багасгах тохиргоотой хэрэглэгчдэд анимацийг унтраах */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
