/**
 * modern-blocks.css — Современная дизайн-система для конструктора лендингов
 * Версия: 2.0 (2025)
 * 
 * Основано на анализе Boltshift и современных трендов
 */

/* ════════════════════════════════════════════════════
   ШРИФТЫ
   ════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&family=Caveat:wght@400;500;600;700&display=swap');

/* ════════════════════════════════════════════════════
   ДИЗАЙН-СИСТЕМА — Многоуровневые переменные
   ════════════════════════════════════════════════════ */

:root {
  /* Фоны (3 уровня) */
  --lpb-bg: #ffffff;
  --lpb-bg-light: #f8f9fc;
  --lpb-bg-dark: #111111;
  --lpb-bg-secondary: #f3f4f6;
  --lpb-bg-tertiary: #e5e7eb;
  
  /* Текст (3 оттенка) */
  --lpb-text: #111111;
  --lpb-text-secondary: #6b7280;
  --lpb-text-muted: #9ca3af;
  
  /* Акцент с вариациями */
  --lpb-accent: #6c5ce7;
  --lpb-accent-hover: #5a4bd1;
  --lpb-accent-light: #ede9ff;
  --lpb-accent-dark: #4a3fb8;
  
  /* Границы */
  --lpb-border: #e5e7eb;
  --lpb-border-light: #f3f4f6;
  --lpb-border-dark: #d1d5db;
  
  /* Радиусы (3 размера) */
  --lpb-radius: 16px;
  --lpb-radius-lg: 20px;
  --lpb-radius-pill: 100px;
  --lpb-radius-sm: 12px;
  
  /* Тени (3 уровня) */
  --lpb-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --lpb-shadow: 0 4px 20px rgba(0,0,0,0.06);
  --lpb-shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  
  /* Градиенты */
  --lpb-gradient-accent: linear-gradient(135deg, var(--lpb-accent), #a78bfa);
  --lpb-gradient-dark: linear-gradient(135deg, #1a1a2e, #2d2d44);
}

/* ════════════════════════════════════════════════════
   БАЗОВЫЕ СТИЛИ
   ════════════════════════════════════════════════════ */

.lp-blocks-output {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--lpb-text);
  background: var(--lpb-bg);
}

.lp-blocks-output * {
  box-sizing: border-box;
}

/* ════════════════════════════════════════════════════
   SCROLL REVEAL АНИМАЦИИ
   ════════════════════════════════════════════════════ */

.lpb-sr {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.lpb-sr.lpb-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Задержки для последовательного появления */
.lpb-sr-d1 { transition-delay: 0.1s; }
.lpb-sr-d2 { transition-delay: 0.2s; }
.lpb-sr-d3 { transition-delay: 0.3s; }
.lpb-sr-d4 { transition-delay: 0.4s; }

/* ════════════════════════════════════════════════════
   HOVER ЭФФЕКТЫ
   ════════════════════════════════════════════════════ */

.lpb-card-hover {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}

.lpb-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--lpb-shadow-lg);
}

.lpb-btn-hover {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lpb-btn-hover:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* ════════════════════════════════════════════════════
   КНОПКИ
   ════════════════════════════════════════════════════ */

.lpb-btn-primary,
.lpb-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: var(--lpb-radius-pill);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.lpb-btn-primary {
  background: var(--lpb-bg-dark);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.lpb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.lpb-btn-secondary {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  color: var(--lpb-text);
  border: 1.5px solid var(--lpb-border);
}

.lpb-btn-secondary:hover {
  border-color: var(--lpb-text);
  background: rgba(255,255,255,0.95);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════
   HERO БЛОК
   ════════════════════════════════════════════════════ */

.lpb-hero {
  position: relative;
  padding: clamp(100px, 15vw, 180px) clamp(24px, 6vw, 80px);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--lpb-accent-light), transparent),
              linear-gradient(180deg, var(--lpb-bg) 0%, var(--lpb-bg-light) 100%);
}

.lpb-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lpb-text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
  padding: 8px 16px;
  background: var(--lpb-bg-light);
  border: 1px solid var(--lpb-border);
  border-radius: 100px;
}

.lpb-hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 900px;
  margin: 0 auto 32px;
  background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lpb-hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--lpb-text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 48px;
  font-weight: 400;
}

.lpb-hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Mesh Background */
.lpb-mesh-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.lpb-mesh-bg svg {
  width: 100%;
  height: 100%;
}

/* Floating Badges */
.lpb-badge-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--lpb-border);
  border-radius: 100px;
  padding: 6px 14px 6px 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  z-index: 10;
  animation: lpbFloat 3s ease-in-out infinite;
}

.lpb-badge-float.reverse {
  flex-direction: row-reverse;
  padding: 6px 6px 6px 14px;
}

.lpb-badge-float img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.lpb-badge-float .bf-name {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  font-weight: 600;
  color: var(--lpb-text);
  white-space: nowrap;
}

/* Позиционирование badges */
.lpb-badge-tl {
  top: 10%;
  left: 5%;
}

.lpb-badge-tr {
  top: 15%;
  right: 8%;
  animation-delay: 0.5s;
}

.lpb-badge-bl {
  bottom: 20%;
  left: 8%;
  animation-delay: 1s;
}

.lpb-badge-br {
  bottom: 15%;
  right: 5%;
  animation-delay: 1.5s;
}

@keyframes lpbFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Адаптивность для badges */
@media (max-width: 768px) {
  .lpb-badge-float {
    display: none;
  }
}

/* ════════════════════════════════════════════════════
   SECTION HEADER
   ════════════════════════════════════════════════════ */

.lpb-section-hd {
  text-align: center;
  margin-bottom: 48px;
}

.lpb-section-hd h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

