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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0e27;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Particles background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

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

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
}

.logo {
  animation: fadeInDown 1s ease-out;
}

.quantum-symbol {
  font-size: 80px;
  margin-bottom: 20px;
  animation: rotate 20s linear infinite;
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.5));
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

h1 {
  font-size: 4em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 0 40px rgba(102, 126, 234, 0.3);
}

.subtitle {
  font-size: 1.5em;
  color: #a0aec0;
  font-weight: 300;
  letter-spacing: 1px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
section {
  margin: 80px 0;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.8s ease-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.lead {
  font-size: 1.3em;
  text-align: center;
  color: #cbd5e0;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Method Cards */
.method-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 40px;
  margin: 30px 0;
  border: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s;
}

.method-card:hover::before {
  left: 100%;
}

.method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.6);
}

.method-icon {
  font-size: 60px;
  margin-bottom: 20px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.method-card h3 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #f093fb;
}

.method-card p {
  color: #cbd5e0;
  font-size: 1.1em;
  margin-bottom: 15px;
}

.formula {
  background: rgba(102, 126, 234, 0.1);
  border-left: 4px solid #667eea;
  padding: 20px;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  font-size: 1.2em;
  color: #f093fb;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

/* Results Grid */
.results-grid {
  display: grid;
  /* Устанавливаем 4 колонки с одинаковой шириной */
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; /* Уменьшаем отступ для более компактного вида */
  margin-top: 40px;
}

.result-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px; /* Уменьшаем внутренний отступ, чтобы квадратики были меньше */
  text-align: center;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.result-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  border-color: rgba(102, 126, 234, 0.6);
}

.result-icon {
  font-size: 50px;
  margin-bottom: 15px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.result-item h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #f093fb;
}

.result-item p {
  color: #a0aec0;
  font-size: 0.95em;
}

/* Author Section */
.author-card {
  display: flex;
  gap: 40px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 40px;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.author-photo {
  flex-shrink: 0;
}

.photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
  font-weight: bold;
  color: white;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
}

.author-photo-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
  border: 3px solid rgba(102, 126, 234, 0.3);
}

.author-info h3 {
  font-size: 2.5em;
  margin-bottom: 5px;
  color: #f093fb;
}

.author-title {
  font-size: 1.2em;
  color: #667eea;
  margin-bottom: 20px;
  font-weight: 600;
}

.author-info p {
  color: #cbd5e0;
  margin-bottom: 15px;
  font-size: 1.05em;
}

.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95em;
  color: #a0aec0;
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
}

.cta h2 {
  font-size: 3em;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.3em;
  color: #cbd5e0;
  margin-bottom: 40px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 20px 50px;
  font-size: 1.5em;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}

.arrow {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
  transform: translateX(10px);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px;
  color: #a0aec0;
  font-size: 0.9em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 80px;
}

/* Responsive */
@media (max-width: 1200px) {
  .results-grid {
    /* На больших экранах (до 1200px) делаем 2 колонки */
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5em;
  }
  
  .quantum-symbol {
    font-size: 60px;
  }
  
  .subtitle {
    font-size: 1.2em;
  }
  
  h2 {
    font-size: 2em;
  }
  
  .author-card {
    flex-direction: column;
    text-align: center;
  }
  
  .results-grid {
    /* На маленьких экранах делаем 1 колонку */
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 40px 20px;
  }
  
  .cta-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }
}

