/* ================================================================
   ОКРУГ25 — Design System v3.0
   Современный районный сервисный портал
   ================================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  color-scheme: light;
  --c-bg:        #f6f8fc;
  --c-surface:   #ffffff;
  --c-surface-2: #eef1f8;
  --c-surface-3: #e2e7f0;
  --c-border:    rgba(0, 0, 0, 0.07);
  --c-border-md: rgba(0, 0, 0, 0.12);
  --c-gold:      #2563eb;
  --c-gold-lt:   #14b8a6;
  --c-gold-pale: #a7f3d0;
  --c-gold-dim:  rgba(37, 99, 235, 0.10);
  --c-gold-soft: rgba(37, 99, 235, 0.20);
  --c-gold-glow: rgba(37, 99, 235, 0.18);
  --c-yellow:      #f0b429;
  --c-yellow-dark: #d4a017;
  --c-yellow-glow: rgba(240, 180, 41, 0.42);
  --c-text:   #0f172a;
  --c-text-2: #475569;
  --c-text-3: #94a3b8;
  --c-text-4: #c8d0e0;
  --c-red:        #ef4444;
  --c-red-dim:    rgba(239, 67, 67, 0.10);
  --c-green:      #22c55e;
  --c-green-dim:  rgba(34, 197, 94, 0.10);
  --c-blue:       #2563eb;
  --c-blue-dim:   rgba(37, 99, 235, 0.10);
  --c-amber:      #f59e0b;
  --c-amber-dim:  rgba(245, 158, 11, 0.10);
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --sp-1:  4px;  --sp-2:  8px;  --sp-3: 12px;
  --sp-4: 16px;  --sp-5: 24px;  --sp-6: 32px;
  --sp-7: 48px;  --sp-8: 64px;  --sp-9: 96px;
  --r-xs:   5px;  --r-sm:  8px;  --r-md: 8px;
  --r-lg: 8px;  --r-xl: 8px;  --r-2xl: 8px;  --r-full: 8px;
  --sh-sm:   0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --sh-md:   0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --sh-lg:   0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
  --sh-gold: 0 0 24px rgba(37, 99, 235, 0.14);
  --t-fast: 130ms cubic-bezier(.4, 0, .2, 1);
  --t-base: 220ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 380ms cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --c-bg:        #111827;
  --c-surface:   #182235;
  --c-surface-2: #202c42;
  --c-surface-3: #2a3852;
  --c-border:    rgba(255, 255, 255, 0.08);
  --c-border-md: rgba(255, 255, 255, 0.14);
  --c-gold:      #60a5fa;
  --c-gold-lt:   #2dd4bf;
  --c-gold-pale: #99f6e4;
  --c-gold-dim:  rgba(96, 165, 250, 0.14);
  --c-gold-soft: rgba(45, 212, 191, 0.20);
  --c-gold-glow: rgba(96, 165, 250, 0.18);
  --c-text:   #f1f5f9;
  --c-text-2: #cbd5e1;
  --c-text-3: #94a3b8;
  --c-text-4: #64748b;
  --c-red-dim:    rgba(248, 113, 113, 0.15);
  --c-green-dim:  rgba(74, 222, 128, 0.14);
  --c-blue-dim:   rgba(96, 165, 250, 0.15);
  --c-amber-dim:  rgba(251, 191, 36, 0.15);
  --sh-sm:   0 1px 4px rgba(0, 0, 0, 0.24), 0 2px 8px rgba(0, 0, 0, 0.18);
  --sh-md:   0 6px 18px rgba(0, 0, 0, 0.28), 0 1px 4px rgba(0, 0, 0, 0.18);
  --sh-lg:   0 16px 44px rgba(0, 0, 0, 0.36), 0 2px 8px rgba(0, 0, 0, 0.22);
  --sh-gold: 0 0 28px rgba(45, 212, 191, 0.12);
}

/* ── 2. BASE ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; letter-spacing: 0 !important; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background-color: var(--c-bg);
  font-family: var(--font-body);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(20, 184, 166, 0.11), transparent 30%),
    var(--c-bg);
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: var(--c-surface-2);
  border-color: var(--c-border-md);
  color: var(--c-text);
}
[data-theme="dark"] .form-control::placeholder {
  color: var(--c-text-4);
}
[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%);
}

/* ── 3. NAVIGATION ────────────────────────────────────────────── */
.portal-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transition: background var(--t-base);
}

[data-theme="dark"] .portal-nav {
  background: rgba(17, 24, 39, 0.88);
  box-shadow: 0 1px 12px rgba(0,0,0,0.26);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--sp-5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(140deg, #2563eb, #14b8a6);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 2px 14px var(--c-gold-glow);
  flex-shrink: 0;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.nav-brand:hover .brand-mark {
  box-shadow: 0 4px 24px var(--c-gold-soft);
  transform: scale(1.04);
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

.nav-sep {
  width: 1px;
  height: 22px;
  background: var(--c-border-md);
  flex-shrink: 0;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--c-text-2);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
  border: none;
}
.nav-links .nav-link:hover {
  color: var(--c-text);
  background: var(--c-surface-2);
}
.nav-links .nav-link.active {
  color: var(--c-gold);
  background: var(--c-gold-dim);
}

/* Search */
.nav-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border-md);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.nav-search-wrap:focus-within {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px var(--c-gold-dim);
  background: rgba(255, 255, 255, 0.07);
}

.nav-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 10px;
  width: 148px;
  transition: width var(--t-slow);
}
.nav-search-input::placeholder { color: var(--c-text-4); }
.nav-search-input:focus { width: 190px; }

.nav-search-btn {
  background: transparent;
  border: none;
  color: var(--c-text-3);
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--t-fast);
  font-size: 14px;
}
.nav-search-wrap:focus-within .nav-search-btn,
.nav-search-btn:hover { color: var(--c-gold); }

.theme-toggle-btn {
  position: relative;
  width: 38px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--c-border-md);
  border-radius: 8px;
  background: var(--c-surface-2);
  color: var(--c-text-2);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.theme-toggle-btn:hover {
  color: var(--c-gold);
  background: var(--c-surface);
  border-color: var(--c-gold-soft);
  transform: translateY(-1px);
}
.theme-toggle-btn i {
  position: absolute;
  font-size: 15px;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.theme-toggle-moon {
  opacity: 0;
  transform: translateY(6px) scale(.85);
}
[data-theme="dark"] .theme-toggle-sun {
  opacity: 0;
  transform: translateY(-6px) scale(.85);
}
[data-theme="dark"] .theme-toggle-moon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Mobile toggle */
.nav-menu-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--c-border-md);
  border-radius: var(--r-sm);
  color: var(--c-text-2);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-menu-toggle:hover {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile offcanvas */
.portal-offcanvas {
  background: var(--c-surface) !important;
  border-right: 1px solid var(--c-border) !important;
  max-width: 280px;
}

.offcanvas-mobile-links .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}
.offcanvas-mobile-links .nav-link:hover {
  color: var(--c-text);
  background: var(--c-surface-2);
}
.offcanvas-mobile-links .nav-link.active {
  color: var(--c-gold);
  background: var(--c-gold-dim);
}
.offcanvas-mobile-links .nav-link i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* ── 4. CARDS ─────────────────────────────────────────────────── */
.card-dashboard {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.card-dashboard:hover {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: var(--sh-lg), var(--sh-gold);
  transform: translateY(-2px);
}

.card-news-lift {
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.card-news-lift:hover {
  border-color: rgba(37, 99, 235, 0.28) !important;
  box-shadow: var(--sh-lg), var(--sh-gold) !important;
  transform: translateY(-3px);
}

/* ── 5. SECTION LABELS ────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.section-label i {
  font-size: 13px;
  color: var(--c-gold);
}

/* ── 6. BUTTONS ───────────────────────────────────────────────── */
.btn-warning {
  background-color: var(--c-gold) !important;
  border-color: var(--c-gold) !important;
  color: #fff !important;
  font-family: var(--font-body);
  font-weight: 600;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) !important;
}
.btn-warning:hover {
  background-color: var(--c-gold-lt) !important;
  border-color: var(--c-gold-lt) !important;
  box-shadow: 0 4px 18px var(--c-gold-glow);
  transform: translateY(-1px);
}
.btn-warning:active { transform: translateY(0) !important; }

.btn-outline-warning {
  border-color: var(--c-gold) !important;
  color: var(--c-gold) !important;
  font-family: var(--font-body);
  font-weight: 500;
}
.btn-outline-warning:hover {
  background-color: var(--c-gold) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px var(--c-gold-glow);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: var(--c-gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-full);
  text-decoration: none;
  border: none;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  line-height: 1;
}
.btn-gold:hover {
  background: var(--c-gold-lt);
  color: #fff;
  box-shadow: 0 4px 20px var(--c-gold-glow);
  transform: translateY(-1px);
}
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: var(--c-surface-2);
  color: var(--c-text-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-full);
  text-decoration: none;
  border: 1px solid var(--c-border-md);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  line-height: 1;
}
.btn-ghost:hover {
  background: var(--c-surface-3);
  color: var(--c-text);
  border-color: var(--c-border-md);
}

/* ── 7. HERO SECTION ──────────────────────────────────────────── */
.portal-hero {
  padding: 84px 0 78px;
  position: relative;
}
.portal-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border-md) 20%, var(--c-border-md) 80%, transparent);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  flex-wrap: wrap;
  padding: 5px 14px;
  background: var(--c-gold-dim);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-gold);
  letter-spacing: .04em;
  margin-bottom: 20px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  background: var(--c-gold);
  border-radius: 50%;
  flex-shrink: 0;
  animation: heroPulse 2.5s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 600;
  line-height: 1.04;
  color: var(--c-text);
  margin-bottom: 22px;
  letter-spacing: -0.005em;
}

