* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff4444;
  --secondary: #cc0000;
  --dark: #990000;
  --accent: #ff6666;
  --accent-glow: rgba(255, 102, 102, 0.5);
}

body {
  font-family: 'Courier New', 'Consolas', monospace;
  background: #000;
  color: var(--primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Уникальный эффект для WinRAR - красные трещины */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 48%, var(--accent-glow) 49%, var(--accent-glow) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, var(--accent-glow) 49%, var(--accent-glow) 51%, transparent 52%);
  background-size: 50px 50px;
  z-index: 0;
  opacity: 0.1;
  animation: crack-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes crack-pulse {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.05); }
}

.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #000;
}

#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  filter: hue-rotate(0deg) saturate(1.5);
}

.scan-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.03) 0px,
    rgba(0, 255, 65, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  animation: scan 8s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px); }
}

.glitch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 50%, rgba(0, 255, 65, 0.03) 50%),
    linear-gradient(0deg, transparent 50%, rgba(0, 255, 65, 0.03) 50%);
  background-size: 2px 2px;
  pointer-events: none;
  opacity: 0.5;
}

.matrix-nav {
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(255, 68, 68, 0.3);
  position: relative;
  z-index: 100;
}

.matrix-nav::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0px,
    var(--primary) 10px,
    var(--accent) 10px,
    var(--accent) 20px
  );
  animation: nav-stripe 2s linear infinite;
}

@keyframes nav-stripe {
  0% { transform: translateX(0); }
  100% { transform: translateX(20px); }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  filter: drop-shadow(0 0 5px #00ff41);
}

.logo-text {
  font-size: 14px;
  font-weight: bold;
  color: #00ff41;
  text-shadow: 0 0 10px #00ff41;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-menu a {
  color: #00ff41;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 5px 10px;
  border: 1px solid transparent;
  transition: all 0.3s;
  position: relative;
}

.nav-menu a:hover {
  border-color: #00ff41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  background: rgba(0, 255, 65, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  flex: 1;
}

.matrix-hero {
  text-align: center;
  padding: 60px 0;
  margin-bottom: 80px;
}

.terminal-window {
  background: rgba(20, 0, 0, 0.8);
  border: 3px solid var(--primary);
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(255, 68, 68, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.terminal-window::after {
  content: '📦';
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 18px;
  opacity: 0.4;
  animation: archive-bounce 2s ease-in-out infinite;
}

@keyframes archive-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.1); }
}

.terminal-header {
  background: rgba(0, 255, 65, 0.1);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #00ff41;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ff41;
  box-shadow: 0 0 5px #00ff41;
}

.terminal-title {
  margin-left: auto;
  font-size: 12px;
  color: #00ff41;
  font-family: monospace;
}

.terminal-body {
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  min-height: 150px;
  background: rgba(0, 0, 0, 0.5);
}

.terminal-line {
  margin-bottom: 8px;
}

.terminal-prompt {
  color: #00ff41;
  margin-right: 10px;
}

.terminal-text {
  color: #00cc33;
}

.terminal-success {
  color: #00ff41;
  margin-right: 10px;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #00ff41;
  animation: blink 1s infinite;
  margin-left: 5px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.matrix-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 5px;
}

.glitch {
  position: relative;
  color: #00ff41;
  text-shadow: 
    0 0 10px #00ff41,
    0 0 20px #00ff41,
    0 0 30px #00ff41;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%, 90%, 100% {
    transform: translate(0);
  }
  91% {
    transform: translate(-2px, 2px);
  }
  92% {
    transform: translate(2px, -2px);
  }
  93% {
    transform: translate(-2px, -2px);
  }
  94% {
    transform: translate(2px, 2px);
  }
}

.hero-subtitle {
  font-size: 18px;
  color: #00cc33;
  margin-bottom: 30px;
  line-height: 1.6;
}

.typewriter {
  display: inline-block;
  border-right: 2px solid #00ff41;
  animation: typewriter 3s steps(40) infinite, blink-cursor 0.75s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes typewriter {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 100%; }
}

