/* ==========================================================================
   PROMO-STAR V10.0 — EXECUTIVE SEARCH & AI/GEO ENGINEERING DESIGN SYSTEM
   High-Contrast Dark Tech • Zero CLS • Mobile-First 360px+ • WCAG AA+
   ========================================================================== */

:root {
  --bg-deep: #050811;
  --bg-surface: #0b1120;
  --bg-elevated: #11192c;
  --bg-glass: rgba(11, 17, 32, 0.82);
  --bg-glass-strong: rgba(8, 12, 24, 0.96);

  --cyan: #00d4ff;
  --cyan-dim: #00a0c6;
  --cyan-glow: rgba(0, 212, 255, 0.16);
  --emerald: #34d399;
  --emerald-glow: rgba(52, 211, 153, 0.14);
  --violet: #a855f7;
  --violet-bright: #c084fc;
  --violet-glow: rgba(168, 85, 247, 0.22);
  --sapphire: #0284c7;
  --sapphire-glow: rgba(2, 132, 199, 0.16);
  --amber: #f59e0b;
  --rose: #fb7185;

  --text-primary: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-cyan: rgba(0, 212, 255, 0.28);
  --border-cyan-strong: rgba(0, 212, 255, 0.55);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Courier New', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --container-max: 1260px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-body);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(0, 212, 255, 0.13), transparent),
    radial-gradient(ellipse 55% 40% at 85% 20%, rgba(139, 92, 246, 0.12), transparent);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.22;
  letter-spacing: -0.015em;
  word-wrap: break-word;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

code, pre, .mono {
  font-family: var(--font-mono);
}

pre {
  background: #070b14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #e2e8f0;
  position: relative;
  margin: 18px 0;
}

/* Reading Progress Bar */
#ps-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--violet-bright));
  z-index: 3000;
  transition: width 0.1s linear;
}

/* Ambient Cyber Network Canvas */
#cyber-network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.ps-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

/* ==========================================================================
   TOP TRUST BAR + STICKY MEGA-MENU HEADER
   ========================================================================== */
.ps-topbar {
  background: rgba(5, 8, 17, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1002;
}

.ps-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 20px;
  max-width: var(--container-max);
  margin: 0 auto;
  gap: 12px;
}

.ps-topbar-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ps-dot-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  margin-right: 6px;
}

.ps-topbar-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ps-topbar-contacts a:hover {
  color: var(--cyan);
}

.ps-header {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: rgba(7, 11, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-cyan);
}

.ps-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ps-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.ps-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(168, 85, 247, 0.22));
  border: 1px solid var(--border-cyan-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.2);
}

.ps-logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.ps-logo-text span {
  color: var(--cyan);
}

.ps-logo-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -2px;
}

/* Desktop Nav */
.ps-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ps-nav-item {
  position: relative;
}

.ps-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.ps-nav-link:hover,
.ps-nav-item:hover > .ps-nav-link,
.ps-nav-link.active {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
}

.ps-badge-ai {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(192, 132, 252, 0.52);
  color: #e9d5ff;
}

/* Mega Menu */
.ps-mega {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  top: 94px;
  width: min(1220px, calc(100vw - 32px));
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 212, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 2000;
}

.ps-nav-item.has-mega:hover .ps-mega,
.ps-nav-item.has-mega:focus-within .ps-mega,
.ps-nav-item.has-mega.mega-open .ps-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ps-mega-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.ps-mega-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.ps-mega-col-title.ai-col {
  color: #d8b4fe;
  border-bottom-color: rgba(168, 85, 247, 0.36);
}

.ps-mega-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ps-mega-links a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.81rem;
  color: var(--text-body);
  line-height: 1.35;
}

.ps-mega-links a:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #fff;
}

.ps-mega-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Dropdown simple */
.ps-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 2000;
}

.ps-nav-item:hover .ps-dropdown,
.ps-nav-item:focus-within .ps-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(2px);
}

.ps-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--text-body);
}

.ps-dropdown a:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
}

/* Header Actions */
.ps-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.ps-search-trigger:hover {
  border-color: var(--cyan);
  color: #fff;
}

.ps-kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

/* Buttons */
.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  padding: 11px 20px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: center;
  line-height: 1.25;
}

.ps-btn-primary {
  background: linear-gradient(135deg, #00d4ff 0%, #0095ff 100%);
  color: #030712;
  font-weight: 800;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.28);
}

.ps-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.45);
  color: #020617;
}

.ps-btn-outline {
  background: rgba(0, 212, 255, 0.06);
  border-color: var(--border-cyan-strong);
  color: #fff;
}

