* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #fff; color: #111827; line-height: 1.5; }

/* Градиент и кнопки */
.gradient-text { background: linear-gradient(135deg,#6366f1,#8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.btn-primary { background: linear-gradient(135deg,#6366f1,#8b5cf6); color: white; padding: 13px 28px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; display: inline-block; text-align: center; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-outline { background: white; color: #6366f1; border: 2px solid #6366f1; padding: 11px 24px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.2s; }
.btn-outline:hover { background: #f5f3ff; }

/* Навигация */
nav { display: flex; align-items: center; flex-wrap: wrap; padding: 14px 32px; border-bottom: 1px solid #f3f4f6; position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); z-index: 100; }
.logo { font-size: 22px; font-weight: 800; background: linear-gradient(135deg,#6366f1,#8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; gap: 24px; align-items: center; margin-left: auto; margin-right: 16px; }
.nav-links a { text-decoration: none; color: #6b7280; font-size: 14px; }
.nav-links a:hover { color: #111827; }
.btn-nav { background: linear-gradient(135deg,#6366f1,#8b5cf6); color: white !important; padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 13px !important; text-decoration: none; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #374151; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  .nav-right { margin-left: auto; }
  .hamburger { display: flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; border-top: 1px solid #f3f4f6; padding-top: 8px; margin-top: 8px; margin-left: 0; margin-right: 0; order: 1; flex-basis: 100%; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; font-size: 15px; width: 100%; border-bottom: 1px solid #f9fafb; }
  .nav-links a:last-child { border-bottom: none; }
}

/* Формы */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.form-input { width: 100%; padding: 11px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 15px; outline: none; color: #111827; font-family: inherit; }
.form-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-input.error { border-color: #ef4444; }
.form-error { color: #ef4444; font-size: 13px; margin-top: 8px; display: none; padding: 10px 12px; background: #fef2f2; border-radius: 6px; border: 1px solid #fecaca; }
.form-error.visible { display: block; }

/* Чекбоксы */
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.checkbox-group input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: #6366f1; cursor: pointer; }
.checkbox-group label { font-size: 13px; color: #6b7280; line-height: 1.5; cursor: pointer; font-weight: 400; }
.checkbox-group label a { color: #6366f1; }

/* Вкладки формы */
.form-tabs { display: flex; background: #f3f4f6; border-radius: 8px; padding: 3px; margin-bottom: 20px; }
.form-tab { flex: 1; text-align: center; padding: 8px; font-size: 14px; font-weight: 600; border-radius: 6px; cursor: pointer; border: none; background: transparent; color: #9ca3af; transition: all 0.2s; }
.form-tab.active { background: white; color: #6366f1; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Карточки */
.card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px 24px; }
.card.popular { border: 2px solid #6366f1; position: relative; }
.card-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,#6366f1,#8b5cf6); color: white; padding: 3px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Онбординг шаги */
.onboard-step { display: flex; gap: 20px; align-items: flex-start; text-align: left; background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; margin-bottom: 16px; }
.step-num { width: 40px; height: 40px; background: linear-gradient(135deg,#6366f1,#8b5cf6); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.onboard-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.onboard-step p { font-size: 14px; color: #6b7280; }

/* Юридические страницы */
.legal-content { max-width: 760px; margin: 48px auto; padding: 0 24px 80px; }
.legal-content h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.legal-content .updated { font-size: 13px; color: #9ca3af; margin-bottom: 40px; }
.legal-content h2 { font-size: 18px; font-weight: 700; margin: 32px 0 10px; color: #111827; }
.legal-content p, .legal-content li { font-size: 15px; color: #374151; line-height: 1.7; margin-bottom: 10px; }
.legal-content ul { padding-left: 20px; margin-bottom: 12px; }
.legal-content .requisites { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px 24px; margin-top: 32px; font-size: 14px; color: #374151; line-height: 1.8; }