.hero-title-accent {
  background: linear-gradient(90deg, var(--c-gold) 0%, var(--c-gold-lt) 55%, var(--c-gold-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.45;
  color: var(--c-text-2);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Hero stats strip */
.hero-stats {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  overflow: hidden;
  max-width: fit-content;
  box-shadow: var(--sh-sm);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-right: 1px solid var(--c-border);
  transition: background var(--t-fast);
  text-decoration: none;
  cursor: default;
}
.hero-stat:last-child { border-right: none; }
a.hero-stat:hover { background: var(--c-surface-2); }

.hero-stat-icon {
  width: 34px;
  height: 34px;
  background: var(--c-gold-dim);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold);
  font-size: 15px;
  flex-shrink: 0;
}
.hero-stat-icon.red {
  background: var(--c-red-dim);
  color: var(--c-red);
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
  line-height: 1.2;
}
.hero-stat-val.sm {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: normal;
}

.hero-stat-lbl {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--c-text-3);
  line-height: 1.3;
  margin-top: 2px;
}

/* Hero text: always white over dark video overlay */
.portal-hero .hero-title       { color: #fff !important; }
.portal-hero .hero-title-accent {
  background: linear-gradient(90deg, #ffcf6b 0%, #e8b46a 55%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.portal-hero .hero-subtitle    { color: rgba(255,255,255,0.82) !important; }
.portal-hero .hero-eyebrow     { color: rgba(255,255,255,0.75) !important; background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); }
.portal-hero .hero-dot         { background: rgba(255,255,255,0.65); }

/* ── Service Cards Grid ───────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1199px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px)  { .service-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  text-decoration: none;
  color: var(--c-text-2);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base), color var(--t-fast);
  box-shadow: var(--sh-sm);
  text-align: center;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--c-gold-soft);
  color: var(--c-text);
}
.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.service-card-icon.transport { background: rgba(37,99,235,0.10); color: #2563eb; }
.service-card-icon.ads       { background: rgba(16,185,129,0.10); color: #059669; }
.service-card-icon.directory { background: rgba(37,99,235,0.10); color: var(--c-gold); }
.service-card-icon.map       { background: rgba(124,58,237,0.10); color: #7c3aed; }
.service-card-icon.news      { background: rgba(239,68,68,0.10);  color: #dc2626; }
.service-card-label {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Section heading ─────────────────────────────────────────── */
.section-heading {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
  margin: 0;
}
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ── Ads preview card ────────────────────────────────────────── */
.ads-preview-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--c-text);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  box-shadow: var(--sh-sm);
}
.ads-preview-card:hover {
  border-color: var(--c-gold-soft);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  color: var(--c-text);
}
.ads-preview-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ads-preview-excerpt {
  font-size: 12.5px;
  color: var(--c-text-3);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Settlement badges ───────────────────────────────────────── */
.settlement-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-2);
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  box-shadow: var(--sh-sm);
}
.settlement-badge:hover {
  border-color: var(--c-gold-soft);
  color: var(--c-gold);
  background: var(--c-gold-dim);
}

/* ── 8. BUS SCHEDULE ──────────────────────────────────────────── */
.bus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--c-border);
  transition: background var(--t-fast);
}
.bus-row:last-child { border-bottom: none; }
.bus-row-urgent { background: var(--c-gold-dim); }
.bus-row-urgent:hover { background: var(--c-gold-soft); }

.bus-time-big {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
  line-height: 1;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.bus-time-big--urgent { color: var(--c-gold); }

.bus-countdown {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-gold);
  white-space: nowrap;
}
.bus-countdown.urgent { animation: goldPulse 2s ease-in-out infinite; }

.status-day-weekdays {
  display: inline-block;
  background: var(--c-blue-dim);
  color: var(--c-blue);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 9px;
  white-space: nowrap;
}
.status-day-weekend {
  display: inline-block;
  background: var(--c-green-dim);
  color: var(--c-green);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 9px;
  white-space: nowrap;
}
.status-day-daily {
  display: inline-block;
  background: var(--c-surface-2);
  color: var(--c-text-3);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 9px;
  white-space: nowrap;
}

/* ── 9. FORMS ─────────────────────────────────────────────────── */
.form-control,
.form-select {
  background: var(--c-surface) !important;
  border-color: var(--c-border-md) !important;
  color: var(--c-text) !important;
  font-family: var(--font-body) !important;
  border-radius: var(--r-sm) !important;
  transition: border-color var(--t-fast), box-shadow var(--t-fast) !important;
}
.form-control:focus,
.form-select:focus {
  background: var(--c-surface) !important;
  border-color: var(--c-gold) !important;
  box-shadow: 0 0 0 3px var(--c-gold-dim) !important;
  color: var(--c-text) !important;
}
.form-control::placeholder { color: var(--c-text-3) !important; }

.form-check-input:checked {
  background-color: var(--c-gold);
  border-color: var(--c-gold);
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px var(--c-gold-dim);
  border-color: var(--c-gold);
}

/* ── 10. COLOUR OVERRIDES (Bootstrap) ────────────────────────── */
.text-warning { color: var(--c-gold) !important; }
.bg-warning { background-color: var(--c-gold) !important; }
.bg-warning.bg-opacity-10 { background-color: var(--c-gold-dim) !important; }
.progress-bar.bg-warning { background-color: var(--c-gold) !important; }

/* ── 11. BADGES ───────────────────────────────────────────────── */
.badge-gold {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--c-gold-dim);
  color: var(--c-gold);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
}

/* ── 12. PAGINATION ───────────────────────────────────────────── */
.page-link {
  background: var(--c-surface) !important;
  border-color: var(--c-border) !important;
  color: var(--c-text-2) !important;
  font-family: var(--font-body);
  font-size: 13px;
  transition: background var(--t-fast), color var(--t-fast) !important;
}
.page-link:hover {
  background: var(--c-surface-2) !important;
  color: var(--c-text) !important;
  border-color: var(--c-border-md) !important;
}
.page-item.active .page-link {
  background: var(--c-gold) !important;
  border-color: var(--c-gold) !important;
  color: #fff !important;
}
.page-item.disabled .page-link {
  background: var(--c-surface) !important;
  color: var(--c-text-4) !important;
}

/* ── 13. FOOTER ───────────────────────────────────────────────── */
.portal-footer {
  border-top: 1px solid var(--c-border);
  margin-top: var(--sp-8);
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-6);
}

.footer-brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(140deg, #2563eb, #14b8a6);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--c-text-3);
  line-height: 1.65;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--c-text-2);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--c-gold); }

.footer-bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--c-text-3);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-meta a {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--c-text-3);
  text-decoration: none;
  transition: color var(--t-fast), opacity var(--t-fast);
}
.footer-meta a:hover { color: var(--c-text-2); }
.footer-meta .footer-admin-link { color: var(--c-gold); opacity: .65; }
.footer-meta .footer-admin-link:hover { opacity: 1; color: var(--c-gold); }
.footer-meta .footer-logout { color: var(--c-red); opacity: .65; }
.footer-meta .footer-logout:hover { opacity: 1; color: var(--c-red); }

/* ── 14. SCROLL TO TOP ────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-md);
  color: var(--c-text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base),
              box-shadow var(--t-base), transform var(--t-base),
              color var(--t-fast), border-color var(--t-fast);
  z-index: 1050;
  cursor: pointer;
  box-shadow: var(--sh-sm);
}
#scroll-top.visible { opacity: 1; visibility: visible; }
#scroll-top:hover {
  color: var(--c-gold);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: var(--sh-md), var(--sh-gold);
  transform: translateY(-2px);
}

/* ── 15. BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb { font-family: var(--font-body); font-size: 13px; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--c-text-4); }

/* ── 16. ALERTS ───────────────────────────────────────────────── */
.alert { font-family: var(--font-body); border-radius: var(--r-md); font-size: 14px; }

/* ── 17. PROGRESS ─────────────────────────────────────────────── */
.progress { border-radius: var(--r-full) !important; background: var(--c-surface-2) !important; }
.progress-bar { border-radius: var(--r-full) !important; }

/* ── 18. LIST GROUP ───────────────────────────────────────────── */
.list-group-item {
  background: transparent;
  border-color: var(--c-border) !important;
  color: var(--c-text);
  font-family: var(--font-body);
}

/* ── 19. MAP ──────────────────────────────────────────────────── */
.leaflet-container { border-radius: var(--r-lg); }

/* ── 20. GALLERY OVERLAY ──────────────────────────────────────── */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 16, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base);
  border-radius: var(--r-lg);
}
.gallery-overlay i {
  font-size: 28px;
  color: var(--c-text);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── 21. ADMIN LAYOUT ─────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

.admin-sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  padding: var(--sp-5) var(--sp-3);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.admin-sidebar-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-text-4);
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px var(--sp-3);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-text-2);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}
.admin-sidebar-link i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.admin-sidebar-link:hover {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.06);
}
.admin-sidebar-link.active {
  color: var(--c-gold);
  background: var(--c-gold-dim);
}
.admin-sidebar-link .sidebar-badge {
  margin-left: auto;
  background: var(--c-red);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  min-width: 18px;
  text-align: center;
}

.admin-sidebar-sep {
  height: 1px;
  background: var(--c-border);
  margin: var(--sp-3) var(--sp-3);
}

.admin-sidebar-bottom {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  height: 56px;
  border-bottom: 1px solid var(--c-border);
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-surface);
  position: sticky;
  top: 60px;
  z-index: 10;
  flex-shrink: 0;
}

.admin-topbar-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.admin-content {
  flex: 1;
  padding: var(--sp-6);
}

.admin-section { display: none; }
.admin-section.active { display: block; }

/* Admin stat cards */
.admin-stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.admin-stat-card:hover {
  border-color: var(--c-border-md);
  box-shadow: var(--sh-md);
}
.admin-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: var(--sp-4);
}
.admin-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1;
  margin-bottom: 4px;
}
.admin-stat-lbl {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--c-text-3);
  font-weight: 500;
}

/* Admin tables */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
}
.admin-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-text-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  white-space: nowrap;
}
.admin-table tbody tr {
  transition: background var(--t-fast);
}
.admin-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.admin-table tbody td {
  padding: var(--sp-3) var(--sp-4);
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}

/* Admin section headings */
.admin-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-5);
}

/* ── 22. ANIMATIONS ───────────────────────────────────────────── */
@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

@keyframes staggerIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger-item {
  opacity: 0;
  animation: staggerIn 0.5s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50%       { box-shadow: 0 0 10px 3px rgba(37, 99, 235, 0.24); }
}
.gold-heartbeat { animation: goldPulse 2s ease-in-out infinite; }

@keyframes progressFill {
  from { width: 0; }
}
.progress-bar-animated-fill {
  animation: progressFill 0.9s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.count-animate { animation: countUp 0.45s ease forwards; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(11px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-up-item { animation: slideUp 0.35s ease forwards; }

@keyframes popupFade {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
.leaflet-popup-content-wrapper { animation: popupFade 0.4s ease; }

/* ── 23. MISC ─────────────────────────────────────────────────── */
.bus-time { font-variant-numeric: tabular-nums; }
*[title] { cursor: inherit; }

/* Contact cards */
.contact-card-emergency { border-left: 3px solid var(--c-red) !important; }
.contact-card-health    { border-left: 3px solid var(--c-green) !important; }
.contact-card-admin     { border-left: 3px solid var(--c-blue) !important; }
.contact-card-services  { border-left: 3px solid var(--c-gold) !important; }

/* News border accent */
.news-card-link {
  border-left: 2px solid transparent !important;
  transition: border-color var(--t-base), transform var(--t-base),
              box-shadow var(--t-base) !important;
}
.news-card-link:hover {
  border-left-color: var(--c-gold) !important;
}

.admin-news-link {
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--t-fast);
}
.admin-news-link:hover,
.admin-news-link:focus {
  color: var(--c-gold);
}

.admin-logout-inline {
  color: var(--c-text-3);
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-fast);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.admin-logout-inline:hover,
.admin-logout-inline:focus {
  color: var(--c-red);
}

/* Directory pill filters */
.dir-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-full);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-md);
  color: var(--c-text-2);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
}
.dir-filter-pill:hover {
  background: var(--c-surface-3);
  color: var(--c-text);
}
.dir-filter-pill.active {
  background: var(--c-gold-dim);
  border-color: rgba(37, 99, 235, 0.24);
  color: var(--c-gold);
  font-weight: 600;
}

