/* =========================================================
   Slein — хувийн танилцуулга сайт
   Өнгө: сансрын хар + алт (профайл зурагтай уялдуулсан)
   ========================================================= */

:root {
  --bg: #05060a;
  --surface: rgba(18, 18, 22, 0.78);
  --border: rgba(255, 215, 128, 0.16);
  --text: #f2ede4;
  --muted: #a8a39a;
  --gold-1: #fff3c4;
  --gold-2: #f5c84c;
  --gold-3: #c8952b;
  --gold: #f5c84c;
  --gold-gradient: linear-gradient(100deg, var(--gold-1) 0%, var(--gold-2) 40%, var(--gold-3) 70%, var(--gold-1) 100%);
  --radius: 16px;
  --max: 1080px;
  --nav-h: 68px;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-strong: "Rubik", system-ui, sans-serif;
  --font-display: "Rubik Bubbles", "Rubik", system-ui, sans-serif;
}

/* ---------- Үндэс ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0; }
h3 { font-family: var(--font-strong); line-height: 1.3; margin: 0; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.gold {
  background: var(--gold-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- Рик ба Мортигийн хөлөг ---------- */
.ship {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(110px, 14vw, 190px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: transform;
}
.ship__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 6px 16px rgba(120, 255, 90, 0.25));
}
.ship__flame {
  transform-box: fill-box;
  transform-origin: 100% 50%;
  animation: flame 0.12s ease-in-out infinite alternate;
}
@keyframes flame {
  from { transform: scaleX(0.75); opacity: 0.85; }
  to { transform: scaleX(1.15); opacity: 1; }
}
.ship__light { animation: blinkLight 0.9s steps(1) infinite; }
.ship__light:nth-of-type(2n) { animation-delay: 0.45s; }
@keyframes blinkLight { 50% { opacity: 0.25; } }
.ship__drool {
  transform-box: view-box;
  transform-origin: 101px 71px;
  animation: drool 1.6s ease-in-out infinite;
}
@keyframes drool {
  0%, 100% { transform: scaleY(0.8); }
  50% { transform: scaleY(1.3); }
}
.ship__burp {
  position: absolute;
  left: 18%;
  top: -14%;
  padding: 4px 10px;
  border-radius: 999px;
  background: #b6f27a;
  color: #1d3a0c;
  font-family: var(--font-strong);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(120, 255, 90, 0.45);
  opacity: 0;
  transform: scale(0.4) translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
}
.ship__burp.is-on { opacity: 1; transform: scale(1) translateY(0); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
.container--narrow { max-width: 720px; }
.center { text-align: center; }

/* ---------- Дээд цэс ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 6, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav__menu a { color: var(--muted); transition: color 0.2s; }
.nav__menu a:hover { color: var(--text); }

.nav__cta {
  color: var(--bg) !important;
  background: var(--gold);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav__cta:hover { background: var(--gold-1); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Нүүр ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 32px) 16px 80px;
  position: relative;
}

.hero > * { min-width: 0; }

.hero__photo {
  position: relative;
  perspective: 900px;
}

.hero__tilt {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(245, 200, 76, 0.08),
    0 30px 80px -20px rgba(245, 200, 76, 0.35);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s, border-color 0.4s;
  will-change: transform;
}
.hero__tilt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s;
}

/* Хулганы дагуу гялбаа */
.hero__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 248, 220, 0.55) 0%,
      rgba(245, 200, 76, 0.22) 22%,
      transparent 55%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s;
}
/* Хөндлөн гүйх голограм туяа */
.hero__shine::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 47%,
    rgba(245, 200, 76, 0.4) 50%,
    rgba(160, 255, 200, 0.25) 53%,
    transparent 60%);
  transform: translateX(-60%);
}