.ps-btn-outline:hover {
  background: rgba(0, 212, 255, 0.16);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.ps-btn-ai {
  background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
  color: #030712;
  font-weight: 800;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.26);
}

.ps-btn-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 212, 255, 0.42);
  color: #020617;
}

.ps-btn-sm {
  padding: 8px 14px;
  font-size: 0.78rem;
}

.ps-btn-lg {
  padding: 15px 28px;
  font-size: 0.92rem;
}

/* Mobile Burger & Drawer */
.ps-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-cyan);
  border-radius: 9px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.ps-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  top: 62px;
  background: rgba(5, 8, 17, 0.98);
  z-index: 1999;
  overflow-y: auto;
  padding: 20px;
  border-top: 1px solid var(--border-cyan);
}

.ps-mobile-drawer.open {
  display: block;
}

.ps-mobile-group {
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.ps-mobile-group summary {
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.ps-mobile-sublinks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding-top: 10px;
}

.ps-mobile-sublinks a {
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--text-body);
}

/* ==========================================================================
   SECTIONS, CARDS, BENTO GRIDS & TYPOGRAPHY HELPERS
   ========================================================================== */
.ps-section {
  padding: 72px 0;
  position: relative;
  z-index: 5;
}

.ps-section-sm {
  padding: 44px 0;
}

.ps-section-alt {
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.7) 0%, rgba(5, 8, 17, 0.4) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ps-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.28);
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.ps-eyebrow.ai {
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(192, 132, 252, 0.48);
}

.ps-eyebrow.emerald {
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.32);
}

.ps-h1 {
  font-size: clamp(1.85rem, 3.8vw, 3.25rem);
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.ps-h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.ps-h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.ps-lead {
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  color: var(--text-body);
  max-width: 780px;
  line-height: 1.68;
}

.text-gradient {
  background: linear-gradient(135deg, #00d4ff 0%, #38bdf8 46%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--cyan); }
.text-emerald { color: var(--emerald); }
.text-violet { color: #c084fc; }
.text-amber { color: var(--amber); }

/* Cards */
.ps-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.22s ease, transform 0.22s ease;
  min-width: 0;
}

.ps-card:hover {
  border-color: var(--border-cyan);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 212, 255, 0.07);
}

.ps-card-interactive:hover {
  transform: translateY(-3px);
}

.ps-card-ai {
  background: linear-gradient(145deg, rgba(17, 25, 44, 0.9), rgba(24, 16, 48, 0.85));
  border-color: rgba(0, 212, 255, 0.35);
}

.ps-card-ai:hover {
  border-color: rgba(0, 212, 255, 0.65);
}

/* Grids */
.ps-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ps-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ps-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ps-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* Breadcrumbs */
.ps-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.ps-breadcrumbs a {
  color: var(--cyan);
}

.ps-breadcrumbs a:hover {
  text-decoration: underline;
}

/* KPI Stat Strip */
.ps-kpi-val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  color: #fff;
  line-height: 1.1;
}

.ps-kpi-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Tables */
.ps-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(8, 12, 22, 0.85);
  margin: 22px 0;
}

.ps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.ps-table th {
  background: rgba(15, 23, 42, 0.95);
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-cyan);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ps-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--text-body);
  vertical-align: top;
}

.ps-table tr:last-child td {
  border-bottom: none;
}

.ps-table tr:hover td {
  background: rgba(0, 212, 255, 0.03);
}

/* Tabs & Pills */
.ps-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.ps-tab-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 99px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.ps-tab-btn:hover {
  border-color: var(--cyan);
  color: #fff;
}

.ps-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(168, 85, 247, 0.22));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.18);
}

/* Accordion FAQ */
.ps-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ps-faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.ps-faq-item[open] {
  border-color: var(--border-cyan);
}

.ps-faq-item summary {
  list-style: none;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.ps-faq-item summary::-webkit-details-marker {
  display: none;
}

.ps-faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  transition: transform 0.2s;
}

.ps-faq-item[open] .ps-faq-icon {
  transform: rotate(45deg);
  background: var(--cyan);
  color: #030712;
}

