/* ===================================================================
   ТОО «II GROUP» — Official Enterprise Platform Design System
   THEME: STRICT LIGHT (High-Precision Tech / Architectural Cleanliness)
   TYPOGRAPHY: Play (Headings/KPIs) + Plus Jakarta Sans + JetBrains Mono
   ACCREDITATION: Astana Hub Resident № 3085
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Strictly Light Enterprise Palette */
  --bg-core: #F8FAFC;          /* Slate 50 */
  --bg-sidebar: #FFFFFF;       /* Pure Crisp White */
  --bg-surface: #FFFFFF;       /* Card & Container White */
  --bg-surface-subtle: #F1F5F9;/* Slate 100 */
  --bg-surface-alt: #F8FAFC;   /* Slate 50 */
  --bg-glass: rgba(255, 255, 255, 0.95);

  /* High-Contrast Sharp Text */
  --text-pure: #0F172A;        /* Slate 900 */
  --text-main: #1E293B;        /* Slate 800 */
  --text-muted: #475569;       /* Slate 600 */
  --text-dim: #64748B;         /* Slate 500 */
  --text-light: #94A3B8;       /* Slate 400 */

  /* High Precision Borders */
  --border-light: #E2E8F0;     /* Slate 200 */
  --border-medium: #CBD5E1;    /* Slate 300 */
  --border-strong: #94A3B8;    /* Slate 400 */
  --border-focus: #2563EB;     /* Blue 600 */

  /* Brand Accents (Vibrant & Calibrated for Light Backgrounds) */
  --brand-blue: #2563EB;
  --brand-blue-hover: #1D4ED8;
  --brand-blue-bg: #EFF6FF;
  --brand-blue-border: #BFDBFE;

  --accent-emerald: #059669;
  --accent-emerald-hover: #047857;
  --accent-emerald-bg: #ECFDF5;
  --accent-emerald-border: #A7F3D0;

  --accent-fire: #DC2626;
  --accent-fire-hover: #B91C1C;
  --accent-fire-bg: #FEF2F2;
  --accent-fire-border: #FECACA;

  --accent-orange: #EA580C;
  --accent-orange-bg: #FFF7ED;
  --accent-orange-border: #FED7AA;

  --accent-amber: #D97706;
  --accent-amber-bg: #FFFBEB;
  --accent-amber-border: #FDE68A;

  --accent-cyan: #0284C7;
  --accent-cyan-bg: #F0F9FF;
  --accent-cyan-border: #BAE6FD;

  /* Gradients */
  --grad-fire: linear-gradient(135deg, #DC2626 0%, #EA580C 100%);
  --grad-emerald: linear-gradient(135deg, #059669 0%, #10B981 100%);
  --grad-blue: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #0284C7 100%);
  --grad-logo-full: linear-gradient(90deg, #DC2626 0%, #EA580C 30%, #D97706 60%, #059669 100%);

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 6px 12px -3px rgba(15, 23, 42, 0.05);

  /* Dimensions */
  --sidebar-width: 280px;

  /* Typography Stacks */
  --font-heading: 'Play', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-core);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-core);
  background-image: 
    radial-gradient(#E2E8F0 1px, transparent 1px),
    linear-gradient(to right, rgba(226, 232, 240, 0.3) 1px, transparent 1px);
  background-size: 24px 24px, 120px 120px;
}

/* Headings with Google Font 'Play' */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-pure);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Interactive Blueprint Canvas (Light Mode) */
#cyberCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* Main Layout Shell */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ===================================================================
   PERSISTENT SIDEBAR NAVIGATION (Desktop: Sticky Left)
   =================================================================== */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 18px 20px;
  z-index: 100;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.04);
  transition: transform var(--transition-smooth);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sidebar-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-wrapper:hover .sidebar-logo-img {
  transform: scale(1.04);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title-badge {
  font-size: 0.62rem;
  padding: 2px 6px;
  background: var(--brand-blue-bg);
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue-border);
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.astana-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--accent-emerald-bg);
  border: 1px solid var(--accent-emerald-border);
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--accent-emerald);
  font-weight: 700;
  font-family: var(--font-mono);
}

