/*-----------------------------------------------
|   Fortuna — дизайны хувилбаруудын нийтлэг давхарга
|   index.php?v=1|2|3 үед л ачаалагдана. Өнгө, фонт, радиусыг
|   fortuna-v1/2/3.css доторх --fx-* хувьсагчаар тохируулна.
|   Логоны өнгө: хар хөх #14148E, улаан #EE4037
-----------------------------------------------*/

/*-------- Хувилбар сонгогч (баруун доод булан) --------*/
.fx-switcher {
  position: fixed;
  z-index: 1080;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  padding: 6px;
  border-radius: 999px;
  background: rgba(14, 14, 60, 0.92);
  box-shadow: 0 10px 30px rgba(10, 10, 50, 0.3);
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scrollbar-width: none;
}
.fx-switcher::-webkit-scrollbar { display: none; }
.fx-switcher span { color: rgba(255, 255, 255, 0.6); padding: 0 8px 0 10px; white-space: nowrap; }
html body .fx-switcher a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 999px;
  transition: background-color 0.2s;
}
html body .fx-switcher a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
html body .fx-switcher a.active { background: #EE4037; }

/*-------- Харьцуулах хуудас (?compare=1) --------*/
.fx-compare {
  margin: 0;
  min-height: 100vh;
  background: #EEF0F7;
  color: #1B1B3A;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.fx-compare-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #DDE0EE;
}
.fx-compare-modes { display: flex; gap: 4px; padding: 4px; background: #EEF0F7; border-radius: 10px; }
.fx-compare-modes button {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 7px;
  font: inherit;
  font-weight: 600;
  color: #50527A;
  cursor: pointer;
}
.fx-compare-modes button.active { background: #14148E; color: #fff; }
.fx-compare-orig { margin-left: auto; color: #14148E; font-weight: 600; text-decoration: none; }
.fx-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}
.fx-compare-col { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.fx-compare-col figcaption { display: flex; align-items: center; gap: 8px; padding: 0 2px 8px; font-weight: 600; }
.fx-compare-col figcaption b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EE4037;
  color: #fff;
  font-size: 12px;
}
.fx-compare-col figcaption a { margin-left: auto; color: #14148E; text-decoration: none; font-size: 13px; }
.fx-compare-frame {
  position: relative;
  height: calc(100vh - 130px);
  min-height: 420px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(20, 20, 80, 0.1);
}
.fx-compare-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; }
@media (max-width: 991.98px) {
  .fx-compare-grid { grid-template-columns: 1fr; }
  .fx-compare-frame { height: 75vh; }
}

/*======================================================
|   Сайтын нийтлэг загвар (html.fx)
======================================================*/
html.fx { scroll-behavior: smooth; scroll-padding-top: 90px; }
html.fx body {
  background: var(--fx-bg);
  color: var(--fx-text);
  font-family: var(--fx-font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html.fx body:has(> .fx-switcher) { padding-bottom: 72px; } /* сонгогчид зай */
html.fx h1, html.fx h2, html.fx h3, html.fx h4, html.fx h5, html.fx h6 {
  font-family: var(--fx-font-head);
  color: var(--fx-heading);
  letter-spacing: -0.01em;
}
html.fx .font-sans-serif, html.fx .font-base { font-family: var(--fx-font) !important; }
html.fx p, html.fx li { color: inherit; }
html.fx .text-primary { color: var(--fx-primary) !important; }
html.fx .text-danger { color: var(--fx-accent) !important; }
html.fx .text-warning { color: var(--fx-accent) !important; }
html.fx .text-700, html.fx .text-800, html.fx .text-muted { color: var(--fx-muted) !important; }
html.fx a { color: var(--fx-primary); transition: color 0.2s; }
html.fx a:hover { color: var(--fx-accent); }
html.fx section { padding-top: 5rem; padding-bottom: 5rem; }
html.fx main { overflow-x: hidden; background-image: none; }

/*-------- Товчнууд --------*/
html.fx .btn {
  border-radius: var(--fx-btn-radius);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}
html.fx .btn:hover { transform: translateY(-2px); }
html.fx .btn-primary {
  background: var(--fx-primary);
  border-color: var(--fx-primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--fx-primary);
}
html.fx .btn-primary:hover, html.fx .btn-primary:focus {
  background: var(--fx-primary-hover);
  border-color: var(--fx-primary-hover);
  color: #fff;
}
html.fx .btn-danger {
  background: var(--fx-accent-strong);
  border-color: var(--fx-accent-strong);
  color: #fff;
}
html.fx .btn-danger:hover { background: var(--fx-primary); border-color: var(--fx-primary); color: #fff; }
html.fx .btn-glow::before { display: none; }
html.fx .btn-outline-danger, html.fx .btn-outline-primary {
  color: var(--fx-accent-strong);
  border: 2px solid var(--fx-accent-strong);
  background: transparent;
}
html.fx .btn-outline-danger:hover, html.fx .btn-outline-primary:hover {
  background: var(--fx-accent-strong);
  color: #fff;
}
html.fx .btn a.text-light, html.fx .btn a.text-light:hover { color: inherit !important; text-decoration: none; }

/*-------- Цэс --------*/
html.fx .navbar[data-navbar-on-scroll] {
  background: var(--fx-nav-bg) !important;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow 0.3s, padding 0.3s, background-color 0.3s !important;
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}
html.fx .navbar.fx-scrolled { box-shadow: var(--fx-nav-shadow); padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
html.fx .navbar-brand img { height: 40px; width: auto; }
html.fx .navbar .nav-link {
  position: relative;
  color: var(--fx-nav-link) !important;
  font-weight: 600;
  font-size: 0.95rem;
}
html.fx .navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--fx-accent);
  transform: scaleX(0);
  transition: transform 0.25s;
}
html.fx .navbar .nav-link:hover::after { transform: scaleX(1); }
html.fx .navbar .nav-link:hover { color: var(--fx-nav-link-hover) !important; }
html.fx .navbar .bg-soft-warning { background: var(--fx-tint-accent) !important; border-radius: var(--fx-btn-radius); padding: 0.6rem 0.9rem; }
html.fx .navbar .dropdown-menu { border: 0; box-shadow: var(--fx-shadow); }
html.fx .navbar .dropdown-menu input { background: var(--fx-surface) !important; }
html.fx .navbar-toggler { border: 0; box-shadow: none !important; }
@media (max-width: 991.98px) {
  html.fx .navbar-collapse {
    margin-top: 0.75rem !important;
    padding: 0.5rem 1rem 1rem;
    border-radius: var(--fx-radius);
    background: var(--fx-surface);
    box-shadow: var(--fx-shadow);
  }
  html.fx .navbar-collapse .nav-link { color: var(--fx-heading) !important; }
  html.fx .navbar-collapse .nav-link::after { display: none; }
  html.fx .navbar-collapse .btn-primary { width: 100%; margin-top: 0.5rem; }
}

/*-------- Нүүр хэсэг (hero) --------*/
html.fx #home {
  position: relative;
  padding-top: 8.5rem;
  padding-bottom: 4rem;
  background: var(--fx-hero-bg);
  overflow: hidden;
}
html.fx #home > .bg-holder { background-image: var(--fx-hero-pattern) !important; background-size: var(--fx-hero-pattern-size, auto) !important; background-repeat: repeat !important; opacity: 1; }
html.fx #home .container { position: relative; z-index: 1; }
@media (min-width: 768px) {
  html.fx #home .col-md-75 { flex: 0 0 auto; width: 52%; }
  html.fx #home .col-md-5 { width: 48%; }
}
html.fx #home h1 {
  color: var(--fx-hero-text);
  font-size: clamp(1.65rem, 0.9rem + 2.8vw, 3.25rem) !important;
  line-height: 1.12;
  margin-bottom: 0.15rem;
}
html.fx #home h1.fw-bolder { color: var(--fx-hero-highlight); font-weight: 800 !important; }
html.fx #home p.fs-1 { color: var(--fx-hero-sub); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem) !important; margin-top: 1rem; }
html.fx #home .py-8 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
html.fx #home img[alt="hero-header"] { filter: drop-shadow(0 30px 40px rgba(20, 20, 100, 0.12)); }
html.fx #home .btn-primary { padding: 0.95rem 2rem; font-size: 1.05rem; }

/*-------- Хэсгийн гарчиг --------*/
html.fx section .text-center > h5.text-danger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 800;
  text-transform: none;
  color: var(--fx-heading) !important;
}
html.fx section .text-center > h5.text-danger::after {
  content: '';
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--fx-primary) 0 50%, var(--fx-accent) 50% 100%);
}
html.fx section h5.text-danger:not(.text-center > h5) {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 700;
}

