:root {
  --cyber-bg: #040406;
  --cyber-panel: rgba(13, 14, 21, 0.9);
  --border-glow: rgba(0, 240, 255, 0.15);
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff0055;
  --neon-orange: #ff9f1c;
  --neon-green: #39ff14;
  --text-primary: #e2e8f0;
  --text-muted: #808a9d;
  --font-mono: 'Courier New', Courier, monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--cyber-bg);
}

body {
  font-family: var(--font-sans);
  background-color: var(--cyber-bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(18, 18, 28, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 28, 0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
}

/* Ambient Cyber Gradients */
.ambient-mesh {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.ambient-mesh::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, rgba(0,0,0,0) 70%);
  top: -100px;
  right: -200px;
}
.ambient-mesh::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 0, 85, 0.04) 0%, rgba(0,0,0,0) 70%);
  top: 40%;
  left: -200px;
}

/* Structural Dashboard Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Cyber Control Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(4, 4, 6, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 2px solid var(--neon-magenta);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(255, 0, 85, 0.15);
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse 1.5s infinite;
}

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

/* Asymmetric Interactive Modules Grid */
main.container {
  padding-top: 140px; /* Дает отличный визуальный отступ под шапкой */
  padding-bottom: 5rem;
  position: relative;
  z-index: 2;
}
.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(12, 1s);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* The Modular Interactive Card */
.module-card {
  background: var(--cyber-panel);
  border: 1px solid var(--border-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

.module-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

/* Sizing Helpers for Asymmetric Grid */
.width-100 { width: 100%; }
.width-65 { width: calc(65% - 1rem); }
.width-35 { width: calc(35% - 1rem); }
.width-50 { width: calc(50% - 1rem); }

/* Custom Headings & Copy styling */
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.8rem;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: '>';
  color: var(--neon-magenta);
}

h3 {
  font-size: 1.3rem;
  color: #fff;
  margin: 1.5rem 0 1rem 0;
  border-left: 3px solid var(--neon-orange);
  padding-left: 10px;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Micro-interactive Cyber Frames around Images */
.cyber-image-frame {
  position: relative;
  border: 1px solid var(--neon-magenta);
  padding: 8px;
  background: rgba(255, 0, 85, 0.02);
  border-radius: 4px;
}

.cyber-image-frame::after {
  content: '[SYSTEM_VIEW]';
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--cyber-bg);
  color: var(--neon-magenta);
  padding: 2px 8px;
  border: 1px solid var(--neon-magenta);
}

/* Callout Frame (Aside) */
aside {
  background: rgba(255, 159, 28, 0.04);
  border: 1px solid var(--neon-orange);
  padding: 1.5rem;
  border-radius: 4px;
  position: relative;
  margin: 2rem 0;
}

aside::before {
  content: '! CAUTION';
  position: absolute;
  top: -12px;
  left: 15px;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.75rem;
  background: #251605;
  color: var(--neon-orange);
  padding: 1px 8px;
  border: 1px solid var(--neon-orange);
}

aside p {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
}

/* Structured Terminal Tables */
.terminal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.terminal-table th, .terminal-table td {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.terminal-table th {
  background: rgba(0, 240, 255, 0.05);
  color: var(--neon-cyan);
  font-weight: bold;
  text-transform: uppercase;
}

.terminal-table tr:hover td {
  background: rgba(0, 240, 255, 0.02);
}

/* Interactive Lists */
ul, ol {
  margin: 1.5rem 0 2rem 1.5rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

ul li::marker {
  color: var(--neon-magenta);
}

ol li::marker {
  color: var(--neon-cyan);
  font-weight: bold;
}

/* Footer Section */
footer {
  background: #020203;
  border-top: 1px solid rgba(255, 0, 85, 0.2);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Custom Interactive Accordion Modules for FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-glow);
  background: rgba(13, 14, 21, 0.6);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-trigger {
  padding: 1.25rem 1.5rem;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-trigger::after {
  content: '[+]';
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

.faq-item.active {
  border-color: var(--neon-cyan);
}

.faq-item.active .faq-trigger::after {
  content: '[-]';
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
}

.faq-item.active .faq-content {
  padding-bottom: 1.5rem;
}

/* Responsive Scaling */
@media (max-width: 1024px) {
  .width-65, .width-35, .width-50 {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-grid {
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    height: 100px;
  }
  
  main {
    padding-top: 130px;
  }
  
  .module-card {
    padding: 1.5rem;
  }
  
  .terminal-table, .terminal-table thead, .terminal-table tbody, .terminal-table th, .terminal-table td, .terminal-table tr {
    display: block;
  }
  
  .terminal-table th {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .terminal-table tr {
    border-bottom: 1px solid var(--neon-cyan);
    padding: 1rem 0;
  }
  
  .terminal-table td {
    border: none;
    position: relative;
    padding-left: 50%;
    text-align: right;
  }
  
  .terminal-table td::before {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    content: attr(data-label);
    color: var(--neon-cyan);
    font-weight: bold;
    text-align: left;
  }
}