/* =============================
   ГЛОБАЛЬНЫЕ СТИЛИ
   ============================= */

:root {
  --primary: #4361ee;
  --secondary: #3a0ca3;
  --accent: #ff6b35;
  --light-bg: #f8fafc;
  --text-dark: #0f172a;
  --text-light: #475569;
  --gray: #94a3b8;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 400;
}

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

/* Заголовки */
h1, h2, h3 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

h1 { font-size: 2.9rem; }
h2 { font-size: 2.2rem; }

/* Общие классы */
.btn, .btn-primary, .hero-badge, .highlight {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

/* =============================
   КОМПОНЕНТЫ
   ============================= */

/* Кнопка */
.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  padding: 18px 44px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
  text-align: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(67, 97, 238, 0.55);
}

/* Кастомный алерт */
.custom-alert {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.custom-alert.show {
  opacity: 1;
  visibility: visible;
}

.custom-alert-content {
  background: white;
  padding: 25px 30px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.custom-alert p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.custom-alert-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-alert-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.hidden {
  display: none;
}

/* =============================
   HERO SECTION
   ============================= */

.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5ff 100%);
  padding: 90px 20px 70px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  max-width: 620px;
  text-align: left;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 580px;
  pointer-events: none;
}

.hero-image svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(67, 97, 238, 0.12));
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ff6b35, #ff8c00);
  color: white;
  padding: 6px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  letter-spacing: -0.01em;
}

.hero h1 {
  font-size: 3.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(110deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.highlight-no-experience {
  position: relative;
  font-weight: 800;
  color: var(--secondary);
}

.highlight-no-experience::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(58, 12, 163, 0.12);
  z-index: -1;
  border-radius: 4px;
}

.hero-lead {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
  align-items: flex-start; /* ← это ключевое: выравнивание по левому краю */
  text-align: left; /* ← на случай, если где-то наследуется center */
}

.hero-stats > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--secondary);
}

.hero-stats > div::before {
  content: "✅";
  font-size: 1.2rem;
}

.hero-guarantee {
  margin-top: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray);
  text-align: center;
}

/* =============================
   ACCORDION
   ============================= */

.section {
  padding: 100px 20px;
}

.section-title {
  font-size: 2.4rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 50px;
}

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