/*-------- Үйлчилгээ --------*/
html.fx #services .card-span {
  background: var(--fx-surface);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-shadow);
  border: 1px solid var(--fx-border) !important;
  overflow: hidden;
}
html.fx #services .card-span:hover { transform: translateY(-6px); box-shadow: var(--fx-shadow-hover); }
html.fx #services .card-span { padding-left: 0 !important; padding-right: 0 !important; }
html.fx #services .card-body { padding: 1.75rem 1.75rem 0.5rem; }
html.fx #services ul { max-width: 300px; margin-left: auto; margin-right: auto; }
html.fx #services .card-body .pt-5 { padding-top: 0.5rem !important; }
html.fx #services .card-body img { border-radius: calc(var(--fx-radius) - 6px); }
html.fx #services h5.my-4 { font-size: 1.1rem; font-weight: 800; letter-spacing: 0.02em; }
html.fx #services ul li { color: var(--fx-muted); }
html.fx #services ul .fa-circle { color: var(--fx-accent) !important; }
html.fx #services .my-5 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

/*-------- Тоон үзүүлэлт --------*/
html.fx #services + section {
  background: var(--fx-stats-bg);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}
html.fx #services + section img {
  width: 76px;
  height: 76px;
  padding: 18px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--fx-stats-icon-bg);
}
html.fx #services + section h1 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); font-weight: 800; margin-top: 1rem !important; color: var(--fx-stats-number) !important; }
html.fx #services + section h5 { font-size: 0.95rem; font-weight: 600; color: var(--fx-stats-label) !important; }

