/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #0F4C81;
  --primary-dark:   #0a3a63;
  --primary-hover:  #1a5e9a;
  --primary-light:  #E6F1FB;
  --primary-border: #B5D4F4;

  --bg:             #F4F6F9;
  --bg-white:       #ffffff;
  --bg-secondary:   #F0F4F8;

  --text-primary:   #0F2D4A;
  --text-secondary: #5A6A7A;
  --text-muted:     #8A9BAB;

  --border:         rgba(0,0,0,0.10);
  --border-light:   rgba(0,0,0,0.07);

  --green-bg:       #EAF3DE;
  --green-text:     #3B6D11;
  --green-border:   #C0DD97;

  --amber:          #C47F17;

  --radius:         10px;
  --radius-lg:      14px;
  --radius-pill:    100px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(15,76,129,0.10);
  --shadow-lg:  0 8px 32px rgba(15,76,129,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
}

a { text-decoration: none; }
button { font-family: inherit; }
input, select { font-family: inherit; }
img { display: block; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
}

/* ── Site Breadcrumb ── */
.site-bc-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 0 2.5rem;
}
.site-bc-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 5px;
  padding: 7px 0; font-size: 12.5px; color: var(--text-muted);
}
.site-bc-inner a { color: var(--text-muted); text-decoration: none; transition: color 0.12s; }
.site-bc-inner a:hover { color: var(--primary); }
.site-bc-inner span { color: var(--text-secondary); font-weight: 500; }
.site-bc-inner em.bc-group { font-style: normal; color: var(--text-muted); }
.site-bc-inner i.bc-sep { font-size: 10px; opacity: 0.45; }

.navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 22px; height: 22px; }
.logo-img { height: 38px; width: auto; flex-shrink: 0; }
.logo-text {
  font-size: 18px; font-weight: 700;
  color: var(--primary); letter-spacing: -0.5px;
  line-height: 1.1;
}
.logo-sub { font-size: 10.5px; color: var(--text-muted); font-weight: 400; }

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin-left: auto;
}
.nav-links a {
  font-size: 13.5px; color: var(--text-secondary);
  padding: 7px 13px; border-radius: var(--radius);
  transition: all 0.15s; display: flex; align-items: center; gap: 5px;
}
.nav-links a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px; min-width: 210px;
  box-shadow: var(--shadow-lg); list-style: none; z-index: 400;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; font-size: 13px; color: var(--text-secondary);
  border-radius: var(--radius); transition: all 0.12s;
}
.dropdown-menu li a:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-menu li a i { font-size: 17px; color: var(--primary); flex-shrink: 0; }

/* Nav buttons */
.btn-register {
  color: var(--primary) !important;
  font-weight: 500 !important;
}
.btn-login {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 500;
  padding: 8px 20px !important;
  border-radius: var(--radius) !important;
  margin-left: 4px;
}
.btn-login:hover { background: var(--primary-dark) !important; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: var(--radius);
  color: var(--text-secondary); margin-left: auto;
}
.nav-toggle:hover { background: var(--bg-secondary); }

/* ─── HERO ─── */
.hero {
  background: #032849;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 440px;
}

/* Left panel */
.hero-content {
  padding: 4.5rem 3rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); color: #93C5E8;
  font-size: 12px; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.2);
  margin-bottom: 1.75rem; align-self: flex-start;
}
.hero-badge i { font-size: 14px; }

.hero h1 {
  font-size: 36px; font-weight: 700; color: #E8F4FE;
  line-height: 1.25; letter-spacing: -0.8px;
  margin-bottom: 1.1rem;
}
.hero h1 em { color: #4ECBA4; font-style: normal; }

.hero p {
  font-size: 15px; color: #8FAFCA; line-height: 1.75;
  max-width: 440px; margin-bottom: 2.25rem;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary {
  background: var(--primary); color: #fff; border: none;
  padding: 12px 26px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background 0.15s; line-height: 1;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: var(--bg-white); color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 12px 26px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all 0.15s; line-height: 1;
}
.btn-secondary:hover { background: var(--bg-secondary); border-color: var(--primary-border); }

.hero .btn-secondary {
  background: rgba(255,255,255,.1); color: #E8F4FE;
  border: 1px solid rgba(255,255,255,.22);
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4);
}

/* Right panel */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; position: relative; overflow: hidden;
}
.hero-visual svg { width: 100%; max-width: 380px; }