.accordion-item {
  margin-bottom: 20px;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.accordion-header {
  padding: 24px 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.25s ease;
}

.accordion-header:hover {
  background: #f8fafc;
}

.accordion-icon { font-size: 1.4rem; flex-shrink: 0; }
.accordion-title { flex: 1; text-align: left; }

.accordion-toggle {
  font-family: 'Manrope', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-toggle {
  transform: rotate(45deg);
  color: var(--secondary);
}

.accordion-content {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  background: white;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 0 30px 30px;
  max-height: 1200px;
}

.accordion-content p,
.accordion-content ul {
  margin: 18px 0;
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.65;
  font-weight: 500;
}

.accordion-content strong {
  color: var(--secondary);
  font-weight: 700;
}

.accordion-content ul {
  padding-left: 26px;
}

.accordion-content li {
  margin-bottom: 10px;
  font-weight: 500;
}

.accordion-content li::marker {
  color: var(--primary);
  font-weight: bold;
}

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

.cta {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5ff 100%);
  padding: 80px 20px;
  text-align: center;
}

.cta-title {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.cta-guarantee {
  font-size: 0.95rem;
  color: var(--gray);
  max-width: 500px;
  margin: 20px auto 0;
  font-weight: 600;
}

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

footer {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 80px;
  font-size: 1rem;
  line-height: 1.6;
}

footer p { margin: 5px 0; }
footer strong { color: #4cc9f0; }
footer a { color: white; text-decoration: underline; }

.footer-review-link {
  display: inline-block;
  color: #4cc9f0;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(76, 201, 240, 0.4);
  border-radius: 6px;
  transition: all 0.2s;
}

.footer-review-link:hover {
  background: rgba(76, 201, 240, 0.1);
  border-color: #4cc9f0;
  transform: translateY(-1px);
}

/* =============================
   МОДАЛЬНОЕ ОКНО
   ============================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 9, 30, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 48px;
  max-width: 520px;
  width: 92%;
  box-shadow: 0 25px 80px rgba(0, 9, 30, 0.25);
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Inter', sans-serif;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 1.4rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #4361ee;
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header h3 {
  font-size: 1.9rem;
  margin-bottom: 16px;
}

.modal-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.price-old,
.price-new {
  display: inline-block;
  vertical-align: middle;
}

.price-old {
  text-decoration: line-through;
  color: var(--gray);
  margin-right: 10px;
  font-weight: 500;
}

.price-new {
  color: var(--secondary);
  font-weight: 800;
  font-size: 1.1em;
}

/* =============================
   ФОРМА В МОДАЛКЕ
   ============================= */

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-form input {
  width: 100%;
  padding: 18px 22px;
  font-size: 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fafaff;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s ease;
}

.modal-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

.pdn-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.98rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.pdn-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: 4px;
}

.pdn-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.pdn-link:hover {
  color: var(--secondary);
}

#payment-btn {
  padding: 18px;
  font-size: 1.2rem;
  border-radius: 16px;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

#payment-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(67, 97, 238, 0.55);
}

.modal-guarantee {
  text-align: center;
  font-size: 0.92rem;
  color: var(--gray);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

/* Ошибки */
.input-error {
  position: relative;
  z-index: 10;
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 4px;
  min-height: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.input-error.show {
  opacity: 1;
  visibility: visible;
}

.modal-form input.is-invalid {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
}

.pdn-checkbox.is-invalid {
  color: #e53e3e;
}

.pdn-checkbox.is-invalid input {
  accent-color: #e53e3e;
}

/* =============================
   АНИМАЦИИ И АДАПТИВ
   ============================= */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Планшеты и меньше */
@media (max-width: 992px) {
  .hero {
    padding: 70px 20px 60px;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }
  .hero-text {
    text-align: center;
    max-width: 100%;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: -0.015em;
  }
  .hero-lead {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}

/* Мобильные */
@media (max-width: 576px) {
  .hero {
    padding: 60px 20px 50px;
  }
  .hero-badge {
    font-size: 0.95rem;
    padding: 5px 16px;
  }
  .hero h1 {
    font-size: 2.1rem;
    letter-spacing: -0.01em;
  }
  .hero-lead {
    font-size: 1.1rem;
    margin-bottom: 28px;
  }
  .hero-stats {
    gap: 16px;
    font-size: 1rem;
  }
  .btn-primary {
    padding: 18px;
    font-size: 1.15rem;
    max-width: 360px;
  }
  .hero-guarantee {
    font-size: 0.9rem;
    padding: 0 10px;
  }
  .cta-title {
    font-size: 1.9rem;
  }
  .cta-subtitle {
    font-size: 1.1rem;
  }
  .modal-content {
    padding: 32px 24px;
    margin: 0 16px;
  }
  .modal-content h3 {
    font-size: 1.6rem;
  }
  .modal-desc {
    font-size: 1rem;
  }
  .modal-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero-lead {
    font-size: 1.05rem;
  }
}

	/* =============================
	   ОТЗЫВЫ
	   ============================= */

	.reviews {
	  padding: 80px 20px;
	  background-color: #ffffff;
	}

	.reviews .section-title {
	  margin-bottom: 50px;
	  color: var(--text-dark);
	}

	.reviews-grid {
	  display: grid;
	  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	  gap: 32px;
	  max-width: 1200px;
	  margin: 0 auto;
	}

	.review-card {
	  background: #f8fafc;
	  border-radius: 20px;
	  padding: 28px;
	  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
	  transition: transform 0.2s ease, box-shadow 0.2s ease;
	}

	.review-card:hover {
	  transform: translateY(-4px);
	  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
	}

	.review-header {
	  display: flex;
	  align-items: center;
	  gap: 16px;
	  margin-bottom: 20px;
	}

	.review-avatar {
	  width: 50px;
	  height: 50px;
	  border-radius: 50%;
	  background: linear-gradient(135deg, var(--primary), var(--secondary));
	  color: white;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  font-weight: 700;
	  font-size: 1.2rem;
	  flex-shrink: 0;
	}

	.review-name {
	  font-weight: 700;
	  font-size: 1.1rem;
	  color: var(--text-dark);
	}

	.review-role {
	  font-size: 0.95rem;
	  color: var(--text-light);
	}

	.review-text {
	  font-family: 'Inter', sans-serif;
	  font-size: 1.05rem;
	  line-height: 1.6;
	  color: var(--text-dark);
	  margin-bottom: 20px;
	  font-weight: 500;
	}

	.review-rating {
	  color: #ffca2b;
	  font-size: 1.2rem;
	  font-family: 'Inter', sans-serif;
	  font-weight: 700;
	}

	/* Адаптив */
	@media (max-width: 768px) {
	  .reviews {
		padding: 60px 20px;
	  }

	  .review-card {
		padding: 24px;
	  }

	  .review-text {
		font-size: 1rem;
	  }
	}