/*-------- Видео --------*/
html.fx main > section:nth-of-type(4) .card { border-radius: var(--fx-radius); overflow: hidden; border: 0; box-shadow: var(--fx-shadow-hover); }
html.fx main > section:nth-of-type(4) .bg-dark-gradient { background: var(--fx-video-overlay); }
html.fx main > section:nth-of-type(4) .card-img-overlay h5 { letter-spacing: 0.18em; font-weight: 800; color: #fff !important; margin-top: 1rem; }
html.fx main > section:nth-of-type(4) .card-img-overlay p { color: rgba(255, 255, 255, 0.85); }
html.fx main > section:nth-of-type(4) .card-img-overlay img { transition: transform 0.3s; }
html.fx main > section:nth-of-type(4) .card:hover .card-img-overlay img { transform: scale(1.08); }
@media (max-width: 575.98px) {
  html.fx main > section:nth-of-type(4) .card { padding: 0 !important; }
  html.fx main > section:nth-of-type(4) .card > img.w-100 { position: absolute; inset: 0; height: 100%; object-fit: cover; }
  html.fx main > section:nth-of-type(4) .card-img-overlay { position: relative; padding: 2.5rem 1.25rem; }
  html.fx main > section:nth-of-type(4) .card-img-overlay img[alt="play"] { width: 60px; }
}

/*-------- Харилцагчид --------*/
html.fx main > section:nth-of-type(5) > .container-fluid > .row > .bg-holder { background-image: none !important; }
html.fx main > section:nth-of-type(5) > .container-fluid { max-width: 1140px; }
@media (min-width: 1400px) { html.fx main > section:nth-of-type(5) > .container-fluid { max-width: 1320px; } }
html.fx main > section:nth-of-type(5) .carousel { padding-top: 2.5rem !important; }
html.fx main > section:nth-of-type(5) .card-span {
  position: relative;
  background: var(--fx-surface);
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-border);
  box-shadow: var(--fx-shadow);
}
html.fx main > section:nth-of-type(5) .card-span::before {
  content: '\201C';
  position: absolute;
  top: 0.25rem;
  right: 1.25rem;
  font: 700 5rem/1 Georgia, serif;
  color: var(--fx-tint-accent);
}
html.fx main > section:nth-of-type(5) .card-span h5 { font-weight: 800; }
html.fx main > section:nth-of-type(5) .card-text { color: var(--fx-muted); }
html.fx main > section:nth-of-type(5) .fa-star { color: #F5A524 !important; }
html.fx main > section:nth-of-type(5) .card-span img { border-radius: 50%; box-shadow: 0 0 0 3px var(--fx-surface), 0 0 0 5px var(--fx-tint-primary); }
html.fx main > section:nth-of-type(5) .card-span h6 { color: var(--fx-heading) !important; font-weight: 700 !important; }
html.fx .carousel-indicators { position: static; margin: 0; }
html.fx .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--fx-primary);
  opacity: 0.25;
}
html.fx .carousel-indicators li.active { opacity: 1; width: 28px; border-radius: 6px; background: var(--fx-accent); }