@keyframes blink-cursor {
  from, to { border-color: transparent; }
  50% { border-color: #00ff41; }
}

.matrix-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.matrix-badge {
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid #00ff41;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.badge-icon {
  margin-right: 8px;
  color: #00ff41;
}

.matrix-btn {
  display: inline-block;
  background: rgba(0, 255, 65, 0.1);
  border: 2px solid #00ff41;
  color: #00ff41;
  padding: 15px 40px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 3px;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  text-transform: uppercase;
}

.matrix-btn:hover {
  background: rgba(0, 255, 65, 0.2);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
  transform: translateY(-2px);
}

.matrix-section {
  margin-bottom: 80px;
}

.matrix-title-small {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 3px;
}

.matrix-bracket {
  color: #00ff41;
  margin: 0 10px;
}

.matrix-text {
  color: #00cc33;
  line-height: 1.8;
}

.matrix-highlight {
  color: #00ff41;
  text-shadow: 0 0 10px #00ff41;
}

.code-block {
  background: rgba(0, 20, 0, 0.6);
  border: 1px solid #00ff41;
  border-radius: 4px;
  margin-top: 20px;
  overflow: hidden;
}

.code-header {
  background: rgba(0, 255, 65, 0.1);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #00ff41;
  font-size: 12px;
}

.code-status {
  color: #00ff41;
  font-weight: bold;
}

.code-content {
  padding: 15px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.code-line {
  margin-bottom: 5px;
  color: #00cc33;
}

.code-keyword {
  color: #00ff41;
  font-weight: bold;
}

.code-string {
  color: #00ff88;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.matrix-card {
  background: rgba(20, 0, 0, 0.4);
  border: 2px solid var(--primary);
  padding: 25px;
  transition: all 0.3s;
  box-shadow: 0 0 15px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.matrix-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.matrix-card:hover::before {
  transform: translateX(100%);
}

.matrix-card:hover {
  box-shadow: 0 0 25px var(--accent-glow), 0 0 50px rgba(255, 68, 68, 0.4);
  transform: translateY(-5px);
  border-color: var(--accent);
  background: rgba(20, 0, 0, 0.6);
  border-width: 3px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.card-icon {
  color: #00ff41;
  font-weight: bold;
}

.card-status {
  font-size: 10px;
  color: #00ff41;
  font-weight: bold;
  letter-spacing: 1px;
}

.matrix-card h3 {
  color: #00ff41;
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.matrix-card p {
  color: #00cc33;
  line-height: 1.6;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.large-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.guide-block {
  margin-bottom: 40px;
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #00ff41;
  font-size: 20px;
  font-weight: bold;
  color: #00ff41;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.guide-icon {
  color: #00ff41;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.guide-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  background: rgba(0, 255, 65, 0.2);
  border: 2px solid #00ff41;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #00ff41;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.step-content h3 {
  color: #00ff41;
  font-size: 18px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.step-command {
  background: rgba(0, 0, 0, 0.5);
  border-left: 3px solid #00ff41;
  padding: 10px 15px;
  margin: 10px 0;
  font-family: 'Courier New', monospace;
}

.command-prompt {
  color: #00ff41;
  margin-right: 5px;
}

.command-text {
  color: #00cc33;
}

.step-content p {
  color: #00cc33;
  line-height: 1.8;
  margin-top: 10px;
}

.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.alternative-card {
  position: relative;
}

.alt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.alt-icon {
  color: #00ff41;
}

.alt-status {
  font-size: 10px;
  color: #00cc33;
  font-weight: bold;
  letter-spacing: 1px;
}

.alternative-card h3 {
  color: #00ff41;
  font-size: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.alternative-card p {
  color: #00cc33;
  line-height: 1.6;
  margin-bottom: 15px;
}

.alt-info {
  font-size: 12px;
  color: #00cc33;
  font-style: italic;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 100%;
}

.faq-item {
  width: 100%;
  transition: all 0.3s;
}

.faq-item:hover {
  transform: translateY(-5px);
}

.faq-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
  cursor: pointer;
}

.faq-icon {
  color: #00ff41;
  font-size: 18px;
  font-weight: bold;
}

.faq-item h3 {
  color: #00ff41;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.faq-answer {
  color: #00cc33;
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.download-card {
  text-align: center;
}

.download-card.featured {
  border-width: 2px;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.download-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.download-icon {
  color: #00ff41;
}

.download-status {
  font-size: 10px;
  color: #00ff41;
  font-weight: bold;
  letter-spacing: 1px;
}

.platform-icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: #00ff41;
}

.download-card h3 {
  color: #00ff41;
  font-size: 24px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.download-card p {
  color: #00cc33;
  margin-bottom: 20px;
}

.version-info {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid #00ff41;
  font-size: 12px;
  color: #00ff41;
}

.download-btn.secondary {
  background: rgba(0, 255, 65, 0.05);
  border-color: #00cc33;
}

.matrix-footer {
  background: rgba(0, 0, 0, 0.9);
  border-top: 2px solid #00ff41;
  padding: 30px 20px;
  text-align: center;
  margin-top: 80px;
  box-shadow: 0 -5px 20px rgba(0, 255, 65, 0.3);
  position: relative;
  z-index: 10;
  width: 100%;
  flex-shrink: 0;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content p {
  color: #00cc33;
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-note {
  font-size: 12px;
  color: #009922;
}

@media (max-width: 768px) {
  .matrix-title {
    font-size: 32px;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
  }
  
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  
  .guide-step {
    flex-direction: column;
  }
  
  .terminal-window {
    margin: 0 10px;
  }
  
  .matrix-title-small {
    font-size: 24px;
  }
}