/* ── 24. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .admin-sidebar { display: none; }
  .admin-layout { display: block; }
}

@media (max-width: 1499px) and (min-width: 992px) {
  .nav-inner { gap: var(--sp-2); }
  .nav-links .nav-link {
    padding-inline: 5px;
    font-size: 13px;
  }
  .nav-cta-btn { padding-inline: 12px; }
  .nav-search-form { display: none !important; }
}

@media (max-width: 768px) {
  .portal-hero { padding: 54px 0 48px; }
  .hero-title { font-size: 2.35rem; }
  .hero-subtitle { font-size: 15px; }
  .hero-actions { gap: 8px; }
  .hero-stats { max-width: 100%; }
  .portal-footer { margin-top: var(--sp-6); padding-top: var(--sp-6); }
}

@media (max-width: 576px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-gold, .btn-ghost { justify-content: center; }
  .nav-search-input { width: 120px; }
  .nav-search-input:focus { width: 150px; }
  .admin-content { padding: var(--sp-4); }
  .hero-eyebrow { font-size: 11px; padding: 6px 10px; }
  .hero-stats { display: grid !important; grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 13px 16px; }
  .hero-stat:last-child { grid-column: 1 / -1; }
  .bus-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .bus-row > .d-flex:last-child {
    flex-shrink: 1 !important;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .emergency-strip {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .emergency-strip .btn-ghost {
    width: 100%;
    margin-left: 0 !important;
  }
  .floating-contact {
    left: 14px;
    bottom: 14px;
  }
  .floating-contact-btn {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }
  .floating-contact-popup {
    width: min(260px, calc(100vw - 28px));
  }
}

.nav-settlement-btn {
  background: var(--c-surface-2);
  color: var(--c-gold);
  border: 1px solid var(--c-border);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  max-width: 172px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-settlement-btn:hover,
.nav-settlement-btn:focus {
  background: var(--c-surface);
  color: var(--c-gold);
  border-color: var(--c-gold);
}
.nav-settlement-btn::after {
  margin-left: 4px;
  font-size: 10px;
}
.settlement-dropdown {
  background: color-mix(in srgb, var(--c-surface) 96%, var(--c-gold) 4%);
  border: 1px solid var(--c-border-md);
  border-radius: 8px;
  box-shadow: var(--sh-lg);
  width: 284px;
  max-height: 360px;
  overflow: hidden;
  padding: 8px;
}
.settlement-dropdown .dropdown-item {
  color: var(--c-text);
  font-size: 13px;
  padding: 8px 9px;
  border-radius: var(--r-sm);
  white-space: normal;
  line-height: 1.25;
}
.settlement-dropdown .dropdown-item small {
  color: var(--c-text-3);
  display: block;
  font-size: 10.5px;
  margin-top: 1px;
}
.settlement-dropdown .dropdown-item:hover,
.settlement-dropdown .dropdown-item:focus {
  background: var(--c-surface);
  color: var(--c-gold);
}
.settlement-dropdown .dropdown-item.active {
  background: var(--c-gold);
  color: #fff;
  font-weight: 600;
}
.settlement-dropdown .dropdown-item.active small {
  color: rgba(255, 255, 255, 0.78);
}
.settlement-dropdown .dropdown-divider {
  border-color: var(--c-border);
  margin: 6px 0;
}
.settlement-dropdown-search {
  padding-bottom: 8px;
}
.settlement-search-input {
  width: 100%;
  border: 1px solid var(--c-border-md);
  background: var(--c-surface);
  color: var(--c-text);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 10px;
  outline: none;
}
.settlement-search-input:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px var(--c-gold-dim);
}
.settlement-options-list {
  max-height: 248px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-md) transparent;
}
.settlement-options-list::-webkit-scrollbar,
.mobile-settlement-list::-webkit-scrollbar { width: 6px; }
.settlement-options-list::-webkit-scrollbar-thumb,
.mobile-settlement-list::-webkit-scrollbar-thumb {
  background: var(--c-border-md);
  border-radius: 8px;
}
.settlement-no-results {
  display: none;
  padding: 10px;
  color: var(--c-text-3);
  font-size: 13px;
  text-align: center;
}

.mobile-settlement-box {
  padding: 10px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 8px;
}
.mobile-settlement-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 700;
}
.mobile-settlement-head small {
  min-width: 0;
  color: var(--c-text-3);
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-settlement-list {
  max-height: 168px;
  margin-top: 8px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-md) transparent;
}
.mobile-settlement-list .dropdown-item {
  border-radius: 8px;
  color: var(--c-text);
  font-size: 13px;
  padding: 8px 9px;
  white-space: normal;
}
.mobile-settlement-list .dropdown-item small {
  display: block;
  color: var(--c-text-3);
  font-size: 10.5px;
}
.mobile-settlement-list .dropdown-item.active {
  background: var(--c-gold);
  color: #fff;
  font-weight: 700;
}
.mobile-settlement-list .dropdown-item.active small {
  color: rgba(255, 255, 255, 0.78);
}

/* ── Skeleton loading ──────────────────────────────────────────── */
@keyframes skeletonShimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--c-surface-2) 25%, var(--c-surface-3) 50%, var(--c-surface-2) 75%);
  background-size: 800px 100%;
  animation: skeletonShimmer 1.5s infinite linear;
  border-radius: var(--r-sm);
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.w-60 { width: 60%; }
.skeleton-text.w-40 { width: 40%; }
.skeleton-text.w-80 { width: 80%; }
.skeleton-heading { height: 28px; width: 50%; margin-bottom: 12px; }
.skeleton-number { height: 48px; width: 80px; margin-bottom: 8px; }
.skeleton-card { padding: 24px; border-radius: var(--r-xl); }

/* ── Floating contact widget ───────────────────────────────────── */
.floating-contact {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1040;
}
.floating-contact-btn {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--c-gold);
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--c-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.floating-contact-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px var(--c-gold-soft);
}
.floating-contact-popup {
  position: absolute;
  bottom: 62px;
  left: 0;
  width: 280px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-md);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 16px;
  display: none;
}
.floating-contact-popup.open { display: block; }
.floating-contact-popup h6 {
  color: var(--c-text);
  font-size: 14px;
  margin-bottom: 8px;
}
.floating-contact-popup p {
  color: var(--c-text-3);
  font-size: 12px;
  margin-bottom: 8px;
}
.floating-contact-popup a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background var(--t-fast);
}
.floating-contact-popup a:hover { background: var(--c-surface-2); }

/* ── Nav CTA Button «Подать объявление» ────────────────────────── */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--r-sm);
  text-decoration: none;
  border: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18);
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-cta-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.22);
  transform: translateY(-1px);
}
.nav-cta-btn:active { transform: translateY(0); }

/* Auth button (secondary) */
.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--c-surface-2);
  color: var(--c-text-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-sm);
  text-decoration: none;
  border: 1px solid var(--c-border-md);
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-auth-btn:hover {
  background: var(--c-surface-3);
  color: var(--c-text);
  border-color: var(--c-gold);
}

/* User dropdown button */
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--c-gold-dim);
  color: var(--c-gold);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--r-sm);
  border: 1px solid rgba(201, 148, 58, 0.25);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast);
}
.nav-user-btn:hover { background: rgba(201, 148, 58, 0.18); }
.nav-user-btn::after { content: none !important; }

@media (max-width: 575px) {
  .floating-contact { display: none; }
  .nav-cta-btn {
    padding: 7px 10px;
    font-size: 12px;
  }
  .nav-cta-btn i { font-size: 13px; }
}

@media (max-width: 360px) {
  .nav-cta-btn span { display: none; }
}

/* ── Secondary service-grid (4 cards) ─────────────────────────── */
.service-grid-secondary {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 767px) {
  .service-grid-secondary { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Uniform news cards ────────────────────────────────────────── */
.news-card-uniform {
  display: flex !important;
  flex-direction: column;
  min-height: 318px;
}
.news-card-media {
  width: 100%;
  height: 118px;
  overflow: hidden;
  border-radius: var(--r-md);
  margin-bottom: 12px;
  background: var(--c-surface-2);
}
.news-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.news-card-media-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(37,99,235,.76), rgba(20,184,166,.70)),
    url('/static/images/index-hero.jpg') center/cover;
}
.news-card-media-placeholder i {
  font-size: 31px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}