/* ─── HERO SVG ANIMATIONS ─── */
@keyframes hv-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}
@keyframes hv-float-sm {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}
@keyframes hv-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.1); opacity: 0.88; }
}

.hv-card {
  animation: hv-float 4.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.hv-seal {
  animation: hv-pulse 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.hv-badge-left {
  animation: hv-float-sm 4.5s ease-in-out infinite;
  animation-delay: 0.7s;
  transform-box: fill-box;
  transform-origin: center;
}
.hv-badge-topright {
  animation: hv-float-sm 4.5s ease-in-out infinite;
  animation-delay: 1.5s;
  transform-box: fill-box;
  transform-origin: center;
}
.hv-badge-bottom {
  animation: hv-float-sm 4.5s ease-in-out infinite;
  animation-delay: 2.2s;
  transform-box: fill-box;
  transform-origin: center;
}

/* ─── STATS ─── */
.stats-wrap {
  max-width: 860px; margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
}
.stat-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 1.5rem 1rem;
  text-align: center; transition: box-shadow 0.15s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-num {
  font-size: 34px; font-weight: 700; color: var(--primary);
  line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* ─── MAIN LAYOUT ─── */
.main-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid; grid-template-columns: 264px 1fr; gap: 20px;
}

/* ─── SIDEBAR ─── */
.sidebar { position: sticky; top: 84px; align-self: start; }

.filter-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 16px;
}

.filter-title {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 1.1rem; display: flex; align-items: center; gap: 7px;
}
.filter-title i { font-size: 16px; color: var(--primary); }

.filter-section { margin-bottom: 1rem; }
.filter-section-label {
  font-size: 10.5px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px;
}
.filter-divider { border: none; border-top: 1px solid var(--border-light); margin: 12px 0; }

.filter-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
  padding: 5px 0; cursor: pointer; transition: color 0.12s;
}
.filter-item:hover { color: var(--primary); }
.filter-item input[type="checkbox"] {
  accent-color: var(--primary); width: 14px; height: 14px; cursor: pointer; flex-shrink: 0;
}
.filter-count {
  margin-left: auto; font-size: 11px;
  background: var(--bg-secondary); padding: 2px 7px;
  border-radius: 100px; color: var(--text-muted);
}

/* ─── SEARCH BAR ─── */
.search-bar {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 1rem 1.25rem;
  margin-bottom: 14px; display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1; min-width: 200px;
  position: relative;
}
.search-input-wrap i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 16px; pointer-events: none;
}
.search-bar input[type="text"] {
  width: 100%; padding: 9px 12px 9px 38px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13.5px; color: var(--text-primary);
  background: var(--bg-secondary); outline: none; transition: border 0.15s;
}
.search-bar input[type="text"]:focus { border-color: var(--primary); }
.search-bar select {
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px;
  background: var(--bg-secondary); color: var(--text-primary); outline: none;
  min-width: 170px; cursor: pointer;
}
.search-bar select:focus { border-color: var(--primary); }
.btn-search {
  background: var(--primary); color: #fff; border: none;
  padding: 9px 20px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: background 0.15s;
}
.btn-search:hover { background: var(--primary-dark); }

/* Results header */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding: 0 2px;
}
.results-count { font-size: 13px; color: var(--text-secondary); }
.results-count strong { color: var(--text-primary); }
.sort-select {
  padding: 6px 10px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px;
  background: var(--bg-white); color: var(--text-primary); outline: none; cursor: pointer;
}

/* ─── ORG CARD ─── */
.org-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem;
  margin-bottom: 12px; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex; gap: 1rem; align-items: flex-start;
}
.org-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }

.org-avatar {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
}

.org-body { flex: 1; min-width: 0; }

.org-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 4px; gap: 8px;
}

.org-name { font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.org-category {
  font-size: 12.5px; color: var(--text-secondary);
  margin-bottom: 10px; display: flex; align-items: center; gap: 5px;
}
.org-category i { font-size: 13px; }

.badge-verified {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--green-bg); color: var(--green-text);
  font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--green-border); flex-shrink: 0; white-space: nowrap;
}
.badge-verified i { font-size: 11px; }

.org-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.org-tag {
  font-size: 11.5px; padding: 3px 10px;
  background: var(--primary-light); color: var(--primary);
  border-radius: var(--radius-pill); border: 1px solid var(--primary-border);
}

.org-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.org-meta { display: flex; align-items: center; gap: 14px; }

.org-rating { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-secondary); }
.stars { color: var(--amber); font-size: 12.5px; letter-spacing: 1px; }

