/* ===== БАЗОВЫЕ СТИЛИ ===== */

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

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #64748b;
  --success-color: #22c55e;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --bg-color: #f8fafc;
  --text-color: #1e293b;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

/* ===== НАВИГАЦИЯ ===== */

.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.navbar-brand a .brand-accent {
  color: #4f46e5;
}

.brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4f46e5;
  border-radius: 50%;
  vertical-align: middle;
}

.navbar-menu {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  color: #6b7280;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.15s;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.nav-link:hover {
  background-color: #f9fafb;
  color: #111827;
}

.nav-link.active {
  background-color: #eef2ff;
  color: #4f46e5;
}

.nav-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
}

.nav-badge-pro {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
}

/* ===== КНОПКИ ===== */

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: #4f46e5;
  color: white;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
}

/* ===== ГЕРОЙ СЕКЦИЯ ===== */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ПРЕИМУЩЕСТВА ===== */

.features {
  padding: 5rem 0;
  background: white;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

/* ===== CTA ===== */

.cta {
  background: linear-gradient(135deg, #7c3aed 0%, var(--primary-color) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===== ФУТЕР ===== */

.footer {
  background: var(--text-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

/* ===== ОПОВЕЩЕНИЯ ===== */

.alert {
  padding: 0.85rem 1.25rem;
  margin: 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
}

.alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border-left: 3px solid #22c55e;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border-left: 3px solid #ef4444;
}

/* ===== ФУТЕР ===== */

.footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  color: #9ca3af;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}