.lpb-section-hd p {
  font-size: 15px;
  color: var(--lpb-text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════════
   FEATURES БЛОК
   ════════════════════════════════════════════════════ */

.lpb-features {
  padding: clamp(40px, 8vw, 80px) clamp(24px, 6vw, 120px);
}

.lpb-features-grid {
  display: grid;
  gap: 24px;
}

.lpb-feature-card {
  background: var(--lpb-bg-light);
  border: 1px solid var(--lpb-border-light);
  border-radius: var(--lpb-radius-lg);
  padding: 36px 28px;
  text-align: center;
}

.lpb-feature-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--lpb-accent-light);
  font-size: 24px;
}

.lpb-feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--lpb-text);
}

.lpb-feature-desc {
  font-size: 13px;
  color: var(--lpb-text-secondary);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════
   STATS БЛОК
   ════════════════════════════════════════════════════ */

.lpb-stats {
  padding: clamp(40px, 8vw, 80px) clamp(24px, 6vw, 120px);
}

.lpb-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.lpb-stat-num {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--lpb-text);
  margin-bottom: 8px;
}

.lpb-stat-label {
  font-size: 14px;
  color: var(--lpb-text-secondary);
  font-weight: 500;
}

/* ════════════════════════════════════════════════════
   STEPS БЛОК
   ════════════════════════════════════════════════════ */

.lpb-steps {
  padding: clamp(40px, 8vw, 80px) clamp(24px, 6vw, 120px);
}

.lpb-steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.lpb-step {
  position: relative;
  padding-left: 60px;
}

.lpb-step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lpb-accent-light);
  color: var(--lpb-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.lpb-step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--lpb-text);
}

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

/* ════════════════════════════════════════════════════
   PRICING БЛОК
   ════════════════════════════════════════════════════ */

.lpb-pricing {
  padding: clamp(40px, 8vw, 80px) clamp(24px, 6vw, 120px);
}

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

.lpb-plan {
  background: var(--lpb-bg);
  border: 1.5px solid var(--lpb-border);
  border-radius: var(--lpb-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.lpb-plan.featured {
  border-color: var(--lpb-accent);
  box-shadow: 0 0 0 1px var(--lpb-accent), var(--lpb-shadow);
}

.lpb-plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--lpb-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lpb-plan-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--lpb-text);
}

.lpb-plan-price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--lpb-text);
}

.lpb-plan-period {
  font-size: 14px;
  color: var(--lpb-text-muted);
  margin-bottom: 24px;
}

.lpb-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  flex: 1;
}

.lpb-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--lpb-text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.lpb-plan-feature::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lpb-accent-light);
  color: var(--lpb-accent);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ════════════════════════════════════════════════════
   TESTIMONIALS БЛОК
   ════════════════════════════════════════════════════ */

.lpb-testimonials {
  padding: clamp(40px, 8vw, 80px) clamp(24px, 6vw, 120px);
}

.lpb-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.lpb-testimonial {
  background: var(--lpb-bg-light);
  border: 1px solid var(--lpb-border-light);
  border-radius: var(--lpb-radius-lg);
  padding: 28px;
}

.lpb-testimonial-quote {
  font-size: 48px;
  line-height: 1;
  color: var(--lpb-accent-light);
  margin-bottom: 16px;
}

.lpb-testimonial-text {
  font-size: 14px;
  color: var(--lpb-text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.lpb-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lpb-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lpb-accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.lpb-testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--lpb-text);
}

.lpb-testimonial-role {
  font-size: 12px;
  color: var(--lpb-text-muted);
}

/* ════════════════════════════════════════════════════
   TEAM БЛОК
   ════════════════════════════════════════════════════ */

.lpb-team {
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
}

.lpb-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.lpb-team-card {
  text-align: center;
  padding: 24px;
  background: var(--lpb-bg-light);
  border-radius: var(--lpb-radius);
  transition: transform 0.3s;
}

.lpb-team-card:hover {
  transform: translateY(-4px);
}

.lpb-team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--lpb-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
}

.lpb-team-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--lpb-text);
}

.lpb-team-role {
  font-size: 13px;
  color: var(--lpb-text-secondary);
}

/* ════════════════════════════════════════════════════
   CTA БЛОК
   ════════════════════════════════════════════════════ */

.lpb-cta {
  padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 56px);
  text-align: center;
  border-radius: 28px;
  margin: 0 clamp(20px, 5vw, 56px);
}

.lpb-cta h2 {
  color: #fff;
  margin-bottom: 18px;
}

.lpb-cta p {
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto 36px;
}

.lpb-cta .lpb-btn-primary {
  background: #fff;
  color: var(--lpb-text);
}

.lpb-cta .lpb-btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.lpb-cta .lpb-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* ════════════════════════════════════════════════════
   FAQ БЛОК
   ════════════════════════════════════════════════════ */

.lpb-faq {
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 56px);
  max-width: 800px;
  margin: 0 auto;
}

.lpb-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lpb-faq-item {
  background: var(--lpb-bg-light);
  border: 1px solid var(--lpb-border-light);
  border-radius: var(--lpb-radius);
  padding: 24px;
}

.lpb-faq-q {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--lpb-text);
}

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

/* ════════════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .lpb-hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  
  .lpb-hero-btns a {
    width: 100%;
  }
  
  .lpb-features-grid,
  .lpb-steps-list,
  .lpb-pricing-grid,
  .lpb-testimonials-grid,
  .lpb-team-grid {
    grid-template-columns: 1fr;
  }
  
  .lpb-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

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

/* ════════════════════════════════════════════════════
   ACCESSIBILITY
   ════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .lpb-sr,
  .lpb-card-hover,
  .lpb-btn-hover {
    animation: none !important;
    transition: none !important;
  }
}