.hero__photo.is-hover .hero__tilt {
  transition: transform 0.12s ease-out, box-shadow 0.4s, border-color 0.4s;
  border-color: rgba(245, 200, 76, 0.6);
  box-shadow:
    0 0 0 1px rgba(245, 200, 76, 0.3),
    0 0 40px rgba(245, 200, 76, 0.45),
    0 40px 90px -20px rgba(245, 200, 76, 0.6);
}
.hero__photo.is-hover .hero__tilt img { transform: scale(1.07); filter: brightness(1.12) saturate(1.15); }
.hero__photo.is-hover .hero__shine { opacity: 1; }
.hero__photo.is-hover .hero__shine::after { animation: holo 1.6s ease-in-out infinite; }
@keyframes holo {
  from { transform: translateX(-60%); }
  to { transform: translateX(60%); }
}

/* Хулганы ард гарах алтан оч */
.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, #fff8dc 0%, #f5c84c 45%, transparent 70%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: spark 0.8s ease-out forwards;
}
@keyframes spark {
  0% { transform: translate(0, 0) scale(0.2) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(160deg); opacity: 0; }
}

.hero__hello {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.hero__name {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 400;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.hero__surname {
  display: block;
  font-family: var(--font-strong);
  font-style: normal;
  font-size: 0.48em;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.hero__motto {
  font-family: var(--font-strong);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--gold-1);
  margin-bottom: 16px;
}

.hero__lead {
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: var(--gold-gradient);
  background-size: 200% auto;
  color: #1a1305;
  box-shadow: 0 10px 30px -10px rgba(245, 200, 76, 0.6);
}
.btn--gold:hover { background-position: 100% center; }
.btn--ghost {
  border: 1px solid var(--border);
  background: rgba(5, 6, 10, 0.4);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Хэсгүүд ---------- */
.section { padding: 112px 0; }
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255, 215, 128, 0.025) 20%, rgba(255, 215, 128, 0.025) 80%, transparent);
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 40px;
}

/* Тухай */
.about {
  max-width: 44em;
  font-size: 1.08rem;
}
.about strong { color: var(--text); font-weight: 600; }

/* Боловсрол */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--border);
}
.timeline__item {
  position: relative;
  padding: 0 0 0 8px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--gold);
  box-shadow: 0 0 16px rgba(245, 200, 76, 0.6);
}
.timeline__date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}
.timeline__item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline__item p { color: var(--muted); margin: 0; }

/* Сонирхол */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 200, 76, 0.45);
  box-shadow: 0 20px 50px -20px rgba(245, 200, 76, 0.35);
}
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(245, 200, 76, 0.1);
  margin-bottom: 20px;
}
.card__icon svg,
.socials svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card__link {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
}
.card__link:hover { color: var(--gold-1); }

/* Холбоо барих */
.contact__lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 36px;
}
.contact__peace {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-strong);
  font-weight: 600;
  color: var(--gold-1);
}

.socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}
.socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.socials svg { width: 20px; height: 20px; }

/* Хөл */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer p { margin: 0; }