.news-card-media-placeholder-1 {
  background:
    linear-gradient(135deg, rgba(37,99,235,.78), rgba(15,23,42,.84)),
    url('/static/images/index-hero.jpg') center/cover;
}
.news-card-media-placeholder-2 {
  background:
    linear-gradient(135deg, rgba(5,150,105,.78), rgba(15,23,42,.82)),
    url('/static/images/index-hero.jpg') center/cover;
}
.news-card-media-placeholder-3 {
  background:
    linear-gradient(135deg, rgba(220,38,38,.72), rgba(15,23,42,.84)),
    url('/static/images/index-hero.jpg') center/cover;
}
.news-card-title {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.42;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  min-height: 42px;
}
.news-card-excerpt {
  font-size: 13px;
  color: var(--c-text-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.news-list-grid {
  align-items: stretch;
}

.news-page-head {
  max-width: 760px;
}
.news-page-head h1 {
  margin: 0;
  color: var(--c-text);
  font-size: 2rem;
  font-weight: 900;
}
.news-page-head p {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.55;
}
.news-card-modern {
  position: relative;
  display: flex;
  min-height: 300px;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98)),
    linear-gradient(135deg, rgba(37,99,235,.12), rgba(20,184,166,.10));
  border: 1px solid var(--c-border);
  border-top: 4px solid #2563eb;
  border-radius: 8px;
  color: var(--c-text);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.news-card-modern.stagger-item {
  opacity: 1;
  animation: none;
}
.news-card-modern:hover {
  color: var(--c-text);
  border-color: rgba(37,99,235,.24);
  box-shadow: var(--sh-md), var(--sh-gold);
  transform: translateY(-3px);
}
.news-card-accent-1 { border-top-color: #14b8a6; }
.news-card-accent-2 { border-top-color: #0ea5e9; }
.news-card-accent-3 { border-top-color: #22c55e; }
.news-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.news-card-date,
.news-card-source {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
}
.news-card-date {
  color: #1d4ed8;
  background: rgba(37,99,235,.09);
  border: 1px solid rgba(37,99,235,.14);
}
.news-card-source {
  color: #0f766e;
  background: rgba(20,184,166,.11);
}
.news-card-visual {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37,99,235,.18);
}
.news-card-modern .news-card-title {
  min-height: 0;
  margin-bottom: 10px;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-modern .news-card-excerpt {
  color: var(--c-text-2);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--c-gold);
  font-size: 13px;
  font-weight: 900;
}
.news-card-action i {
  transition: transform var(--t-fast);
}
.news-card-modern:hover .news-card-action i {
  transform: translateX(3px);
}
[data-theme="dark"] .news-card-modern {
  background:
    linear-gradient(180deg, rgba(24,34,53,.94), rgba(24,34,53,.98)),
    linear-gradient(135deg, rgba(96,165,250,.16), rgba(45,212,191,.12));
}
[data-theme="dark"] .news-card-date {
  color: #bfdbfe;
  background: rgba(96,165,250,.14);
  border-color: rgba(96,165,250,.24);
}
[data-theme="dark"] .news-card-source {
  color: #99f6e4;
  background: rgba(45,212,191,.13);
}

/* ── Ads empty-state enhanced ──────────────────────────────────── */
.ads-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(37,99,235,.10), rgba(20,184,166,.09)),
    var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  box-shadow: var(--sh-sm);
}
.ads-page-hero h1 {
  margin: 4px 0 6px;
  color: var(--c-text);
  font-size: 30px;
  font-weight: 900;
}
.ads-page-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.55;
}
.ads-form-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}
.ads-form-hint span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: var(--c-gold-dim);
  color: var(--c-gold);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
}
.ads-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ads-guide-grid .ads-helper-card {
  min-height: 132px;
  padding: 14px;
}
.ads-list-card {
  padding: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-gold);
  border-radius: 8px;
  box-shadow: var(--sh-sm);
}
.ads-card-pinned {
  border-left-color: var(--c-gold);
  box-shadow: 0 0 0 1px rgba(240,168,40,.25), var(--sh-sm);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-gold) 5%, var(--c-surface)) 0%, var(--c-surface) 60%);
}
.ads-card-urgent {
  border-left-color: #e63946;
  box-shadow: 0 0 0 1px rgba(230,57,70,.2), var(--sh-sm);
}
.ads-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
}
.ads-vip-pinned {
  background: var(--c-gold-dim);
  color: var(--c-gold);
}
.ads-vip-urgent {
  background: rgba(230,57,70,.12);
  color: #e63946;
}
.ads-empty-state {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}
@media (max-width: 767px) {
  .ads-empty-state { grid-template-columns: 1fr; }
}
.ads-empty-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  background: var(--c-surface);
  border: 2px dashed var(--c-border-md);
  border-radius: var(--r-xl);
  gap: 6px;
}
.ads-empty-icon {
  font-size: 2.5rem;
  color: var(--c-gold);
  margin-bottom: 4px;
}
.ads-empty-cta-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}
.ads-empty-cta-sub {
  font-size: 12.5px;
  color: var(--c-text-3);
}
.ads-empty-benefits {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 20px 24px;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ads-empty-benefits-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 4px;
}
.ads-empty-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ads-empty-benefit-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: var(--c-gold-dim);
  color: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.ads-empty-benefit-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
}
.ads-empty-benefit-desc {
  font-size: 12px;
  color: var(--c-text-3);
  margin-top: 2px;
}

.ads-helper-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 190px;
  padding: 20px;
  background: var(--c-surface);
  border: 1px dashed var(--c-border-md);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--c-text);
  box-shadow: var(--sh-sm);
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.ads-helper-card:hover {
  color: var(--c-text);
  border-color: var(--c-gold-soft);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.ads-helper-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--c-gold-dim);
  color: var(--c-gold);
  font-size: 17px;
}
.ads-helper-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
}
.ads-helper-text {
  font-size: 12.5px;
  color: var(--c-text-3);
  line-height: 1.5;
}
.ads-example-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ads-example-card {
  min-height: 168px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,1)),
    linear-gradient(135deg, rgba(37,99,235,.10), rgba(20,184,166,.08));
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-gold);
  border-radius: 8px;
  box-shadow: var(--sh-sm);
}
.ads-example-card span {
  display: inline-flex;
  padding: 4px 7px;
  margin-bottom: 12px;
  background: var(--c-gold-dim);
  color: var(--c-gold);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}
.ads-example-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 900;
}
.ads-example-card p {
  margin: 0;
  color: var(--c-text-2);
  font-size: 13px;
  line-height: 1.5;
}
[data-theme="dark"] .ads-page-hero,
[data-theme="dark"] .ads-list-card,
[data-theme="dark"] .ads-empty-benefits,
[data-theme="dark"] .ads-helper-card {
  background: var(--c-surface);
}
[data-theme="dark"] .ads-example-card {
  background:
    linear-gradient(180deg, rgba(24,34,53,.94), rgba(24,34,53,.99)),
    linear-gradient(135deg, rgba(96,165,250,.16), rgba(45,212,191,.10));
}

@media (max-width: 991px) {
  .ads-page-hero,
  .ads-empty-state {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .ads-page-hero {
    flex-direction: column;
  }
  .ads-guide-grid,
  .ads-example-list {
    grid-template-columns: 1fr;
  }
}

/* ── Settlements dropdown selector ─────────────────────────────── */
.settlements-selector-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.settlements-select-icon {
  position: absolute;
  left: 14px;
  color: #7c3aed;
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
}
.settlements-select {
  width: 100%;
  max-width: 480px;
  padding: 10px 16px 10px 40px;
  background: var(--c-surface) !important;
  border: 1px solid var(--c-border-md) !important;
  border-radius: var(--r-full) !important;
  color: var(--c-text) !important;
  font-family: var(--font-body) !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.settlements-select:focus {
  outline: none;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* ── Footer CTA button ─────────────────────────────────────────── */
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--c-gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.22);
}
.footer-cta-btn:hover {
  background: var(--c-gold-lt);
  color: #fff;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.28);
}

/* ── Badge: active settlement ──────────────────────────────────── */
.settlement-badge.active {
  border-color: var(--c-gold-soft);
  color: var(--c-gold);
  background: var(--c-gold-dim);
  font-weight: 600;
}

/* ── Home redesign: service portal ─────────────────────────────── */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  margin: -24px calc(-50vw + 50%) 0;
  border-bottom: 1px solid var(--c-border);
}
.home-hero-bg,
.home-hero-overlay {
  position: absolute;
  inset: 0;
}
.home-hero-bg {
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.home-hero:hover .home-hero-bg {
  transform: scale(1.06);
}
.home-hero-overlay {
  background:
    linear-gradient(105deg,
      rgba(6,10,22,.94) 0%,
      rgba(6,10,22,.85) 42%,
      rgba(6,10,22,.48) 68%,
      rgba(6,10,22,.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.38) 100%);
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px 108px;
}
/* Ограничиваем текстовую колонку внутри hero */
.home-hero-inner > * {
  max-width: 660px;
}
.home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.home-hero-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #22c55e; }
  50%       { opacity: .7; box-shadow: 0 0 14px #22c55e, 0 0 4px #22c55e; }
}
.home-hero-title {
  margin: 20px 0 18px;
  color: #f1f5f9;
  font-family: var(--font-body);
  font-size: 58px;
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -.02em;
}
.home-hero-title-accent {
  color: var(--c-gold);
  display: inline;
}
.home-hero-subtitle {
  max-width: 540px;
  margin: 0 0 28px;
  color: #94a3b8;
  font-size: 17px;
  line-height: 1.55;
}
.home-hero-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.home-hero-stat {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}
.home-hero-stat strong {
  font-size: 18px;
  font-weight: 900;
  color: var(--c-gold);
  line-height: 1.1;
}
.home-hero-stat span {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
}
.home-hero-stat-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.12);
  margin: 0 4px;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-primary-service,
.btn-secondary-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  /* Все кнопки — синие по умолчанию */
  background: #2563eb;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(37,99,235,.30);
  transition: background .22s ease, color .22s ease,
              border-color .22s ease, box-shadow .22s ease,
              transform .18s ease;
}
.btn-primary-service:hover,
.btn-secondary-service:hover {
  background: var(--c-yellow);
  color: #0a0f1c;
  border-color: var(--c-yellow);
  box-shadow: 0 8px 28px var(--c-yellow-glow);
  transform: translateY(-2px);
}

