:root {
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --bg: #f8fafc;
  --card-bg: white;
  --text: #0f172a;
  --text-light: #475569;
  --shadow: 0 10px 30px rgba(79, 70, 229, 0.12);
  --shadow-hover: 0 15px 40px rgba(79, 70, 229, 0.2);
  --border-radius: 20px;
  --accent: #10b981;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

nav a {
  margin-left: 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: #0da271;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  width: 100%;
  max-width: 420px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-image img {
  width: 100%;
  display: block;
  height: auto;
}

/* Sections */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 2.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  min-width: 50px;
  height: 50px;
  background: #f1f5f9;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-weight: bold;
  font-size: 1.25rem;
}

/* Pricing — компактные карточки без пустоты */
.pricing-section {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.price-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.price-card h3 {
  font-size: 1.1rem;
  margin: 0.25rem 0;
}

.price-card p {
  font-size: 0.875rem;
  margin: 0.15rem 0;
  color: var(--text-light);
}

.price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--text);
}

.price-card .btn {
  margin-top: auto;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.badge-free { background: var(--accent); }
.badge-discount { background: var(--danger); }

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.faq-question {
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
}

.faq-question::before {
  content: '+';
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 50%;
  color: var(--gradient);
  font-weight: bold;
}

.faq-question.open::before {
  content: '–';
  background: var(--gradient);
  color: white;
}

.faq-answer {
  padding-bottom: 1.25rem;
  display: none;
  color: var(--text-light);
}

.faq-answer.active {
  display: block;
}

/* CTA */
.cta-section {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--border-radius);
  max-width: 800px;
  margin: 4rem auto;
  box-shadow: var(--shadow-hover);
}

.cta-section h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background: white;
  color: #4f46e5;
  font-weight: 700;
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cta-section .btn:hover {
  background: #f8fafc;
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  header {
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
  }
  nav {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
  nav a {
    margin: 0 0.5rem;
  }
  section {
    padding: 3.5rem 1.5rem;
  }
}

/* =============== МОБИЛЬНАЯ АДАПТАЦИЯ =============== */
@media (max-width: 768px) {
  /* Общее */
  body {
    font-size: 15px;
  }

  header {
    padding: 1.25rem 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  nav {
    width: 100%;
    text-align: center;
    order: 3;
    margin-top: 0.5rem;
  }

  nav a {
    margin: 0 0.5rem;
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.85rem 1.4rem;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero */
  .hero {
    padding: 2.5rem 1.25rem;
    flex-direction: column;
    gap: 1.75rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-image {
    max-width: 300px;
    width: 90vw;
    margin: 0 auto;
  }

  /* Sections */
  section {
    padding: 3rem 1.25rem;
  }

  section h2 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
  }

  /* Features */
  .features-grid {
    gap: 1.5rem;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.5rem;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  /* Pricing */
  .pricing-section {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .price-card {
    max-width: 100%;
    width: 90vw;
    padding: 1.5rem;
  }

  .price-card h3 {
    font-size: 1.15rem;
  }

  .price {
    font-size: 1.85rem;
  }

  /* FAQ */
  .faq-list {
    padding: 0 0.5rem;
  }

  .faq-question {
    font-size: 1.05rem;
    padding: 1rem 0;
  }

  .faq-question::before {
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }

  /* CTA */
  .cta-section {
    padding: 2.5rem 1.25rem;
    margin: 2.5rem 1rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .cta-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Footer */
  footer {
    padding: 1.75rem 1.25rem;
    font-size: 0.85rem;
  }
}