.live-pulse {
  width: 7px;
  height: 7px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Sidebar Navigation Menu */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px 0;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 4px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.nav-group-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.08em;
  padding: 10px 10px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  position: relative;
}

.nav-item-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
}

.nav-item:hover {
  color: var(--brand-blue);
  background: var(--brand-blue-bg);
  border-color: var(--brand-blue-border);
  transform: translateX(2px);
}

.nav-item.active {
  color: var(--brand-blue);
  background: var(--brand-blue-bg);
  border-color: var(--brand-blue-border);
  font-weight: 700;
}

.nav-item.active .nav-item-num {
  color: var(--brand-blue);
}

.nav-badge-pill {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
}

.nav-badge-pill.blue {
  background: var(--brand-blue-bg);
  color: var(--brand-blue);
  border-color: var(--brand-blue-border);
}

/* Sidebar Footer & Status */
.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.system-telemetry-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.telemetry-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-main);
}

.telemetry-val.good {
  color: var(--accent-emerald);
}

.sidebar-cta-btn {
  width: 100%;
}

/* ===================================================================
   GLOBAL TOP STATUS TICKER (High-Density Status Bar)
   =================================================================== */
.top-ticker-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 7px 32px;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.ticker-item b {
  color: var(--text-pure);
  font-weight: 700;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.ticker-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticker-link {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.ticker-link:hover {
  text-decoration: underline;
}

/* Mobile Topbar (< 1024px) */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-light);
  z-index: 99;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.mobile-burger-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-pure);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-pure);
  transition: var(--transition-fast);
}

/* ===================================================================
   MAIN CONTENT AREA (Offset by sidebar width on desktop)
   =================================================================== */
.main-content {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  position: relative;
  z-index: 1;
  width: calc(100% - var(--sidebar-width));
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
}

/* Sections */
section {
  padding: 72px 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-heading);
  background: var(--brand-blue-bg);
  border: 1px solid var(--brand-blue-border);
  color: var(--brand-blue);
  margin-bottom: 14px;
}

.section-tag.fire {
  background: var(--accent-fire-bg);
  border-color: var(--accent-fire-border);
  color: var(--accent-fire);
}

.section-tag.gold {
  background: var(--accent-amber-bg);
  border-color: var(--accent-amber-border);
  color: var(--accent-amber);
}

.section-tag.emerald {
  background: var(--accent-emerald-bg);
  border-color: var(--accent-emerald-border);
  color: var(--accent-emerald);
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 14px;
  color: var(--text-pure);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 740px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.section-header {
  margin-bottom: 44px;
}

.section-header.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Buttons with Font Play */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--brand-blue);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-emerald {
  background: var(--accent-emerald);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-emerald:hover {
  background: var(--accent-emerald-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-fire {
  background: var(--accent-fire);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.btn-fire:hover {
  background: var(--accent-fire-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-pure);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: 6px;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-pure);
}

.gradient-text {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.hero-stat-block {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-pure);
}

.hero-stat-val span {
  color: var(--brand-blue);
}

.hero-stat-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 2px;
}

/* Enterprise Live Terminal Card in Hero */
.hero-terminal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.mac-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mac-dots span:nth-child(1) { background: #EF4444; }
.mac-dots span:nth-child(2) { background: #F59E0B; }
.mac-dots span:nth-child(3) { background: #10B981; }

.terminal-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-weight: 600;
}

.terminal-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  transition: transform var(--transition-fast);
}

.feed-item:hover {
  transform: translateX(3px);
  border-color: var(--border-medium);
  background: #FFFFFF;
}

.feed-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--accent-emerald-bg);
  border: 1px solid var(--accent-emerald-border);
  flex-shrink: 0;
}

.feed-icon.fire {
  background: var(--accent-fire-bg);
  border-color: var(--accent-fire-border);
}

.feed-icon.blue {
  background: var(--brand-blue-bg);
  border-color: var(--brand-blue-border);
}

.feed-text h4 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 2px;
}