[data-theme="dark"] .home-hero-overlay {
  background:
    linear-gradient(105deg,
      rgba(6,10,22,.97) 0%,
      rgba(6,10,22,.88) 42%,
      rgba(6,10,22,.52) 68%,
      rgba(6,10,22,.22) 100%),
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.40) 100%);
}
[data-theme="dark"] .home-hero-kicker {
  background: rgba(96, 165, 250, 0.10);
  border-color: rgba(96, 165, 250, 0.22);
  color: #bfdbfe;
}
[data-theme="dark"] .home-hero-title { color: #f1f5f9; }
[data-theme="dark"] .home-hero-subtitle { color: #94a3b8; }
[data-theme="dark"] .btn-primary-service,
[data-theme="dark"] .btn-secondary-service {
  background: #2563eb;
  color: #fff;
  border-color: transparent;
}
[data-theme="dark"] .btn-primary-service:hover,
[data-theme="dark"] .btn-secondary-service:hover {
  background: var(--c-yellow);
  color: #0a0f1c;
  border-color: var(--c-yellow);
  box-shadow: 0 8px 28px var(--c-yellow-glow);
}

/* ── About page features grid ───────────────────────────────── */
.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.about-feature-item:hover {
  border-color: var(--c-yellow);
  box-shadow: 0 4px 16px rgba(240,180,41,.12);
}
.about-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: var(--c-gold-dim);
  color: var(--c-gold);
  font-size: 16px;
}
.about-feature-item strong {
  display: block;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.about-feature-item p {
  color: var(--c-text-2);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 767px) {
  .about-features-grid { grid-template-columns: 1fr; }
}

/* ── Currency Ticker ─────────────────────────────────────────── */
.currency-ticker-wrap {
  display: flex;
  align-items: stretch;
  height: 42px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  margin: 0 calc(-50vw + 50%);
  overflow: hidden;
  position: relative;
}
.currency-ticker-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--c-gold);
  white-space: nowrap;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
  z-index: 3;
}
.currency-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.currency-ticker-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  /* анимация управляется JS */
}
.ct-block {
  display: inline-flex;
  align-items: center;
}
.ct-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  font-size: 13px;
  cursor: default;
}
.ct-flag  { font-size: 15px; line-height: 1; }
.ct-code  { font-weight: 800; color: var(--c-text); letter-spacing: .04em; font-size: 12px; }
.ct-name  { color: var(--c-text-3); font-size: 11px; }
.ct-value { font-weight: 700; color: var(--c-text); font-size: 13px; }
.ct-change { font-size: 11px; font-weight: 600; }
.ct-up   { color: #16a34a; }
.ct-down { color: #dc2626; }
.ct-flat { color: var(--c-text-3); }
.ct-sep  { color: var(--c-border-md); font-size: 10px; padding: 0 2px; user-select: none; opacity: .5; }

[data-theme="dark"] .ct-up   { color: #4ade80; }
[data-theme="dark"] .ct-down { color: #f87171; }

.home-section {
  margin-top: 48px;
}
.home-section-tight {
  margin-top: 24px;
}
.home-section-last {
  margin-bottom: 8px;
}
.quick-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.quick-service-card {
  display: flex;
  min-height: 142px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text);
  text-decoration: none;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.quick-service-card:hover {
  color: var(--c-text);
  border-color: var(--c-yellow);
  box-shadow: 0 6px 20px rgba(240,180,41,.20);
  transform: translateY(-2px);
}
.quick-service-card:hover .quick-service-title {
  color: var(--c-yellow-dark);
}
.quick-service-card:hover .quick-service-icon {
  background: rgba(240,180,41,.14);
  color: var(--c-yellow-dark);
}
.quick-service-card-primary {
  border-color: rgba(37,99,235,.18);
}
.quick-service-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 19px;
}
.quick-service-transport { background: rgba(37,99,235,.10); color: #2563eb; }
.quick-service-ads { background: rgba(20,184,166,.12); color: #0f766e; }
.quick-service-directory { background: rgba(124,58,237,.10); color: #7c3aed; }
.quick-service-news { background: rgba(239,68,68,.10); color: #dc2626; }
.quick-service-contacts { background: rgba(16,185,129,.12); color: #059669; }
.quick-service-map { background: rgba(14,165,233,.12); color: #0284c7; }
.quick-service-title {
  display: block;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}
.quick-service-text {
  display: block;
  color: var(--c-text-2);
  font-size: 12.5px;
  line-height: 1.35;
}

.home-schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: stretch;
}
.home-context-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--c-text-2);
  font-size: 13px;
}
.home-context-note i { color: var(--c-gold); }
.soft-pill,
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 8px;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 700;
}
.home-bus-list {
  display: grid;
  gap: 8px;
}
.home-bus-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text);
  text-decoration: none;
}
.home-bus-row:hover {
  color: var(--c-text);
  border-color: rgba(37,99,235,.22);
  background: var(--c-surface-2);
}
.home-bus-time {
  color: #0f172a;
  font-size: 25px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.home-bus-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.home-bus-direction {
  overflow: hidden;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-bus-meta {
  color: var(--c-text-2);
  font-size: 12px;
}
.home-bus-count {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(20,184,166,.12);
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.home-bus-count.urgent {
  background: rgba(239,68,68,.10);
  color: #dc2626;
}
.home-weather-card {
  padding: 20px;
  background: linear-gradient(135deg, #ffffff, #eef9fb);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  box-shadow: var(--sh-sm);
}
.home-weather-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
}
.home-weather-main i {
  color: #0284c7;
  font-size: 42px;
}
.home-weather-temp {
  color: var(--c-text);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}
.home-weather-desc {
  margin-top: 4px;
  color: var(--c-text-2);
  font-size: 13px;
}
.home-weather-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--c-text-2);
  font-size: 13px;
}
.home-weather-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-card-grid {
  display: grid;
  gap: 16px;
}
.home-card-grid.three,
.home-card-grid.news {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-ad-card,
.home-news-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text);
  text-decoration: none;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.home-news-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.99)),
    linear-gradient(135deg, rgba(37,99,235,.10), rgba(20,184,166,.08));
  border-top: 4px solid rgba(37,99,235,.78);
}
.home-ad-card:hover,
.home-news-card:hover {
  color: var(--c-text);
  border-color: rgba(37,99,235,.22);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.home-ad-card img,
.home-ad-placeholder,
.home-news-media {
  width: 100%;
  height: 126px;
  border-radius: 8px;
  object-fit: cover;
}
.home-ad-placeholder,
.home-news-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
  color: #2563eb;
  font-size: 28px;
}
.home-news-media-1 { background: linear-gradient(135deg, #e0f2fe, #dcfce7); color: #0284c7; }
.home-news-media-2 { background: linear-gradient(135deg, #ede9fe, #dbeafe); color: #7c3aed; }
.home-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.home-news-meta > span:last-child {
  color: var(--c-text-3);
  font-size: 11.5px;
  font-weight: 800;
}
.home-ad-card strong,
.home-news-card strong {
  color: var(--c-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-news-card strong { -webkit-line-clamp: 3; }
.home-ad-card > span:last-child,
.home-news-card > span:last-child {
  color: var(--c-text-2);
  font-size: 13px;
  line-height: 1.45;
}
.home-news-card > span:last-of-type {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-news-card em {
  margin-top: auto;
  color: var(--c-gold);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}
.home-info-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  box-shadow: var(--sh-sm);
}
.home-info-band h3 {
  margin: 0 0 4px;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 900;
}
.home-info-band p {
  margin: 0;
  color: var(--c-text-2);
  font-size: 14px;
}
.directory-chip-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  box-shadow: var(--sh-sm);
}
.directory-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.directory-chip:hover {
  color: #1d4ed8;
  border-color: rgba(37,99,235,.22);
  background: var(--c-surface-3);
}
.directory-chip i { color: #2563eb; }
.directory-chip span {
  color: var(--c-text-3);
  font-size: 12px;
  font-weight: 700;
}
.empty-service-state {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text-2);
  font-size: 14px;
}
.empty-service-state.compact { min-height: 112px; }
.empty-service-state i {
  color: var(--c-text-3);
  font-size: 28px;
}
.emergency-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: var(--c-surface);
  border: 1px solid rgba(239,68,68,.18);
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  box-shadow: var(--sh-sm);
}
.emergency-panel-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(239,68,68,.10);
  color: #dc2626;
  font-size: 20px;
}
.emergency-panel h2 {
  margin: 4px 0;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 900;
}
.emergency-panel p {
  margin: 0;
  color: var(--c-text-2);
  font-size: 14px;
}
.home-map-shell {
  overflow: hidden;
  height: 360px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  box-shadow: var(--sh-sm);
}
.home-map {
  width: 100%;
  height: 100%;
}

[data-theme="dark"] .home-bus-time {
  color: var(--c-text);
}
[data-theme="dark"] .home-weather-card {
  background: linear-gradient(135deg, var(--c-surface), rgba(45, 212, 191, 0.10));
}
[data-theme="dark"] .soft-pill,
[data-theme="dark"] .badge-soft {
  color: #bfdbfe;
  background: rgba(96, 165, 250, .15);
  border-color: rgba(96, 165, 250, .24);
}
[data-theme="dark"] .home-news-card {
  background:
    linear-gradient(180deg, rgba(24,34,53,.94), rgba(24,34,53,.99)),
    linear-gradient(135deg, rgba(96,165,250,.16), rgba(45,212,191,.10));
}

@media (max-width: 1199px) {
  .home-hero { min-height: 520px; }
  .home-hero-title { font-size: 50px; }
  .home-hero-inner { padding: 90px 36px 96px; }
}
@media (max-width: 991px) {
  .home-schedule-layout { grid-template-columns: 1fr; }
  .home-hero { min-height: 480px; }
  .home-hero-title { font-size: 42px; }
  .home-hero-inner { padding: 80px 28px 88px; }
}
@media (max-width: 767px) {
  .home-hero { min-height: 0; }
  .home-hero-bg { background-position: 68% 40%; }
  .home-hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(6,10,22,.90) 0%,
        rgba(6,10,22,.84) 55%,
        rgba(6,10,22,.74) 100%);
  }
  .home-hero-inner {
    padding: 56px 20px 60px;
  }
  .home-hero-inner > * { max-width: 100%; }
  .home-hero-title {
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -.01em;
  }
  .home-hero-subtitle {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.5;
  }
  .home-hero-stats {
    gap: 6px;
    margin-bottom: 24px;
  }
  .home-hero-stat { padding: 8px 14px; }
  .home-hero-stat strong { font-size: 15px; }
  .home-hero-stat-sep { display: none; }
  .home-hero-actions {
    gap: 8px;
  }
  .home-hero-actions .btn-primary-service {
    width: 100%;
    justify-content: center;
  }
  .home-info-band .btn-gold,
  .emergency-panel .btn-ghost {
    width: 100%;
  }
  .quick-service-grid,
  .home-card-grid.three,
  .home-card-grid.news {
    grid-template-columns: 1fr;
  }
  .quick-service-card {
    min-height: 112px;
  }
  .home-bus-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .home-bus-count {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .home-info-band,
  .emergency-panel {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .home-map-shell {
    height: 300px;
  }
}

/* ══════════════════════════════════════════════════════════════
   VISUAL DEPTH — section panels and alternation
   ══════════════════════════════════════════════════════════════ */
.home-section-panel {
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
}
.home-section-tinted {
  padding: 28px 24px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c-gold) 5%, var(--c-bg));
  border: 1px solid rgba(37,99,235,.08);
}
[data-theme="dark"] .home-section-panel {
  background: var(--c-surface);
}
[data-theme="dark"] .home-section-tinted {
  background: color-mix(in srgb, var(--c-gold) 8%, var(--c-bg));
  border-color: rgba(96,165,250,.12);
}
/* lift inner cards inside panels */
.home-section-panel .card-dashboard {
  box-shadow: var(--sh-md);
}
.home-section-panel .home-news-card,
.home-section-panel .home-ad-card {
  box-shadow: var(--sh-md);
}

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════════════ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.22,1,.36,1),
              transform 0.6s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms !important; }
.reveal-delay-2 { transition-delay: 160ms !important; }
.reveal-delay-3 { transition-delay: 240ms !important; }
/* Cards inside a grid can stagger */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(.22,1,.36,1),
              transform 0.5s cubic-bezier(.22,1,.36,1);
}
.reveal-stagger.is-visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 270ms; }
.reveal-stagger.is-visible > *:nth-child(n+5) { opacity:1; transform:none; transition-delay: 360ms; }

/* ══════════════════════════════════════════════════════════════
   THEME SMOOTH TRANSITION
   ══════════════════════════════════════════════════════════════ */
.theme-transitions-ready { transition: background-color 320ms ease, color 220ms ease !important; }
.theme-transitions-ready .portal-nav { transition: background-color 320ms ease, border-color 280ms ease !important; }
.theme-transitions-ready .portal-footer { transition: background-color 320ms ease !important; }
.theme-transitions-ready .card-dashboard,
.theme-transitions-ready .home-section-panel,
.theme-transitions-ready .home-section-tinted,
.theme-transitions-ready .quick-service-card,
.theme-transitions-ready .home-news-card,
.theme-transitions-ready .home-ad-card,
.theme-transitions-ready .news-card-modern,
.theme-transitions-ready .settlement-dropdown,
.theme-transitions-ready .settlements-main-list {
  transition: background-color 320ms ease, border-color 280ms ease, box-shadow 280ms ease !important;
}

/* ══════════════════════════════════════════════════════════════
   DROPDOWN OPEN ANIMATION
   ══════════════════════════════════════════════════════════════ */
.settlement-dropdown.show,
.settlements-main-list.show {
  animation: dropdownSlideIn 200ms cubic-bezier(.22,1,.36,1) both;
}
@keyframes dropdownSlideIn {
  from { opacity: 0; transform: translateY(-10px) scaleY(.94); transform-origin: top; }
  to   { opacity: 1; transform: translateY(0) scaleY(1); transform-origin: top; }
}