/* ---------- Гарч ирэх хөдөлгөөн ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* JS ажиллахгүй үед бүх агуулга харагдана */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Таблет ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    padding-top: calc(var(--nav-h) + 24px);
  }
  .hero__photo { max-width: 360px; margin: 0 auto; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .scroll-hint { display: none; }
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Утас ---------- */
@media (max-width: 768px) {
  .nav__toggle { display: block; position: relative; z-index: 2; }

  .nav__menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    font-size: 1.3rem;
    background: rgba(5, 6, 10, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .nav__menu a { color: var(--text); }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 80px 0; }
  .section__title { margin-bottom: 28px; }
  .cards { grid-template-columns: 1fr; }
  .socials a { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Хөдөлгөөн багасгах тохиргоо ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Дуу тоглуулагч ---------- */
.music {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 230px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(14, 14, 18, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8), 0 0 24px -8px rgba(245, 200, 76, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.music[hidden] { display: none; }

.music__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.music__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.music__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.music__btn {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gold-gradient);
  background-size: 200% auto;
  color: #1a1305;
  cursor: pointer;
}
.music__btn svg { width: 18px; height: 18px; fill: currentColor; }
.music__btn .icon-pause,
.music__btn .icon-muted { display: none; }
.music.is-playing .music__btn .icon-play { display: none; }
.music.is-playing .music__btn .icon-pause { display: block; }
.music.is-playing.is-muted .music__btn .icon-pause { display: none; }
.music.is-playing.is-muted .music__btn .icon-muted { display: block; }
.music.is-muted .music__btn { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 200, 76, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(245, 200, 76, 0); }
}

.music__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.music__title {
  font-family: var(--font-strong);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-1);
}
.music__status {
  font-size: 0.75rem;
  color: var(--muted);
}

.music__eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.music__eq i {
  width: 3px;
  height: 4px;
  border-radius: 1px;
  background: var(--gold);
}
.music.is-playing:not(.is-muted) .music__eq i { animation: eq 0.9s ease-in-out infinite; }
.music__eq i:nth-child(2) { animation-delay: 0.2s !important; }
.music__eq i:nth-child(3) { animation-delay: 0.4s !important; }
.music__eq i:nth-child(4) { animation-delay: 0.1s !important; }
@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

.music__close {
  flex: none;
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.music__close:hover { color: var(--text); }

@media (max-width: 768px) {
  .music { right: 12px; bottom: 12px; width: 200px; }
}

/* ---------- «Галзуу» гарчиг: солонгон өнгө, долгион, RGB салалт ---------- */
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.trippy {
  background: linear-gradient(90deg, #ff4ecd, #ffd84d, #7dff6b, #4ee6ff, #a35bff, #ff4ecd);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: url(#trippyWave)
    drop-shadow(2px 0 0 rgba(255, 0, 140, 0.55))
    drop-shadow(-2px 0 0 rgba(0, 220, 255, 0.55));
  animation: psyFlow 6s linear infinite, psyWobble 4.5s ease-in-out infinite;
  transform-origin: left center;
}
span.trippy, a.trippy { display: inline-block; }
.trippy .gold {
  background: none;
  animation: none;
}

@keyframes psyFlow {
  to { background-position: 300% 50%; }
}
@keyframes psyWobble {
  0%, 100% { transform: skewX(0deg) scale(1, 1); }
  25% { transform: skewX(-4deg) scale(1.02, 1.04); }
  50% { transform: skewX(0deg) scale(0.99, 0.97); }
  75% { transform: skewX(4deg) scale(1.02, 1.03); }
}

/* ---------- Дипломын судалгаа ---------- */
.research {
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.research .card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.research__type {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}
.research h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  margin-bottom: 14px;
}
.research__lead { color: var(--muted); }
.research__tags {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.research__tags li {
  font-size: 0.82rem;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--gold-1);
  background: rgba(245, 200, 76, 0.06);
}
.research .btn { border: 0; cursor: pointer; font-family: inherit; }

/* Цонх */
.report {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  height: calc(100% - 48px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #0b0b10;
  color: var(--text);
  box-shadow: 0 30px 90px -20px rgba(245, 200, 76, 0.3);
  overflow: hidden;
}
.report[open] { display: flex; flex-direction: column; animation: reportIn 0.3s ease; }
.report::backdrop {
  background: rgba(2, 3, 6, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@keyframes reportIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.report__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(18, 18, 22, 0.95);
}
.report__bar-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.report__close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: none;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.report__close:hover { border-color: var(--gold); color: var(--gold); }

.report__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 36px 40px 56px;
  font-size: 0.98rem;
}
.report__body section { scroll-margin-top: 16px; }
.report__body > section + section { margin-top: 44px; }

.report__head h2 {
  font-family: var(--font-strong);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  color: var(--gold-1);
  margin-bottom: 24px;
}
.report__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 0 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}
.report__meta div { background: #0b0b10; padding: 12px 16px; }
.report__meta dt { font-size: 0.78rem; color: var(--muted); }
.report__meta dd { margin: 0; font-weight: 500; }

.report__body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.report__body h3 span { color: var(--gold); margin-right: 4px; }
.report__body h4 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--gold-1);
  margin: 26px 0 10px;
}
.report__body h5 { font-size: 1rem; margin: 0 0 6px; }
.report__body h5 small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.report__body p,
.report__body li { color: #d9d4ca; }
.report__body ul,
.report__body ol { padding-left: 22px; margin: 0 0 1em; }
.report__body li + li { margin-top: 4px; }
.report__body strong { color: var(--text); }
.report__body a { color: var(--gold); }
.report__body a:hover { color: var(--gold-1); }

.report__summary {
  padding: 22px 24px;
  border-radius: 14px;
  background: rgba(245, 200, 76, 0.05);
  border: 1px solid var(--border);
}
.report__summary h3 { border: 0; padding: 0; }
.report__keywords { margin: 0; }

.report__toc ol { columns: 2; column-gap: 32px; }
.report__toc li { break-inside: avoid; }
.report__toc a { color: #d9d4ca; }
.report__toc a:hover { color: var(--gold); }

.report__products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 1em;
}
.report__products > div {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.report__products p { margin: 0; font-size: 0.92rem; }

.report__note {
  font-size: 0.88rem;
  color: var(--muted) !important;
  border-left: 2px solid var(--border);
  padding-left: 12px;
}
.report__pick {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(125, 255, 107, 0.06);
  border: 1px solid rgba(125, 255, 107, 0.2);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1em;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.report table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.report th,
.report td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 215, 128, 0.08);
}
.report th {
  font-weight: 600;
  color: var(--gold-1);
  background: rgba(245, 200, 76, 0.07);
  white-space: nowrap;
}
.report tbody tr:last-child td { border-bottom: 0; }
.report tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.report td.yes { color: #7dff6b; }
.report td.no { color: #ff6b8a; }
.report tr.is-ours td { background: rgba(245, 200, 76, 0.09); font-weight: 600; }
.table--compare { min-width: 760px; }

/* Уяачлалын үе шат */
.report__body .flow {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
}
.report__body .flow li {
  position: relative;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.flow li strong { color: var(--gold-1); }
.flow li span { font-size: 0.82rem; color: var(--muted); }
.flow li + li::before {
  content: "→";
  position: absolute;
  left: -23px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
}

/* Системийн бүтэц */
.arch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1em;
}
.arch__box {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
}
.arch__box small { font-weight: 400; color: var(--muted); }
.arch__box--device {
  display: grid;
  gap: 8px;
  border-color: rgba(245, 200, 76, 0.45);
}
.report__body .arch__label { margin: 0; font-size: 0.8rem; color: var(--gold); }
.arch__sensors { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.arch__sensors span,
.arch__store {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.arch__mcu {
  padding: 6px;
  border-radius: 8px;
  background: var(--gold-gradient);
  color: #1a1305;
}
.arch__store { justify-self: center; }
.arch__link {
  font-size: 0.8rem;
  color: var(--gold);
  padding: 0 4px;
}
.arch__link::after { content: " →"; }

/* Жишээ үр дүн */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 1em;
}
.stats div {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.stats span { font-size: 0.78rem; color: var(--muted); }
.report__body .stats strong { font-size: 1.1rem; color: var(--gold-1); }
.report__body .stats strong.ok { color: #7dff6b; }

.formula {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  font-variant-numeric: tabular-nums;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
}
.dot--blue { background: #4ea8ff; }
.dot--green { background: #4ee67a; }
.dot--yellow { background: #ffd84d; }
.dot--red { background: #ff4e5e; }

.refs li { font-size: 0.92rem; }

@media (max-width: 768px) {
  .research { padding: 24px 18px; }
  .report {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
  }
  .report__body { padding: 24px 16px 48px; }
  .report__meta { grid-template-columns: 1fr; }
  .report__toc ol { columns: 1; }
  .report__body .flow { flex-direction: column; gap: 22px; }
  .flow li + li::before { content: "↓"; left: 18px; top: -19px; transform: none; }
  .arch { flex-direction: column; align-items: stretch; }
  .arch__link { text-align: center; }
  .arch__link::after { content: " ↓"; }
}