.feed-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================================================================
   CARDS & GRIDS (High Visual Density)
   =================================================================== */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-hover);
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--brand-blue-bg);
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue-border);
  margin-bottom: 16px;
}

.card-icon-badge.fire {
  background: var(--accent-fire-bg);
  color: var(--accent-fire);
  border-color: var(--accent-fire-border);
}

.card-icon-badge.emerald {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald-border);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-pure);
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.card-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-main);
}

.card-feature-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-emerald);
}

/* ===================================================================
   DATA TABLES (High-Density Corporate Standard)
   =================================================================== */
.table-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}

.enterprise-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.enterprise-table th {
  background: var(--bg-surface-subtle);
  color: var(--text-pure);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-medium);
}

.enterprise-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

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

.enterprise-table tr:hover td {
  background: #F8FAFC;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
}

.status-badge.fire {
  background: var(--accent-fire-bg);
  color: var(--accent-fire);
  border-color: var(--accent-fire-border);
}

.status-badge.amber {
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  border-color: var(--accent-amber-border);
}

.status-badge.blue {
  background: var(--brand-blue-bg);
  color: var(--brand-blue);
  border-color: var(--brand-blue-border);
}

.law-code-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--brand-blue-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===================================================================
   ARCHITECTURE TABS & EXPLORER (Tech Stack Page)
   =================================================================== */
.arch-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arch-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.arch-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.arch-tab-btn:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue-border);
  background: var(--brand-blue-bg);
}

.arch-tab-btn.active {
  background: var(--brand-blue);
  color: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.arch-panel {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.arch-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tech-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.tech-spec-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 18px;
  box-shadow: var(--shadow-xs);
}

.tech-spec-box h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-spec-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.tech-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

/* ===================================================================
   RISK & PENALTY CALCULATOR (Light Theme)
   =================================================================== */
.calc-card {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-pure);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  background: #FFFFFF;
  color: var(--text-pure);
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.calc-results-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-metric {
  display: flex;
  flex-direction: column;
}

.calc-metric-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.calc-metric-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-top: 2px;
}

.calc-metric-val.high {
  color: var(--accent-fire);
}

.calc-metric-val.medium {
  color: var(--accent-amber);
}

.calc-metric-val.low {
  color: var(--accent-emerald);
}

/* ===================================================================
   CASE STUDY: GR SAFETY (Client: ТОО «GRWorld»)
   =================================================================== */
.case-study-hero {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.comp-col {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.comp-col.bad {
  background: #FEF2F2;
  border-color: #FECACA;
}

.comp-col.good {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.comp-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-col.bad h4 { color: #B91C1C; }
.comp-col.good h4 { color: #047857; }

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comp-list li {
  font-size: 0.86rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-main);
}

/* ===================================================================
   ASTANA HUB CERTIFICATE CARD & MODAL
   =================================================================== */
.certificate-preview-box {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.certificate-img-thumb {
  max-width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.certificate-img-thumb:hover {
  transform: scale(1.02);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface-subtle);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-pure);
}

/* ===================================================================
   FOOTER (Enterprise Legal Dossier)
   =================================================================== */
.footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 32px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 14px 0 20px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-blue);
}

.dossier-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dossier-row {
  display: flex;
  justify-content: space-between;
}

.dossier-row span:first-child {
  color: var(--text-dim);
}

.dossier-row span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-pure);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===================================================================
   RESPONSIVE (Mobile & Tablet)
   =================================================================== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .mobile-topbar {
    display: flex;
  }
  .top-ticker-bar {
    display: none;
  }
  .main-content {
    margin-left: 0;
    width: 100%;
    padding-top: 66px;
  }
  .hero-grid,
  .calc-grid,
  .comparison-grid,
  .cards-grid-3,
  .cards-grid-2,
  .cards-grid-4,
  .tech-spec-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 20px;
  }
}