/* ══════════════════════════════════════════════════════════════
   MAIN SETTLEMENT PICKER (replaces <select>)
   ══════════════════════════════════════════════════════════════ */
.settlements-main-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  padding: 13px 18px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-md);
  border-radius: 12px;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  text-align: left;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.settlements-main-btn:focus,
.settlements-main-btn:hover {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px var(--c-gold-dim), var(--sh-sm);
  outline: none;
}
.settlements-main-btn > .bi-geo-alt-fill {
  color: #7c3aed;
  font-size: 16px;
  flex-shrink: 0;
}
.settlements-main-selected {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settlements-main-arrow {
  color: var(--c-text-3);
  font-size: 12px;
  flex-shrink: 0;
  transition: transform var(--t-fast);
}
.settlements-main-btn[aria-expanded="true"] .settlements-main-arrow {
  transform: rotate(180deg);
}
.settlements-main-list {
  max-width: 560px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-md);
  border-radius: 14px;
  box-shadow: var(--sh-lg);
  padding: 8px;
  overflow: hidden;
  z-index: 1055;
}
.settlement-search-shell {
  position: relative;
  z-index: 1055;
}
.settlements-main-list .settlement-options-list {
  max-height: 290px;
}
.settlements-main-list .dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--c-text);
  line-height: 1.3;
  white-space: normal;
}
.settlements-main-list .dropdown-item > .bi {
  color: var(--c-text-3);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.settlements-main-list .dropdown-item small {
  display: block;
  font-size: 11px;
  color: var(--c-text-3);
  margin-top: 1px;
}
.settlements-main-list .dropdown-item:hover:not(.active) {
  background: var(--c-surface-2);
  color: var(--c-gold);
}
.settlements-main-list .dropdown-item:hover:not(.active) > .bi,
.settlements-main-list .dropdown-item:hover:not(.active) small {
  color: var(--c-gold);
  opacity: .7;
}
.settlements-main-list .dropdown-item.active {
  background: var(--c-gold);
  color: #fff;
  font-weight: 600;
}
.settlements-main-list .dropdown-item.active > .bi,
.settlements-main-list .dropdown-item.active small {
  color: rgba(255,255,255,.75);
}
.settlements-main-list .settlement-dropdown-search { padding: 0 0 8px; }
.settlements-main-list .dropdown-divider { border-color: var(--c-border); margin: 4px 0 6px; }
/* Dark mode */
[data-theme="dark"] .settlements-main-btn {
  background: var(--c-surface-2);
}
[data-theme="dark"] .settlements-main-list {
  background: var(--c-surface);
}

/* ══════════════════════════════════════════════════════════════
   IMPROVED BTN-GHOST HOVER + ACTIVE
   ══════════════════════════════════════════════════════════════ */
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}
.btn-ghost:active { transform: translateY(0) scale(.98); }
.btn-gold:active  { transform: translateY(0) scale(.98); }

/* ══════════════════════════════════════════════════════════════
   ENHANCED NEWS CARDS on homepage
   ══════════════════════════════════════════════════════════════ */