.org-location { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); }
.org-location i { font-size: 13px; }

.btn-request {
  background: var(--primary-light); color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 7px 16px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.15s; white-space: nowrap;
}
.btn-request:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* No results */
.no-results {
  text-align: center; padding: 3rem 2rem;
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.no-results i { font-size: 40px; color: var(--text-muted); margin-bottom: 12px; display: block; }
.no-results p { font-size: 14px; color: var(--text-secondary); }

/* ─── Section flow order ─── */
#homeFlow { display: flex; flex-direction: column; }
#homeFlow .how-section         { order: 1; }
#homeFlow .home-kpi-orgs-wrap  { order: 2; }
#homeFlow .home-api-section    { order: 3; }

/* ─── HOW IT WORKS ─── */
.how-section {
  background: #032849;
  padding: 64px 2.5rem;
}
.how-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center;
}
.how-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(83,74,183,.2); color: #CECBF6;
  border: 1px solid rgba(83,74,183,.35);
  padding: 5px 14px; border-radius: 100px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
  margin-bottom: 16px;
}
.how-text h2 {
  font-size: 28px; font-weight: 700; color: #E8F4FE;
  line-height: 1.35; margin-bottom: 14px;
}
.how-text p {
  font-size: 14.5px; color: #8FAFCA; line-height: 1.75; margin-bottom: 28px;
}
.how-steps-list {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.how-steps-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: #93C5E8;
}
.how-step-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.how-cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px; text-decoration: none;
  background: linear-gradient(135deg, #1D9E75 0%, #0F6E56 100%);
  color: #fff; font-size: 14.5px; font-weight: 600;
  padding: 13px 24px; border-radius: 50px;
  box-shadow: 0 0 0 0 rgba(29,158,117,.5);
  animation: how-cta-pulse 2.2s ease-out infinite;
  transition: transform .15s, box-shadow .15s;
  align-self: flex-start;
}
.how-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(29,158,117,.45);
  animation: none;
}
.how-cta-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  animation: how-arrow-bounce 1.4s ease-in-out infinite;
}
@keyframes how-cta-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(29,158,117,.55); }
  70%  { box-shadow: 0 0 0 14px rgba(29,158,117,.0); }
  100% { box-shadow: 0 0 0 0   rgba(29,158,117,.0); }
}
@keyframes how-arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(4px); }
}

.how-svg-wrap {
  position: relative;
  background: rgba(255,255,255,.03);
  border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  overflow: hidden; padding: 8px;
}

