/* ===== Переменные ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #14141e;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --accent: #6c5ce7;
  --accent-gradient: linear-gradient(135deg, #6c5ce7, #00b894);
  --border-color: #2a2a3a;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* ===== Сброс и база ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(108, 92, 231, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-md {
  padding: 12px 28px;
  font-size: 1rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.2rem;
}

/* ===== Хедер ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: #6c5ce7;
}

.dot {
  color: #00b894;
}

.nav {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav a:hover {
  color: var(--text-primary);
  transition: color 0.2s;
}

.header-cta {
  padding: 8px 24px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ===== Секция ботов ===== */
.bots-section {
  background: var(--bg-secondary);
}

.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

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

.bot-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.bot-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.bot-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.bot-features li::before {
  content: '✓ ';
  color: #00b894;
  font-weight: 700;
}

.bot-link {
  align-self: center;
  width: 100%;
}

/* ===== Преимущества ===== */
.advantages-section {
  background: var(--bg-primary);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.advantage-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, border-color 0.3s;
}

.advantage-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.advantage-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.advantage-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Секция цен ===== */
.pricing-section {
  background: var(--bg-primary);
}

.pricing-plans {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 320px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: scale(1.02);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.2);
}

.pricing-badge {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  align-self: center;  /* центрируем по горизонтали */
  flex-shrink: 0;      /* запрещаем сжатие */
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓ ';
  color: #00b894;
  font-weight: 700;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.pricing-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.5rem;
  margin-left: 1rem;
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  padding: 0;
}

.faq-answer.open {
  max-height: 200px;
  padding: 0.5rem 0 1rem 0;
}

/* ===== CTA ===== */
.cta-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.cta-wrapper {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-secondary);
  border-radius: 40px;
  padding: 4rem 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ===== Футер ===== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: var(--bg-primary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
  .header-inner .nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    padding: 1.5rem 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .header-inner .nav.open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .pricing-plans {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    width: 100%;
    max-width: 380px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

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

@media (max-width: 480px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}