.home-news-card {
  min-height: 280px;
  border-radius: 12px;
  box-shadow: var(--sh-sm);
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.home-news-card:hover {
  box-shadow: var(--sh-md), 0 0 0 1px rgba(37,99,235,.15);
  transform: translateY(-4px);
}
.home-news-card .home-news-media {
  height: 112px;
  border-radius: 0;
  flex-shrink: 0;
  font-size: 32px;
}
.home-news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
  gap: 8px;
}
.home-news-card .home-news-meta {
  margin-bottom: 0;
}
.home-news-card strong {
  font-size: 14.5px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
}
/* Excerpt — now inside .home-news-card-body, so drop the direct-child > */
.home-news-card-body > span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--c-text-2);
  font-size: 12.5px;
  line-height: 1.5;
}
.home-news-card em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--c-gold-dim);
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  margin-top: auto;
  color: var(--c-gold);
  transition: background var(--t-fast), color var(--t-fast);
}
.home-news-card em::after {
  content: '\F138';
  font-family: 'bootstrap-icons';
  font-size: 13px;
  font-style: normal;
}
.home-news-card:hover em {
  background: var(--c-gold);
  color: #fff;
}
/* Remove top border since media image now fills the top */
.home-news-card {
  border-top: none !important;
}
/* Accent top stripe variants */
.home-news-card:nth-child(1) .home-news-media { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.home-news-card:nth-child(2) .home-news-media { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.home-news-card:nth-child(3) .home-news-media { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #5b21b6; }
[data-theme="dark"] .home-news-card:nth-child(1) .home-news-media { background: linear-gradient(135deg, rgba(37,99,235,.22), rgba(30,64,175,.18)); color: #93c5fd; }
[data-theme="dark"] .home-news-card:nth-child(2) .home-news-media { background: linear-gradient(135deg, rgba(20,184,166,.18), rgba(13,148,136,.14)); color: #5eead4; }
[data-theme="dark"] .home-news-card:nth-child(3) .home-news-media { background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(109,40,217,.14)); color: #c4b5fd; }

/* ══════════════════════════════════════════════════════════════
   NAV SETTLEMENT DROPDOWN — improved width and item hover
   ══════════════════════════════════════════════════════════════ */
.settlement-dropdown {
  width: 320px;
  max-height: 420px;
}
.settlement-options-list {
  max-height: 290px;
}
.settlement-dropdown .dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.settlement-dropdown .dropdown-item .bi-geo-alt {
  color: var(--c-text-3);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
}
.settlement-dropdown .dropdown-item:hover .bi-geo-alt { color: var(--c-gold); }
.settlement-dropdown .dropdown-item.active .bi-geo-alt { color: rgba(255,255,255,.8); }

/* ══════════════════════════════════════════════════════════════
   AD CARDS — stronger hover
   ══════════════════════════════════════════════════════════════ */
.home-ad-card:hover {
  box-shadow: var(--sh-md), 0 0 0 1px rgba(37,99,235,.12);
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.2);
}
.ads-list-card {
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.ads-list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

/* ══════════════════════════════════════════════════════════════
   QUICK SERVICE CARDS — hover lift
   ══════════════════════════════════════════════════════════════ */
.quick-service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

/* ══════════════════════════════════════════════════════════════
   DARK THEME — BUS SCHEDULE CONTRAST FIX
   ══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .home-bus-row {
  background: var(--c-surface-2);
  border-color: var(--c-border-md);
}
[data-theme="dark"] .home-bus-row:hover {
  background: var(--c-surface-3);
  border-color: rgba(96,165,250,.25);
}
[data-theme="dark"] .home-bus-time {
  color: var(--c-text);
}
[data-theme="dark"] .home-bus-direction {
  color: var(--c-text);
}
[data-theme="dark"] .home-bus-meta {
  color: var(--c-text-3);
}
[data-theme="dark"] .home-bus-count {
  background: rgba(45,212,191,.18);
  color: #2dd4bf;
}
[data-theme="dark"] .home-bus-count.urgent {
  background: rgba(248,113,113,.18);
  color: #f87171;
}
[data-theme="dark"] .home-weather-card {
  background: linear-gradient(135deg, var(--c-surface-2), rgba(45,212,191,.08));
}
[data-theme="dark"] .home-context-note {
  background: rgba(96,165,250,.10);
  color: var(--c-text-2);
}
/* Dark theme: section panels */
[data-theme="dark"] .home-section-panel {
  background: var(--c-surface);
  border-color: var(--c-border-md);
  box-shadow: var(--sh-md);
}
[data-theme="dark"] .home-section-tinted {
  background: color-mix(in srgb, var(--c-gold) 10%, var(--c-bg));
  border-color: rgba(96,165,250,.15);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER — darker, denser, richer
   ══════════════════════════════════════════════════════════════ */
.portal-footer {
  background: #0f172a;
  border-top: none;
  margin-top: var(--sp-8);
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-6);
}
.portal-footer .footer-desc,
.portal-footer .footer-copy {
  color: #94a3b8;
}
.portal-footer .footer-col-title {
  color: #64748b;
}
.portal-footer .footer-links a {
  color: #94a3b8;
}
.portal-footer .footer-links a:hover {
  color: #60a5fa;
}
.portal-footer .footer-bottom {
  border-top-color: rgba(255,255,255,.08);
}
.portal-footer .footer-meta a {
  color: #64748b;
}
.portal-footer .footer-meta a:hover {
  color: #94a3b8;
}
[data-theme="dark"] .portal-footer {
  background: #070c14;
}

/* ══════════════════════════════════════════════════════════════
   SERVICE CARDS — richer visual, larger icon, arrow hint
   ══════════════════════════════════════════════════════════════ */
.quick-service-card {
  min-height: 160px;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.quick-service-card::after {
  content: '\F135';       /* bi-arrow-right */
  font-family: 'bootstrap-icons';
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 16px;
  color: var(--c-gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.quick-service-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.quick-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 4px;
}
.quick-service-title {
  font-size: 15px;
}
.quick-service-card:hover .quick-service-title {
  color: var(--c-gold);
}

/* ══════════════════════════════════════════════════════════════
   SECTION HEADINGS — stronger visual
   ══════════════════════════════════════════════════════════════ */
.section-heading {
  font-size: 26px;
  font-weight: 900;
  color: var(--c-text);
  margin: 4px 0 0;
  line-height: 1.2;
}
.section-heading-row {
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════════
   HOME NEWS CARDS on /news page — improved accent colors
   ══════════════════════════════════════════════════════════════ */
.news-card-modern {
  border-radius: 12px;
}
.news-card-accent-0 { border-top-color: #2563eb; }
.news-card-accent-1 { border-top-color: #14b8a6; }
.news-card-accent-2 { border-top-color: #0ea5e9; }
.news-card-accent-3 { border-top-color: #22c55e; }
[data-theme="dark"] .news-card-accent-0 { border-top-color: #3b82f6; }
[data-theme="dark"] .news-card-accent-1 { border-top-color: #2dd4bf; }
[data-theme="dark"] .news-card-accent-2 { border-top-color: #38bdf8; }
[data-theme="dark"] .news-card-accent-3 { border-top-color: #4ade80; }

/* ══════════════════════════════════════════════════════════════
   NEWS DETAIL PAGE — cleaner layout
   ══════════════════════════════════════════════════════════════ */
.news-detail-card {
  padding: 32px;
  border-radius: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
}
.news-detail-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--c-gold);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.news-detail-source-btn:hover {
  color: #fff;
  background: var(--c-gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--c-gold-glow);
}
.news-detail-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: var(--c-surface-2);
  border-radius: 10px;
  border-left: 3px solid var(--c-gold);
  color: var(--c-text-2);
  font-size: 13px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   SCHEDULE PAGE dark — bus rows
   ══════════════════════════════════════════════════════════════ */
[data-theme="dark"] .bus-row {
  background: var(--c-surface-2);
  border-bottom-color: var(--c-border);
}
[data-theme="dark"] .bus-row:hover {
  background: var(--c-surface-3);
}
[data-theme="dark"] .bus-time-big {
  color: var(--c-text);
}
[data-theme="dark"] .bus-row-urgent {
  background: rgba(96,165,250,.10);
}
[data-theme="dark"] .bus-countdown {
  background: rgba(45,212,191,.18);
  color: #2dd4bf;
}
[data-theme="dark"] .bus-countdown.urgent {
  background: rgba(248,113,113,.18);
  color: #f87171;
}
[data-theme="dark"] .card-dashboard {
  background: var(--c-surface);
  border-color: var(--c-border-md);
}

/* ══════════════════════════════════════════════════════════════
   VISUAL DENSITY — home sections below hero
   ══════════════════════════════════════════════════════════════ */
.home-section {
  margin-top: 32px;
}
.home-section + .home-section {
  margin-top: 28px;
}
.home-section-panel,
.home-section-tinted {
  margin-top: 28px;
}
/* decorative accent line on section labels */
.section-label {
  position: relative;
  padding-left: 10px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  background: var(--c-gold);
  border-radius: 2px;
}
/* emergency accent panel */
.emergency-panel {
  border-left: 4px solid #ef4444;
}
[data-theme="dark"] .emergency-panel {
  background: color-mix(in srgb, #ef4444 8%, var(--c-surface));
  border-left-color: #f87171;
}

/* ══════════════════════════════════════════════════════════════
   FINAL PRODUCT POLISH — dense service portal composition
   ══════════════════════════════════════════════════════════════ */
.home-section {
  position: relative;
}

.home-section-panel,
.home-section-tinted,
.home-news-showcase {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 44px max(18px, calc((100vw - 1140px) / 2));
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}
.home-section-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.92)),
    linear-gradient(135deg, rgba(37,99,235,.07), rgba(20,184,166,.05));
  border-top: 1px solid rgba(37,99,235,.08);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.home-section-tinted {
  background:
    linear-gradient(135deg, rgba(37,99,235,.075), rgba(20,184,166,.06)),
    var(--c-bg);
  border-top: 1px solid rgba(37,99,235,.08);
  border-bottom: 1px solid rgba(15,23,42,.05);
}
.section-subtitle {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.55;
}
.section-heading-row {
  gap: 18px;
  align-items: flex-end;
}

.quick-service-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.quick-service-card {
  min-height: 174px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.98)),
    linear-gradient(135deg, rgba(37,99,235,.10), rgba(20,184,166,.07));
  border: 1px solid rgba(37,99,235,.10);
  box-shadow: 0 10px 28px rgba(15,23,42,.07);
}
.quick-service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-lt));
  opacity: .72;
}
.quick-service-card:hover {
  border-color: rgba(37,99,235,.26);
  box-shadow: 0 16px 34px rgba(15,23,42,.11);
}
.quick-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.48), 0 10px 22px rgba(15,23,42,.08);
}
.quick-service-title {
  font-size: 15.5px;
  font-weight: 900;
}
.quick-service-text {
  max-width: 150px;
  font-size: 12.5px;
}

.home-schedule-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
}
.home-schedule-layout > .card-dashboard {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.99)),
    linear-gradient(135deg, rgba(37,99,235,.08), rgba(20,184,166,.05));
  border-color: rgba(37,99,235,.10);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.home-bus-row {
  background:
    linear-gradient(180deg, rgba(248,250,252,.94), rgba(255,255,255,.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}

.home-weather-card {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 6%, rgba(20,184,166,.26), transparent 32%),
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.20), transparent 34%),
    linear-gradient(145deg, #f8fbff, #eaf7f7 58%, #eef5ff);
  border: 1px solid rgba(37,99,235,.13);
  box-shadow: 0 14px 34px rgba(15,23,42,.09);
}
.home-weather-card::after {
  content: '';
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,.48);
  border-radius: 50%;
}
.home-weather-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.home-weather-head strong {
  display: block;
  margin-top: 5px;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 900;
}
.home-weather-badge {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.70);
  color: #0f766e;
  border: 1px solid rgba(20,184,166,.18);
  font-size: 11px;
  font-weight: 800;
}
.home-weather-main {
  position: relative;
  z-index: 1;
  margin: 26px 0 20px;
}
.home-weather-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  box-shadow: 0 18px 32px rgba(37,99,235,.22);
}
.home-weather-icon i {
  color: #fff;
  font-size: 38px;
}
.home-weather-temp {
  font-size: 52px;
  letter-spacing: 0;
}
.home-weather-desc {
  max-width: 190px;
  font-size: 14px;
  font-weight: 700;
}
.home-weather-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}
.home-weather-facts span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(37,99,235,.08);
}
.home-weather-facts i {
  grid-row: span 2;
  color: #2563eb;
  font-size: 18px;
}
.home-weather-facts small {
  color: var(--c-text-3);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.home-weather-facts b {
  min-width: 0;
  overflow: hidden;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-showcase {
  background:
    radial-gradient(circle at 12% 8%, rgba(37,99,235,.13), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(20,184,166,.12), transparent 30%),
    linear-gradient(180deg, #f8fbff, #eef6f7);
}
.home-news-card {
  min-height: 340px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.98)),
    linear-gradient(135deg, rgba(37,99,235,.10), rgba(20,184,166,.08));
  border: 1px solid rgba(37,99,235,.12);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.home-news-card:hover {
  border-color: rgba(37,99,235,.28);
  box-shadow: 0 20px 42px rgba(15,23,42,.13);
}
.home-news-card .home-news-media {
  position: relative;
  height: 132px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
  color: #fff;
}
.home-news-card .home-news-media span {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(15,23,42,.22);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.home-news-card .home-news-media i {
  font-size: 34px;
  opacity: .92;
}
.home-news-card:nth-child(1) .home-news-media { background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; }
.home-news-card:nth-child(2) .home-news-media { background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; }
.home-news-card:nth-child(3) .home-news-media { background: linear-gradient(135deg, #334155, #2563eb); color: #fff; }
.home-news-card-body {
  padding: 16px;
  gap: 10px;
}
.home-news-card strong {
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 3;
}
.home-news-card-body > span {
  font-size: 13.5px;
}
.home-news-card em {
  min-height: 38px;
  justify-content: center;
  width: 100%;
}

.home-map-shell {
  border-radius: 8px;
  border-color: rgba(37,99,235,.12);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.news-detail-card,
.news-detail-disclaimer,
.news-detail-source-btn,
.ads-page-hero,
.ads-list-card,
.ads-example-card,
.news-card-modern,
.settlements-main-btn,
.settlements-main-list,
.card-dashboard {
  border-radius: 8px;
}

[data-theme="dark"] .home-section-panel {
  background:
    linear-gradient(180deg, rgba(24,34,53,.82), rgba(24,34,53,.92)),
    linear-gradient(135deg, rgba(96,165,250,.10), rgba(45,212,191,.06));
  border-top-color: rgba(96,165,250,.12);
  border-bottom-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .home-section-tinted,
[data-theme="dark"] .home-news-showcase {
  background:
    radial-gradient(circle at 12% 8%, rgba(96,165,250,.13), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(45,212,191,.10), transparent 30%),
    linear-gradient(180deg, #101827, #132033);
  border-top-color: rgba(96,165,250,.12);
  border-bottom-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .quick-service-card,
[data-theme="dark"] .home-news-card,
[data-theme="dark"] .home-schedule-layout > .card-dashboard {
  background:
    linear-gradient(180deg, rgba(24,34,53,.92), rgba(24,34,53,.98)),
    linear-gradient(135deg, rgba(96,165,250,.12), rgba(45,212,191,.07));
  border-color: rgba(255,255,255,.09);
  box-shadow: 0 14px 34px rgba(0,0,0,.26);
}
[data-theme="dark"] .home-weather-card {
  background:
    radial-gradient(circle at 88% 6%, rgba(45,212,191,.20), transparent 34%),
    radial-gradient(circle at 12% 0%, rgba(96,165,250,.22), transparent 34%),
    linear-gradient(145deg, #182235, #16253a 58%, #202c42);
  border-color: rgba(96,165,250,.16);
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
}
[data-theme="dark"] .home-weather-card::after {
  background: rgba(255,255,255,.05);
}
[data-theme="dark"] .home-weather-badge,
[data-theme="dark"] .home-weather-facts span {
  background: rgba(15,23,42,.34);
  border-color: rgba(255,255,255,.09);
}
[data-theme="dark"] .home-weather-facts i {
  color: #60a5fa;
}
[data-theme="dark"] .home-bus-row {
  background: linear-gradient(180deg, rgba(32,44,66,.95), rgba(24,34,53,.98));
  box-shadow: none;
}
[data-theme="dark"] .home-news-card:nth-child(1) .home-news-media { background: linear-gradient(135deg, #1d4ed8, #0369a1); color: #fff; }
[data-theme="dark"] .home-news-card:nth-child(2) .home-news-media { background: linear-gradient(135deg, #115e59, #0f766e); color: #fff; }
[data-theme="dark"] .home-news-card:nth-child(3) .home-news-media { background: linear-gradient(135deg, #1e293b, #1d4ed8); color: #fff; }

@media (max-width: 1199px) {
  .quick-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .home-section-panel,
  .home-section-tinted,
  .home-news-showcase {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .home-schedule-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .quick-service-grid {
    grid-template-columns: 1fr;
  }
  .quick-service-card {
    min-height: 132px;
  }
  .home-weather-facts {
    grid-template-columns: 1fr;
  }
  .home-news-card {
    min-height: 320px;
  }
}

.reveal-on-scroll,
.reveal-stagger > * {
  opacity: .96;
  transform: translateY(10px);
}

.reveal-on-scroll.is-visible,
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1399px) and (min-width: 992px) {
  .brand-name {
    display: none !important;
  }
  .nav-inner {
    gap: 8px;
  }
  .nav-links .nav-link {
    padding-inline: 4px;
    font-size: 12.5px;
  }
  .nav-settlement-btn {
    max-width: 128px;
  }
  .nav-auth-btn,
  .nav-cta-btn {
    padding-inline: 10px;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .nav-links li:nth-child(5),
  .nav-links li:nth-child(9) {
    display: none;
  }
}

/* ── Final product polish: service portal concept ─────────────── */
.btn-primary-service,
.btn-secondary-service,
.btn-gold,
.btn-ghost,
.nav-cta-btn,
.nav-auth-btn {
  border-radius: 8px;
}

.home-hero {
  min-height: 620px;
}
.home-hero-overlay {
  background:
    linear-gradient(105deg,
      rgba(4,10,22,.96) 0%,
      rgba(4,10,22,.88) 45%,
      rgba(4,10,22,.58) 72%,
      rgba(4,10,22,.30) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.44));
}
.home-hero-inner {
  padding: 88px 48px 96px;
}
.home-hero-inner > * {
  max-width: none;
}
.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(300px, 380px);
  gap: 46px;
  align-items: center;
}
.home-hero-copy {
  max-width: 720px;
}
.home-hero-title {
  max-width: 720px;
  margin-bottom: 16px;
}
.home-hero-subtitle {
  max-width: 620px;
  margin-bottom: 20px;
  color: rgba(226,232,240,.86);
}
.home-global-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 670px;
  min-height: 56px;
  margin: 0 0 22px;
  padding: 6px 6px 6px 16px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}
.home-global-search i {
  color: #bfdbfe;
  font-size: 18px;
}
.home-global-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}
.home-global-search input::placeholder {
  color: rgba(226,232,240,.74);
}
.home-global-search button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0b429, #f59e0b);
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  transition: transform var(--t-base), filter var(--t-base);
}
.home-global-search button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.home-hero-actions .btn-primary-service,
.home-hero-actions .btn-secondary-service {
  min-height: 50px;
}

.home-today-panel {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 4%, rgba(20,184,166,.30), transparent 30%),
    linear-gradient(155deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  color: #fff;
  backdrop-filter: blur(18px);
}
.home-today-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 3px solid rgba(240,180,41,.82);
  pointer-events: none;
}
.home-today-head {
  position: relative;
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}
.home-today-head span {
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.home-today-head strong {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}
.home-today-route {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(15,23,42,.34);
  color: #fff;
  text-decoration: none;
  transition: transform var(--t-base), background var(--t-base);
}
.home-today-route:hover {
  background: rgba(15,23,42,.46);
  color: #fff;
  transform: translateY(-2px);
}
.home-today-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
}
.home-today-route small,
.home-today-weather small {
  display: block;
  color: rgba(226,232,240,.72);
  font-size: 11px;
  font-weight: 800;
}
.home-today-route b {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.home-today-weather {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
}
.home-today-weather > i {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.16);
  color: #fde68a;
  font-size: 26px;
}
.home-today-weather b {
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}
.home-today-weather-meta {
  grid-column: 1 / -1;
  color: rgba(226,232,240,.76);
  font-size: 12px;
  font-weight: 700;
}
.home-today-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.home-today-links a {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.10);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background var(--t-base), transform var(--t-base);
}
.home-today-links a:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  transform: translateY(-1px);
}
.home-today-panel p {
  position: relative;
  margin: 0;
  color: rgba(226,232,240,.76);
  font-size: 13px;
  line-height: 1.5;
}

.currency-ticker-wrap {
  margin-top: 0;
  border-color: rgba(37,99,235,.10);
  box-shadow: 0 8px 28px rgba(15,23,42,.06);
}
.quick-service-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,1)),
    linear-gradient(135deg, rgba(37,99,235,.10), rgba(20,184,166,.08));
}
.quick-service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #14b8a6, #f0b429);
  opacity: .78;
}
.quick-service-card-primary {
  box-shadow: 0 16px 34px rgba(15,23,42,.09);
}
.quick-service-icon {
  width: 46px;
  height: 46px;
  font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.quick-service-title {
  font-size: 15px;
}

.home-partner-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.16), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(240,180,41,.18), transparent 34%),
    linear-gradient(135deg, #f8fbff, #eef8f5);
  box-shadow: 0 18px 42px rgba(15,23,42,.08);
}
.home-partner-copy h2 {
  margin: 6px 0 8px;
  color: var(--c-text);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}
.home-partner-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.55;
}
.home-partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.home-news-scope-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.home-news-scope-pill {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.66);
  color: var(--c-text);
  text-decoration: none;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.home-news-scope-pill:hover,
.home-news-scope-pill.has-items:hover {
  color: var(--c-text);
  border-color: rgba(37,99,235,.28);
  box-shadow: 0 12px 28px rgba(15,23,42,.09);
  transform: translateY(-2px);
}
.home-news-scope-pill > i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(20,184,166,.12));
  color: #2563eb;
}
.home-news-scope-pill b,
.home-news-scope-pill small {
  display: block;
}
.home-news-scope-pill b {
  font-size: 13px;
  font-weight: 900;
}
.home-news-scope-pill small {
  overflow: hidden;
  color: var(--c-text-2);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-news-scope-pill em {
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--c-gold-dim);
  color: var(--c-gold);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}
.home-card-grid.news {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.home-news-card {
  min-height: 358px;
}
.home-news-card .home-news-media {
  height: 128px;
}
.home-news-card-world .home-news-media {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}
.home-news-card-russia .home-news-media {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.home-news-card-district .home-news-media {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}
.home-news-card-useful .home-news-media {
  background: linear-gradient(135deg, #334155, #2563eb);
}
.home-news-card .home-news-media,
.home-news-card .home-news-media span {
  color: #fff;
}

.news-scope-filter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.news-scope-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-surface);
  color: var(--c-text-2);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-base);
}
.news-scope-filter-pill:hover,
.news-scope-filter-pill.active {
  border-color: rgba(37,99,235,.28);
  background: var(--c-gold-dim);
  color: var(--c-gold);
  transform: translateY(-1px);
}
.news-scope-filter-pill em {
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(37,99,235,.10);
  font-size: 11px;
  font-style: normal;
}

.ads-business-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid rgba(20,184,166,.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(20,184,166,.15), transparent 30%),
    linear-gradient(135deg, #f8fbff, #effcf8);
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.ads-business-strip h2 {
  margin: 4px 0 6px;
  color: var(--c-text);
  font-size: 22px;
  font-weight: 900;
}
.ads-business-strip p {
  margin: 0;
  color: var(--c-text-2);
  font-size: 14px;
}

.advertising-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 34px;
  border: 1px solid rgba(37,99,235,.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.18), transparent 34%),
    radial-gradient(circle at 86% 6%, rgba(20,184,166,.16), transparent 34%),
    linear-gradient(135deg, #f8fbff, #edf7fb);
  box-shadow: 0 18px 42px rgba(15,23,42,.08);
}
.advertising-hero h1 {
  max-width: 760px;
  margin: 6px 0 10px;
  color: var(--c-text);
  font-size: 38px;
  font-weight: 950;
  line-height: 1.12;
}
.advertising-hero p {
  max-width: 740px;
  margin: 0;
  color: var(--c-text-2);
  font-size: 15px;
  line-height: 1.6;
}
.advertising-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.advertising-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,1)),
    linear-gradient(135deg, rgba(37,99,235,.08), rgba(20,184,166,.06));
  box-shadow: 0 14px 34px rgba(15,23,42,.07);
}
.advertising-card-main {
  background:
    radial-gradient(circle at 96% 0%, rgba(240,180,41,.20), transparent 34%),
    linear-gradient(135deg, #fff, #eef8f5);
}
.advertising-card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  font-size: 22px;
}
.advertising-card-label {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--c-gold-dim);
  color: var(--c-gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.advertising-card h2 {
  margin: 0;
  color: var(--c-text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.18;
}
.advertising-card p,
.advertising-card li {
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.5;
}
.advertising-card p {
  margin: 0;
}
.advertising-card ul {
  margin: auto 0 0;
  padding-left: 18px;
}
.advertising-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(240,180,41,.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(240,180,41,.18), transparent 30%),
    var(--c-surface);
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.advertising-steps h2 {
  margin: 4px 0 8px;
  color: var(--c-text);
  font-size: 24px;
  font-weight: 900;
}
.advertising-steps p {
  margin: 0;
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.55;
}
.advertising-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.advertising-step-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-surface-2);
  color: var(--c-text-2);
  font-size: 12px;
  font-weight: 800;
}
.advertising-step-list b {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--c-gold);
  color: #fff;
  font-size: 12px;
}