/*-------- Санал хүсэлт --------*/
html.fx main > section:nth-of-type(6) > .container > .row {
  align-items: center;
  padding: 2.5rem 1rem;
  border-radius: calc(var(--fx-radius) + 8px);
  background: var(--fx-feedback-bg);
  margin: 0;
}
html.fx main > section:nth-of-type(6) img[alt="..."] { max-width: 220px; margin-bottom: 1rem; }
html.fx main > section:nth-of-type(6) h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 800; }
html.fx .form-quriar-control {
  background: var(--fx-surface) !important;
  border: 1.5px solid var(--fx-border) !important;
  border-radius: calc(var(--fx-radius) - 6px);
  padding: 0.85rem 1rem;
  font-weight: 500;
  color: var(--fx-text);
  background-image: none !important;
}
html.fx .form-quriar-control:focus {
  border-color: var(--fx-primary) !important;
  box-shadow: 0 0 0 4px var(--fx-tint-primary) !important;
  font-weight: 500;
  color: var(--fx-text);
}

/*-------- Холбоо барих --------*/
html.fx #findUs .card-span {
  background: var(--fx-surface);
  border-radius: var(--fx-radius) !important;
  overflow: hidden;
  border: 1px solid var(--fx-border);
  box-shadow: var(--fx-shadow);
}
html.fx #findUs .card-span img[alt="map"] { min-height: 260px; object-fit: cover; border-radius: 0 !important; }
html.fx #findUs .card-body { padding: 2rem; }
html.fx #findUs .card-body h5 { font-size: 1.25rem; font-weight: 800; }
html.fx #findUs .card-body svg.fa-map-marker-alt,
html.fx #findUs .card-body svg.fa-phone-alt,
html.fx #findUs .card-body svg.fa-envelope { color: var(--fx-accent) !important; }
html.fx #findUs .list-inline-item a { color: var(--fx-primary); }
html.fx #findUs .list-inline-item a:hover { color: var(--fx-accent); }
html.fx #findUs .mb-6 { margin-bottom: 2.5rem !important; }

/*-------- Хөл хэсэг --------*/
html.fx section.bg-900 { background: var(--fx-footer-bg) !important; padding-top: 4rem !important; }
html.fx section.bg-900 img[height="51"] {
  height: 46px;
  width: auto;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  box-sizing: content-box;
}
html.fx section.bg-900 p, html.fx section.bg-900 a.text-500 { color: var(--fx-footer-text) !important; }
html.fx section.bg-900 a.text-500:hover { color: #fff !important; }
html.fx section.bg-900 h5 { color: #fff !important; font-size: 1rem; }
html.fx section.bg-1000 { background: var(--fx-footer-bottom) !important; }
html.fx section.bg-1000 p { color: var(--fx-footer-text) !important; }

/*-------- Гарч ирэх анимэйшн --------*/
html.fx .fx-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.fx .fx-reveal.fx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.fx .fx-reveal { opacity: 1; transform: none; transition: none; }
  html.fx .btn:hover, html.fx #services .card-span:hover { transform: none; }
}

/*-------- Утас --------*/
@media (max-width: 767.98px) {
  html.fx section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  html.fx #home { padding-top: 6.5rem; text-align: center; }
  html.fx #home img[alt="hero-header"] { padding-top: 1rem !important; }
  html.fx main > section:nth-of-type(6) > .container > .row { padding: 2rem 0.5rem; text-align: center; }
  html.fx #findUs .card-body { padding: 1.5rem; }
}
