/* phase4-shared.css — Shared styles for ALL pages */
/* Split from phase4.css on 2026-02-14 */
/* DO NOT add index-specific rules here */

/* Phase 4 Design Improvements - rb-office.ru */
/* This file loads AFTER rb-office.css to override and enhance */

.dropdown-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(10px) !important;
  transition: all 0.3s ease !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 9999 !important;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown.active > .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.dropdown-menu {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
  padding: 12px 0 !important;
  min-width: 260px !important;
}

.dropdown-link,
.dropdown-menu a {
  color: #1e293b !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: all 0.2s ease !important;
}

.dropdown-link:hover,
.dropdown-menu a:hover {
  background: #f0f7ff !important;
  color: #2563eb !important;
  padding-left: 24px !important;
}

.dropdown-desc {
  color: #64748b !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.dropdown-title {
  color: #1e293b !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.dropdown-divider {
  background: rgba(0,0,0,0.08) !important;
}

.btn-primary,
.btn-secondary,
.cta-btn,
a.btn {
  transition: all 0.3s ease !important;
}

.btn-primary:hover,
.cta-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(37,99,235,0.4) !important;
}

.cta-section,
section.cta,
.ready-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: white !important;
  border: none !important;
}

.cta-section h2,
.cta-section h3,
.ready-section h2,
.ready-section h3,
section.cta h2,
section.cta h3 {
  color: white !important;
}

.cta-section p,
.ready-section p,
section.cta p {
  color: #94a3b8 !important;
}

footer, .footer {
  background: #070b14 !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}

footer a:hover, .footer a:hover {
  color: #60a5fa !important;
}

.comparison-col.highlight,
.comparison-col.featured {
  border: 2px solid #2563eb !important;
  box-shadow: 0 10px 40px rgba(37,99,235,0.15) !important;
}

.blog-card, .article-card {
  border: 1px solid rgba(0,0,0,0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.cta-section, .cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  padding: 60px 0 !important;
  margin-bottom: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

.cta-section h2, .cta h2, .cta-section h3, .cta h3 {
  color: #ffffff !important;
}

.cta-section p, .cta p {
  color: #cbd5e1 !important;
}

.btn-primary, .btn-cta, a.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 32px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.btn-primary:hover, .btn-cta:hover, a.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(59,130,246,0.4) !important;
}

.btn-secondary, .btn-outline, a.btn-secondary {
  background: transparent !important;
  color: #1e293b !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
  border-radius: 12px !important;
  padding: 12px 30px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.btn-secondary:hover, .btn-outline:hover, a.btn-secondary:hover {
  background: rgba(0,0,0,0.08) !important;
  border-color: rgba(255,255,255,0.5) !important;
  transform: translateY(-2px) !important;
}

section h2 {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.hero h1, .hero h2, footer h3, footer h4 {
  color: #ffffff !important;
}

.screenshot-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.screenshot-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

footer {
  background: #0a1628 !important;
  color: #94a3b8 !important;
}

footer h3, footer h4, footer strong {
  color: #1e293b !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.05em !important;
}

footer a {
  color: #94a3b8 !important;
  transition: color 0.2s ease !important;
}

footer a:hover {
  color: #60a5fa !important;
}

.blog-card, .blog-article, .article-card {
  border: 1px solid rgba(0,0,0,0.08) !important;
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}

.team-section {
  padding: 80px 0 !important;
  background: #f8fafc !important;
}

.team-section .section-header h2 {
  color: #0f172a !important;
  font-size: 2rem !important;
  margin-bottom: 16px !important;
}

.team-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 32px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr !important; }
}

.team-card {
  background: #fff !important;
  border-radius: 16px !important;
  padding: 32px 24px !important;
  text-align: center !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  border: 1px solid #e2e8f0 !important;
}

.team-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important;
}

.team-avatar {
  width: 150px !important;
  height: 180px !important;
  margin: 0 auto 20px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 3px solid #e2e8f0 !important;
  background: #f1f5f9 !important;
}

.team-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}

.team-name {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 6px !important;
}

.team-role {
  font-size: 0.9rem !important;
  color: #3b82f6 !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

.team-desc {
  font-size: 0.85rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin-bottom: 16px !important;
}

.team-logos {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  justify-content: center !important;
}

.team-logos .cbadge {
  display: inline-block !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-size: 0.7rem !important;
  color: #fff !important;
  font-weight: 500 !important;
}

.partners-section {
  padding: 60px 0 !important;
}

.partners-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  justify-content: center !important;
  align-items: center !important;
}

.partners-grid a, .partners-grid .partner-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 24px !important;
  background: #fff !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.3s ease !important;
  min-width: 140px !important;
}

.partners-grid a:hover, .partners-grid .partner-logo:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 15px rgba(59,130,246,0.15) !important;
  transform: translateY(-2px) !important;
}

.partners-grid img {
  max-height: 40px !important;
  width: auto !important;
  filter: none !important;
}

.dark-card, .dark- .card {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
  color: #1e293b !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
}

.section-header h2, .section-title h2 {
  color: #0f172a !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
}

.section-header p, .section-title p {
  color: #64748b !important;
  font-size: 1.05rem !important;
  max-width: 600px !important;
  margin: 0 auto !important;
}

section:last-of-type + footer,
.cta-section + footer,
.cta + footer {
  margin-top: 0 !important;
  border-top: none !important;
}

.blog-card, .article-card, .post-card {
  background: #fff !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.blog-card:hover, .article-card:hover, .post-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 35px rgba(0,0,0,0.1) !important;
}

details, .requirements-dropdown {
  background: #fff !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 12px !important;
  overflow: hidden !important;
}

details summary, .requirements-dropdown summary {
  padding: 16px 20px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

details[open] summary {
  border-bottom: 1px solid #e2e8f0 !important;
}

details > div, details > p, details > ul {
  padding: 16px 20px !important;
  color: #475569 !important;
}

.hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 340px !important;
  padding: 80px 24px 60px !important;
}