.mobile-bottom-nav {
  display: none;
}

[data-theme="dark"] .home-global-search,
[data-theme="dark"] .home-today-panel {
  border-color: rgba(255,255,255,.14);
}
[data-theme="dark"] .quick-service-card,
[data-theme="dark"] .home-news-scope-pill,
[data-theme="dark"] .news-scope-filter-pill,
[data-theme="dark"] .advertising-card {
  background:
    linear-gradient(180deg, rgba(24,34,53,.94), rgba(24,34,53,.99)),
    linear-gradient(135deg, rgba(96,165,250,.10), rgba(45,212,191,.06));
  border-color: rgba(255,255,255,.09);
}
[data-theme="dark"] .home-partner-band,
[data-theme="dark"] .ads-business-strip,
[data-theme="dark"] .advertising-hero,
[data-theme="dark"] .advertising-steps {
  background:
    radial-gradient(circle at 12% 0%, rgba(96,165,250,.16), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(45,212,191,.10), transparent 32%),
    linear-gradient(135deg, #162235, #111827);
  border-color: rgba(255,255,255,.09);
  box-shadow: 0 18px 42px rgba(0,0,0,.26);
}
[data-theme="dark"] .home-news-scope-pill:hover,
[data-theme="dark"] .news-scope-filter-pill:hover,
[data-theme="dark"] .news-scope-filter-pill.active {
  background: rgba(96,165,250,.14);
  border-color: rgba(96,165,250,.28);
}
[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(17,24,39,.92);
  border-color: rgba(255,255,255,.10);
}

@media (max-width: 1199px) {
  .home-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-today-panel {
    max-width: 680px;
  }
  .home-card-grid.news,
  .home-news-scope-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .advertising-grid {
    grid-template-columns: 1fr;
  }
  .advertising-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .home-hero {
    min-height: 0;
  }
  .home-hero-inner {
    padding: 64px 24px 72px;
  }
  .home-hero-title {
    font-size: 42px;
  }
  .home-partner-band,
  .ads-business-strip,
  .advertising-hero {
    grid-template-columns: 1fr;
  }
  .home-partner-actions {
    justify-content: flex-start;
  }
  .advertising-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 76px;
  }
  .home-hero-inner {
    padding: 48px 16px 56px;
  }
  .home-hero-title {
    font-size: 34px;
    line-height: 1.08;
  }
  .home-hero-subtitle {
    font-size: 15px;
  }
  .home-global-search {
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 12px;
  }
  .home-global-search button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .home-hero-stats {
    gap: 8px;
  }
  .home-hero-stat {
    flex: 1 1 140px;
    border-radius: 8px;
  }
  .home-today-panel,
  .home-partner-band,
  .ads-business-strip,
  .advertising-hero,
  .advertising-steps {
    padding: 18px;
  }
  .home-today-links,
  .home-card-grid.news,
  .home-news-scope-row,
  .news-scope-filter,
  .advertising-step-list {
    grid-template-columns: 1fr;
  }
  .home-news-card {
    min-height: 320px;
  }
  .advertising-hero h1 {
    font-size: 28px;
  }
  .advertising-card {
    min-height: 0;
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1200;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(37,99,235,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 40px rgba(15,23,42,.18);
    backdrop-filter: blur(16px);
  }
  .mobile-bottom-nav a {
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 48px;
    border-radius: 8px;
    color: var(--c-text-2);
    font-size: 10.5px;
    font-weight: 850;
    text-decoration: none;
  }
  .mobile-bottom-nav a i {
    font-size: 18px;
  }
  .mobile-bottom-nav a.active {
    background: var(--c-gold-dim);
    color: var(--c-gold);
  }
  .floating-contact {
    bottom: 90px;
  }
}