.ps-faq-body {
  padding: 0 22px 20px;
  color: var(--text-body);
  font-size: 0.94rem;
  line-height: 1.68;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

/* ==========================================================================
   ARTICLE & WIKI PROSE TYPOGRAPHY (EDITORIAL GRADE)
   ========================================================================== */
.ps-layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.ps-sticky-aside {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ps-prose {
  font-size: 1.02rem;
  line-height: 1.78;
  color: #d6e0ee;
  min-width: 0;
}

.ps-prose h2 {
  font-size: clamp(1.32rem, 2.2vw, 1.75rem);
  margin: 2.2rem 0 0.95rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.18);
  scroll-margin-top: 96px;
}

.ps-prose h3 {
  font-size: 1.18rem;
  margin: 1.6rem 0 0.7rem;
  color: #f1f5f9;
  scroll-margin-top: 96px;
}

.ps-prose p {
  margin-bottom: 1.15rem;
}

.ps-prose ul, .ps-prose ol {
  margin: 0.9rem 0 1.3rem 1.35rem;
}

.ps-prose li {
  margin-bottom: 0.5rem;
}

.ps-prose a {
  color: var(--cyan);
  border-bottom: 1px dashed rgba(0, 212, 255, 0.5);
}

.ps-prose a:hover {
  color: #fff;
  border-bottom-style: solid;
}

.ps-prose blockquote {
  margin: 1.5rem 0;
  padding: 18px 22px;
  background: rgba(0, 212, 255, 0.06);
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #e2e8f0;
}

.ps-prose img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin: 1.5rem 0;
  background: #080d1a;
}

.ps-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.ps-prose th {
  background: #0f172a;
  color: var(--cyan);
  padding: 11px 14px;
  border: 1px solid #1e293b;
  text-align: left;
}

.ps-prose td {
  padding: 10px 14px;
  border: 1px solid #1e293b;
}

/* ==========================================================================
   INPUTS & INTERACTIVE CALCULATOR CONTROLS
   ========================================================================== */
.ps-input, .ps-select, .ps-textarea {
  width: 100%;
  background: #070b15;
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}

.ps-input:focus, .ps-select:focus, .ps-textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.16);
}

.ps-range {
  width: 100%;
  accent-color: var(--cyan);
  cursor: pointer;
}

/* ==========================================================================
   COOKIE BANNER (152-FZ), SEARCH MODAL & CONVERSION MODAL
   ========================================================================== */
.ps-cookie-bar {
  position: fixed;
  bottom: 18px;
  left: 18px;
  width: min(520px, calc(100vw - 36px));
  background: rgba(8, 13, 25, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  z-index: 2500;
  display: none;
}

.ps-cookie-bar.visible {
  display: block;
}

.ps-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 16, 0.86);
  backdrop-filter: blur(10px);
  z-index: 2900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.ps-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ps-modal-box {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: #0b1120;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
}

.ps-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps-modal-close:hover {
  border-color: var(--cyan);
  color: #fff;
}

/* Global Search Modal */
.ps-search-box {
  max-width: 680px;
  padding: 20px;
}

.ps-search-results {
  margin-top: 14px;
  max-height: 56vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ps-search-hit {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid transparent;
}

.ps-search-hit:hover {
  border-color: var(--border-cyan);
  background: rgba(0, 212, 255, 0.08);
}

/* ==========================================================================
   FOOTER & QUICK DOCK
   ========================================================================== */
.ps-footer {
  margin-top: auto;
  background: #04070f;
  border-top: 1px solid var(--border-cyan);
  padding: 60px 0 28px;
  position: relative;
  z-index: 10;
}

.ps-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 28px;
}

.ps-footer-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.ps-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-footer-links a {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.ps-footer-links a:hover {
  color: #fff;
}

.ps-quick-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 1500;
}

.ps-dock-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(11, 17, 32, 0.92);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  font-size: 1.05rem;
}

.ps-dock-btn:hover {
  background: var(--cyan);
  color: #030712;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET 1080px & MOBILE 360px-768px)
   ========================================================================== */
@media (max-width: 1140px) {
  .ps-nav {
    display: none;
  }
  .ps-burger {
    display: inline-flex;
  }
  .ps-mega {
    display: none !important;
  }
  .ps-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ps-layout-sidebar {
    grid-template-columns: 1fr;
  }
  .ps-sticky-aside {
    position: static;
  }
}

@media (max-width: 900px) {
  .ps-grid-3, .ps-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ps-topbar {
    display: none;
  }
}

@media (max-width: 640px) {
  .ps-container {
    padding: 0 15px;
  }
  .ps-section {
    padding: 46px 0;
  }
  .ps-grid-2, .ps-grid-3, .ps-grid-4 {
    grid-template-columns: 1fr;
  }
  .ps-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .ps-header-actions .ps-btn-header-cta {
    display: none;
  }
  .ps-search-trigger span.ps-search-lbl,
  .ps-search-trigger .ps-kbd {
    display: none;
  }
  .ps-card {
    padding: 18px;
  }
  .ps-cookie-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 15px;
  }
  .ps-quick-dock {
    right: 12px;
    bottom: 14px;
  }
}