.hero h1 {
  display: block !important;
  width: 100% !important;
  margin-bottom: 16px !important;
}

.hero p, .hero .hero-subtitle {
  display: block !important;
  width: 100% !important;
  color: #94a3b8 !important;
  font-size: 1.15rem !important;
  max-width: 700px !important;
}

.btn-secondary, a.btn-secondary, .hero .btn-secondary {
  background: rgba(255,255,255,0.05) !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.35) !important;
  border-radius: 12px !important;
  padding: 14px 32px !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  transition: all 0.3s ease !important;
}

.btn-secondary:hover, a.btn-secondary:hover, .hero .btn-secondary:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.6) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

.btn-secondary:hover, a.btn-secondary:hover {
  border-color: #3b82f6 !important;
  color: #fff !important;
  background: rgba(59,130,246,0.1) !important;
}

.scores-section {
  padding: 60px 0 !important;
}

.score-cards, .scores-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 20px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.products { padding: 80px 0 !important; background: #f8fafc !important; }

.products .section-header { text-align: center !important; margin-bottom: 48px !important; }

.products .badge {
  position: absolute !important;
  top: -12px !important;
  right: 24px !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff !important;
  padding: 5px 16px !important;
  border-radius: 20px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

.products .product-price {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  margin-bottom: 6px !important;
}

.products .product-name {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 12px !important;
}

.products .product-desc {
  color: #475569 !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
}

.products .product-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.products .product-features li {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f1f5f9 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
  transition: all 0.25s ease !important;
  cursor: default !important;
  border: 1px solid transparent !important;
}

.products .product-features li:hover {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(59,130,246,0.12) !important;
}

.products .product-features li::before {
  content: '' !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.products li[data-icon="doc"]::before { background: #2563eb !important; content: 'W' !important; color: #fff !important; font-size: 10px !important; font-weight: 700 !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="xls"]::before { background: #16a34a !important; content: 'X' !important; color: #fff !important; font-size: 10px !important; font-weight: 700 !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="ppt"]::before { background: #dc2626 !important; content: 'P' !important; color: #fff !important; font-size: 10px !important; font-weight: 700 !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="pdf"]::before { background: #ea580c !important; content: 'F' !important; color: #fff !important; font-size: 10px !important; font-weight: 700 !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="form"]::before { background: #7c3aed !important; content: '\2630' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="mail"]::before { background: #0891b2 !important; content: '\2709' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="cal"]::before { background: #0d9488 !important; content: '\25EB' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="ai"]::before { background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important; content: 'AI' !important; color: #fff !important; font-size: 8px !important; font-weight: 700 !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="video"]::before { background: #7c3aed !important; content: '\25B6' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="chat"]::before { background: #2563eb !important; content: '\1F4AC' !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="sed"]::before { background: #0891b2 !important; content: '\21C4' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="sign"]::before { background: #059669 !important; content: '\2713' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="proj"]::before { background: #0284c7 !important; content: '\25E7' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="crm"]::before { background: #e11d48 !important; content: '\2666' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="social"]::before { background: #8b5cf6 !important; content: '\25C9' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="erp"]::before { background: #1e293b !important; content: 'E' !important; color: #e2c970 !important; font-size: 10px !important; font-weight: 700 !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="fin"]::before { background: #16a34a !important; content: '\20BD' !important; color: #fff !important; font-size: 10px !important; font-weight: 700 !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="log"]::before { background: #0891b2 !important; content: '\27F3' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="cad"]::before { background: #dc2626 !important; content: '\25B3' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="gis"]::before { background: #0d9488 !important; content: '\25CE' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products li[data-icon="lc"]::before { background: #7c3aed !important; content: '\7B  \7D' !important; color: #fff !important; font-size: 7px !important; font-weight: 700 !important; text-align: center !important; line-height: 18px !important; }
.products li[data-icon="wl"]::before { background: #475569 !important; content: '\25C8' !important; color: #fff !important; font-size: 10px !important; text-align: center !important; line-height: 18px !important; }

.products .product-cta {
  display: block !important;
  text-align: center !important;
  padding: 14px 24px !important;
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border: none !important;
  margin-top: auto !important;
}

.products .product-cta:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(37,99,235,0.35) !important;
  color: #fff !important;
}

.advantages { padding: 80px 0 !important; background: #f8fafc !important; }

.advantages .section-header { text-align: center !important; margin-bottom: 48px !important; }

.adv-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 24px !important; max-width: 1200px !important; margin: 0 auto !important; padding: 0 24px !important; }

@media (max-width: 1024px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
  .adv-grid { grid-template-columns: 1fr !important; max-width: 420px !important; }
}

.adv-card { background: #fff !important; border-radius: 20px !important; padding: 32px 24px 28px !important; position: relative !important; border: 1px solid #e2e8f0 !important; transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s cubic-bezier(.4,0,.2,1), border-color 0.35s ease !important; cursor: pointer !important; overflow: visible !important; }

.adv-card:hover { transform: translateY(-8px) !important; box-shadow: 0 20px 50px rgba(0,0,0,0.12) !important; border-color: #93c5fd !important; }

.adv-card::before { content: '' !important; position: absolute !important; top: 0 !important; left: 24px !important; right: 24px !important; height: 4px !important; border-radius: 0 0 4px 4px !important; transition: height 0.3s ease !important; }

.adv-card:hover::before { height: 6px !important; }

.adv-card[data-color="blue"]::before { background: linear-gradient(90deg, #3b82f6, #2563eb) !important; }

.adv-card[data-color="green"]::before { background: linear-gradient(90deg, #10b981, #059669) !important; }

.adv-card[data-color="teal"]::before { background: linear-gradient(90deg, #06b6d4, #0891b2) !important; }

.adv-card[data-color="navy"]::before { background: linear-gradient(90deg, #1e293b, #334155) !important; }

.adv-icon { margin-bottom: 18px !important; }

.adv-icon svg { transition: transform 0.3s ease, filter 0.3s ease !important; }

.adv-card:hover .adv-icon svg { transform: scale(1.08) !important; filter: drop-shadow(0 4px 12px rgba(59,130,246,0.25)) !important; }

.adv-title { font-size: 1.15rem !important; font-weight: 700 !important; color: #0f172a !important; margin-bottom: 8px !important; }

.adv-desc { color: #475569 !important; font-size: 0.88rem !important; line-height: 1.55 !important; margin-bottom: 14px !important; }

.adv-formats { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; margin-bottom: 0 !important; }

.adv-fmt { display: inline-block !important; padding: 3px 10px !important; border-radius: 6px !important; font-size: 0.72rem !important; font-weight: 700 !important; letter-spacing: 0.03em !important; text-transform: uppercase !important; }

.adv-fmt.fmt-docx { background: #dbeafe !important; color: #1d4ed8 !important; }

.adv-fmt.fmt-xlsx { background: #dcfce7 !important; color: #15803d !important; }

.adv-fmt.fmt-pptx { background: #fee2e2 !important; color: #dc2626 !important; }

.adv-fmt.fmt-pdf { background: #ffedd5 !important; color: #ea580c !important; }

.adv-fmt.fmt-odf { background: #e0e7ff !important; color: #4338ca !important; }

.adv-hint { display: flex !important; align-items: center !important; gap: 6px !important; margin-top: 14px !important; font-size: 0.8rem !important; font-weight: 600 !important; color: #94a3b8 !important; transition: color 0.3s ease !important; }

.adv-card:hover .adv-hint { color: #3b82f6 !important; }

.adv-hint svg { transition: transform 0.3s ease !important; }

.adv-card:hover .adv-hint svg { transform: translateX(4px) !important; }

.adv-popup { position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) scale(0.85) !important; width: calc(100% + 20px) !important; min-height: calc(100% + 20px) !important; background: rgba(15, 23, 42, 0.95) !important; backdrop-filter: blur(16px) !important; -webkit-backdrop-filter: blur(16px) !important; border-radius: 24px !important; z-index: 20 !important; opacity: 0 !important; pointer-events: none !important; transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1) !important; display: flex !important; align-items: center !important; justify-content: center !important; border: 1px solid rgba(148,163,184,0.2) !important; box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset !important; }

.adv-card:hover .adv-popup { opacity: 1 !important; pointer-events: auto !important; transform: translate(-50%, -50%) scale(1) !important; }

.adv-popup-inner { padding: 28px 24px !important; text-align: center !important; width: 100% !important; }

.popup-stat { margin-bottom: 18px !important; }

.popup-num { display: block !important; font-size: 2.4rem !important; font-weight: 900 !important; line-height: 1.1 !important; margin-bottom: 4px !important; }

.adv-card[data-color="blue"] .popup-num { color: #60a5fa !important; }

.adv-card[data-color="green"] .popup-num { color: #34d399 !important; }

.adv-card[data-color="teal"] .popup-num { color: #22d3ee !important; }

.adv-card[data-color="navy"] .popup-num { color: #e2c970 !important; }

.popup-label { display: block !important; font-size: 0.82rem !important; color: #94a3b8 !important; font-weight: 500 !important; letter-spacing: 0.02em !important; }

.popup-chips { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; justify-content: center !important; margin-bottom: 16px !important; }

.popup-chip { display: inline-block !important; padding: 5px 14px !important; border-radius: 20px !important; font-size: 0.78rem !important; font-weight: 600 !important; border: 1px solid rgba(255,255,255,0.1) !important; transition: transform 0.2s ease, box-shadow 0.2s ease !important; }

.popup-chip:hover { transform: translateY(-2px) scale(1.05) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important; }

.chip-blue { background: rgba(59,130,246,0.2) !important; color: #93c5fd !important; border-color: rgba(59,130,246,0.3) !important; }

.chip-green { background: rgba(16,185,129,0.2) !important; color: #6ee7b7 !important; border-color: rgba(16,185,129,0.3) !important; }

.chip-red { background: rgba(239,68,68,0.2) !important; color: #fca5a5 !important; border-color: rgba(239,68,68,0.3) !important; }

.chip-orange { background: rgba(249,115,22,0.2) !important; color: #fdba74 !important; border-color: rgba(249,115,22,0.3) !important; }

.chip-purple { background: rgba(139,92,246,0.2) !important; color: #c4b5fd !important; border-color: rgba(139,92,246,0.3) !important; }

.chip-teal { background: rgba(6,182,212,0.2) !important; color: #67e8f9 !important; border-color: rgba(6,182,212,0.3) !important; }

.chip-navy { background: rgba(30,41,59,0.5) !important; color: #e2c970 !important; border-color: rgba(226,201,112,0.3) !important; }

.chip-gold { background: rgba(226,201,112,0.15) !important; color: #e2c970 !important; border-color: rgba(226,201,112,0.3) !important; }

.popup-footer { font-size: 0.82rem !important; color: #cbd5e1 !important; font-weight: 500 !important; padding-top: 12px !important; border-top: 1px solid rgba(148,163,184,0.15) !important; }

.comparison { padding: 80px 0 !important; background: #f1f5f9 !important; }

.comparison .section-header { text-align: center !important; margin-bottom: 40px !important; }

.cmp-wrapper { max-width: 800px !important; margin: 0 auto !important; padding: 0 24px !important; }

.cmp-header-row { display: grid !important; grid-template-columns: 1fr 1fr 1fr !important; gap: 0 !important; margin-bottom: 8px !important; padding: 0 16px !important; }

.cmp-label-col { display: flex !important; align-items: center !important; }

.cmp-col { display: flex !important; align-items: center !important; justify-content: center !important; }

.cmp-logo-wrap { display: flex !important; align-items: center !important; gap: 10px !important; font-weight: 700 !important; font-size: 0.95rem !important; padding: 12px 0 !important; }

.cmp-rb-logo { color: #1e40af !important; }

.cmp-ms-logo { color: #64748b !important; }

/* Group accordion */
.cmp-group { background: #fff !important; border-radius: 16px !important; margin-bottom: 12px !important; border: 1px solid #e2e8f0 !important; overflow: hidden !important; transition: box-shadow 0.3s ease !important; }

.cmp-group:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important; }

.cmp-group-header { display: flex !important; align-items: center !important; gap: 10px !important; padding: 16px 20px !important; cursor: pointer !important; user-select: none !important; background: #fff !important; transition: background 0.2s ease !important; }

.cmp-group-header:hover { background: #f8fafc !important; }

.cmp-group-header span:first-of-type { font-weight: 700 !important; font-size: 0.95rem !important; color: #0f172a !important; flex: 1 !important; }

.cmp-chevron { color: #94a3b8 !important; transition: transform 0.3s cubic-bezier(.4,0,.2,1) !important; flex-shrink: 0 !important; }

.cmp-group[data-open="true"] .cmp-chevron { transform: rotate(0deg) !important; }

.cmp-group[data-open="false"] .cmp-chevron { transform: rotate(-90deg) !important; }

.cmp-group-badge { font-size: 0.75rem !important; font-weight: 600 !important; color: #10b981 !important; background: #ecfdf5 !important; padding: 3px 10px !important; border-radius: 20px !important; white-space: nowrap !important; }

/* Group body collapse */
.cmp-group-body { overflow: hidden !important; transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s ease !important; }

.cmp-group[data-open="true"] .cmp-group-body { max-height: 500px !important; opacity: 1 !important; }

.cmp-group[data-open="false"] .cmp-group-body { max-height: 0 !important; opacity: 0 !important; }

/* Rows */
.cmp-row { display: grid !important; grid-template-columns: 1fr 1fr 1fr !important; gap: 0 !important; padding: 12px 20px !important; border-top: 1px solid #f1f5f9 !important; transition: background 0.2s ease !important; }

.cmp-row:hover { background: #f8fafc !important; }

.cmp-row .cmp-label-col { font-size: 0.88rem !important; color: #334155 !important; font-weight: 500 !important; }

/* Values */
.cmp-val { font-weight: 700 !important; font-size: 0.92rem !important; }

.cmp-highlight { color: #1e40af !important; }

.cmp-dim { color: #94a3b8 !important; }

.cmp-yes { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 28px !important; height: 28px !important; border-radius: 50% !important; background: #ecfdf5 !important; color: #10b981 !important; font-size: 0.85rem !important; font-weight: 700 !important; }

.cmp-no { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 28px !important; height: 28px !important; border-radius: 50% !important; background: #fef2f2 !important; color: #ef4444 !important; font-size: 0.85rem !important; font-weight: 700 !important; }

/* Summary bar */
.cmp-summary { display: flex !important; align-items: center !important; justify-content: center !important; gap: 32px !important; margin-top: 24px !important; padding: 20px !important; background: linear-gradient(135deg, #0f172a, #1e293b) !important; border-radius: 16px !important; }

.cmp-summary-item { text-align: center !important; }

.cmp-summary-score { display: block !important; font-size: 2rem !important; font-weight: 900 !important; line-height: 1.1 !important; }

.cmp-summary-rb .cmp-summary-score { color: #60a5fa !important; }

.cmp-summary-ms .cmp-summary-score { color: #94a3b8 !important; }

.cmp-summary-label { font-size: 0.82rem !important; color: #94a3b8 !important; font-weight: 500 !important; }

.cmp-summary-vs { font-size: 1rem !important; font-weight: 700 !important; color: #475569 !important; }

/* CTA */
.cmp-cta { text-align: center !important; margin-top: 20px !important; }

.cmp-cta-btn { display: inline-block !important; padding: 12px 32px !important; border-radius: 12px !important; background: #1e40af !important; color: #fff !important; font-weight: 600 !important; font-size: 0.92rem !important; text-decoration: none !important; transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important; }

.cmp-cta-btn:hover { background: #1d4ed8 !important; transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(30,64,175,0.3) !important; }

@media (max-width: 600px) {
  .cmp-wrapper { padding: 0 12px !important; }
  .cmp-header-row, .cmp-row { grid-template-columns: 2fr 1fr 1fr !important; }
  .cmp-logo-wrap span { font-size: 0.8rem !important; }
  .cmp-summary { gap: 20px !important; padding: 16px !important; }
  .cmp-summary-score { font-size: 1.5rem !important; }
}

/* CMP CTA FIX — merge button into summary bar */
.cmp-cta { text-align: center !important; margin-top: 0 !important; padding: 0 0 20px !important; background: linear-gradient(135deg, #0f172a, #1e293b) !important; border-radius: 0 0 16px 16px !important; margin-top: -1px !important; }

.cmp-summary { border-radius: 16px 16px 0 0 !important; margin-bottom: 0 !important; }

.cmp-cta-btn { background: transparent !important; border: 2px solid rgba(255,255,255,0.3) !important; color: #fff !important; }

.cmp-cta-btn:hover { background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.6) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important; }

.stats {
  padding: 80px 0 !important;
  background: linear-gradient(180deg, #f0f4f8 0%, #f8fafc 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

.stats::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
  opacity: 0.3 !important;
  pointer-events: none !important;
}

.st-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  position: relative !important;
  z-index: 1 !important;
}

.stats .section-header {
  text-align: center !important;
  margin-bottom: 48px !important;
}

.stats .section-header h2 {
  color: #0f172a !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
}

.stats .section-header p {
  color: #64748b !important;
  font-size: 1.1rem !important;
}

.st-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}

.st-card {
  background: #fff !important;
  border-radius: 20px !important;
  padding: 36px 28px 30px !important;
  text-align: center !important;
  border: 1px solid #e2e8f0 !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s cubic-bezier(.4,0,.2,1), border-color 0.3s ease !important;
  cursor: default !important;
}

.st-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
}

.st-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 4px !important;
  transition: height 0.3s ease !important;
}

.st-card:hover::before { height: 6px !important; }

.st-card[data-accent="blue"]::before { background: linear-gradient(90deg, #3b82f6, #60a5fa) !important; }

.st-card[data-accent="green"]::before { background: linear-gradient(90deg, #10b981, #34d399) !important; }

.st-card[data-accent="teal"]::before { background: linear-gradient(90deg, #06b6d4, #22d3ee) !important; }

.st-card[data-accent="navy"]::before { background: linear-gradient(90deg, #6366f1, #818cf8) !important; }

.st-card[data-accent="blue"]:hover { border-color: #93c5fd !important; }

.st-card[data-accent="green"]:hover { border-color: #6ee7b7 !important; }

.st-card[data-accent="teal"]:hover { border-color: #67e8f9 !important; }

.st-card[data-accent="navy"]:hover { border-color: #a5b4fc !important; }

.st-icon-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 18px !important;
  margin-bottom: 20px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.st-card[data-accent="blue"] .st-icon-wrap { background: rgba(59,130,246,0.08) !important; }

.st-card[data-accent="green"] .st-icon-wrap { background: rgba(16,185,129,0.08) !important; }

.st-card[data-accent="teal"] .st-icon-wrap { background: rgba(6,182,212,0.08) !important; }

.st-card[data-accent="navy"] .st-icon-wrap { background: rgba(99,102,241,0.08) !important; }

.st-card:hover .st-icon-wrap { transform: scale(1.1) !important; }

.st-card[data-accent="blue"]:hover .st-icon-wrap { box-shadow: 0 8px 24px rgba(59,130,246,0.2) !important; }

.st-card[data-accent="green"]:hover .st-icon-wrap { box-shadow: 0 8px 24px rgba(16,185,129,0.2) !important; }

.st-card[data-accent="teal"]:hover .st-icon-wrap { box-shadow: 0 8px 24px rgba(6,182,212,0.2) !important; }

.st-card[data-accent="navy"]:hover .st-icon-wrap { box-shadow: 0 8px 24px rgba(99,102,241,0.2) !important; }

.st-number {
  font-size: 2.8rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.02em !important;
}

.st-card[data-accent="blue"] .st-number { color: #2563eb !important; }

.st-card[data-accent="green"] .st-number { color: #059669 !important; }

.st-card[data-accent="teal"] .st-number { color: #0891b2 !important; }

.st-card[data-accent="navy"] .st-number { color: #4f46e5 !important; }

.st-label {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
}

.st-detail {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
}

@media (max-width: 1024px) {
  .st-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
  .st-grid { grid-template-columns: 1fr !important; max-width: 380px !important; margin: 0 auto !important; }
  .st-number { font-size: 2.2rem !important; }
  .stats { padding: 60px 0 !important; }
}

/* Price text: blue → dark charcoal */
.product-price {
  color: #1e293b !important;
}

/* Product CTA buttons: blue/teal gradient → dark slate */
.product-cta {
  background: linear-gradient(135deg, #334155, #1e293b) !important;
  border-color: #334155 !important;
}

.product-cta:hover {
  background: linear-gradient(135deg, #475569, #334155) !important;
  border-color: #475569 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

/* Featured card border: blue → slate grey */
/* Regular card hover */
/* "Популярный" badge: blue gradient → dark slate */

/* "Запросить демо" button: blue gradient → white solid */
.hero .btn:first-of-type,
.hero a[href*="demo"],
.hero a.btn-primary,
.hero a:first-of-type:not(.btn-outline) {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #fff !important;
}

.hero .btn:first-of-type:hover,
.hero a[href*="demo"]:hover,
.hero a.btn-primary:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #f1f5f9 !important;
  box-shadow: 0 8px 24px rgba(255,255,255,0.2) !important;
}

/* "Подробнее" button: keep as outline, just ensure greyscale */
.hero .btn:nth-of-type(2),
.hero a:nth-of-type(2) {
  border-color: rgba(255,255,255,0.4) !important;
  color: #fff !important;
  background: transparent !important;
}

.hero .btn:nth-of-type(2):hover,
.hero a:nth-of-type(2):hover {
  border-color: rgba(255,255,255,0.7) !important;
  background: rgba(255,255,255,0.08) !important;
}

/* "Запросить демо" button: blue text → dark slate */
.cta-section .btn-white {
  color: #1e293b !important;
  border-color: #fff !important;
  background: #fff !important;
}

.cta-section .btn-white:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  box-shadow: 0 8px 24px rgba(255,255,255,0.2) !important;
}

/* Blue chips → neutral grey */
.popup-chip.chip-blue {
  background: rgba(100, 116, 139, 0.15) !important;
  color: #334155 !important;
}

/* Override CSS variable if used elsewhere */
:root {
  --color-accent: #334155 !important;
}

/* Any remaining links or accents using the blue */
a.btn-primary:not(.hero *):not(.cta-section *) {
  background: linear-gradient(135deg, #334155, #1e293b) !important;
  border-color: #334155 !important;
}

a.btn-primary:not(.hero *):not(.cta-section *):hover {
  background: linear-gradient(135deg, #475569, #334155) !important;
}

.cta-section {
  background: linear-gradient(180deg, #f0f4f8 0%, #e2e8f0 100%) !important;
  padding: 80px 0 !important;
  position: relative !important;
}

/* Remove any inner card/gradient box effect */
.cta-section::before,
.cta-section::after {
  display: none !important;
}

.cta-content {
  max-width: 700px !important;
  margin: 0 auto !important;
  text-align: center !important;
  padding: 0 24px !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.cta-section h2 {
  color: #0f172a !important;
  font-size: 2.4rem !important;
  font-weight: 800 !important;
  margin-bottom: 16px !important;
  -webkit-text-fill-color: #0f172a !important;
  background: none !important;
}

.cta-section p {
  color: #475569 !important;
  font-size: 1.15rem !important;
  line-height: 1.7 !important;
  margin-bottom: 32px !important;
}

.cta-buttons {
  display: flex !important;
  gap: 16px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  margin-bottom: 24px !important;
}

/* "Запросить демо" - dark solid button */
.cta-section .btn-white {
  background: #1e293b !important;
  color: #fff !important;
  border: 2px solid #1e293b !important;
  padding: 14px 36px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.cta-section .btn-white:hover {
  background: #334155 !important;
  border-color: #334155 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

/* "Связаться с нами" - dark outline button */
.cta-section .btn-outline-white {
  background: transparent !important;
  color: #1e293b !important;
  border: 2px solid #94a3b8 !important;
  padding: 14px 36px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.cta-section .btn-outline-white:hover {
  background: #fff !important;
  border-color: #64748b !important;
  color: #0f172a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}

/* Contact info line */
.cta-contact {
  color: #64748b !important;
  font-size: 0.95rem !important;
}

.cta-contact a {
  color: #334155 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.cta-contact a:hover {
  color: #0f172a !important;
  text-decoration: underline !important;
}

footer {
  background: #0f172a !important;
  padding: 60px 0 0 !important;
  border-top: 1px solid #1e293b !important;
}

.footer-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.footer-top {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr !important;
  gap: 40px !important;
  padding-bottom: 40px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* Brand column */
.footer-brand .footer-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #fff !important;
}

.footer-brand .footer-logo-icon {
  background: #3b82f6 !important;
  color: #fff !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
}

.footer-desc {
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

/* Column headings - make them bright white */
.footer-col h4 {
  color: #fff !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 20px !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
}

/* Column links - lighter color for readability */
.footer-col a {
  display: block !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  padding: 5px 0 !important;
  transition: color 0.2s ease !important;
}

.footer-col a:hover {
  color: #fff !important;
}

/* Footer bottom bar */
.footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 24px 0 !important;
  margin-top: 40px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  color: #64748b !important;
  font-size: 0.85rem !important;
}

.footer-bottom a {
  color: #94a3b8 !important;
  text-decoration: none !important;
}

.footer-bottom a:hover {
  color: #fff !important;
}

/* Social icons */
.footer-socials {
  display: flex !important;
  gap: 12px !important;
}

.footer-socials .social-icon,
.footer-socials a {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.08) !important;
  color: #94a3b8 !important;
  transition: all 0.3s ease !important;
}

.footer-socials .social-icon:hover,
.footer-socials a:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

/* Responsive footer */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
  }
  .footer-brand {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }
}

#cta, section#cta, .cta-section#cta, section.cta-section {
  background: linear-gradient(180deg, #f0f4f8 0%, #e2e8f0 100%) !important;
  background-image: linear-gradient(180deg, #f0f4f8 0%, #e2e8f0 100%) !important;
  background-color: #f0f4f8 !important;
}

#cta::before, #cta::after, section#cta::before, section#cta::after {
  display: none !important;
  opacity: 0 !important;
}

#cta h2, section#cta h2, .cta-section#cta h2 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

#cta p, section#cta p {
  color: #475569 !important;
}

#cta .btn-white, section#cta .btn-white {
  background: #1e293b !important;
  color: #fff !important;
  border: 2px solid #1e293b !important;
}

#cta .btn-white:hover {
  background: #334155 !important;
  border-color: #334155 !important;
}

#cta .btn-outline-white, section#cta .btn-outline-white {
  background: transparent !important;
  color: #1e293b !important;
  border: 2px solid #94a3b8 !important;
}

#cta .btn-outline-white:hover {
  background: #fff !important;
  border-color: #64748b !important;
  color: #0f172a !important;
}

#cta .cta-contact, section#cta .cta-contact {
  color: #64748b !important;
}

#cta .cta-contact a {
  color: #334155 !important;
}

#cta .cta-buttons, section#cta .cta-buttons,
#cta .cta-contact, section#cta .cta-contact,
#cta .cta-content, section#cta .cta-content {
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#cta, section#cta, .cta-section#cta, section.cta-section {
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%) !important;
  background-image: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%) !important;
  background-color: #e2e8f0 !important;
}

body, html {
  background-color: #e8edf3 !important;
}

/* Products section */
#products, section#products, .products {
  background-color: #e2e8f0 !important;
  background-image: none !important;
}

/* Product cards - slightly lighter to pop */
/* Advantages section */
#advantages, section#advantages, .advantages, .advantages-section {
  background-color: #e2e8f0 !important;
  background-image: none !important;
}

/* Comparison section - slightly darker alternation */
/* Stats section */
/* FAQ section */
/* FAQ items / accordion - slightly lighter */

#products, section#products, .products {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#comparison, section#comparison, .comparison {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#faq, section#faq, .faq {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body, html {
  background-color: #fff !important;
}

/* ALL content sections - constrained 1200px with auto margins */
#products, section#products, .products,
#advantages, section#advantages, .advantages,
#comparison, section#comparison, .comparison,
#stats, section#stats, .stats,
#faq, section#faq, .faq,
#cta, section#cta, .cta-section {
  max-width: 1200px !important;
  width: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 16px !important;
}

/* Override previous full-width rules */
#products, #comparison, #faq {
  max-width: 1200px !important;
  width: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* FAQ list should not exceed section width */
.faq-list, #faq .faq-list {
  max-width: 100% !important;
  padding: 0 24px !important;
}

#faq h2, section#faq h2, .faq h2 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

#faq > p, section#faq > p, #faq .faq-subtitle {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
}

/* Body stays white for side margins */
body, html {
  background-color: #f0f3f7 !important;
}

/* Main sections — medium-cool grey */
#products, section#products, .products {
  background-color: #c8d3df !important;
}

#advantages, section#advantages, .advantages {
  background-color: #c8d3df !important;
}

#faq, section#faq, .faq {
  background-color: #c8d3df !important;
}

/* Slightly darker accent sections */
#comparison, section#comparison, .comparison {
  background-color: #bcc8d5 !important;
}

#stats, section#stats, .stats {
  background: linear-gradient(180deg, #bcc8d5 0%, #c8d3df 100%) !important;
}

/* CTA softer gradient */
#cta, section#cta, .cta-section#cta, section.cta-section {
  background: linear-gradient(180deg, #c8d3df 0%, #b0bcc8 100%) !important;
  background-image: linear-gradient(180deg, #c8d3df 0%, #b0bcc8 100%) !important;
}

/* Cards — soft light, not pure white */
.advantage-card, #advantages .advantage-card {
  background-color: #e8edf3 !important;
}

/* Comparison rows stay lighter for readability */

html body, html { background-color: #ffffff !important; }

html body #products, html body section#products, html body .products { background-color: #ffffff !important; background: #ffffff !important; }

html body #advantages, html body section#advantages, html body .advantages { background-color: #f8fafc !important; background: #f8fafc !important; }

html body .advantage-card, html body #advantages .advantage-card { background-color: #ffffff !important; border: 1px solid #e2e8f0 !important; box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important; transition: all 0.3s ease !important; }

html body .advantage-card:hover, html body #advantages .advantage-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important; transform: translateY(-4px) !important; border-color: #cbd5e1 !important; }

html body #comparison, html body section#comparison, html body .comparison { background-color: #ffffff !important; background: #ffffff !important; }

html body .comparison-category, html body #comparison .comparison-category { background-color: #ffffff !important; border: 1px solid #e2e8f0 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important; }

html body .cmp-cta-btn, html body #comparison .cmp-cta-btn, html body section#comparison .cmp-cta-btn { background-color: #1e3a5f !important; background: #1e3a5f !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; border: 2px solid #1e3a5f !important; box-shadow: 0 4px 15px rgba(30,58,95,0.3) !important; transition: all 0.3s ease !important; }

html body .cmp-cta-btn:hover, html body #comparison .cmp-cta-btn:hover { background-color: #0f2744 !important; background: #0f2744 !important; border-color: #0f2744 !important; box-shadow: 0 6px 25px rgba(59,130,246,0.35) !important; transform: translateY(-2px) !important; }

html body #stats, html body section#stats, html body .stats { background-color: #f8fafc !important; background: #f8fafc !important; }

html body #faq, html body section#faq, html body .faq { background-color: #ffffff !important; background: #ffffff !important; }

html body #cta, html body section#cta, html body .cta-section, html body .cta-section#cta { background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 100%) !important; background-color: #0f172a !important; }

html body #cta h2, html body .cta-section h2, html body section#cta h2 { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }

html body #cta p, html body .cta-section p, html body section#cta p { color: #cbd5e1 !important; -webkit-text-fill-color: #cbd5e1 !important; }

html body #cta a, html body #cta .cta-btn, html body .cta-section .cta-btn, html body .cta-section a.cta-btn { background: transparent !important; background-color: transparent !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; border: 2px solid rgba(255,255,255,0.8) !important; transition: all 0.3s ease !important; }

html body #cta a:hover, html body #cta .cta-btn:hover, html body .cta-section .cta-btn:hover, html body .cta-section a.cta-btn:hover { background: #ffffff !important; background-color: #ffffff !important; color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; border-color: #ffffff !important; box-shadow: 0 0 30px rgba(59,130,246,0.4) !important; transform: translateY(-2px) !important; }

html body #products h2, html body #advantages h2, html body #comparison h2, html body #stats h2, html body #faq h2 { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; }

html body #products .section-subtitle, html body #advantages .section-subtitle, html body #comparison .section-subtitle, html body #stats .section-subtitle, html body #faq .section-subtitle, html body #products > p, html body #advantages > p, html body #comparison > p, html body #stats > p, html body #faq > p { color: #64748b !important; -webkit-text-fill-color: #64748b !important; }

/* Make CTA full-width to merge seamlessly with footer */
html body #cta,
html body section#cta,
html body .cta-section,
html body .cta-section#cta {
  max-width: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 60px !important;
}

/* Fix heading: white on dark */
html body section#cta h2,
html body .cta-section h2,
html body #cta h2,
html body #cta .cta-heading,
html body .cta-section .cta-heading {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

/* Fix subtitle */
html body section#cta p,
html body .cta-section p,
html body #cta p,
html body #cta .cta-subtitle {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

/* Fix "Есть вопросы?" text */
html body #cta .cta-contact,
html body .cta-section .cta-contact,
html body #cta span {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

/* Fix buttons - white outline style */
html body #cta .btn-primary,
html body .cta-section .btn-primary,
html body #cta a.btn-primary {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.7) !important;
}

html body #cta .btn-primary:hover,
html body .cta-section .btn-primary:hover {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 25px rgba(59,130,246,0.4) !important;
}

html body #cta .btn-secondary,
html body .cta-section .btn-secondary,
html body #cta a.btn-secondary {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.4) !important;
}

html body #cta .btn-secondary:hover,
html body .cta-section .btn-secondary:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.7) !important;
}

/* Fix contact links */
html body #cta a[href^="mailto"],
html body #cta a[href^="tel"],
html body .cta-section a[href^="mailto"],
html body .cta-section a[href^="tel"] {
  color: #60a5fa !important;
  -webkit-text-fill-color: #60a5fa !important;
  border: none !important;
  text-decoration: underline !important;
}

/* Footer seamless merge - no gap */
html body footer,
html body .footer {
  margin-top: 0 !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

html body #cta .cta-content h2,
html body .cta-section .cta-content h2,
html body section#cta .cta-content h2,
html body div#cta .cta-content h2,
html body #cta h2,
html body .cta-section h2 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  text-shadow: none !important;
}

html body #cta .cta-content p,
html body .cta-section .cta-content p {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}


/* ======================================================
   PHASE 3: NON-INDEX PAGES CSS FIX
   Covers: vs-* pages, cases, content sections, migration
   Guard: PHASE3-PAGES-FIX
   ====================================================== */

/* --- VS COMPARISON PAGES --- */

/* Comparison section container */
.comparison-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.comparison-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.comparison-table .table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.comparison-table th {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table tr:hover td {
  background: #f8fafc;
}

.comparison-table .rb-office-cell {
  font-weight: 600;
  color: #1e40af;
}

.comparison-table .feature-name {
  font-weight: 600;
  color: #334155;
}

.comparison-table .category-header td {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
  padding-top: 18px;
}

.checkmark {
  color: #16a34a;
  font-weight: 700;
  font-size: 1.2rem;
}

.crossmark {
  color: #dc2626;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Differentiators grid */
.differentiators-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.differentiators-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 30px;
}

.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.differentiator-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.differentiator-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.differentiator-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 10px;
}

.differentiator-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

/* Migration section */
.migration-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.migration-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 30px;
}

.migration-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.migration-step {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  text-align: center;
  position: relative;
}

.migration-step .step-number,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.migration-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.migration-step p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* Verdict section */
.verdict-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.verdict-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 30px;
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.verdict-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

.verdict-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 12px;
}

.verdict-card p,
.verdict-card li {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

/* Pricing section in VS pages */
.pricing-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.pricing-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 30px;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  text-align: center;
}

.pricing-card .price-value {
  font-size: 2rem;
  font-weight: 800;
  color: #1e40af;
  margin: 12px 0 4px;
}

.pricing-card .price-period {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.pricing-benefits {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  text-align: left;
}

.pricing-benefits li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.pricing-benefits li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

/* --- CASES PAGE --- */

.cases-stats,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.stat-item,
.stats-item {
  padding: 24px;
}

.stat-item .stat-number,
.stats-item .stat-number,
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e40af;
  display: block;
  margin-bottom: 4px;
}

.stat-item .stat-label,
.stats-item .stat-label,
.stat-label {
  font-size: 0.9rem;
  color: #64748b;
}

/* Case cards */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.case-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

.case-card .case-industry,
.case-industry {
  display: inline-block;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.case-card .case-company,
.case-company {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 16px;
}

.case-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin: 16px 0 8px;
}

.case-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

.case-results,
.case-card .case-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.case-results .result-value,
.result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e40af;
  display: block;
}

.case-results .result-label,
.result-label {
  font-size: 0.8rem;
  color: #64748b;
}

/* --- CONTENT SECTIONS (generic) --- */

.content-section {
  padding: 60px 0;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
}

.content-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #334155;
  margin: 24px 0 10px;
}

.content-section p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-section ul,
.content-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-section li {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* --- CTA Section --- */
.cta-section {
  padding: 60px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.05rem;
  color: #64748b;
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .comparison-section,
  .differentiators-section,
  .migration-section,
  .verdict-section,
  .pricing-section {
    padding: 40px 16px;
  }

  .comparison-section h2,
  .differentiators-section h2,
  .migration-section h2,
  .verdict-section h2,
  .pricing-section h2 {
    font-size: 1.5rem;
  }

  .differentiators-grid,
  .verdict-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .migration-steps {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .cases-stats,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* ======================================================
   PHASE 3B: SPECIFICITY FIX FOR VS PAGES
   Guard: PHASE3B-SPECIFICITY-FIX
   ====================================================== */

/* Fix: rb-office.css sets .comparison-table as grid (for index cards).
   On vs-* pages, .comparison-table is the actual <table> element.
   Use element+class selector for higher specificity. */

table.comparison-table {
  display: table !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  align-items: initial !important;
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

table.comparison-table th,
table.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

table.comparison-table th {
  background: #0f172a !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table.comparison-table tr:hover td {
  background: #f8fafc;
}

table.comparison-table .rb-office-cell {
  font-weight: 600;
  color: #1e40af;
}

table.comparison-table .feature-name {
  font-weight: 600;
  color: #334155;
}

table.comparison-table .category-header td {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
  padding-top: 18px;
}

/* Also fix .comparison-section that may inherit unwanted styles */
.comparison-section > .container > h2,
section.comparison-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

/* Fix differentiator/migration/verdict/pricing on vs pages - add !important for key props */
.differentiators-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

.migration-steps {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
}

.verdict-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

.pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

/* Cases page fixes with specificity */
.cases-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important;
}

.cases-stats,
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

@media (max-width: 768px) {
  table.comparison-table th,
  table.comparison-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .differentiators-grid,
  .verdict-grid,
  .pricing-grid,
  .cases-grid {
    grid-template-columns: 1fr !important;
  }
  .migration-steps {
    grid-template-columns: 1fr !important;
  }
}

/* === NAVIGATION DROPDOWN FIX V2 === */
/* Guard: NAV-DROPDOWN-FIX-V2 */
/* Polished dropdown appearance */
.nav-dropdown,
.dropdown-menu {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06) !important;
    padding: 8px !important;
    min-width: 220px !important;
    backdrop-filter: blur(12px) !important;
}
.nav-dropdown a,
.dropdown-menu a {
    display: block !important;
    padding: 10px 16px !important;
    color: #1e293b !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}
.nav-dropdown a:hover,
.dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #3b82f6 !important;
    transform: translateX(2px) !important;
}
/* Dropdown trigger arrow */
.nav-item.has-dropdown > a::after,
.nav-link[aria-expanded]::after {
    transition: transform 0.2s ease !important;
}

/* === NAV DROPDOWN HOTFIX === */
/* Guard: NAV-DROPDOWN-HOTFIX-V1 */
/* Undo styles incorrectly applied to .nav-dropdown LI elements */
li.nav-dropdown,
.nav-items .nav-dropdown {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: auto !important;
    backdrop-filter: none !important;
}
/* Only .dropdown-menu DIV inside gets styled */
.nav-dropdown > .dropdown-menu {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06) !important;
    padding: 8px !important;
    min-width: 220px !important;
}
.nav-dropdown > .dropdown-menu a {
    display: block !important;
    padding: 10px 16px !important;
    color: #1e293b !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}
.nav-dropdown > .dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #3b82f6 !important;
}

/* NAV-DROPDOWN ALIGNMENT FIX v3 */
li.nav-dropdown {
    margin-bottom: 0 !important;
    padding-bottom: 16px !important;
}
.nav-dropdown > a.nav-item {
    padding: 0 !important;
}