/* ─── PARTNERS ─── */
.partners-section {
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.partners-header {
  text-align: center;
  max-width: 1200px; margin: 0 auto;
  padding: 2.5rem 2.5rem 1.5rem;
}
.partners-label {
  font-size: 11.5px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.partners-title { font-size: 21px; font-weight: 700; color: var(--text-primary); }

.partners-scroll { overflow: hidden; position: relative; max-width: 1200px; margin: 0 auto; padding: 1.5rem 2.5rem; }
.partners-scroll::before, .partners-scroll::after {
  content: ''; position: absolute; top: 0; width: 60px; height: 100%; z-index: 2;
}
.partners-scroll::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.partners-scroll::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.partners-track {
  display: flex; gap: 16px;
  animation: scroll-partners 30s linear infinite;
  width: max-content; padding: 4px 2px;
}
.partners-track:hover { animation-play-state: paused; }

@keyframes scroll-partners {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.partner-chip {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 12px; padding: 10px 18px 10px 10px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap; flex-shrink: 0;
}
.partner-icon {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.partner-info   { display: flex; flex-direction: column; gap: 2px; }
.partner-name   { font-size: 13.5px; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.partner-slogan { font-size: 11px; color: var(--text-muted); line-height: 1.2; }

/* ─── ШУУРХАЙ ЦЭС (Quick Portal Menu) ─── */
.qpm-wrap {
  position: fixed; bottom: 96px; right: 24px; z-index: 998;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.qpm-btn {
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 16px rgba(15,76,129,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: background .15s, transform .2s;
}
.qpm-btn:hover  { background: var(--primary-hover); transform: scale(1.07); }
.qpm-btn.qpm-active { background: var(--primary-dark); }
.qpm-panel {
  background: #fff; border-radius: 14px; width: 256px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 32px rgba(15,76,129,.14);
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: scale(.92) translateY(8px);
  transform-origin: bottom right;
  transition: opacity .18s, transform .18s;
}
.qpm-panel.qpm-open {
  opacity: 1; pointer-events: auto;
  transform: scale(1) translateY(0);
}
.qpm-head {
  padding: 10px 14px; font-size: 11.5px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 6px;
}
.qpm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: background .12s;
}
.qpm-item:last-child { border-bottom: none; }
.qpm-item:hover { background: var(--bg-secondary); }
.qpm-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.qpm-user  .qpm-icon { background: #E6F1FB; color: #0F4C81; }
.qpm-cert  .qpm-icon { background: #EAF3DE; color: #3B6D11; }
.qpm-admin .qpm-icon { background: #FDE8E8; color: #C0392B; }
.qpm-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.qpm-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.qpm-arr  { margin-left: auto; color: var(--text-muted); font-size: 13px; flex-shrink: 0; }

/* ─── CTA BANNER ─── */
.cta-section {
  background: linear-gradient(135deg, #0F4C81 0%, #0a3a63 100%);
  padding: 4rem 2rem; text-align: center; color: #fff;
}
.cta-section h2 { font-size: 27px; font-weight: 700; margin-bottom: 10px; }
.cta-section p { font-size: 15px; opacity: 0.8; margin-bottom: 2rem; }
.btn-white {
  background: #fff; color: var(--primary); border: none;
  padding: 13px 32px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 0.15s;
}
.btn-white:hover { opacity: 0.92; }

/* ─── FOOTER ─── */
/* ─── SITE FOOTER ─── */
.site-footer {
  background: #021d35; color: rgba(255,255,255,.6);
  border-top: 1px solid rgba(255,255,255,.07);
}
.ft-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px; padding: 52px 2.5rem 40px;
}

/* Logo & tagline */
.ft-logo span { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.ft-tagline   { font-size: 12px; color: rgba(255,255,255,.4); margin: 6px 0 20px; }

/* Section label */
.ft-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}

/* Feedback form */
.ft-form { display: flex; flex-direction: column; gap: 8px; }
.ft-input {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 9px 12px;
  color: #fff; font-size: 13px; font-family: inherit;
  transition: border-color .15s; outline: none; width: 100%;
}
.ft-input::placeholder { color: rgba(255,255,255,.3); }
.ft-input:focus { border-color: rgba(55,138,221,.6); }
.ft-textarea { resize: none; }
.ft-submit {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary); color: #fff; border: none;
  padding: 10px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s; align-self: flex-start;
  font-family: inherit;
}
.ft-submit:hover { background: var(--primary-hover); }
.ft-submit:disabled { opacity: .6; cursor: default; }
.ft-msg-ok {
  display: flex; align-items: center; gap: 7px;
  color: #4ECBA4; font-size: 13px; font-weight: 600;
}

/* Nav list */
.ft-nav-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ft-nav-list a {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.55); font-size: 13px;
  text-decoration: none; transition: color .13s;
}
.ft-nav-list a i { font-size: 15px; opacity: .7; flex-shrink: 0; }
.ft-nav-list a:hover { color: #fff; }

/* Contact list */
.ft-contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ft-contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.ft-contact-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: rgba(255,255,255,.6);
}
.ft-w3w-icon { font-size: 11px; font-weight: 800; color: #e11f26; }
.ft-contact-label { font-size: 10.5px; color: rgba(255,255,255,.35); margin-bottom: 2px; }
.ft-contact-val   { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.45; }
.ft-w3w-link { color: #e95050; text-decoration: none; }
.ft-w3w-link:hover { color: #ff7070; }

/* Bottom bar */
.ft-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 2.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.3);
}
.ft-bottom-links { display: flex; gap: 20px; }
.ft-bottom-links a { color: rgba(255,255,255,.3); text-decoration: none; transition: color .13s; }
.ft-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ─── CHATBOT ─── */
.chatbot-toggle {
  position: fixed; bottom: 24px; right: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(15,76,129,0.35);
  transition: transform 0.2s, background 0.15s; z-index: 1000;
}
.chatbot-toggle:hover { background: var(--primary-dark); transform: scale(1.08); }
.chatbot-toggle i { font-size: 24px; color: #fff; }

.chatbot-badge {
  position: absolute; top: -3px; right: -3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #e24b4a; color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

.chatbot-window {
  position: fixed; bottom: 90px; right: 24px;
  width: 340px; height: 480px;
  background: var(--bg-white); border-radius: 16px;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden; z-index: 999;
}
.chatbot-window.open { display: flex; }

.chat-header {
  background: var(--primary); padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar i { font-size: 18px; color: #fff; }
.chat-header-info { flex: 1; }
.chat-header-name { font-size: 14px; font-weight: 600; color: #fff; }
.chat-status {
  font-size: 11px; color: rgba(255,255,255,0.75);
  display: flex; align-items: center; gap: 4px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; display: inline-block;
}
.chat-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.75); font-size: 18px; padding: 4px;
  display: flex; align-items: center;
}
.chat-close:hover { color: #fff; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
}

.chat-msg { display: flex; gap: 8px; align-items: flex-end; }
.chat-msg.user { flex-direction: row-reverse; }

.msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.msg-avatar.bot  { background: var(--primary); }
.msg-avatar.user { background: var(--primary-light); }
.msg-avatar i { font-size: 13px; }
.msg-avatar.bot i  { color: #fff; }
.msg-avatar.user i { color: var(--primary); }

.msg-bubble {
  padding: 10px 14px; max-width: 82%;
  font-size: 13px; line-height: 1.55;
}
.msg-bubble.bot {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 12px 12px 12px 2px; color: var(--text-primary);
}
.msg-bubble.user {
  background: var(--primary); color: #fff;
  border-radius: 12px 12px 2px 12px;
}

.quick-replies {
  display: flex; flex-wrap: wrap; gap: 6px; padding-left: 36px;
}
.quick-reply-btn {
  font-size: 11.5px; padding: 5px 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--primary); color: var(--primary);
  background: var(--primary-light); cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.quick-reply-btn:hover { background: var(--primary); color: #fff; }

/* Typing indicator */
.typing-dots {
  display: flex; gap: 5px; align-items: center; padding: 12px 14px;
}
.typing-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); animation: typing-bounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.85); }
  40%           { opacity: 1;   transform: scale(1); }
}

.chat-input-area {
  padding: 10px 12px; border-top: 1px solid var(--border-light);
  display: flex; gap: 8px; align-items: center;
  background: var(--bg-white);
}
.chat-input {
  flex: 1; padding: 9px 13px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: 13px; color: var(--text-primary);
  background: var(--bg); outline: none; transition: border 0.15s;
}
.chat-input:focus { border-color: var(--primary); }
.chat-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s;
}
.chat-send:hover { background: var(--primary-dark); }
.chat-send i { font-size: 15px; color: #fff; }

/* ─── MODAL ─── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 500;
  align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--bg-white); border-radius: var(--radius-lg);
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-light);
}
.modal-org-info { display: flex; align-items: center; gap: 12px; }
.modal-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.modal-sub { font-size: 12px; color: var(--text-muted); }
.modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 20px; padding: 4px;
  border-radius: var(--radius); display: flex; align-items: center;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-secondary); }

.modal-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.form-input {
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13.5px;
  color: var(--text-primary); background: var(--bg-secondary);
  outline: none; transition: border 0.15s; font-family: inherit; width: 100%;
}
.form-input:focus { border-color: var(--primary); background: var(--bg-white); }
.form-textarea { resize: vertical; min-height: 90px; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a2e3d; color: #fff;
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: 13.5px; display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg); z-index: 9999;
  transition: transform 0.3s, opacity 0.3s; opacity: 0;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast i { font-size: 17px; color: #4ade80; }

/* ─── MOBILE UTILITIES ─── */
.search-bar-row { display: contents; }
.mobile-filter-row { display: none; }
.sidebar-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.42); z-index: 399;
}
.sidebar-backdrop.open { display: block; }
.sidebar-close-btn {
  display: none; background: none; border: none;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer; font-family: inherit;
  padding: 16px 1.25rem; font-size: 14px; font-weight: 600;
  color: var(--text-primary); width: 100%;
  align-items: center; justify-content: space-between;
}
.sidebar-close-btn i { font-size: 18px; color: var(--text-muted); }
.mobile-filter-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-white); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500; color: var(--text-primary);
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.mobile-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.mobile-filter-btn i { font-size: 16px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 3.5rem 2rem 3rem; }
  .hero h1 { font-size: 28px; }
  .main-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .how-inner { grid-template-columns: 1fr; gap: 32px; }
  .how-svg-wrap { max-width: 480px; margin: 0 auto; }
  .stats-wrap { max-width: 700px; }
}

@media (max-width: 700px) {
  /* ── Navbar ── */
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg-white); border-top: 1px solid var(--border-light);
    padding: 8px 1rem 24px; overflow-y: auto;
    box-shadow: var(--shadow-lg); z-index: 299;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    padding: 12px 14px; font-size: 14.5px;
    border-radius: var(--radius); display: flex; align-items: center;
  }
  .nav-links.open .btn-login { margin-left: 0; margin-top: 6px; justify-content: center; }
  .nav-dropdown:hover .dropdown-menu { display: none; }

  /* ── Hero ── */
  .hero-content { padding: 2.25rem 1.25rem 2rem; }
  .hero h1 { font-size: 23px; letter-spacing: -0.3px; }
  .hero p { font-size: 14px; margin-bottom: 1.5rem; }
  .hero-badge { font-size: 11.5px; padding: 5px 12px; }
  .hero-actions { flex-direction: column; gap: 8px; }
  .btn-primary, .btn-secondary { justify-content: center; width: 100%; }

  /* ── Stats ── */
  .stats-wrap {
    grid-template-columns: repeat(3, 1fr);
    padding: 1.25rem 1rem; gap: 8px; max-width: 100%;
  }
  .stat-card { padding: 0.9rem 0.5rem; }
  .stat-num { font-size: 22px; margin-bottom: 4px; }
  .stat-label { font-size: 10.5px; }

  /* ── Main layout ── */
  .main-wrap { padding: 1rem 1rem 3rem; gap: 0; }

  /* ── Sidebar drawer ── */
  .sidebar {
    position: fixed; top: 0; left: -100%; bottom: 0;
    width: min(310px, 88vw); z-index: 400;
    background: var(--bg-white); box-shadow: var(--shadow-lg);
    transition: left 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
  }
  .sidebar.open { left: 0; }
  .sidebar .filter-card { border: none; border-radius: 0; margin: 0; }
  .sidebar-close-btn { display: flex; }

  /* ── Mobile filter button ── */
  .mobile-filter-row { display: flex; margin-bottom: 10px; }

  /* ── Search bar ── */
  .search-bar { flex-direction: column; padding: 0.875rem 1rem; gap: 8px; }
  .search-input-wrap { min-width: unset; }
  .search-bar-row { display: flex; gap: 8px; width: 100%; }
  .search-bar-row select { flex: 1; min-width: unset; }
  .search-bar-row .btn-search { flex-shrink: 0; }

  /* ── Results header ── */
  .results-header { flex-direction: column; align-items: stretch; gap: 8px; }
  .sort-select { width: 100%; }

  /* ── Org card ── */
  .org-card { padding: 1rem; gap: 10px; }
  .org-avatar { width: 42px; height: 42px; border-radius: 10px; font-size: 14px; }
  .org-name { font-size: 13.5px; }
  .org-tags { gap: 4px; margin-bottom: 10px; }
  .org-tag { font-size: 11px; padding: 2px 8px; }
  .org-footer { flex-direction: column; align-items: stretch; gap: 8px; }
  .btn-request { justify-content: center; }

  /* ── How section ── */
  .how-section { padding: 2.5rem 1.25rem; }
  .how-inner { grid-template-columns: 1fr; gap: 24px; }
  .how-text h2 { font-size: 22px; }

  /* ── CTA ── */
  .cta-section { padding: 2.5rem 1.25rem; }
  .cta-section h2 { font-size: 21px; }
  .cta-section p { font-size: 14px; margin-bottom: 1.5rem; }

  /* ── Footer ── */
  .ft-inner { grid-template-columns: 1fr; gap: 32px; padding: 36px 1.5rem 28px; }
  .ft-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 14px 1.5rem; }

  /* ── Chatbot ── */
  .chatbot-toggle { bottom: 16px; right: 16px; width: 48px; height: 48px; }
  .chatbot-window { right: 10px; left: 10px; width: auto; bottom: 78px; }

  /* ── Modal → bottom sheet ── */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 20px 20px 0 0; max-height: 90vh; }

  /* ── Service grid ── */
  .svc-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   SERVICE CARDS  (index.html service section)
═══════════════════════════════════════════ */

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.svc-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.svc-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.svc-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.svc-head-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.svc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.svc-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.svc-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.svc-providers-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc-providers-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.svc-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.svc-provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px 8px 3px 4px;
  font-size: 12px;
  color: var(--text-primary);
  max-width: 160px;
  overflow: hidden;
}
.svc-provider-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.svc-provider-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.svc-more-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.svc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  margin-top: auto;
}

.svc-provider-count {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .svc-grid { grid-template-columns: 1fr; }
}