/* V10.1 Symbiosis Additions: Tariff Hit Glow, Case SVG Cards, Pagination & FO Sections */
.ps-tariff-hit {
  border-color: var(--cyan) !important;
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.10) 0%, rgba(11, 17, 32, 0.95) 65%) !important;
  box-shadow: 0 0 38px rgba(0, 212, 255, 0.18), inset 0 1px 0 rgba(0, 212, 255, 0.35) !important;
  position: relative;
}
.ps-cta-final {
  background: linear-gradient(135deg, rgba(8, 20, 38, 0.96) 0%, rgba(20, 14, 44, 0.92) 100%);
  border: 1px solid var(--border-cyan-strong);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 42px rgba(0, 212, 255, 0.12);
}
.ps-page-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: rgba(11, 17, 32, 0.85);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.ps-page-btn:hover { border-color: var(--cyan); color: #fff; }
.ps-page-btn.active { background: var(--cyan); border-color: var(--cyan); color: #030712; }
@media (max-width: 640px) {
  .ps-cta-final { padding: 26px 18px; }
}

.ps-topbar-contacts a { white-space: nowrap; }

/* ==========================================================================
   V10.2 SYMBIOSIS: DEEP SPACE + ELECTRIC CYAN + ROYAL VIOLET & V8 NEON DRAMA
   PageSpeed 100/100 Safe: Zero backdrop-filter on cards, Zero animated box-shadow
   ========================================================================== */
:root {
  --violet: #a855f7;
  --violet-bright: #c084fc;
  --violet-glow: rgba(168, 85, 247, 0.22);
  --indigo-surface: rgba(24, 16, 48, 0.78);
  --neon-cyan-shadow: 0 0 24px rgba(0, 212, 255, 0.28), 0 12px 32px rgba(0, 0, 0, 0.55);
  --neon-violet-shadow: 0 0 26px rgba(168, 85, 247, 0.24), 0 14px 36px rgba(0, 0, 0, 0.58);
}

body {
  background-color: #050811;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -12%, rgba(0, 212, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 55% 42% at 88% 16%, rgba(168, 85, 247, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 55%, rgba(2, 132, 199, 0.09), transparent 70%);
}

.ps-section-alt {
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.84) 0%, rgba(14, 12, 32, 0.72) 100%);
  border-top: 1px solid rgba(0, 212, 255, 0.14);
  border-bottom: 1px solid rgba(168, 85, 247, 0.14);
}

.text-gradient {
  background: linear-gradient(135deg, #00d4ff 0%, #38bdf8 46%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-violet { color: #c084fc; }

.ps-badge-ai,
.ps-eyebrow.ai {
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #e9d5ff;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.22);
}

.ps-eyebrow {
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.14);
}

.ps-mega-col-title.ai-col {
  color: #d8b4fe;
  border-bottom-color: rgba(168, 85, 247, 0.36);
}

/* V8 Neon Cards: High-contrast obsidian surface, crisp neon rim, zero backdrop-filter */
.ps-card {
  background: linear-gradient(160deg, rgba(13, 20, 38, 0.94) 0%, rgba(8, 12, 24, 0.97) 100%);
  border: 1px solid rgba(0, 212, 255, 0.17);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ps-card:hover {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.56), 0 0 24px rgba(0, 212, 255, 0.12);
}

.ps-card-interactive:hover,
.case-card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6), 0 0 28px rgba(0, 212, 255, 0.18), 0 0 0 1px rgba(168, 85, 247, 0.24);
}

.ps-card-ai {
  background: linear-gradient(155deg, rgba(11, 17, 34, 0.96) 0%, rgba(30, 16, 58, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.46);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 28px rgba(168, 85, 247, 0.15), inset 0 1px 0 rgba(216, 180, 254, 0.2);
}

.ps-card-ai:hover {
  border-color: rgba(192, 132, 252, 0.72);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.64), 0 0 34px rgba(168, 85, 247, 0.24);
}

