/* === Публичные страницы === */

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Публичная шапка === */
.public-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.public-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111827;
  font-weight: 700;
  font-size: 20px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
}

.logo-text {
  font-size: 22px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.public-nav {
  display: flex;
  gap: 28px;
  flex: 1;
}

.public-nav .nav-link {
  color: #4b5563;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.public-nav .nav-link:hover {
  color: #667eea;
}

.public-actions {
  display: flex;
  gap: 12px;
}

/* === Кнопки === */
.btn {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(102,126,234,0.4);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* === Hero секция === */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-value {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-stats .stat-label {
  font-size: 14px;
  opacity: 0.9;
}

/* === Features секция === */
.features {
  padding: 100px 0;
  background: #f9fafb;
}

.features h2 {
  font-size: 36px;
  margin-bottom: 16px;
  text-align: center;
  color: #111827;
}

.section-subtitle {
  color: #6b7280;
  font-size: 18px;
  margin-bottom: 60px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  border-color: #667eea;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #111827;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-link {
  color: #667eea;
  font-weight: 600;
  font-size: 14px;
}

/* === How it works === */
.how-it-works {
  padding: 100px 0;
  background: white;
}

.how-it-works h2 {
  font-size: 36px;
  margin-bottom: 60px;
  text-align: center;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  padding: 32px;
  background: #f9fafb;
  border-radius: 12px;
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step p {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.step-arrow {
  font-size: 32px;
  color: #d1d5db;
}

/* === CTA секция === */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

/* === Footer === */
.public-footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-col p, .footer-col li {
  font-size: 14px;
  line-height: 1.8;
  color: #9ca3af;
  list-style: none;
}

.footer-col a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

/* === Адаптивность === */
@media (max-width: 768px) {
  .public-nav { 
    display: none; 
  }
  
  .hero h1 { 
    font-size: 32px; 
  }
  
  .hero-subtitle { 
    font-size: 16px; 
  }
  
  .hero-actions { 
    flex-direction: column; 
  }
  
  .hero-stats { 
    flex-direction: column; 
    gap: 20px; 
  }
  
  .steps { 
    flex-direction: column; 
  }
  
  .step-arrow { 
    transform: rotate(90deg); 
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}
