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

:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --text-color: #333;
  --bg-color: #f8f9fa;
  --white: #ffffff;
  --border-color: #dee2e6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header - закругленный островок */
.header {
  background: var(--white);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 24px;
  margin: 20px auto 40px;
  max-width: 1200px;
  width: calc(100% - 40px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

.logo:hover {
  opacity: 0.8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover {
  background: var(--bg-color);
  color: var(--primary-color);
}

.nav-link.btn-link {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.nav-link.btn-link:hover {
  background: var(--bg-color);
}

/* Профиль меню */
.profile-menu {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  font-family: inherit;
}

.profile-btn:hover {
  background: var(--bg-color);
  border-color: var(--primary-color);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.profile-dropdown-item:hover {
  background: var(--bg-color);
}

.profile-dropdown-item-danger {
  color: #dc3545;
  border-top: 1px solid var(--border-color);
}

.profile-dropdown-item-danger:hover {
  background: #fff5f5;
  color: #c82333;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 120px;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f4ff 100%);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 40px;
  color: #1a1a1a;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-title-accent {
  color: var(--primary-color);
  background: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #6f42c1 0%, #007bff 100%);
  color: white;
  padding: 20px 48px;
  font-size: 20px;
  font-weight: 600;
  border-radius: 16px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(111, 66, 193, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-hero-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(111, 66, 193, 0.5);
}

.btn-hero-secondary {
  background: white;
  color: #6f42c1;
  padding: 20px 48px;
  font-size: 20px;
  font-weight: 600;
  border-radius: 16px;
  border: 2px solid #6f42c1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-hero-secondary:hover {
  background: linear-gradient(135deg, #6f42c1 0%, #007bff 100%);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(111, 66, 193, 0.4);
}

.hero-description {
  font-size: 22px;
  color: #6c757d;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}

/* Scenarios */
.scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.scenario-card {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.scenario-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.scenario-card.primary {
  border-color: var(--primary-color);
}

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

.scenario-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
}

.scenario-description {
  color: var(--secondary-color);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  width: 100%;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-color);
}

/* Secondary section */
.secondary {
  text-align: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

/* Как это работает */
.how-it-works-section {
  margin-bottom: 120px;
  max-width: 1200px;
  width: calc(100% - 40px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.section-title-large {
  font-size: 56px;
  font-weight: 800;
  text-align: center;
  margin: 0 auto 80px;
  color: #1a1a1a;
  letter-spacing: -1px;
  max-width: 1200px;
  width: calc(100% - 40px);
  padding: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card {
  background: var(--white);
  padding: 60px 40px;
  border-radius: 24px;
  text-align: center;
  border: 2px solid var(--border-color);
  transition: all 0.3s;
}

.step-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6f42c1 0%, #007bff 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  margin: 0 auto 32px;
}

.step-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.step-description {
  font-size: 18px;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Возможности */
.features-section {
  margin-bottom: 120px;
  max-width: 1200px;
  width: calc(100% - 40px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.feature-block {
  width: 100%;
  background: var(--white);
  padding: 80px 60px;
  border-radius: 24px;
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.feature-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a1a;
  text-align: center;
}

.feature-text {
  font-size: 22px;
  color: var(--secondary-color);
  line-height: 1.7;
  margin-bottom: 40px;
  text-align: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.feature-list li {
  font-size: 20px;
  color: #1a1a1a;
  padding: 16px 0;
  padding-left: 40px;
  position: relative;
  line-height: 1.6;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
}

.btn-feature {
  background: linear-gradient(135deg, #6f42c1 0%, #007bff 100%);
  color: white;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(111, 66, 193, 0.3);
  display: block;
  margin: 0 auto;
}

.btn-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(111, 66, 193, 0.4);
}

/* Footer */
.footer {
  margin-top: auto;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 60px 40px 24px;
  border-radius: 24px;
  margin: 40px auto 20px;
  max-width: 1200px;
  width: calc(100% - 40px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.footer-section h3.footer-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.footer-section h4.footer-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 16px;
}

.footer-text {
  color: var(--secondary-color);
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--secondary-color);
  font-size: 14px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  overflow: auto;
}

.modal-content {
  background: var(--white);
  margin: 10% auto;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  cursor: pointer;
}

.close:hover {
  color: var(--text-color);
}

.demo-content, .how-it-works {
  margin-top: 20px;
  line-height: 1.8;
}

.demo-content p, .how-it-works p {
  margin-bottom: 12px;
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header {
    margin: 10px auto 20px;
    padding: 12px 16px;
    border-radius: 16px;
    width: calc(100% - 20px);
    max-width: 100%;
  }

  .nav {
    gap: 4px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 13px;
  }

  .logo {
    font-size: 20px;
  }

  .hero {
    padding: 60px 20px;
    margin-bottom: 80px;
  }

  .hero-title {
    font-size: 42px;
    margin-bottom: 32px;
    line-height: 1.1;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 18px 36px;
    font-size: 18px;
    width: 100%;
    max-width: 400px;
    justify-content: center;
  }

  .hero-description {
    font-size: 18px;
  }

  .section-title-large {
    font-size: 36px;
    margin-bottom: 48px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-card {
    padding: 40px 24px;
  }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 28px;
    margin-bottom: 24px;
  }

  .step-title {
    font-size: 24px;
  }

  .step-description {
    font-size: 16px;
  }

  .features-section,
  .reviews-section,
  .development-section,
  .how-it-works-section {
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
  }

  .feature-block {
    padding: 48px 24px;
  }

  .development-block {
    padding: 48px 24px;
  }

  .section-title-large {
    width: calc(100% - 20px);
    font-size: 36px;
    margin-bottom: 48px;
  }

  .feature-title {
    font-size: 32px;
  }

  .feature-text {
    font-size: 18px;
  }

  .feature-list li {
    font-size: 18px;
    padding: 12px 0;
    padding-left: 32px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer {
    padding: 40px 24px 20px;
    margin: 40px auto 20px;
    width: calc(100% - 20px);
    border-radius: 16px;
  }

  .nav-links {
    display: none; /* Скрываем навигацию на мобильных */
  }

  .scenarios {
    grid-template-columns: 1fr;
  }

  .scenario-card {
    padding: 30px 20px;
  }

  .secondary {
    flex-direction: column;
  }
}