/* V8 Neon CTA Buttons (Zero box-shadow animation) */
.ps-btn-primary {
  background: linear-gradient(135deg, #00e5ff 0%, #00b4ff 55%, #0284c7 100%);
  color: #030712;
  border: 1px solid rgba(125, 249, 255, 0.55);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.36), 0 10px 26px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.ps-btn-primary:hover {
  background: linear-gradient(135deg, #33ebff 0%, #00c4ff 55%, #0ea5e9 100%);
  transform: translateY(-2px);
  color: #020617;
}

.ps-btn-ai {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 48%, #00a8d6 100%);
  color: #fff;
  border: 1px solid rgba(192, 132, 252, 0.58);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.34), 0 10px 26px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.ps-btn-ai:hover {
  background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 48%, #00c4f0 100%);
  transform: translateY(-2px);
  color: #fff;
}

.ps-btn-outline {
  background: rgba(0, 212, 255, 0.06);
  border: 1.5px solid rgba(0, 212, 255, 0.55);
  color: #f8fafc;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.14);
}

.ps-btn-outline:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: #00d4ff;
  color: #fff;
  transform: translateY(-2px);
}

/* V8 Center Tariff Highlight «Хит продаж» */
#tariffs-sec .ps-grid-3 > .ps-card:nth-child(2),
.ps-pricing-hit,
.ps-tariff-hit {
  border: 1.5px solid #00d4ff !important;
  background: linear-gradient(162deg, rgba(0, 212, 255, 0.15) 0%, rgba(11, 18, 36, 0.97) 44%, rgba(28, 16, 56, 0.95) 100%) !important;
  box-shadow: 0 0 42px rgba(0, 212, 255, 0.24), 0 22px 54px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(0, 212, 255, 0.5) !important;
  transform: translateY(-8px);
  position: relative;
  z-index: 2;
}

.ps-cta-final {
  background: linear-gradient(135deg, rgba(8, 20, 40, 0.97) 0%, rgba(26, 14, 52, 0.94) 100%);
  border: 1.5px solid rgba(0, 212, 255, 0.52);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.68), 0 0 44px rgba(0, 212, 255, 0.16), 0 0 26px rgba(168, 85, 247, 0.12);
}

/* Centered section headers for showcase rhythm */
#tariffs-sec .ps-container > div:first-child,
.ps-showcase-centered {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile drawer scroll safety & tariff reset */
.ps-mobile-drawer {
  height: calc(100vh - 62px);
  height: calc(100dvh - 62px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 48px;
}

@media (max-width: 900px) {
  #tariffs-sec .ps-grid-3 > .ps-card:nth-child(2),
  .ps-pricing-hit,
  .ps-tariff-hit {
    transform: none;
  }
}

/* Rock-solid Mobile Header (320px - 680px) */
@media (max-width: 680px) {
  .ps-btn-header-cta,
  .ps-search-lbl,
  .ps-kbd {
    display: none !important;
  }
  .ps-header-inner {
    padding: 10px 14px !important;
    gap: 8px !important;
  }
  .ps-logo {
    gap: 8px !important;
    min-width: 0;
  }
  .ps-logo-text {
    font-size: 1rem !important;
  }
  .ps-logo-sub {
    display: none !important;
  }
  .ps-search-trigger {
    padding: 8px 10px !important;
    flex-shrink: 0;
  }
  .ps-burger {
    display: inline-flex !important;
    flex-shrink: 0 !important;
    width: 42px !important;
    height: 42px !important;
  }
}

/* Neon Architect Monogram Avatar (Zero broken img, Zero CLS) */
.ps-avatar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.28) 0%, rgba(168, 85, 247, 0.34) 100%);
  border: 2px solid #00d4ff;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.28), inset 0 0 10px rgba(168, 85, 247, 0.22);
  user-select: none;
}


/* === V10.2 MENU HOVER BRIDGE FIX === */
@media (min-width: 1141px) {
  .ps-nav-item.has-mega::after,
  .ps-nav-item:has(.ps-dropdown)::after {
    content: "";
    position: absolute;
    left: -24px;
    right: -24px;
    top: 100%;
    height: 36px;
    pointer-events: none;
  }
  .ps-nav-item.has-mega:hover::after,
  .ps-nav-item.has-mega.mega-open::after,
  .ps-nav-item:has(.ps-dropdown):hover::after,
  .ps-nav-item.dropdown-open::after {
    pointer-events: auto;
  }
  .ps-mega::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -32px;
    height: 32px;
  }
  .ps-nav-item.has-mega:hover .ps-mega,
  .ps-nav-item.has-mega:focus-within .ps-mega,
  .ps-nav-item.has-mega.mega-open .ps-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .ps-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
  }
  .ps-nav-item:hover .ps-dropdown,
  .ps-nav-item:focus-within .ps-dropdown,
  .ps-nav-item.dropdown-open .ps-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}
